/* High-tech Style Theme */

:root {
    --hightech-primary: #00f0ff;
    --hightech-secondary: #7b2cbf;
    --hightech-accent: #ff00ff;
    --hightech-dark: #0a0e27;
    --hightech-darker: #050714;
    --hightech-light: #e0e7ff;
    --hightech-success: #00ff88;
    --hightech-error: #ff0055;
    --hightech-border: #1a1f3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--hightech-darker) 0%, var(--hightech-dark) 50%, #151b3d 100%);
    color: var(--hightech-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container - Override Bootstrap to prevent horizontal overflow */
.hightech-navbar .container,
.hightech-container,
.hightech-footer .container {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Navbar */
.hightech-navbar {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(10, 14, 39, 0.95) 100%);
    border-bottom: 2px solid var(--hightech-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
}

.hightech-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hightech-primary), var(--hightech-accent), var(--hightech-primary), transparent);
    animation: hightech-scan 3s linear infinite;
}

@keyframes hightech-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hightech-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hightech-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--hightech-primary);
    letter-spacing: 2px;
}

.hightech-brand i {
    font-size: 1.8rem;
    animation: hightech-pulse 2s ease-in-out infinite;
}

@keyframes hightech-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hightech-nav-links {
    display: flex;
    gap: 2rem;
}

