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

:root {
    --primary-red: #E53935;
    --dark-bg: #1A1D29;
    --card-bg: #FFFFFF;
    --text-primary: #1A1D29;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --success-green: #10B981;
    --usdt-green: #26A17B;
    --hover-bg: #F9FAFB;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F3F4F6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.logo-img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.icon-btn:hover {
    background: var(--hover-bg);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--hover-bg);
}

.flag {
    font-size: 16px;
}

/* Amount Section */
.amount-section {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.amount-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Invoice Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.invoice-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-id-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.invoice-id-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.invoice-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #D97706;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D97706;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Amount Hero */
.amount-hero {
    text-align: center;
    margin-bottom: 24px;
}

.amount-hero-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.amount-hero-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.amount-hero-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Detail Card */
.detail-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
}

.detail-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-icon img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.icon-wallet {
    background: #EFF6FF;
    color: #2563EB;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.address-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.detail-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 18px;
}

/* Financial Summary */
.financial-summary {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-row-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.fee-covered {
    color: var(--success-green) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 2px;
    padding-top: 14px;
}

.summary-row.total .summary-row-label {
    font-weight: 600;
    color: var(--text-primary);
}

.total-value {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Info Notices (no background) */
.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--text-muted);
}

.address-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    letter-spacing: 0.3px;
    word-break: break-all;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 24px;
}

/* Selectors */
.selector-group {
    margin-bottom: 20px;
}

.selector-label-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selector:hover {
    border-color: #D1D5DB;
    background: var(--hover-bg);
}

.selector-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.currency-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.network-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.currency-icon.usdt {
    background: var(--usdt-green);
    color: white;
}

.tether-symbol {
    font-size: 16px;
    font-weight: 700;
}

.selector-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chevron {
    color: var(--text-secondary);
}

/* Amount Summary */
.amount-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.summary-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* Receive Button */
.receive-btn {
    width: 100%;
    padding: 16px;
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.receive-btn:hover {
    background: #2D3142;
    transform: translateY(-1px);
}

.receive-btn:active {
    transform: translateY(0);
}

/* Network Info */
.network-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.contract-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: underline;
}

.amount-usd {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Fee Badge Warning */
.fee-badge.warning {
    background: #EFF6FF;
    color: #2563EB;
}

/* Amount Display Box */
.amount-display-box {
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.amount-display-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.amount-display-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Wallet Input */
.wallet-input-group {
    margin-bottom: 16px;
}

.wallet-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.wallet-input:focus {
    border-color: #2563EB;
    background: white;
}

.wallet-input::placeholder {
    color: var(--text-muted);
}

/* Info Note */
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--hover-bg);
}

.back-btn svg {
    stroke: var(--text-primary);
}

/* Review Header */
.review-header {
    text-align: center;
    margin-bottom: 24px;
}

.review-icon {
    width: 48px;
    height: 48px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.review-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Review Card */
.review-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 20px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 18px;
    gap: 16px;
}

.review-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.review-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.review-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.4;
}

.review-amount {
    font-size: 15px;
    font-weight: 700;
}

.review-fee {
    color: var(--success-green) !important;
}

.review-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 18px;
}

/* Confirmation Checkboxes */
.confirm-checkboxes {
    margin-bottom: 20px;
}

.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    user-select: none;
}

.confirm-checkbox:hover {
    background: #F3F4F6;
}

.confirm-checkbox.checked {
    background: #F0FDF4;
    border-color: #86EFAC;
}

.confirm-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.confirm-checkbox.checked .checkmark {
    background: var(--success-green);
    border-color: var(--success-green);
}

.confirm-checkbox.checked .checkmark::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.receive-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #E5E7EB;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Error State */
.error-icon {
    margin-bottom: 16px;
}

.error-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.error-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 24px;
}

.connect-wallet-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-wallet-btn:hover {
    background: #C62828;
}

/* Phase Tracker */
.phase-header {
    text-align: center;
    padding: 20px 0;
}

.phase-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.phase-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.phase-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

