:root {
    --primary-color: #374151;
    --primary-gradient: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    --secondary-color: #6b7280;
    --secondary-gradient: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.menu-head {
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.menu-head-nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.menu-head-link {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.menu-head-link:hover {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.08);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
}

.title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 2rem;
}

.change-account-guide {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.change-account-guide p {
    margin-bottom: 0.5rem;
}

.change-account-guide p:last-child {
    margin-bottom: 0;
}

.guide-fee {
    color: #1d4ed8;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.pair-row .pair-half {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.change-account-summary {
    padding: 0.75rem;
    background: var(--bg-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card {
    background: var(--bg-primary);
    border-radius: 0;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation-duration: 1.5s;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    animation-duration: 2s;
}

.calculation-display {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 1rem;
    margin-top: 0.5rem;
    border-left: 4px solid var(--border-color);
}

.calculation-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.calculation-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.order-section.show {
    display: block;
}

.order-payment-card .order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 0;
}

.order-col-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-col-title i {
    color: var(--text-secondary);
}

.qr-hint {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bank-guide-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bank-details {
    background: var(--bg-secondary);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bank-row:last-child {
    margin-bottom: 0;
}

.bank-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bank-value {
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
    text-align: right;
}

.bank-amount {
    font-size: 1.1rem;
}

.order-status-inner {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.order-info-card {
    margin-bottom: 0;
}

.status-block {
    text-align: center;
    padding: 1rem 0;
}

.status-text, .status-success-desc, .status-timeout-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.status-success-title {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-timeout-title {
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-timeout-title i {
    margin-right: 0.5rem;
}

.btn-new-order {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .order-payment-card .order-grid {
        grid-template-columns: 1fr;
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.success-icon {
    width: 40px;
    height: 40px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 24px;
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-container {
    text-align: center;
}

.qr-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.status-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--border-color);
    transition: width 0.3s ease;
    border-radius: 0;
}

.order-info-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.order-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 0;
}

.info-value-accounts {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-value-accounts:hover {
    color: var(--primary-color);
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.account-modal.account-modal-open {
    visibility: visible;
    opacity: 1;
}

.account-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.account-modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 360px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.account-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.account-modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.account-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 0.25rem;
}

.account-modal-close:hover {
    color: var(--text-primary);
}

.account-modal-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.25rem 1rem;
    overflow-y: auto;
}

.account-modal-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.account-modal-list li:last-child {
    border-bottom: none;
}

.notify-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.notify-modal.notify-modal-open {
    visibility: visible;
    opacity: 1;
}

.notify-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.notify-modal-box {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.notify-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notify-modal-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.notify-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 0.25rem;
}

.notify-modal-close:hover {
    color: var(--text-primary);
}

.notify-modal-body {
    padding: 1.25rem;
}

.notify-modal-body p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.notify-modal-footer {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.notify-modal-btn-ok {
    min-width: 80px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.alert {
    padding: 1rem;
    border-radius: 0;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success-color);
    color: #166534;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-head {
        padding: 0.5rem 15px;
    }

    .menu-head-nav {
        gap: 0.5rem 1rem;
    }

    .menu-head-link {
        font-size: 0.875rem;
    }

    .container {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .order-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .main-content {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 1.75rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
} 