/* BitZED - Modern Responsive Design */

/* Home Page Styles */
.home-page {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
}

.welcome-section {
    margin-bottom: var(--space-12);
    max-width: 600px;
    text-align: center;
}

.welcome-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.welcome-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 400;
}

.tab-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 500px;
    width: 100%;
}

.tab {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.tab:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tab:active {
    transform: translateY(-2px);
}

/* Spend Bitcoin Tab */
.spend-tab {
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: white;
}

.spend-tab::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.spend-tab:hover::before {
    opacity: 1;
}

.spend-tab .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.spend-tab .tab-title {
    color: white;
}

.spend-tab .tab-description {
    color: rgba(255, 255, 255, 0.9);
}

.spend-tab .tab-arrow {
    color: white;
}

/* Buy Bitcoin Tab */
.buy-tab {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.buy-tab::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.buy-tab:hover::before {
    opacity: 1;
}

.buy-tab .tab-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.buy-tab .tab-title {
    color: white;
}

.buy-tab .tab-description {
    color: rgba(255, 255, 255, 0.9);
}

.buy-tab .tab-arrow {
    color: white;
}

.tab-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-right: var(--space-4);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.tab-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.tab-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.025em;
}

.tab-description {
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 1.5;
}

.tab-arrow {
    font-size: var(--font-size-lg);
    margin-left: var(--space-4);
    transition: transform var(--transition-normal);
    z-index: 1;
    position: relative;
}

.tab:hover .tab-arrow {
    transform: translateX(4px);
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .welcome-title {
        font-size: var(--font-size-3xl);
    }
    
    .welcome-subtitle {
        font-size: var(--font-size-base);
    }
    
    .tab {
        padding: var(--space-8);
    }
    
    .tab-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }
    
    .tab-title {
        font-size: var(--font-size-5xl);
    }
    
    .tab-description {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .tab-container {
        gap: var(--space-2);
    }
    
    .tab {
        padding: var(--space-8);
    }
    
    .tab-icon {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-lg);
        margin-right: var(--space-3);
    }
    
    .tab-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-1);
    }
    
    .tab-description {
        font-size: var(--font-size-xs);
    }
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #f7931a;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #1e40af;
    --success-light: #2563eb;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-surface: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

body, html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-weight: 400;
    background: linear-gradient(135deg, #f0f4ff 0%, #eaf0fb 100%);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-1) 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Logo Link */
.logo-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 64px !important;
    height: auto !important;
    font-size: unset !important;
    color: var(--secondary);
    filter: drop-shadow(0 2px 4px rgba(247, 147, 26, 0.2));
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.live-rate {
    background: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.live-rate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.rate-label {
    color: var(--secondary) !important;
    font-weight: 800;
    margin-right: var(--space-2);
    font-size: var(--font-size-sm);
    text-shadow: none !important;
}

.rate-value {
    color: var(--secondary);
    font-weight: 700;
}

/* Main Content */
.main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: var(--space-12);
    max-width: 600px;
}

.welcome-section h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.welcome-section p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 100%;
    max-width: 500px;
    padding: var(--space-2);
}

.action-btn {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

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

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-slow);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.action-btn:active {
    transform: translateY(-2px);
}

/* Enhanced gradient backgrounds for each action button */
.buy-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation-delay: 0.1s;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
    border-color: transparent;
}



.track-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2), 0 2px 8px rgba(30, 64, 175, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation-delay: 0.3s;
}

.track-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.3), 0 4px 12px rgba(30, 64, 175, 0.2);
    border-color: transparent;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    margin-right: var(--space-4);
    position: relative;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-icon img {
    width: 40px !important;
    height: 40px !important;
    filter: brightness(0) invert(1);
}

/* Updated icon backgrounds to work with new gradient buttons */
.buy-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}



.track-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-text h3 {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.025em;
}