.hightech-nav-links a {
    color: var(--hightech-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.3s;
}

.hightech-nav-links a:hover {
    color: var(--hightech-primary);
    border-color: var(--hightech-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 10px var(--hightech-primary);
}

.hightech-toggle {
    background: transparent;
    border: 2px solid var(--hightech-primary);
    color: var(--hightech-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hightech-toggle:hover {
    background: var(--hightech-primary);
    color: var(--hightech-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hightech-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hightech-border);
}

.hightech-mobile-menu a {
    color: var(--hightech-light);
    text-decoration: none;
    padding: 0.75rem;
    border: 1px solid var(--hightech-border);
    transition: all 0.3s;
}

.hightech-mobile-menu a:hover {
    background: var(--hightech-border);
    color: var(--hightech-primary);
    border-color: var(--hightech-primary);
}

/* Container */
.hightech-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Alert */
.hightech-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    border-radius: 0;
    position: relative;
    background: rgba(10, 14, 39, 0.9);
}

.hightech-alert-success {
    border-color: var(--hightech-success);
    color: var(--hightech-success);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.hightech-alert-error {
    border-color: var(--hightech-error);
    color: var(--hightech-error);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

.hightech-alert button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s;
}

.hightech-alert button:hover {
    transform: rotate(90deg);
}

/* Products Grid */
.hightech-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.hightech-product-card {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.hightech-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hightech-primary), var(--hightech-accent));
}

.hightech-product-card:hover {
    border-color: var(--hightech-primary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.hightech-card-header {
    background: linear-gradient(135deg, var(--hightech-dark) 0%, var(--hightech-darker) 100%);
    padding: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hightech-card-icon {
    font-size: 3rem;
    color: var(--hightech-primary);
    text-shadow: 0 0 20px var(--hightech-primary);
    animation: hightech-float 3s ease-in-out infinite;
}

@keyframes hightech-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hightech-card-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--hightech-accent);
    opacity: 0.5;
}

.hightech-card-corner::before,
.hightech-card-corner::after {
    content: '';
    position: absolute;
    background: var(--hightech-accent);
}

.hightech-card-corner::before {
    width: 10px;
    height: 2px;
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
}

.hightech-card-corner::after {
    width: 2px;
    height: 10px;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
}

.hightech-card-body {
    padding: 1.5rem;
}

.hightech-card-title {
    color: var(--hightech-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.hightech-card-desc {
    color: var(--hightech-light);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hightech-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hightech-price {
    font-size: 1.5rem;
    color: var(--hightech-success);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.hightech-stock {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid;
}

.hightech-stock-available {
    border-color: var(--hightech-success);
    color: var(--hightech-success);
}

.hightech-stock-soldout {
    border-color: var(--hightech-error);
    color: var(--hightech-error);
}

.hightech-card-footer {
    padding: 1rem;
    border-top: 1px solid var(--hightech-border);
}

.hightech-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.hightech-btn-primary {
    border-color: var(--hightech-primary);
    color: var(--hightech-primary);
    background: rgba(0, 240, 255, 0.1);
}

.hightech-btn-primary:hover {
    background: var(--hightech-primary);
    color: var(--hightech-dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hightech-btn-secondary {
    border-color: var(--hightech-secondary);
    color: var(--hightech-secondary);
    background: rgba(123, 44, 191, 0.1);
}

.hightech-btn-secondary:hover {
    background: var(--hightech-secondary);
    color: var(--hightech-light);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.5);
}

.hightech-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.hightech-btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hightech-btn-block {
    width: 100%;
}

/* Back Link */
.hightech-back-link {
    margin-bottom: 1.5rem;
}

.hightech-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hightech-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.hightech-back-btn:hover {
    gap: 1rem;
    text-shadow: 0 0 10px var(--hightech-primary);
}

/* Product Detail */
.hightech-product-detail {
    max-width: 800px;
    margin: 0 auto;
}

.hightech-detail-card {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
    position: relative;
}

.hightech-detail-header {
    background: linear-gradient(135deg, var(--hightech-dark) 0%, var(--hightech-darker) 100%);
    padding: 3rem;
    text-align: center;
    position: relative;
}

.hightech-detail-icon {
    font-size: 4rem;
    color: var(--hightech-primary);
    text-shadow: 0 0 30px var(--hightech-primary);
    animation: hightech-float 3s ease-in-out infinite;
}

.hightech-detail-corners {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none;
}

.hightech-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.hightech-corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid var(--hightech-accent);
    border-left: 2px solid var(--hightech-accent);
}

.hightech-corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid var(--hightech-accent);
    border-right: 2px solid var(--hightech-accent);
}

.hightech-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--hightech-accent);
    border-left: 2px solid var(--hightech-accent);
}

.hightech-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--hightech-accent);
    border-right: 2px solid var(--hightech-accent);
}

.hightech-detail-body {
    padding: 2rem;
}

.hightech-detail-title {
    color: var(--hightech-primary);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hightech-detail-desc {
    color: var(--hightech-light);
    opacity: 0.9;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hightech-detail-info {
    display: grid;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
    padding: 1.5rem;
}

.hightech-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hightech-info-item i {
    color: var(--hightech-primary);
    font-size: 1.2rem;
}

.hightech-info-label {
    color: var(--hightech-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

.hightech-info-value {
    color: var(--hightech-light);
    font-size: 1.1rem;
    font-weight: bold;
}

.hightech-stock-status-available {
    color: var(--hightech-success);
}

.hightech-stock-status-soldout {
    color: var(--hightech-error);
}

.hightech-price-large {
    color: var(--hightech-success);
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.hightech-detail-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--hightech-border);
    text-align: center;
}

/* Payment */
.hightech-payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.hightech-payment-card {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
}

.hightech-payment-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--hightech-border);
}

.hightech-payment-header i {
    font-size: 3rem;
    color: var(--hightech-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--hightech-primary);
}

.hightech-payment-header h2 {
    color: var(--hightech-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hightech-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hightech-primary), transparent);
    margin: 1rem auto;
}

.hightech-payment-body {
    padding: 2rem;
}

.hightech-payment-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hightech-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hightech-border);
}

.hightech-info-row:last-child {
    border-bottom: none;
}

.hightech-payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hightech-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hightech-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hightech-light);
    font-size: 0.9rem;
    font-weight: bold;
}

.hightech-form-label i {
    color: var(--hightech-primary);
}