/* Phase Steps */
.phase-steps {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phase-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.phase-step.active {
    opacity: 1;
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.phase-step.completed {
    opacity: 1;
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.phase-step-icon {
    flex-shrink: 0;
}

.phase-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.phase-step.active .phase-step-number {
    background: #2563EB;
    color: white;
}

.phase-step.completed .phase-step-number {
    background: #16A34A;
    color: white;
}

.phase-step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phase-step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.phase-step-status {
    font-size: 12px;
    color: var(--text-muted);
}

.phase-step.active .phase-step-status {
    color: #2563EB;
}

.phase-step.completed .phase-step-status {
    color: #16A34A;
}

.phase-step-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2563EB;
    text-decoration: none;
    white-space: nowrap;
}

.phase-step-link:hover {
    text-decoration: underline;
}

/* Block Cards */
.block-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.block-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.block-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #BFDBFE;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.block-card.verified {
    opacity: 1;
    transform: scale(1);
    border-color: #BBF7D0;
    background: #F0FDF4;
}

.block-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.block-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.block-org {
    font-size: 11px;
    color: var(--text-secondary);
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.block-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.block-time {
    font-size: 11px;
    color: var(--text-muted);
}

.block-txns {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.block-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.block-stat {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.block-icon-trx, .block-icon-burn, .block-icon-energy {
    font-size: 12px;
}

.block-status-bar {
    margin-top: 10px;
    height: 3px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.block-status-fill {
    height: 100%;
    width: 0%;
    background: #2563EB;
    border-radius: 2px;
    transition: width 2.5s linear;
}

.block-card.active .block-status-fill {
    width: 100%;
}

.block-card.verified .block-status-fill {
    width: 100%;
    background: #16A34A;
}

/* Hash Box */
.hash-box {
    background: #1E293B;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.hash-label {
    display: block;
    font-size: 11px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hash-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: #22D3EE;
    word-break: break-all;
    line-height: 1.5;
}

/* Success State */
.success-header {
    text-align: center;
    padding: 24px 0 20px;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.success-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.success-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 16px;
}

.success-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 18px;
    gap: 12px;
}

.success-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.success-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.success-amount {
    font-size: 15px;
    font-weight: 700;
    color: #16A34A;
}

.success-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.4;
}

.success-hash {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 10px;
    word-break: break-all;
    line-height: 1.4;
    color: #2563EB;
}

.success-status-confirmed {
    color: #16A34A !important;
    font-weight: 700 !important;
}

.success-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 18px;
}

.success-notice {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.success-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.success-notice p {
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
}

.success-wallet-btn {
    background: #16A34A;
    margin-top: 4px;
}

.success-wallet-btn:hover {
    background: #15803D;
}

/* Timer Section */
.timer-section {
    text-align: center;
}

.timer-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success-green);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.timer svg {
    stroke: var(--success-green);
}

.timer-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Language Modal */
.lang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lang-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 101;
    overflow-y: auto;
}

.lang-modal.active {
    transform: translateX(0);
}

.lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.lang-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.lang-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.lang-close:hover {
    background: var(--hover-bg);
}

.lang-list {
    padding: 12px;
}

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.lang-option:hover {
    background: var(--hover-bg);
}

.lang-option.active {
    background: #EFF6FF;
}

.lang-flag {
    font-size: 24px;
}

.lang-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* RTL Support */
[dir="rtl"] .lang-modal {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

[dir="rtl"] .lang-modal.active {
    transform: translateX(0);
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-logo-img {
    height: 16px;
    width: auto;
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}

.footer-logo {
    color: var(--primary-red);
    font-weight: 700;
    margin-left: 4px;
}

/* FAQ Modal */
.faq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.faq-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 101;
    overflow-y: auto;
    padding: 20px;
}

.faq-modal.active {
    transform: translateX(0);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.faq-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-close:hover {
    background: var(--hover-bg);
}

.faq-search {
    position: relative;
    margin-bottom: 20px;
}

.faq-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.faq-search input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.faq-search input:focus {
    border-color: #2563EB;
}

.faq-search input::placeholder {
    color: var(--text-muted);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 16px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-item.hidden {
    display: none;
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 29, 41, 0.3);
    transition: all 0.2s ease;
    z-index: 99;
}

.chat-btn:hover {
    transform: scale(1.05);
    background: #2D3142;
}

.chat-btn.hidden {
    display: none;
}

/* Chat Notification Dot */
.chat-notification {
    display: none;
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
}

.chat-notification.active {
    display: block;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: #1A1D21;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 100;
    max-height: 600px;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #25282C;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.chat-logo {
    height: 32px;
    width: auto;
}

.chat-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar.bot {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-avatar.bot img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.chat-bubble {
    background: #33373B;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.user .chat-bubble {
    background: white;
    color: #1A1D21;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.chat-sender {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.chat-form {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 0 20px;
}

.chat-form-field {
    margin-bottom: 16px;
}

.chat-form-field:last-child {
    margin-bottom: 0;
}

.chat-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1D21;
    margin-bottom: 6px;
}

.chat-form-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-form-field input:focus {
    border-color: var(--primary-red);
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #33373B;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25282C;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
}

.chat-attach {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-attach:hover {
    color: white;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    padding: 10px 0;
}

.chat-input::placeholder {
    color: #6B7280;
}

.chat-powered {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin-top: 12px;
}

.chat-time {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    margin: 8px 0;
}

.chat-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.chat-submit-btn:hover {
    background: #C62828;
}

.chat-submit-btn:active {
    transform: scale(0.98);
}

/* User bubble */
.user-bubble {
    background: var(--primary-red) !important;
    color: white !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 4px !important;
}

/* Typing Indicator */
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 14px 20px !important;
}

.typing-bubble .dot {
    width: 8px;
    height: 8px;
    background: #9CA3AF;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Support Form in Chat */
.support-form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    max-width: 280px;
}

.support-form-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1D21;
    margin-bottom: 4px;
}

.support-form-desc {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 16px;
}

.support-form-field {
    margin-bottom: 12px;
}

.support-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1A1D21;
    margin-bottom: 4px;
}

.support-form-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.support-form-field input:focus {
    border-color: var(--primary-red);
}

.support-form-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.support-form-btn:hover {
    background: #C62828;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
        background: #F5F5F5;
    }
    
    .card {
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .amount-value {
        font-size: 26px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .selector {
        padding: 14px;
    }
    
    .receive-btn {
        padding: 18px;
        font-size: 17px;
    }
    
    .timer-section {
        margin-top: 4px;
    }
    
    .timer {
        font-size: 16px;
    }
    
    .amount-summary {
        padding: 14px 0;
    }
    
    .summary-value {
        text-align: right;
        max-width: 120px;
        line-height: 1.3;
    }
    
    .timer-note {
        display: none;
    }
    
    .footer {
        margin-top: 20px;
    }
}