.btn-text p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.btn-arrow {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    transition: var(--transition-normal);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.action-btn:hover .btn-arrow {
    color: var(--white);
    transform: translateX(6px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Transaction Sections - Default styling for home page */
.transaction-section {
    width: 100%;
    max-width: 500px;
    background: rgba(255,255,255,0.95);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37,99,235,0.2), 0 2px 8px rgba(37,99,235,0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem 2.5rem 2rem;
    margin-top: 0.2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s, transform 0.25s;
    animation: slideIn 0.3s ease;
}

.transaction-section:hover {
    box-shadow: 0 16px 48px rgba(37,99,235,0.13), 0 2px 12px rgba(37,99,235,0.07);
    transform: translateY(-2px) scale(1.01);
}

/* Override for page-specific transaction sections */
.track-page .transaction-section {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    animation: none;
}

.track-page .transaction-section:hover {
    box-shadow: none;
    transform: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

/* Page-specific section header overrides */
.buy-page .section-header,
.track-page .section-header {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.header-title-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    justify-content: center;
}

.header-icon {
    width: 2.2rem;
    height: 2.2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: auto;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav-link:hover {
    color: var(--secondary);
}

.header-nav-icon {
    width: 32px;
    height: 32px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    margin-right: var(--space-4);
}

.back-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Page-specific form group overrides */
.buy-page .form-group label,
.sell-page .form-group label,
.track-page .form-group label,
.spend-page .form-group label {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 1.0rem;
    border: 2px solid #e3e8f7;
    border-radius: 1.1rem;
    font-size: 1.08rem;
    transition: border 0.2s, box-shadow 0.2s;
    background: #f7faff;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
}

/* Page-specific input overrides */
.buy-page .form-group input:not(.input-with-prefix input),
.buy-page .form-group select,
.sell-page .form-group input,
.sell-page .form-group select,
.track-page .form-group input,
.track-page .form-group select,
.spend-page .form-group input:not(.input-with-prefix input),
.spend-page .form-group select {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.13);
}

/* Page-specific focus overrides */
.buy-page .form-group input:not(.input-with-prefix input):focus,
.buy-page .form-group select:focus,
.sell-page .form-group input:focus,
.sell-page .form-group select:focus,
.track-page .form-group input:focus,
.track-page .form-group select:focus,
.spend-page .form-group input:not(.input-with-prefix input):focus,
.spend-page .form-group select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* Page-specific placeholder overrides */
.buy-page .form-group input:not(.input-with-prefix input)::placeholder,
.sell-page .form-group input::placeholder,
.track-page .form-group input::placeholder,
.spend-page .form-group input:not(.input-with-prefix input)::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 0.95rem;
}

.conversion-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    padding: 0.5rem 0.8rem;
    background: linear-gradient(90deg, #f0f4ff 0%, #eaf0fb 100%);
    border-radius: 1.1rem;
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 12px 0 rgba(37,99,235,0.15);
    position: relative;
    overflow: hidden;
}

.security-check-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

.sats-equivalent-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

/* Warning state for sats equivalent info */
.sats-equivalent-info.warning {
    color: #fca5a5 !important;
}

/* Maximum amount warning */
.max-amount-warning {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: #f59e0b;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    border-left: 3px solid #f59e0b;
    box-shadow: 0 2px 8px 0 rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    transition: all 0.3s ease;
}

.max-amount-warning i {
    color: #f59e0b;
    font-size: 0.875rem;
}

.security-note {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--warning);
    padding: 0.5rem 0.8rem;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    border-left: 3px solid var(--warning);
    box-shadow: 0 2px 8px 0 rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
}

.security-note i {
    color: var(--warning);
    font-size: 0.875rem;
}

/* Page-specific conversion info overrides */
.buy-page .conversion-info,
.sell-page .conversion-info,
.track-page .conversion-info {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Warning state for conversion info */
.conversion-info.warning {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 3px solid #ef4444 !important;
    color: #ef4444 !important;
}

.buy-page .conversion-info.warning,
.sell-page .conversion-info.warning,
.track-page .conversion-info.warning {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

/* Payment info styling */
.payment-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

/* Form helper text styling */
.form-helper-text {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--warning);
    padding: 0.3rem 0.7rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid var(--warning);
    font-weight: 500;
}

/* Page-specific helper text overrides */
.buy-page .form-helper-text,
.sell-page .form-helper-text,
.track-page .form-helper-text {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--secondary-light);
    backdrop-filter: blur(10px);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* Page-specific security note overrides */
.buy-page .security-note,
.sell-page .security-note,
.track-page .security-note {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--secondary-light);
    backdrop-filter: blur(10px);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.buy-page .security-note i,
.sell-page .security-note i,
.track-page .security-note i {
    color: var(--secondary-light);
}
.conversion-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(135deg, rgba(37,99,235,0.03) 0 2px, transparent 2px 8px);
    border-radius: 1.1rem;
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    padding: 0.5rem 0;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #1e40af 100%);
    color: #fff;
    font-weight: 800;
    border: none;
    border-radius: 1.6rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 6px 32px 0 rgba(37,99,235,0.18), 0 1.5px 6px 0 rgba(30,64,175,0.10);
    position: relative;
    overflow: hidden;
}

/* Page-specific submit button overrides */
.buy-page .submit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 1.2rem;
    min-height: 44px;
}

.buy-page .submit-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sell-page .submit-btn {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #f7931a 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .submit-btn:hover {
    background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .submit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .submit-btn:hover {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 8px);
    border-radius: 1.6rem;
    pointer-events: none;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
    transform: translateY(-2px) scale(1.02);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Payment Instructions */
.payment-instructions {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.instruction-header h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.instruction-card {
    margin-bottom: var(--space-6);
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

.lightning-status-text {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.lightning-address-container {
    background: var(--gray-50);
    border-radius: 0.8rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin: 0.5rem 0;
    border: 1px solid var(--gray-200);
}

.lightning-address {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.phone-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    background: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: inline-block;
    margin: var(--space-2) 0;
}

.network-info {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.confirm-btn {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Invoice Display */
.invoice-display {
    margin-top: 0.2rem;
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

/* Invoice Section - matching transaction-section layout */
.invoice-section {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    animation: slideIn 0.3s ease;
    margin: 0 auto;
}

/* Status Tracker */
.status-tracker {
    margin-top: 0.2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tracker-form {
    background: var(--white);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37,99,235,0.2), 0 2px 8px rgba(37,99,235,0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    width: 420px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto 2rem auto;
    margin-top: 0;
    padding-top: 0.2rem;
}

.status-display {
    margin-top: 0;
}

.status-card {
    max-width: 1000px;
    width: 100%;
    min-height: 75vh;
    margin: 0 auto;
    padding: 48px 64px 32px 64px;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 8px 32px rgba(37,99,235,0.2), 0 2px 8px rgba(37,99,235,0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.status-header {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.status-header h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.status-badge {
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.status-badge.pending {
    background: var(--warning);
    color: var(--white);
}

.status-badge.processing {
    background: var(--info);
    color: var(--white);
}

.status-badge.completed {
    background: var(--success);
    color: var(--white);
}

.status-badge.failed {
    background: var(--error);
    color: var(--white);
}

/* Timeline */
.status-timeline {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    opacity: 0.6;
    transition: var(--transition-normal);
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
}

.timeline-item.active .timeline-dot {
    background: var(--success);
    color: #fff;
}

.timeline-content {
    flex: 1;
}

.timeline-content h5 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-size: 0.98rem;
    color: var(--gray-600);
}

/* Transaction Details */
.transaction-details {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 6px rgba(37,99,235,0.04);
    padding: 1.2rem 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 600;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Status Actions */
.status-actions {
    margin-top: 8px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.refresh-btn {
    flex: 1;
    padding: 1rem 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 44px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.10);
}

.refresh-btn:hover {
    box-shadow: 0 4px 20px rgba(37,99,235,0.18);
    transform: translateY(-2px) scale(1.02);
}

.refresh-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gray-100);
    color: var(--gray-500);
}

.refresh-btn.loading {
    cursor: wait;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: var(--space-3) 0;
    text-align: center;
}

.footer-content p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .header {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .logo-container {
        justify-content: center;
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .live-rate {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        max-width: 200px;
    }
    
    .welcome-section h2 {
        font-size: var(--font-size-3xl);
    }
    
    .welcome-section p {
        font-size: var(--font-size-base);
    }
    
    .action-btn {
        padding: var(--space-5);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-text h3 {
        font-size: var(--font-size-base);
    }
    
    .transaction-section,
    .status-tracker,
    .invoice-section {
        padding: var(--space-6);
        margin: 0 var(--space-3);
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .header-title {
        font-size: var(--font-size-lg);
    }
    
    .header-icon, .header-nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .header-nav {
        gap: var(--space-2);
    }
    
    .header-nav-link {
        font-size: var(--font-size-base);
    }
    
    .back-btn {
        margin-right: 0;
        margin-bottom: var(--space-2);
    }
    
    .header-title-right {
        margin-left: auto;
        justify-content: flex-end;
        padding-left: 16px;
    }
    
    .status-card {
        max-width: 98vw;
        padding: 32px 4vw 24px 4vw;
        border-radius: 18px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .header,
    .buy-page .header,
    body.buy-page .header,
    html body.buy-page .container .header {
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--space-3) !important;
        padding: var(--space-3) 0 !important;
    }
    
    .logo-container,
    .buy-page .logo-container,
    body.buy-page .logo-container {
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .live-rate,
    .buy-page .live-rate,
    body.buy-page .live-rate,
    html body.buy-page .container .header .live-rate {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 180px !important;
        padding: var(--space-2) var(--space-3) !important;
    }
    
    .rate-label {
        font-size: var(--font-size-sm);
    }
    
    .rate-value {
        font-size: var(--font-size-sm);
    }
    
    .welcome-section h2 {
        font-size: var(--font-size-2xl);
    }
    
    .action-btn {
        padding: var(--space-4);
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .btn-icon {
        margin-right: 0;
        margin-bottom: var(--space-2);
    }
    
    .btn-text {
        text-align: center;
    }
    
    .btn-arrow {
        display: none;
    }
    
    .transaction-section,
    .status-tracker,
    .invoice-section {
        padding: var(--space-4);
        margin: 0 var(--space-2);
    }
    
    .form-group input,
    .form-group select {
        padding: var(--space-3);
    }
    
    .submit-btn,
    .confirm-btn {
        padding: var(--space-3) var(--space-4);
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .header-title {
        justify-content: center;
        font-size: var(--font-size-base);
    }
    
    .header-icon, .header-nav-icon {
        width: 32px;
        height: 32px;
    }
    
    .header-nav {
        justify-content: flex-end;
        gap: var(--space-1);
    }
    
    .header-nav-link {
        font-size: var(--font-size-sm);
    }
    
    .header-title-right {
        margin-left: 0;
        justify-content: center;
        padding-left: 0;
    }
    
    .back-btn-primary {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 220px;
        margin: 0 auto 8px auto;
    }
    
    .status-card {
        max-width: 100vw;
        padding: 7px 1vw 7px 1vw;
        border-radius: 10px;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .transaction-form .form-group:nth-child(2) {
        margin-bottom: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Simple Invoice Styles */
.simple-invoice {
    background: var(--white);
    border-radius: 1.2rem;
    padding: calc(var(--space-6) * 0.7);
    box-shadow: 0 8px 32px rgba(37,99,235,0.2), 0 2px 8px rgba(37,99,235,0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-header {
    text-align: center;
    margin-bottom: calc(var(--space-6) * 0.7);
}

.simple-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

/* Page-specific header styling */
.buy-page .simple-header h3,
.sell-page .simple-header h3,
.track-page .simple-header h3 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.transaction-id {
    background: var(--gray-100);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin-bottom: var(--space-4);
    word-break: break-all;
}

/* Page-specific transaction ID styling */
.buy-page .transaction-id,
.sell-page .transaction-id,
.track-page .transaction-id {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

/* Override transaction ID height specifically for buy page */
.buy-page .transaction-id {
    padding: 0.1rem 0.5rem !important;
    margin-bottom: 0.1rem !important;
}

.simple-qr-container {
    text-align: center;
    margin-bottom: calc(var(--space-6) * 0.7);
}

.qr-code-simple {
    display: inline-block;
    padding: calc(var(--space-4) * 0.7);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: calc(var(--space-4) * 0.7);
}

/* Page-specific QR code styling */
.sell-page .qr-code-simple {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.buy-page .qr-code-simple {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.track-page .qr-code-simple {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qr-image-simple {
    max-width: 200px;
    height: auto;
}

.qr-error-simple {
    color: var(--error);
    font-size: var(--font-size-sm);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

/* Page-specific error styling */
.buy-page .qr-error-simple,
.sell-page .qr-error-simple,
.track-page .qr-error-simple {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.simple-invoice-text {
    margin-bottom: calc(var(--space-4) * 0.7);
}

.invoice-string-simple {
    background: var(--gray-50);
    padding: calc(var(--space-3) * 0.7) calc(var(--space-4) * 0.7);
    border-radius: var(--radius-lg);
    font-family: 'Courier New', monospace;
    font-size: 0.92em;
    color: var(--gray-700);
    word-break: break-all;
    border: 1px solid var(--gray-200);
    margin-bottom: calc(var(--space-3) * 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.15s;
}
.invoice-string-simple .copy-invoice-icon-btn i {
    font-size: 1.35em !important;
}
@keyframes invoice-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.93); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.invoice-string-simple.clicked {
  animation: invoice-bounce 0.22s cubic-bezier(0.4,0,0.2,1);
}

.copy-simple-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.copy-simple-btn:hover {
    background: var(--primary-dark);
}

/* Page-specific copy button styling */
.buy-page .copy-simple-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .copy-simple-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .copy-simple-btn {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #f7931a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .copy-simple-btn:hover {
    background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .copy-simple-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .copy-simple-btn:hover {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.simple-status {
    margin-top: calc(var(--space-4) * 0.7);
    padding: calc(var(--space-3) * 0.7) calc(var(--space-4) * 0.7);
    background: var(--success-light);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
}

/* Page-specific status styling */
.buy-page .simple-status {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .simple-status {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #f7931a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .simple-status {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-paid-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 50%;
    animation: tick-fade-in 0.6s cubic-bezier(0.4,0,0.2,1);
}

@keyframes tick-fade-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.waiting-payment {
    background-color: #ffeaea !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

/* Page-specific waiting payment styling */
.buy-page .waiting-payment {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.sell-page .waiting-payment {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.track-page .waiting-payment {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.back-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    padding: var(--space-2) var(--space-4);
    width: auto;
    min-width: 0;
    box-shadow: none;
    align-self: flex-start;
    margin-bottom: 1.2rem;
}

.back-btn-primary::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: var(--transition-slow);
}

.back-btn-primary:hover::before {
    left: 100%;
}

.back-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.header-title-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 32px;
}

.modern-payment-instructions {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.modern-instruction-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.modern-instruction-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.modern-instruction-card {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.modern-instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gray-50);
    border-radius: 1.5rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.03);
}
.modern-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.modern-step-number i {
    font-size: 1.25rem;
}
.modern-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.modern-step-content p {
    margin-bottom: 0.25rem;
    color: var(--gray-800);
    font-size: 1rem;
}
.modern-phone-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--gray-100);
    padding: 0.5rem 1.25rem;
    border-radius: 1.2rem;
    border: 1.5px solid var(--primary-light);
    margin: 0.5rem 0 0.5rem 0;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
}
.modern-network-info {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.modern-confirm-btn {
    width: 100%;
    padding: 1.25rem 0;
    background: var(--gradient-secondary);
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(251,191,36,0.10);
    margin-top: 0.5rem;
}
.modern-confirm-btn:hover {
    box-shadow: 0 4px 20px rgba(251,191,36,0.18);
    transform: translateY(-2px) scale(1.02);
}
@media (max-width: 600px) {
    .modern-payment-instructions {
        padding: 1.25rem 0.5rem 1rem 0.5rem;
    }
    .modern-instruction-step {
        padding: 1rem 0.5rem;
    }
    .modern-step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .modern-phone-number {
        font-size: 1.05rem;
        padding: 0.4rem 0.75rem;
    }
    .modern-confirm-btn {
        font-size: 1.65rem;
        padding: 1rem 0;
    }
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100% !important;
    padding: var(--space-3) 2.2rem var(--space-3) 1rem !important;
    background: var(--white) url('data:image/svg+xml;utf8,<svg fill="%236b7280" height="40" viewBox="0 0 24 24" width="40" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center/2rem 2rem !important;
    background-position: right 1rem center !important;
    background-size: 2rem 2rem !important;
    background-repeat: no-repeat !important;
    overflow: visible;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) 2.5rem var(--space-3) var(--space-4);
    font-size: 1.1rem;
    height: 3rem;
    line-height: 1.5;
    color: var(--gray-900);
    box-sizing: border-box;
    transition: var(--transition-normal);
    vertical-align: middle;
    text-align: left;
    white-space: normal;
    text-overflow: unset;
    min-width: 120px;
}
select::-ms-expand {
    display: none;
}
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
@media (max-width: 600px) {
    select {
        font-size: 1.1rem;
        height: 2.75rem;
        min-width: 180px;
        padding: 0.75rem 2rem 0.75rem 1rem !important;
        background-size: 1.5rem 1.5rem !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.form-group select option:first-child {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.payment-pending-admin {
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 16px;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.15);
    margin: 18px 0;
    animation: fadeIn 0.5s;
}

.payment-pending-admin i {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: pulse 1.2s infinite;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

.payment-pending-admin h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.payment-pending-admin p {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.payment-pending-admin p:last-child {
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
}

.transaction-id-with-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.transaction-id-with-copy span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.copy-transaction-id-btn {
    background: rgba(255, 255, 255, 0.22);
    border: none;
    color: #fff;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.10);
}

.copy-transaction-id-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}

.copy-transaction-id-btn i {
    font-size: 0.9rem;
}

.transaction-id-note {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

@keyframes qr-click-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.92); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.qr-image-simple.clicked {
  animation: qr-click-bounce 0.22s cubic-bezier(0.4,0,0.2,1);
}

.home-btn {
    width: 100%;
    max-width: 340px;
    margin: 24px auto 0 auto;
    padding: 1.1rem 0;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.home-btn i {
    font-size: 1.3em;
}
.home-btn:hover {
    box-shadow: 0 4px 20px rgba(6,182,212,0.18);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
    text-decoration: none;
    color: #fff;
}

.home-btn-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
    font-size: 1.7rem;
    border: none;
    outline: none;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-decoration: none;
    margin-right: 16px;
}
.home-btn-icon:hover {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 4px 20px rgba(6,182,212,0.18);
    transform: translateY(-2px) scale(1.07);
    color: #fff;
    text-decoration: none;
}
.home-btn-icon i {
    font-size: 1.3em;
    pointer-events: none;
}

.back-btn-rect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(37,99,235,0.10);
    font-size: 1.2rem;
    border: none;
    outline: none;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    text-decoration: none;
    margin-right: 24px;
    padding: 0.3rem 0.7rem;
}
.back-btn-rect:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(37,99,235,0.18);
    transform: translateY(-2px) scale(1.05);
    color: #fff;
    text-decoration: none;
}
.back-btn-rect i {
    font-size: 1.3em;
    pointer-events: none;
}

.buy-title-modern {
    color: #1d4ed8;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

@media (max-width: 480px) {
    .buy-title-modern {
        font-size: 1.4rem;
    }
}



.track-btn-rect {
    background: linear-gradient(90deg, #f59e42 0%, #fbbf24 100%);
}
.track-btn-rect:hover {
    background: linear-gradient(90deg, #d97706 0%, #f59e42 100%);
}
.track-title-modern {
    color: #d97706;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.invoice-btn-rect {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}
.invoice-btn-rect:hover {
    background: linear-gradient(90deg, #4338ca 0%, #6366f1 100%);
}
.invoice-title-modern {
    color: #6366f1;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.instructions-btn-rect {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}
.instructions-btn-rect:hover {
    background: linear-gradient(90deg, #0369a1 0%, #0ea5e9 100%);
}
.instructions-title-modern {
    color: #0ea5e9;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.confirmation-btn-rect {
    background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
}
.confirmation-btn-rect:hover {
    background: linear-gradient(90deg, #334155 0%, #64748b 100%);
}
.confirmation-title-modern {
    color: #64748b;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 480px) {
    .track-title-modern, .invoice-title-modern, .instructions-title-modern, .confirmation-title-modern {
        font-size: 1.4rem;
    }
}

.transaction-details-modern {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 18px;
    margin: 8px 0 0 0 !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 270px;
    font-size: 0.98rem;
}
.detail-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.97em;
}
.detail-label-modern {
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.97em;
}
.detail-value-modern {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.97em;
    word-break: break-all;
}
@media (max-width: 480px) {
    .transaction-details-modern {
        padding: 10px 8px;
        font-size: 0.93rem;
        max-width: 100%;
    }
    .detail-label-modern, .detail-value-modern {
        font-size: 0.93em;
    }
}

.refresh-btn-modern {
    padding: 7px 16px !important;
    font-size: 0.97rem !important;
    border-radius: 8px !important;
    min-width: unset !important;
    box-shadow: 0 1px 4px rgba(37,99,235,0.08);
    display: flex;
    align-items: center;
    gap: 7px;
}
.refresh-btn-modern i {
    font-size: 1em !important;
}
@media (max-width: 480px) {
    .refresh-btn-modern {
        padding: 6px 10px !important;
        font-size: 0.92rem !important;
    }
}

/* Modern toggle group for payment method selection */
.network-toggle-group {
    display: flex;
    gap: 1.1rem;
    margin-top: 1.3rem;
    margin-bottom: 0.2rem;
    justify-content: center;
}
.network-toggle-group input[type="radio"] {
    display: none;
}
.network-toggle {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    user-select: none;
    outline: none;
    backdrop-filter: blur(10px);
}
.network-toggle:active {
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.network-toggle-group input[type="radio"]:checked + .network-toggle {
    background: linear-gradient(90deg, #fbbf24 0%, #f7931a 100%);
    color: #fff;
    border: 2px solid #f7931a;
    box-shadow: 0 4px 16px rgba(247,147,26,0.13);
}
.network-toggle-group input[type="radio"]:focus + .network-toggle {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.13);
}
@media (max-width: 600px) {
    .network-toggle {
        font-size: 0.98rem;
        padding: 0.5rem 1rem;
    }
    .network-toggle-group {
        gap: 0.5rem;
    }
}

/* Page-specific color schemes matching home page tabs */

/* Buy Page - Blue Theme */
.buy-page {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

/* Ensure buy page header matches home page exactly */
.buy-page .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-3) 0 !important;
    margin-bottom: var(--space-2) !important;
    flex-wrap: wrap !important;
    gap: var(--space-2) !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.buy-page .logo {
    font-size: var(--font-size-2xl) !important;
    font-weight: 800 !important;
    color: var(--gray-900) !important;
    letter-spacing: -0.025em !important;
}

.buy-page .logo-icon {
    width: 64px !important;
    height: auto !important;
    font-size: unset !important;
    color: var(--secondary) !important;
    filter: drop-shadow(0 2px 4px rgba(247, 147, 26, 0.2)) !important;
}

.buy-page .live-rate {
    background: var(--white) !important;
    padding: var(--space-2) var(--space-3) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
    font-weight: 600 !important;
    transition: var(--transition-normal) !important;
    border: 1px solid var(--gray-200) !important;
}

.buy-page .live-rate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.buy-page .rate-label {
    color: var(--secondary) !important;
    font-weight: 800 !important;
    margin-right: var(--space-2) !important;
    font-size: var(--font-size-sm) !important;
    text-shadow: none !important;
}

.buy-page .rate-value {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* Force override with highest specificity */
body.buy-page .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-3) 0 !important;
    margin-bottom: var(--space-2) !important;
    flex-wrap: wrap !important;
    gap: var(--space-2) !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    position: relative !important;
    z-index: auto !important;
}

body.buy-page .logo {
    font-size: var(--font-size-2xl) !important;
    font-weight: 800 !important;
    color: var(--gray-900) !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

body.buy-page .logo-icon {
    width: 64px !important;
    height: auto !important;
    font-size: unset !important;
    color: var(--secondary) !important;
    filter: drop-shadow(0 2px 4px rgba(247, 147, 26, 0.2)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    display: block !important;
}

body.buy-page .live-rate {
    background: var(--white) !important;
    padding: var(--space-2) var(--space-3) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
    font-weight: 600 !important;
    transition: var(--transition-normal) !important;
    border: 1px solid var(--gray-200) !important;
}

body.buy-page .rate-label {
    color: var(--secondary) !important;
    font-weight: 800 !important;
    margin-right: var(--space-2) !important;
    font-size: var(--font-size-sm) !important;
    text-shadow: none !important;
}

body.buy-page .rate-value {
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

/* Nuclear option - override everything with maximum specificity */
html body.buy-page .container .header {
    all: unset !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 0.5rem 0 !important;
    outline: none !important;
    position: relative !important;
    z-index: auto !important;
}

html body.buy-page .container .header .logo {
    all: unset !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

html body.buy-page .container .header .logo-icon {
    all: unset !important;
    width: 64px !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

html body.buy-page .container .header .live-rate {
    all: unset !important;
    background: #ffffff !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    font-weight: 600 !important;
    transition: 250ms ease !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

html body.buy-page .container .header .rate-label {
    all: unset !important;
    color: #f7931a !important;
    font-weight: 800 !important;
    margin-right: 0.5rem !important;
    font-size: 0.875rem !important;
    text-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

html body.buy-page .container .header .rate-value {
    all: unset !important;
    color: #f7931a !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* Responsive header styling for buy page to match home page */
@media (max-width: 768px) {
    .buy-page .header,
    body.buy-page .header,
    html body.buy-page .container .header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--space-3) !important;
        text-align: center !important;
    }
    
    .buy-page .logo-container,
    body.buy-page .logo-container {
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: var(--space-2) !important;
    }
    
    .buy-page .live-rate,
    body.buy-page .live-rate,
    html body.buy-page .container .header .live-rate {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 200px !important;
    }
    
    .buy-page .header {
        padding: var(--space-3) 0;
        margin-bottom: var(--space-2);
        flex-wrap: wrap;
        gap: var(--space-2);
        justify-content: center;
        text-align: center;
    }
    
    .buy-page .logo-container {
        gap: var(--space-3);
        justify-content: center;
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .buy-page .logo-icon {
        width: 64px !important;
        height: auto !important;
    }
    
    .buy-page .logo {
        font-size: var(--font-size-2xl);
        font-weight: 800;
        color: var(--gray-900);
    }
    
    .buy-page .live-rate {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .buy-page .header {
        padding: var(--space-3) 0;
        margin-bottom: var(--space-2);
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .buy-page .logo-container {
        justify-content: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    .buy-page .logo {
        font-size: var(--font-size-2xl);
        font-weight: 800;
        color: var(--gray-900);
    }
    
    .buy-page .logo-icon {
        width: 64px !important;
        height: auto !important;
    }
    
    .buy-page .live-rate {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        max-width: 280px;
        padding: var(--space-2) var(--space-3);
    }
    
    .buy-page .rate-label {
        font-size: var(--font-size-sm);
    }
    
    .buy-page .rate-value {
        font-size: var(--font-size-sm);
    }
}

.buy-page .transaction-section {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    margin: 0 auto;
    animation: none;
    position: relative;
    overflow: hidden;
}

.buy-page .transaction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 8px);
    border-radius: 1.2rem;
    pointer-events: none;
}

.buy-page .transaction-section:hover {
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.13), 0 2px 12px rgba(37, 99, 235, 0.07);
    transform: translateY(-2px) scale(1.01);
}



.buy-page .back-btn-rect {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .back-btn-rect:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .buy-title-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.buy-page .network-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.buy-page .network-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.buy-page .network-toggle-group input[type="radio"]:checked + .network-toggle {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Sell Page - Orange Theme */
.sell-page {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #fdba74 100%);
}

.sell-page .transaction-section {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.2), 0 2px 8px rgba(180, 83, 9, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
}



.sell-page .back-btn-rect {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .back-btn-rect:hover {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #f7931a 100%);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .sell-title-modern {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.sell-page .network-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.sell-page .network-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sell-page .network-toggle-group input[type="radio"]:checked + .network-toggle {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Track Page - Blue Theme */
.track-page {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.track-page .status-tracker {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2), 0 2px 8px rgba(30, 64, 175, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
}



.track-page .back-btn-rect {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .back-btn-rect:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .track-title-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.track-page .status-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(30, 64, 175, 0.85) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.13), 0 2px 8px rgba(30, 64, 175, 0.10);
    backdrop-filter: blur(18px);
}

.track-page .status-card * {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

/* Remove default white background for .status-card */
.status-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.track-page .status-header h4 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-page .timeline-content h5 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-page .timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-page .detail-label-modern {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-page .detail-value-modern {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-page .refresh-btn-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.track-page .refresh-btn-modern:hover {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced conversion info styling for all pages */
.buy-page .conversion-info,
.sell-page .conversion-info,
.track-page .conversion-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

/* Enhanced select dropdown styling */
.buy-page select,
.sell-page select,
.track-page select {
    background: rgba(255, 255, 255, 0.15) url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="40" viewBox="0 0 24 24" width="40" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center/2rem 2rem !important;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.buy-page select option,
.sell-page select option,
.track-page select option {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
}

/* Enhanced styling for instruction, invoice, and confirmation pages */

/* Buy Instructions Page */
.buy-page .instructions-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .modern-payment-instructions {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1.2rem !important;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .modern-instruction-header h4 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .modern-instruction-step {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem !important;
}

.buy-page .modern-step-content p {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .modern-phone-number {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 1.2rem !important;
}

.buy-page .modern-network-info {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .buy-confirm-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    min-height: 60px !important;
    border-radius: 1.2rem !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
}

.buy-page .buy-confirm-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buy Confirmation Page */
.buy-page .confirmation-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .modern-payment-confirmation {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .modern-confirmation-header h3 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .modern-confirmation-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .modern-confirmation-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .detail-row .detail-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
    font-weight: 400;
}

.buy-page .detail-row .detail-value {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
    font-weight: 400;
}

/* Reduce spacing for lightning address row specifically */
.buy-page .lightning-address-row {
    padding: 0.3rem 0 !important;
    margin-bottom: 0.5rem !important;
}

.buy-page .lightning-address-value {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.3;
}

/* Reduce spacing for transaction ID row to minimize gap */
.buy-page .detail-row:has(.transaction-id) {
    padding: 0.1rem 0 !important;
    margin-top: 0.1rem !important;
}

/* Fallback for browsers that don't support :has() selector */
.buy-page .detail-row + .detail-row {
    padding: 0.1rem 0 !important;
    margin-top: 0.1rem !important;
}

/* Target the transaction ID row specifically by its position after lightning address */
.buy-page .lightning-address-row + .detail-row {
    padding: 0.1rem 0 !important;
    margin-top: 0.1rem !important;
}

/* Reduce spacing in confirmation details section */
.buy-page .confirmation-details {
    margin-bottom: 0.5rem !important;
}

.buy-page .confirmation-details .detail-row {
    margin-bottom: 0.3rem !important;
}

.buy-page .track-transaction-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .track-transaction-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sell Invoice Page */
.sell-page .invoice-section {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.2), 0 2px 8px rgba(180, 83, 9, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
}

.sell-page .simple-invoice {
    background: linear-gradient(135deg, rgba(255, 183, 94, 0.85) 0%, rgba(247, 147, 26, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.2), 0 2px 8px rgba(180, 83, 9, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    border-radius: 1.2rem;
}

.sell-page .simple-header h3 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sell-page .invoice-string-simple {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.sell-page .invoice-string-simple .copy-invoice-icon-btn {
    color: rgba(255, 255, 255, 0.8);
}

.sell-page .transaction-id-with-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.sell-page .transaction-id-note {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sell-page .copy-transaction-id-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.sell-page .copy-transaction-id-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Enhanced button styling for all pages */
.buy-page .instructions-btn-rect,
.buy-page .confirmation-btn-rect {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-page .instructions-btn-rect:hover,
.buy-page .confirmation-btn-rect:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .invoice-btn-rect {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sell-page .invoice-btn-rect:hover {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #f7931a 100%);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced title styling for all pages */
.buy-page .instructions-title-modern,
.buy-page .confirmation-title-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.sell-page .invoice-title-modern {
    background: linear-gradient(135deg, #b45309 0%, #f7931a 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Error message styling for all pages */
.buy-page .error-message,
.sell-page .error-message,
.track-page .error-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(15px);
}

.buy-page .error-message h3,
.sell-page .error-message h3,
.track-page .error-message h3 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .error-message p,
.sell-page .error-message p,
.track-page .error-message p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buy-page .btn-primary,
.sell-page .btn-primary,
.track-page .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.buy-page .btn-primary:hover,
.sell-page .btn-primary:hover,
.track-page .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Additional fixes for alignment and spacing */

/* Ensure proper main content alignment for page-specific layouts */
.buy-page .main,
.sell-page .main,
.track-page .main {
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-4);
    min-height: auto;
    text-align: center;
}

/* Fix section header alignment for page-specific layouts */
.buy-page .section-header,
.sell-page .section-header,
.track-page .section-header {
    width: 100%;
    max-width: 500px;
    margin: 0 auto var(--space-6) auto;
    padding: 0;
    justify-content: center;
    text-align: center;
}

/* Ensure proper form container alignment */
.buy-page .transaction-section,
.sell-page .transaction-section,
.track-page .status-tracker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensure all cards are properly centered */
.buy-page .simple-invoice,
.sell-page .simple-invoice,
.track-page .simple-invoice,
.buy-page .modern-payment-instructions,
.sell-page .modern-payment-instructions,
.track-page .modern-payment-instructions,
.buy-page .modern-payment-confirmation,
.sell-page .modern-payment-confirmation,
.track-page .modern-payment-confirmation {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Fix network toggle group alignment */
.network-toggle-group {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

/* Ensure proper spacing for form groups */
.form-group {
    margin-bottom: var(--space-5);
}

/* Fix conversion info spacing */
.conversion-info {
    margin-top: var(--space-3);
    padding: var(--space-3);
}

/* Ensure proper button spacing */
.submit-btn {
    margin-top: var(--space-4);
}

/* Fix mobile responsiveness for page-specific layouts */
@media (max-width: 768px) {
    .buy-page .main,
    .sell-page .main,
    .track-page .main {
        padding-top: var(--space-3);
        align-items: center;
        text-align: center;
    }
    
    .buy-page .buy-confirm-btn {
        padding: 1.2rem 1.5rem !important;
        font-size: 1.9rem !important;
        min-height: 55px !important;
        max-width: 350px !important;
    }
    
    .buy-page .section-header,
    .sell-page .section-header,
    .track-page .section-header {
        margin-bottom: var(--space-4);
        justify-content: center;
        text-align: center;
    }
    
    .buy-page .transaction-section {
        padding: var(--space-4);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-3));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
    
    .sell-page .transaction-section,
    .track-page .status-tracker {
        padding: var(--space-4);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-3));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
    
    .buy-page .simple-invoice,
    .sell-page .simple-invoice,
    .track-page .simple-invoice,
    .buy-page .modern-payment-instructions,
    .sell-page .modern-payment-instructions,
    .track-page .modern-payment-instructions,
    .buy-page .modern-payment-confirmation,
    .sell-page .modern-payment-confirmation,
    .track-page .modern-payment-confirmation {
        width: calc(100% - 2 * var(--space-3));
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .buy-page .main,
    .sell-page .main,
    .track-page .main {
        padding-top: var(--space-2);
        align-items: center;
        text-align: center;
    }
    
    .buy-page .buy-confirm-btn {
        padding: 1rem 1.2rem !important;
        font-size: 1.8rem !important;
        min-height: 50px !important;
        max-width: 300px !important;
    }
    
    .buy-page .section-header,
    .sell-page .section-header,
    .track-page .section-header {
        margin-bottom: var(--space-3);
        justify-content: center;
        text-align: center;
    }
    
    .buy-page .transaction-section {
        padding: var(--space-3);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-2));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
    
    .sell-page .transaction-section,
    .track-page .status-tracker {
        padding: var(--space-3);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-2));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
    
    .buy-page .simple-invoice,
    .sell-page .simple-invoice,
    .track-page .simple-invoice,
    .buy-page .modern-payment-instructions,
    .sell-page .modern-payment-instructions,
    .track-page .modern-payment-instructions,
    .buy-page .modern-payment-confirmation,
    .sell-page .modern-payment-confirmation,
    .track-page .modern-payment-confirmation {
        width: calc(100% - 2 * var(--space-2));
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }
    
    .network-toggle-group {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* Fix for any potential z-index issues */
.buy-page .back-btn-rect,
.sell-page .back-btn-rect,
.track-page .back-btn-rect {
    z-index: 10;
    position: relative;
}

/* Ensure proper text contrast and readability */
.buy-page .form-group label,
.sell-page .form-group label,
.track-page .form-group label {
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* Fix for any potential overflow issues */
.sell-page .transaction-section,
.track-page .status-tracker {
    overflow: hidden;
}

/* Ensure proper focus states for accessibility */
.buy-page .form-group input:focus,
.buy-page .form-group select:focus,
.sell-page .form-group input:focus,
.sell-page .form-group select:focus,
.track-page .form-group input:focus,
.track-page .form-group select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Fix for any potential animation conflicts */
.sell-page .transaction-section,
.track-page .status-tracker {
    animation: none;
}

/* Ensure proper button states */
.buy-page .submit-btn:disabled,
.sell-page .submit-btn:disabled,
.track-page .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Fix for any potential backdrop filter issues */
@supports not (backdrop-filter: blur(10px)) {
    .buy-page .form-group input,
    .buy-page .form-group select,
    .sell-page .form-group input,
    .sell-page .form-group select,
    .track-page .form-group input,
    .track-page .form-group select {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Refund Section Styles - styled like transaction-section with orange theme */
.refund-section {
    margin-top: var(--space-4);
    padding: 2.5rem 2rem;
    /* Apply same styling as transaction-section but with orange theme */
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2), 0 2px 8px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.refund-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.refund-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.refund-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.refund-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.refund-header p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.refund-form {
    max-width: 400px;
    margin: 0 auto;
}

.refund-form .form-group label {
    justify-content: center;
    text-align: center;
}

.refund-amount-info {
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    color: #fbbf24;
    text-align: center;
    font-weight: 600;
}

.refund-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: var(--space-4);
}

.refund-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.refund-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Final optimizations for smooth performance and visual consistency */

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Optimize animations for better performance */
* {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure consistent box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Optimize transitions for better performance */
.action-btn,
.submit-btn,
.back-btn-rect,
.network-toggle,
.form-group input,
.form-group select {
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Improve focus indicators for accessibility */
.action-btn:focus,
.submit-btn:focus,
.back-btn-rect:focus,
.network-toggle:focus,
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fix any potential layout shifts */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure proper stacking context */
.header {
    position: relative;
    z-index: 100;
}

.main {
    position: relative;
    z-index: 1;
}

/* Optimize images for better performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure proper button states */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fix any potential overflow issues */
.simple-invoice,
.modern-payment-instructions,
.modern-payment-confirmation {
    overflow: hidden;
}

/* Ensure proper spacing consistency */
.form-group:last-child {
    margin-bottom: 0;
}

/* Fix any potential text overflow */
.invoice-string-simple,
.transaction-id {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Ensure proper contrast ratios */
.buy-page .form-group label,
.sell-page .form-group label,
.track-page .form-group label {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fix any potential z-index stacking issues */
.simple-invoice,
.modern-payment-instructions,
.modern-payment-confirmation {
    position: relative;
    z-index: 1;
}

/* Ensure proper loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

/* Optimize animations for better performance */
@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Ensure proper hover states */
.action-btn:hover,
.submit-btn:hover,
.back-btn-rect:hover,
.network-toggle:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Fix any potential mobile touch issues */
@media (hover: none) {
    .action-btn:hover,
    .submit-btn:hover,
    .back-btn-rect:hover,
    .network-toggle:hover {
        transform: none;
    }
}

/* Ensure proper print styles */
@media print {
    .action-btn,
    .submit-btn,
    .back-btn-rect {
        display: none;
    }
}

/* Fix any potential high contrast mode issues */
@media (prefers-contrast: high) {
    .buy-page .form-group input,
    .sell-page .form-group input,
    .track-page .form-group input {
        border: 2px solid var(--white);
    }
}

/* Ensure proper reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Buy Page (Green) */
.buy-page .simple-invoice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(4, 120, 87, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    border-radius: 1.2rem;
}

/* Track Page (Blue) */
.track-page .simple-invoice {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(30, 64, 175, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2), 0 2px 8px rgba(30, 64, 175, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    border-radius: 1.2rem;
}

/* Ensure all text and icons inside remain readable */
.sell-page .simple-invoice *,
.buy-page .simple-invoice *,
.track-page .simple-invoice * {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

/* Remove default white background for .simple-invoice */
.simple-invoice {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Track Page (Blue) - Themed Card Background for Tracker Form */
.track-page .tracker-form {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(30, 64, 175, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2), 0 2px 8px rgba(30, 64, 175, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    border-radius: 1.2rem;
}

.track-page .tracker-form * {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

/* Remove default white background for .tracker-form */
.tracker-form {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Headings and important text */
h1, h2, h3, h4, h5, h6,
.logo, .header-title, .header-title-right,
.btn-text h3, .section-header, .action-btn, .submit-btn, .back-btn-rect, .tracker-form label, .status-header h4, .status-card h4, .simple-header h3, .invoice-title-modern, .instructions-title-modern, .confirmation-title-modern, .buy-title-modern, .sell-title-modern, .track-title-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

/* Buttons and navigation */
button, .submit-btn, .action-btn, .back-btn, .back-btn-rect, .refresh-btn, .copy-simple-btn, .copy-transaction-id-btn, .track-transaction-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* Card and form labels */
.form-group label, .tracker-form label, .status-label, .detail-label, .detail-value, .network-toggle, .status-badge {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* Ensure all text in .action-btn uses Inter */
.action-btn * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.track-page .transaction-details,
.track-page .transaction-details-modern {
    background: rgba(59, 130, 246, 0.18) !important;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 2px 8px rgba(37,99,235,0.04);
    color: #fff;
    backdrop-filter: blur(8px);
}

/* Add: Live Rate Offline/Fallback Style */
.live-rate.offline, .live-rate.fallback {
    background: #fff7e6;
    color: #d97706;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 0.2em 0.8em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tracker-form {
        width: 100%;
        max-width: 98vw;
        padding: 1.2rem 2vw 1.2rem 2vw;
    }
    .status-card {
        max-width: 99vw;
        padding: 18px 2vw 18px 2vw;
        border-radius: 1rem;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .tracker-form {
        width: 100%;
        max-width: 100vw;
        padding: 0.7rem 1vw 0.7rem 1vw;
    }
    .status-card {
        max-width: 100vw;
        padding: 7px 1vw 7px 1vw;
        border-radius: 0.8rem;
        gap: 4px;
    }
}

/* Add visible focus states for accessibility */
input:focus, button:focus, .submit-btn:focus, .refresh-btn:focus, .back-btn-rect:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #93c5fd;
    z-index: 2;
}

/* Enhance label visibility on buy page */
.buy-page .form-group label {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18) !important;
}

/* Ensure consistent styling for all form labels on buy page */
.buy-page .form-group label[for="buy-amount"],
.buy-page .form-group label[for="buy-phone-digits"],
.buy-page .form-group label[for="buy-lightning"] {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18) !important;
}

/* Ensure consistent icon colors for all form labels on buy page */
.buy-page .form-group label i {
  color: #fff !important;
}

/* Enhance placeholder visibility on buy page */
.buy-page .form-group input:not(.input-with-prefix input)::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 600 !important;
  font-size: 1.08rem !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  opacity: 0.8 !important;
}

/* Global enhanced label visibility */
label,
.detail-label,
.stat-label,
.rate-label,
.stat-card-label {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  /* color: #fff !important; */
  text-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18);
}

/* Global enhanced placeholder visibility */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 600 !important;
  font-size: 1.08rem !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  opacity: 0.8 !important;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}



/* Phone verification field styling */
#buy-phone-digits {
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
    letter-spacing: 2px;
    background: var(--gradient-surface);
    border: 2px solid var(--info) !important;
    width: 100%;
    margin: 0 auto;
    display: block;
}

#buy-phone-digits:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Phone verification label with security icon */
label[for="buy-phone-digits"] {
    color: var(--white) !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18) !important;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

label[for="buy-phone-digits"] i {
    color: var(--white);
    margin-right: 8px;
}

/* Phone verification helper text styling */
label[for="buy-phone-digits"] + input + .form-helper-text {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: var(--info) !important;
    text-align: center;
    font-weight: 500;
}

/* Security note styling for instructions */
.security-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--info);
    font-style: italic;
    opacity: 0.9;
}

.security-note i {
    margin-right: 6px;
    color: var(--info);
}

/* Enhanced form group styling for better spacing and alignment */
.form-group {
    margin-bottom: var(--space-3);
    position: relative;
}

/* Compact payment method section */
.form-group:has(.network-toggle-group) {
    margin-bottom: var(--space-2);
}

.network-toggle-group {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
    margin-bottom: 0;
    justify-content: center;
}

.network-toggle {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
    backdrop-filter: blur(10px);
    min-width: 110px;
    text-align: center;
}

.network-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.network-toggle-group input[type="radio"]:checked + .network-toggle {
    background: linear-gradient(90deg, #fbbf24 0%, #f7931a 100%);
    color: #fff;
    border: 2px solid #f7931a;
    box-shadow: 0 4px 16px rgba(247,147,26,0.2);
    transform: translateY(-1px);
}

/* Compact phone verification section */
.form-group:has(#buy-phone-digits) {
    margin-bottom: var(--space-3);
}

#buy-phone-digits {
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 100%;
    height: 45px;
    margin: 0.4rem auto 0.2rem auto;
    display: block;
    border-radius: 0.7rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

#buy-phone-digits:focus {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

#buy-phone-digits::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Enhanced phone verification label */
label[for="buy-phone-digits"] {
    color: var(--white) !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18) !important;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 0.3rem;
}

label[for="buy-phone-digits"] i {
    color: var(--white) !important;
    margin-right: 8px;
    font-size: 1rem;
}

/* Compact helper text for phone verification */
.form-helper-text {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

/* Enhanced payment method label */
label[for="buy-network"] {
    color: var(--white) !important;
    font-weight: 700 !important;
    text-align: center;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

label[for="buy-network"] i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 8px;
    font-size: 1rem;
}

/* Responsive improvements for mobile */
@media (max-width: 600px) {
    .network-toggle {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        min-width: 100px;
    }
    
    .network-toggle-group {
        gap: 0.6rem;
        margin-top: 0.6rem;
    }
    
    #buy-phone-digits {
        width: 100%;
        height: 45px;
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .form-helper-text {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        max-width: 260px;
    }
    
    label[for="buy-phone-digits"],
    label[for="buy-network"] {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .network-toggle {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        min-width: 90px;
    }
    
    .network-toggle-group {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    #buy-phone-digits {
        width: 100%;
        height: 42px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    
    .form-helper-text {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        max-width: 240px;
    }
    
    label[for="buy-phone-digits"],
    label[for="buy-network"] {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
}

/* Final responsive optimizations for better mobile experience */
@media (max-width: 768px) {
    .transaction-section {
        padding: 1.5rem 1.2rem 1.5rem 1.2rem;
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-3));
        max-width: 500px;
    }
    
    .section-header {
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }
    
    .back-btn-rect {
        width: 48px;
        height: 36px;
        font-size: 1rem;
        margin-right: 16px;
    }
    
    .buy-title-modern {
        font-size: 1.6rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.9rem 0;
        font-size: 1.75rem;
        min-height: 52px;
    }
    
    .network-toggle {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        min-width: 100px;
    }
    
    .network-toggle-group {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    #buy-phone-digits {
        width: 100%;
        height: 42px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    
    .form-helper-text {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .transaction-section {
        padding: 1.2rem 1rem 1.2rem 1rem;
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-2));
        max-width: 500px;
    }
    
    .section-header {
        margin-bottom: 0.6rem;
        gap: 0.4rem;
    }
    
    .back-btn-rect {
        width: 44px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 12px;
    }
    
    .buy-title-modern {
        font-size: 1.4rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem 0;
        font-size: 1.6rem;
        min-height: 48px;
    }
    
    .network-toggle {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        min-width: 90px;
    }
    
    .network-toggle-group {
        gap: 0.4rem;
        margin-top: 0.4rem;
    }
    
    #buy-phone-digits {
        width: 100%;
        height: 38px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .form-helper-text {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        max-width: 240px;
    }
    
    .conversion-info {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        max-width: 280px;
    }
}

/* Ensure smooth animations and transitions */
.network-toggle,
#buy-phone-digits,
.form-group input,
.form-group select,
.submit-btn,
.back-btn-rect {
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Enhanced focus states for accessibility */
.network-toggle:focus,
#buy-phone-digits:focus,
.form-group input:focus,
.form-group select:focus,
.submit-btn:focus,
.back-btn-rect:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Ensure proper text contrast and readability */
.form-group label,
.form-helper-text,
.conversion-info {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Optimize for high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .network-toggle,
    #buy-phone-digits,
    .form-group input,
    .form-group select {
        border-width: 1.5px;
    }
}

/* Payment Card Styling */
.payment-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 480px;
    margin: 0 auto;
    color: white;
}

.payment-card .instruction-step {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Force override for instruction step height reduction */
body .payment-card .instruction-step {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

body .payment-card .instruction-step:last-child {
    padding: 0.5rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.payment-card .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
}

.payment-card .step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.payment-card .step-content p {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.payment-card .instruction-step:last-child {
    padding: 0.5rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.payment-card .phone-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.375rem 1.5rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0.75rem 0 0.5rem 0;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    text-align: center;
    display: inline-block;
}

.payment-card .lightning-status-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.payment-card .lightning-address-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-card .lightning-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.payment-card .confirm-payment-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    min-height: 48px;
    border-radius: 1.2rem;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card .confirm-payment-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.payment-card .confirm-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .payment-card {
        max-width: 90%;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        margin: 0 1rem;
    }
    
    .payment-card .instruction-step {
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
        gap: 1rem;
    }
    
    .payment-card .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .payment-card .step-content p {
        font-size: 1rem;
    }
    
    .payment-card .phone-number {
        font-size: 1.125rem;
        padding: 0.375rem 1.25rem;
    }
    
    .payment-card .confirm-payment-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .payment-card {
        max-width: 95%;
        padding: 1.75rem 1.25rem 1.25rem 1.25rem;
        margin: 0 0.5rem;
    }
    
    .payment-card .instruction-step {
        padding: 0.75rem 0.875rem !important;
        margin-bottom: 1rem !important;
        gap: 0.875rem;
    }
    
    .payment-card .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .payment-card .step-content p {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .payment-card .phone-number {
        font-size: 1rem;
        padding: 0.25rem 1rem;
        margin: 0.5rem 0;
    }
    
    .payment-card .confirm-payment-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-height: 40px;
    }
}

/* Spend Page Specific Styles - Matching Buy Page Style */
.spend-page {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #fdba74 100%);
}

/* Spend page header styling to match buy page */
.spend-page .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--space-3) 0 !important;
    margin-bottom: var(--space-2) !important;
    flex-wrap: wrap !important;
    gap: var(--space-2) !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.spend-page .logo {
    font-size: var(--font-size-2xl) !important;
    font-weight: 800 !important;
    color: var(--gray-900) !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.spend-page .logo-icon {
    width: 64px !important;
    height: auto !important;
    font-size: unset !important;
    color: #ea580c !important;
    filter: drop-shadow(0 2px 4px rgba(234, 88, 12, 0.2)) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    display: block !important;
}

.spend-page .live-rate {
    background: var(--white) !important;
    padding: var(--space-2) var(--space-3) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
    font-weight: 600 !important;
    transition: var(--transition-normal) !important;
    border: 1px solid var(--gray-200) !important;
}

.spend-page .rate-label {
    color: #ea580c !important;
    font-weight: 800 !important;
    margin-right: var(--space-2) !important;
    font-size: var(--font-size-sm) !important;
    text-shadow: none !important;
}

.spend-page .rate-value {
    color: #ea580c !important;
    font-weight: 700 !important;
}

.spend-page .header-title-right {
    color: #ea580c;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Spend page section header styling to match buy page */
.spend-page .section-header {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

/* Spend page transaction section - orange gradient like buy/sell pages */
.spend-page .transaction-section {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(234, 88, 12, 0.2), 0 2px 8px rgba(234, 88, 12, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    margin: 0 auto;
    animation: none;
    position: relative;
    overflow: hidden;
}

.spend-page .transaction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 8px);
    border-radius: 1.2rem;
    pointer-events: none;
}

.spend-page .transaction-section:hover {
    box-shadow: 0 16px 48px rgba(234, 88, 12, 0.13), 0 2px 12px rgba(234, 88, 12, 0.07);
    transform: translateY(-2px) scale(1.01);
}

/* Buy and Spend page helper text styling */
.buy-page .phone-format-info,
.spend-page .phone-format-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

.spend-page .sats-equivalent-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

/* Spend Button Styling - Matching Buy Page Style */
.spend-btn {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 0.6rem 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 1.2rem !important;
    min-height: 44px !important;
}

.spend-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #fb923c 100%) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Responsive header styling for spend page to match buy page */
@media (max-width: 768px) {
    .spend-page .header,
    body.spend-page .header,
    html body.spend-page .container .header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--space-3) !important;
        text-align: center !important;
    }
    
    .spend-page .logo-container,
    body.spend-page .logo-container {
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: var(--space-2) !important;
    }
    
    .spend-page .live-rate,
    body.spend-page .live-rate,
    html body.spend-page .container .header .live-rate {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 200px !important;
    }
    
    .spend-page .transaction-section {
        padding: var(--space-4);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-3));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .spend-page .header,
    body.spend-page .header,
    html body.spend-page .container .header {
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--space-3) !important;
        padding: var(--space-3) 0 !important;
    }
    
    .spend-page .logo-container,
    body.spend-page .logo-container {
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .spend-page .live-rate,
    body.spend-page .live-rate,
    html body.spend-page .container .header .live-rate {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 180px !important;
        padding: var(--space-2) var(--space-3) !important;
    }
    
    .spend-page .header-title-right {
        font-size: 1.4rem;
    }
    
    .spend-page .transaction-section {
        padding: var(--space-3);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-2));
        max-width: 500px;
        align-items: center;
        text-align: center;
    }
}

/* Spend page transaction form - no separate styling, inherits from transaction-section */

/* Phone Format Info Styling */
.phone-format-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Input with prefix styling */
.input-with-prefix {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.input-with-prefix:focus-within {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Buy page specific focus styling */
.buy-page .input-with-prefix:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.input-prefix {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    padding: 16px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Buy page - blue theme prefixes - match exact theme colors */
.buy-page .input-prefix {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
}

/* Spend page - orange theme prefixes - match exact theme colors */
.spend-page .input-prefix {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.input-with-prefix input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 1rem;
    color: white;
    outline: none;
    border-radius: 0;
}

.input-with-prefix input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    font-weight: 500;
}

/* Lightning Address field - left aligned like other inputs */
#buy-lightning::placeholder {
    text-align: left !important;
}

/* Refund section input-with-prefix styling - orange theme */
.refund-section .input-with-prefix {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.refund-section .input-with-prefix:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.refund-section .input-prefix {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
    color: white;
    padding: 16px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.refund-section .input-with-prefix input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 1rem;
    color: white;
    outline: none;
    border-radius: 0;
}

.refund-section .input-with-prefix input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
    font-weight: 500;
}

/* Invoice Display Styling for Spend Page */
.spend-page .invoice-display {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.spend-page .invoice-header {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
}

.spend-page .invoice-card {
    background: rgba(255, 247, 237, 0.8);
    border: 1px solid #fed7aa;
}

.spend-page .qr-code-label {
    color: #ea580c;
    background: rgba(245, 158, 11, 0.1);
}

/* Payment Status Styling for Spend Page */
.spend-page .payment-status.pending .payment-pending i {
    color: #f59e0b;
}

.spend-page .payment-status.success .payment-success i {
    color: #10b981;
}

.spend-page .payment-status.failed .payment-failed i {
    color: #ef4444;
}

/* Success State Styling for Spend Page */
.spend-page .success-state {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border: 2px solid #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.spend-page .success-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.spend-page .success-card {
    background: rgba(255, 247, 237, 0.8);
    border: 1px solid #a7f3d0;
}

.spend-page .success-card p {
    color: #065f46;
    font-weight: 500;
}

/* Disbursement Failed Styles for Spend Page */
.spend-page .failed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.spend-page .detail-item.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.spend-page .detail-item.error .detail-value {
    color: #ef4444;
    font-weight: 600;
}

/* Transaction Details Styling */
.transaction-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #92400e;
}

.detail-value {
    font-weight: 500;
    color: #ea580c;
}

/* Override general detail styles for spend page to ensure orange theme consistency */
.spend-page .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spend-page .detail-item:last-child {
    border-bottom: none;
}

.spend-page .detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-page .detail-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Retry Button Styling */
.retry-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (min-width: 1024px) {
    .payment-card {
        max-width: 520px;
        padding: 3rem 2.5rem 2.5rem 2.5rem;
    }
    
    .payment-card .instruction-step {
        padding: 1rem 1.5rem !important;
        margin-bottom: 1.25rem !important;
        gap: 1.5rem;
    }
    
    .payment-card .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .payment-card .step-content p {
        font-size: 1.1rem;
    }
    
    .payment-card .phone-number {
        font-size: 1.375rem;
        padding: 0.5rem 1.75rem;
    }
    
    .payment-card .confirm-payment-btn {
        padding: 1.125rem 2.25rem;
        font-size: 1.3rem;
        min-height: 52px;
    }
}

/* Support Section - Clean Modern Design */
.support-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* WhatsApp Button */
.whatsapp-support {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.25),
        0 3px 10px rgba(37, 211, 102, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 2;
}

.whatsapp-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.whatsapp-icon::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: calc(16px - 1px);
    z-index: 0;
}

.whatsapp-icon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(37, 211, 102, 0.35),
        0 5px 15px rgba(37, 211, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.whatsapp-icon:hover::before {
    opacity: 1;
}

.whatsapp-icon i {
    position: relative;
    z-index: 3;
    color: white;
}

/* Google Play Store Button */
.play-store-support {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #01875f 0%, #00a86b 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 
        0 8px 25px rgba(1, 135, 95, 0.25),
        0 3px 10px rgba(1, 135, 95, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    height: 50px;
    position: relative;
    overflow: hidden;
}

.play-store-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.play-store-button::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: linear-gradient(135deg, #01875f 0%, #00a86b 100%);
    border-radius: calc(16px - 1px);
    z-index: -1;
}

.play-store-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(1, 135, 95, 0.35),
        0 5px 15px rgba(1, 135, 95, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.play-store-button:hover::before {
    opacity: 1;
}

/* Text cursor styling for buy and spend pages */
.buy-page .form-group input,
.spend-page .form-group input,
.buy-page .input-with-prefix input,
.spend-page .input-with-prefix input {
    caret-color: white;
    font-weight: 500;
}

.buy-page .form-group input::selection,
.spend-page .form-group input::selection,
.buy-page .input-with-prefix input::selection,
.spend-page .input-with-prefix input::selection {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Mobile Touch Handling - Subtle Motion Feedback */
@media (hover: none) and (pointer: coarse) {
    /* Mobile devices - use scale for motion without position shifting */
    .whatsapp-icon,
    .play-store-button {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    .whatsapp-icon:active,
    .play-store-button:active {
        transform: scale(0.95);
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.3),
            0 2px 8px rgba(37, 211, 102, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .play-store-button:active {
        box-shadow: 
            0 4px 15px rgba(1, 135, 95, 0.3),
            0 2px 8px rgba(1, 135, 95, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    }
    
    /* Prevent hover effects on mobile */
    .whatsapp-icon:hover,
    .play-store-button:hover {
        transform: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    /* Desktop devices - keep transform effects */
    .whatsapp-icon:active,
    .play-store-button:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 
            0 5px 15px rgba(37, 211, 102, 0.3),
            0 2px 8px rgba(37, 211, 102, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.15s ease-out;
    }
    
    .play-store-button:active {
        box-shadow: 
            0 5px 15px rgba(1, 135, 95, 0.3),
            0 2px 8px rgba(1, 135, 95, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.play-store-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.play-store-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    color: white;
}

.play-store-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    position: relative;
    z-index: 3;
    color: white;
}

.play-store-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.play-store-subtitle {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    white-space: nowrap;
}

/* Fallback for older mobile browsers */
@media (max-width: 768px) {
    .whatsapp-icon,
    .play-store-button {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    /* Disable transforms on mobile to prevent position shifting */
    .whatsapp-icon:active,
    .play-store-button:active {
        transform: none !important;
        transition: box-shadow 0.1s ease !important;
    }
    
    .whatsapp-icon:hover,
    .play-store-button:hover {
        transform: none !important;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .support-section {
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .whatsapp-icon {
        width: 55px;
        height: 45px;
        font-size: 22px;
        border-radius: 14px;
    }
    
    .whatsapp-icon::after {
        border-radius: calc(14px - 1px);
    }
    
    .play-store-button {
        min-width: 160px;
        height: 45px;
        padding: 10px 16px;
        border-radius: 14px;
    }
    
    .play-store-button::after {
        border-radius: calc(14px - 1px);
    }
    
    .play-store-icon {
        font-size: 18px;
    }
    
    .play-store-title {
        font-size: 12px;
    }
    
    .play-store-subtitle {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .support-section {
        gap: 0.75rem;
        margin: 1rem 0;
        padding: 0 0.25rem;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 40px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .whatsapp-icon::after {
        border-radius: calc(12px - 1px);
    }
    
    .play-store-button {
        min-width: 140px;
        height: 40px;
        padding: 8px 14px;
        border-radius: 12px;
    }
    
    .play-store-button::after {
        border-radius: calc(12px - 1px);
    }
    
    .play-store-icon {
        font-size: 16px;
    }
    
    .play-store-title {
        font-size: 11px;
    }
    
    .play-store-subtitle {
        font-size: 8px;
    }
}

@media (max-width: 320px) {
    .support-section {
        gap: 0.5rem;
        padding: 0;
    }
    
    .whatsapp-icon {
        width: 45px;
        height: 35px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .whatsapp-icon::after {
        border-radius: calc(10px - 1px);
    }
    
    .play-store-button {
        min-width: 120px;
        height: 35px;
        padding: 6px 12px;
        border-radius: 10px;
    }
    
    .play-store-button::after {
        border-radius: calc(10px - 1px);
    }
    
    .play-store-icon {
        font-size: 14px;
    }
    
    .play-store-title {
        font-size: 10px;
    }
    
    .play-store-subtitle {
        font-size: 7px;
    }
}

/* Inline Invoice Display Styles for Spend Page - Fixed size card with orange theme */
.invoice-display-inline {
    margin-top: var(--space-4);
    animation: slideInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    /* Fixed size card with orange theme background - same size as main spend form */
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2), 0 2px 8px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Close button removed - no longer needed */

/* Spend Payment Header - Integrated into main card, no separate background */
.spend-payment-header {
    text-align: center;
    margin-bottom: 4px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #ffffff;
    border: none;
    box-shadow: none;
}

.spend-payment-header .success-icon {
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.spend-payment-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-payment-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Success and Error States for Payment Header - Removed backgrounds */

.spend-payment-header .success-tick {
    font-size: 3rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: success-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spend-payment-header .error-icon {
    font-size: 3rem;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed animation keyframes for state backgrounds */

/* Spend Success Header - Orange themed version matching payment header */
.spend-success-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #ffffff;
    border: none;
    box-shadow: none;
}

.spend-success-header .success-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.spend-success-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-success-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-success-header .success-tick {
    font-size: 3rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: success-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spend-success-header .failed-icon {
    font-size: 3rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spend-success-header .expired-icon {
    font-size: 3rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spend Details Section - Integrated into main card, no separate background */
.spend-details-section {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #ffffff;
    box-shadow: none;
}

.spend-details-section .transaction-details-inline {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.spend-details-section .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spend-details-section .detail-item:last-child {
    border-bottom: none;
}

.spend-details-section .detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-details-section .detail-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Spend QR Section - Integrated into main card, no separate background */
.spend-qr-section {
    text-align: center;
    margin-bottom: 4px;
    padding: 0;
    background: none;
    border-radius: 0;
    color: #ffffff;
    border: none;
    backdrop-filter: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spend-qr-section #qr-code-inline {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spend-qr-section #qr-code-inline {
    cursor: pointer;
    transition: all 0.3s ease;
}

.spend-qr-section #qr-code-inline:hover {
    transform: scale(1.05);
}

/* Payment Info Container - Integrated into main card, no separate background */
.payment-info-container {
    text-align: center;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0px;
}

/* Payment Info Section - Content inside the container */
.payment-info-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.payment-info-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Open in Wallet Button - Styled like second image */
.open-wallet-btn {
    background: white;
    border: 1px solid #000000;
    color: #000000;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    box-shadow: none;
    margin: 16px auto 0;
}

.open-wallet-btn:hover {
    background: #f5f5f5;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.open-wallet-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.open-wallet-btn i {
    font-size: 1.1rem;
}

.payment-info-copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.payment-info-copy-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.payment-info-copy-btn:active {
    transform: scale(0.95);
}

.spend-qr-section #qr-code-inline .qr-code-container {
    position: relative;
    display: inline-block;
}

.spend-qr-section #qr-code-inline img {
    max-width: 320px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: white;
    transition: all 0.3s ease;
    padding: 16px;
    display: block;
    border: 1px solid #e0e0e0;
}

/* QR Copy Overlay */
.qr-copy-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.qr-copy-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    min-width: 70px;
    justify-content: center;
}

.qr-copy-btn:hover {
    background: #000000;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.qr-copy-btn:active {
    transform: scale(0.95);
}

.qr-copy-btn i {
    font-size: 0.8rem;
    font-weight: 900;
}

.qr-copy-btn span {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Spend Invoice Section - Orange themed version of instruction-step */
.spend-invoice-section {
    text-align: center;
    margin-bottom: 0;
    padding: 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
    border-radius: 16px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4), 0 4px 12px rgba(255, 107, 53, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.spend-invoice-section .invoice-string-inline {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: var(--white);
    word-break: break-all;
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.spend-invoice-section .invoice-string-inline:hover {
    color: rgba(255, 255, 255, 0.8);
}

.spend-invoice-section .copy-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.spend-invoice-section .copy-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.spend-invoice-section .copy-icon-btn i {
    font-size: var(--font-size-sm);
}

/* Additional responsive styles for new spend page structure */
@media (max-width: 768px) {
    .invoice-display-inline,
    .success-state-inline,
    .refund-section {
        padding: var(--space-4);
        gap: var(--space-3);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-3));
        max-width: 500px;
    }
    
    .spend-payment-header,
    .spend-qr-section,
    .spend-invoice-section {
        padding: 0;
        margin-bottom: 3px;
    }
    
    .spend-payment-header h3 {
        font-size: 1.3rem;
    }
    
    .spend-payment-header p {
        font-size: 0.9rem;
    }
    
    .spend-qr-section #qr-code-inline img {
        max-width: 300px;
    }
    
    .spend-qr-section #qr-code-inline:hover {
        transform: scale(1.02);
    }
    
    .qr-copy-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 60px;
        font-weight: 700;
    }
    
    .open-wallet-btn {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Close button styles removed */
    
    .qr-copy-btn i {
        font-size: 0.7rem;
        font-weight: 900;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .invoice-display-inline,
    .success-state-inline,
    .refund-section {
        padding: var(--space-3);
        margin: 0 auto;
        width: calc(100% - 2 * var(--space-2));
        max-width: 500px;
    }
    
    .spend-qr-section #qr-code-inline img {
        max-width: 280px;
    }
    
    .spend-payment-header h3 {
        font-size: 1.2rem;
    }
    
    .spend-payment-header p {
        font-size: 0.85rem;
    }
    
    .qr-copy-btn span {
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .spend-invoice-section {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .spend-invoice-section .invoice-string-inline {
        font-size: var(--font-size-xs);
        text-align: center;
    }
    
    .spend-invoice-section .copy-icon-btn {
        min-width: 40px;
        height: 40px;
        align-self: center;
    }
    
    /* Success state responsive styles */
    .spend-success-header,
    .spend-details-section {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .spend-success-header h3 {
        font-size: 1.3rem;
    }
    
    .spend-success-header p {
        font-size: 0.9rem;
    }
    
    .spend-details-section .transaction-details-inline {
        gap: var(--space-2);
    }
    
    .spend-details-section .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }
    
    .spend-details-section .detail-value {
        text-align: left;
    }
}

.invoice-display-inline .invoice-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: #ea580c;
    font-weight: 600;
}

.invoice-display-inline .invoice-header i {
    font-size: var(--font-size-lg);
}


.qr-code-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.qr-code-inline img {
    max-width: 300px;
    height: auto;
    border-radius: var(--radius-md);
}

.qr-code-label {
    color: #ea580c;
    font-weight: 600;
    font-size: var(--font-size-sm);
    background: rgba(245, 158, 11, 0.1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.invoice-string-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.invoice-string-inline {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    word-break: break-all;
    text-align: center;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    max-width: 100%;
    overflow: hidden;
}

.invoice-string-inline:hover {
    color: var(--secondary);
}

.copy-icon-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-icon-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

/* Loading dots animation for payment status */
.loading-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.dot-1 {
    background: #1e40af;
    animation-delay: -0.32s;
}

.dot-2 {
    background: #2563eb;
    animation-delay: -0.16s;
}

.dot-3 {
    background: #f7931a;
    animation-delay: 0s;
}

.dot-4 {
    background: #fbbf24;
    animation-delay: 0.16s;
}

.dot-5 {
    background: #1e3a8a;
    animation-delay: 0.32s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.copy-btn-inline {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
}

.copy-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.payment-status-inline {
    width: 100%;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.payment-status-inline.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
}

.payment-status-inline.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
}

.payment-status-inline.failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
}

.payment-status-inline .payment-pending,
.payment-status-inline .payment-success,
.payment-status-inline .payment-failed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.payment-status-inline h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
}

.payment-status-inline p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.payment-status-inline i {
    font-size: var(--font-size-2xl);
}

.payment-status-inline.pending i {
    color: #f59e0b;
}

.payment-status-inline.success i {
    color: #10b981;
}

.payment-status-inline.failed i {
    color: #ef4444;
}

.payment-info {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
}

.retry-btn {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    margin-top: var(--space-3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Success state container - styled like transaction-section with orange theme */
.success-state-inline {
    margin-top: var(--space-4);
    animation: slideInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    /* Fixed size card with orange theme background - same size as main spend form */
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2), 0 2px 8px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Compact styling for disbursement failed state - reduced padding */
.success-state-inline.disbursement-failed-compact {
    padding: 1.5rem 1.5rem;
    gap: var(--space-2);
}

/* Compact danger icon for disbursement failed state */
.failed-icon-compact {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.failed-icon-compact i {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Compact success icon for successful disbursement state */
.success-icon-compact {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.success-icon-compact i {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments for inline elements */
@media (max-width: 768px) {
    .invoice-display-inline,
    .success-state-inline,
    .refund-section {
        margin-top: var(--space-4);
        padding: var(--space-4);
    }
    
    .qr-code-inline img {
        max-width: 300px;
    }
    
    .invoice-string-inline {
        font-size: var(--font-size-xs);
        padding: var(--space-2);
    }
    
    .copy-btn-inline,
    .retry-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .payment-status-inline {
        padding: var(--space-3);
    }
    
    .payment-status-inline h3 {
        font-size: var(--font-size-base);
    }
    
    .transaction-details-inline {
        padding: var(--space-3);
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
}

/* Mobile Number Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.modal-header .modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.modal-body {
    padding: 12px;
}

.mobile-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 8px;
    border: 2px solid rgba(245, 147, 26, 0.1);
}

.mobile-number-icon {
    font-size: 1.5rem;
    color: #f7931a;
    background: rgba(245, 147, 26, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-number-text {
    flex: 1;
    text-align: center;
}

.mobile-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fde2e2 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-warning i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.3);
}

.btn-primary {
    flex: 2;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f7931a 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 147, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 147, 26, 0.4);
}

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

/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 8px;
    }

    .modal-footer {
        padding: 8px 12px;
        flex-direction: column;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
    }

    .mobile-number {
        font-size: 1.4rem;
    }
}