.hightech-form-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
    color: var(--hightech-light);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.hightech-form-input:focus {
    outline: none;
    border-color: var(--hightech-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.hightech-form-input::placeholder {
    color: var(--hightech-light);
    opacity: 0.5;
}

.hightech-form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
    color: var(--hightech-light);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.hightech-form-control:focus {
    outline: none;
    border-color: var(--hightech-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.hightech-form-control::placeholder {
    color: var(--hightech-light);
    opacity: 0.5;
}

.hightech-form-hint {
    color: var(--hightech-light);
    opacity: 0.6;
    font-size: 0.85rem;
}

.hightech-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hightech-payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--hightech-border);
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.hightech-payment-method:hover {
    border-color: var(--hightech-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hightech-payment-method input[type="radio"] {
    display: none;
}

.hightech-payment-method input[type="radio"]:checked + .hightech-method-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

.hightech-payment-method input[type="radio"]:checked ~ span {
    color: var(--hightech-primary);
}

.hightech-method-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.hightech-alipay {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
    border: 2px solid #1677ff;
}

.hightech-wechat {
    color: #07c160;
    background: rgba(7, 193, 96, 0.1);
    border: 2px solid #07c160;
}

.hightech-payment-method span {
    color: var(--hightech-light);
    font-size: 0.9rem;
}

/* Order Result */
.hightech-order-result {
    max-width: 800px;
    margin: 0 auto;
}

.hightech-result-card {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
    margin-bottom: 2rem;
}

.hightech-result-success {
    text-align: center;
}

.hightech-result-icon {
    font-size: 5rem;
    color: var(--hightech-success);
    margin: 2rem 0 1rem;
    text-shadow: 0 0 30px var(--hightech-success);
    animation: hightech-pulse 2s ease-in-out infinite;
}

.hightech-result-title {
    color: var(--hightech-success);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hightech-result-subtitle {
    color: var(--hightech-light);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hightech-order-detail {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
}

.hightech-order-id {
    font-family: monospace;
    color: var(--hightech-primary);
}

.hightech-codes-section {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
}

.hightech-codes-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--hightech-border);
}

.hightech-codes-header h4 {
    color: var(--hightech-primary);
    font-size: 1.1rem;
}

.hightech-codes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.hightech-code-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--hightech-border);
}

.hightech-code-text {
    flex: 1;
    font-family: monospace;
    color: var(--hightech-light);
    word-break: break-all;
}

.hightech-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--hightech-primary);
    border: none;
    color: var(--hightech-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s;
}

.hightech-copy-btn:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.hightech-copy-text {
    transition: opacity 0.3s;
}

.hightech-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Payment Success */
.hightech-payment-success {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hightech-success-animation {
    margin-bottom: 2rem;
}

.hightech-success-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.2);
    border: 3px solid var(--hightech-success);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hightech-pulse 2s ease-in-out infinite;
}

.hightech-success-circle i {
    font-size: 4rem;
    color: var(--hightech-success);
}

.hightech-success-title {
    color: var(--hightech-success);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hightech-success-subtitle {
    color: var(--hightech-light);
    opacity: 0.8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hightech-success-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hightech-border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hightech-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Query */
.hightech-query-container {
    max-width: 600px;
    margin: 0 auto;
}

.hightech-query-card {
    background: rgba(10, 14, 39, 0.9);
    border: 1px solid var(--hightech-border);
    margin-bottom: 2rem;
}

.hightech-query-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--hightech-border);
}

.hightech-query-header i {
    font-size: 3rem;
    color: var(--hightech-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--hightech-primary);
}

.hightech-query-header h2 {
    color: var(--hightech-light);
    font-size: 1.8rem;
}

.hightech-query-form {
    padding: 2rem;
}

.hightech-query-result {
    animation: hightech-fadeIn 0.5s;
}

@keyframes hightech-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.hightech-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.hightech-empty-state i {
    font-size: 5rem;
    color: var(--hightech-border);
    margin-bottom: 1.5rem;
}

.hightech-empty-state h4 {
    color: var(--hightech-light);
    opacity: 0.7;
}

/* Footer */
.hightech-footer {
    background: rgba(10, 14, 39, 0.98);
    border-top: 1px solid var(--hightech-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.hightech-footer p {
    color: var(--hightech-light);
    opacity: 0.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hightech-products-grid {
        grid-template-columns: 1fr;
    }

    .hightech-result-actions,
    .hightech-success-actions {
        flex-direction: column;
    }

    .hightech-payment-methods {
        grid-template-columns: 1fr;
    }
}
