/* =================================================================== */
/* --- 1. Variables & Global Reset --- */
/* =================================================================== */
:root {
    /* Color Palette */
    --primary-color: #5b3bb0;
    --primary-dark: #4a2f91;
    --primary-light: #7c5cdb;
    --accent-color: #00d2ff;
    --text-primary: #2d3748;
    --text-secondary: #718096;

    /* Functional Colors */
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --info-color: #4299e1;
    --border-color: #e2e8f0;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Layout */
    --header-height: 70px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--text-primary);
    overflow-x: clip;
    min-height: 100vh;
}

/* Base Body Style with Animated Background Gradient */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-monospace {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}

/* =================================================================== */
/* --- 2. Animated Background Shapes (Pure CSS) --- */
/* =================================================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(1px);
    opacity: 0.4;
    animation: float 20s infinite linear;
    z-index: -1;
}

.shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    animation-duration: 25s;
    border-radius: 10px;
}

.shape:nth-child(2) {
    top: 20%;
    right: 20%;
    width: 120px;
    height: 120px;
    background: rgba(0, 210, 255, 0.2);
    border-radius: 50%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    bottom: 10%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-duration: 20s;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    bottom: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    transform: rotate(45deg);
    animation: float-rotate 35s infinite linear;
}

.shape:nth-child(5) {
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation-duration: 40s;
    animation-delay: -15s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-120vh) rotate(720deg);
        opacity: 0;
    }
}

/* =================================================================== */
/* --- 3. Header & Navigation System --- */
/* =================================================================== */
#site-top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1005;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

#site-top-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#site-top-header.hidden {
    transform: translateY(-100%);
}

#site-top-header .header-content.container {
    display: flex;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
}

/* Brand */
#site-brand-title a {
    display: flex;
    align-items: center;
    gap: 10px;
}

#site-brand-title h2 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* Navigation Links */
.navigation-container {
    display: flex;
    align-items: center;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Desktop Graceful Degradation for Mobile Groups/Headers */
.nav-group {
    display: contents; /* Flat flexbox rendering on desktop */
}

.mobile-sidebar-header,
.mobile-user-context,
.mobile-nav-title {
    display: none; /* Hidden on large screens */
}

.main-navigation .nav-link {
    color: var(--text-primary);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    background-color: rgba(91, 59, 176, 0.1);
    color: var(--primary-color);
}

/* Header Buttons */
.header-button {
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.header-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.header-button.primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(91, 59, 176, 0.3);
}

.header-button.outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.header-button.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* User Dropdown */
.user-menu {
    position: relative;
}

#user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

#user-menu-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-menu-name {
    font-weight: 700;
    color: var(--text-primary);
}

#user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    left: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 240px;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

#user-dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.dropdown-user-info .name {
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.dropdown-user-info .email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
}

.dropdown-nav {
    padding: 8px;
}

.dropdown-nav a,
.dropdown-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    text-align: right;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
}

.dropdown-nav a:hover,
.dropdown-nav button:hover {
    background-color: #f0ecfb;
    color: var(--primary-color);
}

.dropdown-nav .logout-item {
    color: var(--danger-color);
}

.dropdown-nav .logout-item:hover {
    background-color: #fff5f5;
}

/* Mobile Menu Toggle */
#hamburger-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* =================================================================== */
/* --- 4. Main Layout & Index Components --- */
/* =================================================================== */
.main-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    flex-grow: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Exchange Widget (Home Page) */
.exchange-widget-container {
    max-width: 550px;
    width: 100%;
    text-align: right;
    position: relative;
    z-index: 2;
}

.exchange-widget-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.25);
}

.widget-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.trust-card {
    text-align: center;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.trust-card:hover {
    transform: translateY(-8px);
}

.trust-icon {
    background: rgba(91, 59, 176, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.trust-card h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    color: var(--text-primary);
    font-weight: 800;
}

.trust-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.counter-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

/* Recent Activity */
.recent-activity-container {
    width: 100%;
    max-width: 850px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-right: 6px solid var(--success-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tx-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.tx-icon-wrapper {
    background: var(--success-color);
    color: #ffffff;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(72, 187, 120, 0.4);
    min-width: 40px;
    height: 40px;
}

.tx-user {
    display: flex;
    flex-direction: column;
}

.tx-label {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.tx-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tx-details-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f0f4f8;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    direction: ltr;
}

.tx-amount-currency {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
    white-space: nowrap;
}

.tx-flow-icon {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.tx-method-target {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    white-space: nowrap;
}

/* =================================================================== */
/* --- 5. Exchange Page Styles (The Trust Stack) --- */
/* =================================================================== */
.exchange-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Shared Card Style */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.card-label box-icon {
    transform: translateY(-2px);
    display: block;
}

/* Receipt Card */
.receipt-card {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.status-badge {
    background: #fff7ed;
    color: #c2410c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.status-badge box-icon {
    display: block;
    transform: translateY(-2px);
}

.tx-id {
    color: #94a3b8;
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.currency-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.currency-icon.from {
    background: #fee2e2;
    color: #ef4444;
}

.currency-icon.to {
    background: #dcfce7;
    color: #22c55e;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-info .label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.currency-info .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.currency-info .value.highlight {
    color: #5b3bb0;
}

.connector-line {
    height: 24px;
    width: 2px;
    background: #e2e8f0;
    margin: 4px 23px;
}

/* Payment Card */
.payment-card {
    border-right: 5px solid #5b3bb0;
}

.instruction-text {
    color: #334155;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.copy-zone {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    position: relative;
    user-select: none;
}

.copy-zone:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.copy-zone:active {
    transform: scale(0.98);
    border-color: #5b3bb0;
}

.copy-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.copy-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #334155;
    font-family: 'Roboto Mono', monospace;
    word-break: break-all;
    direction: ltr;
}

.copy-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #5b3bb0;
    margin-top: 12px;
    font-weight: 700;
    opacity: 0.8;
    line-height: 1;
}

.copy-feedback box-icon {
    display: block;
    transform: translateY(-2px);
}

.alert-box {
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 10px;
    color: #1e40af;
    display: flex;
    gap: 12px;
    align-items: start;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid #dbeafe;
}

.alert-box box-icon {
    flex-shrink: 0;
    transform: translateY(2px);
}

/* Proof Card & Upload */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    margin-bottom: 24px;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #5b3bb0;
    background: #f5f3ff;
}

.icon-circle {
    background: #f1f5f9;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #5b3bb0;
    transition: transform 0.3s;
}

.upload-zone:hover .icon-circle {
    transform: scale(1.1);
    background: #ede9fe;
}

.upload-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.upload-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
}

.upload-preview {
    width: 100%;
    margin-top: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    position: relative;
}

.upload-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 10px;
}

.remove-file-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.remove-file-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

/* Support Footer */
.support-link {
    text-align: center;
    margin-top: 20px;
}

.support-link a {
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.support-link a:hover {
    opacity: 1;
    color: #5b3bb0;
    text-decoration: underline;
}

/* =================================================================== */
/* --- 6. Form Elements & Buttons --- */
/* =================================================================== */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper box-icon {
    position: absolute;
    right: 15px;
    z-index: 2;
}

.input-wrapper input {
    padding-right: 45px !important;
}

select,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    background-color: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.exchange-widget-container input[type="number"] {
    padding-left: 70px;
    height: 55px;
}

.exchange-widget-container select {
    height: 55px;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(91, 59, 176, 0.1);
}

.currency-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Site Button (General) */
.site-button {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    height: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(91, 59, 176, 0.3);
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 59, 176, 0.4);
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.site-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Large Primary Button (Exchange Page) */
.btn-primary-large {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #5b3bb0, #4c1d95);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 15px -5px rgba(91, 59, 176, 0.4);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: 'Cairo', sans-serif;
    margin-top: 25px;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(91, 59, 176, 0.5);
}

.btn-primary-large:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =================================================================== */
/* --- 7. Notifications & Toasts --- */
/* =================================================================== */

/* Top Notification Bar */
.pro-notification-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pro-notification-wrapper.visible {
    transform: translateY(0);
    display: block !important;
}

.pro-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pro-notification-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0;
}

.pro-notification-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.5);
}

.pro-notification-close-btn box-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* --- Base Toast (Simple) --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    z-index: 10000;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background-color: var(--success-color);
}

.toast-notification.error {
    background-color: var(--danger-color);
}

.toast-notification.info {
    background-color: var(--info-color);
}

.toast-notification.warning {
    background-color: var(--warning-color);
    color: #333;
}

/* --- Persistent Toast (Complex Card) - Completely Overrides Base --- */
.toast-notification.persistent {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(91, 59, 176, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-family: 'Cairo', sans-serif;
    border-right: 5px solid #5b3bb0;
    color: var(--text-primary);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100px);
}

.toast-notification.persistent.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Header Fixes for Icon Alignment */
.toast-persistent-header {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
}

.toast-persistent-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #5b3bb0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    /* Fix vertical alignment */
}

.toast-persistent-header h4 box-icon {
    display: block;
    transform: translateY(-2px);
    /* Optical correction */
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
}

.toast-close-btn:hover {
    background: #edf2f7;
    color: #e53e3e;
}

.toast-content {
    padding: 20px;
}

.toast-content p {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.toast-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Fixes for Icon Alignment */
.toast-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    flex: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
    /* Fix vertical alignment */
}

.toast-btn box-icon {
    display: block;
    transform: translateY(-2px);
    /* Optical correction */
}

.toast-btn.continue {
    background: linear-gradient(135deg, #5b3bb0, #4c1d95);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 59, 176, 0.3);
    animation: btnPulse 2s infinite;
}

.toast-btn.continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 59, 176, 0.4);
}

.toast-btn.complete {
    background: white;
    border: 1px solid #48bb78;
    color: #48bb78;
}

.toast-btn.complete:hover {
    background: #f0fff4;
    color: #2f855a;
}

.toast-btn.cancel {
    background: transparent;
    color: #718096;
    flex: 0 0 auto;
}

.toast-btn.cancel:hover {
    color: #e53e3e;
    background: #fff5f5;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 59, 176, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(91, 59, 176, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(91, 59, 176, 0);
    }
}

/* =================================================================== */
/* --- 8. Modals & Spinners --- */
/* =================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-body {
    padding: 25px 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.modal-button.confirm {
    background: var(--primary-color);
    color: white;
}

.modal-button.cancel {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.spinner-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner-loader {
    border: 4px solid rgba(91, 59, 176, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =================================================================== */
/* --- 8b. SKELETON LOADING SYSTEM --- */
/* =================================================================== */

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.8s infinite linear;
    border-radius: 8px;
}

/* Dark-on-light context skeletons (inside glass cards) */
.skeleton-light {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.8s infinite linear;
    border-radius: 8px;
}

.skeleton-text { height: 14px; margin-bottom: 10px; }
.skeleton-text.lg { height: 20px; width: 70%; }
.skeleton-text.sm { height: 12px; width: 50%; }
.skeleton-btn { height: 48px; border-radius: 12px; margin-top: 15px; }
.skeleton-select { height: 50px; border-radius: 12px; margin-bottom: 10px; }
.skeleton-input { height: 50px; border-radius: 12px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.skeleton-badge { height: 30px; width: 100px; border-radius: 20px; display: inline-block; }

/* Widget Skeleton */
#widget-skeleton {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#widget-skeleton .skel-title {
    height: 28px;
    width: 60%;
    margin: 0 auto 15px auto;
    border-radius: 8px;
}

#widget-skeleton .skel-group { margin-bottom: 10px; }
#widget-skeleton .skel-label { height: 14px; width: 35%; margin-bottom: 8px; border-radius: 6px; }

/* Widget main content hidden until data loads */
#widget-main-content { display: none; }
#widget-main-content.loaded {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Transaction Skeleton Items */
.skeleton-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    margin-bottom: 10px;
}

.skeleton-tx-item .skel-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-tx-item .skel-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
}

.skeleton-tx-item .skel-lines { display: flex; flex-direction: column; gap: 6px; }
.skeleton-tx-item .skel-line-1 { width: 80px; height: 12px; border-radius: 6px; }
.skeleton-tx-item .skel-line-2 { width: 55px; height: 10px; border-radius: 6px; }
.skeleton-tx-item .skel-right { width: 100px; height: 14px; border-radius: 6px; }

/* Header Nav Skeleton */
.nav-skeleton-items {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-skeleton-items .skel-nav {
    width: 65px; height: 16px;
    border-radius: 6px;
}

/* Fallback Error State */
.data-fallback-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.data-fallback-state box-icon { opacity: 0.5; }

.data-fallback-state p {
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.data-fallback-state .retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.data-fallback-state .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 59, 176, 0.3);
}

/* =================================================================== */
/* --- 9. NEW SECTIONS (Hero, Marquee, Features, Steps, Footer) --- */
/* =================================================================== */

/* --- Layout Utility --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section (Two-Column Flex/Grid) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin-bottom: 20px;
}

.hero-text-content {
    flex: 1;
    text-align: right;
    color: white;
}

.hero-text-content .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-title span {
    background: linear-gradient(135deg, #00f2fe, #4facfe); /* High-contrast vibrant cyan */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Marquee Section --- */
.payments-marquee-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marquee-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.payment-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); /* RTL requires positive transform for scroll right-to-left visual */ }
}

/* --- Features Grid Section --- */
.features-section {
    width: 100%;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    background: rgba(91, 59, 176, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- How it Works (Steps) --- */
.how-it-works-section {
    width: 100%;
    padding: 40px 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.step-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.step-box h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.step-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.step-connector {
    flex: 0 0 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 30px; /* Align with middle of circle */
}

/* --- Trust Grid Modifications --- */
.trust-grid {
    margin-top: 20px;
}
.highlight-stats {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,255,0.95) 100%);
    border-color: rgba(91, 59, 176, 0.3);
}

/* --- Footer --- */
.site-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #1a1a2e; /* Dark professional footer */
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
}


/* =================================================================== */
/* --- 10. Responsive & Mobile Sidebar --- */
/* =================================================================== */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    #hamburger-icon {
        display: block;
        z-index: 1010;
        transition: all 0.3s ease;
        padding: 5px;
        border-radius: 8px;
    }

    #hamburger-icon[aria-expanded="true"] {
        display: none; /* Replaced by interior close button */
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1004;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        pointer-events: none;
        cursor: pointer;
    }

    body.sidebar-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1006;
        overflow-y: auto;
    }

    .main-navigation.mobile-active {
        transform: translateX(0);
    }

    /* --- Mobile Header --- */
    .mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #ffffff;
    }

    .mobile-sidebar-header .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-sidebar-header .sidebar-brand h2 {
        margin: 0;
        font-size: 1.3rem;
        color: var(--primary-color);
        font-weight: 800;
    }

    .close-sidebar-btn {
        background: #f1f5f9;
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
    }

    .close-sidebar-btn:hover {
        background: #e2e8f0;
    }

    /* --- Mobile User Context --- */
    .mobile-user-context {
        display: flex;
        flex-direction: column;
        padding: 25px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .user-info-row {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .user-info-row .user-avatar-initials {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(91, 59, 176, 0.2);
    }

    .user-details .name {
        margin: 0;
        font-weight: 800;
        color: var(--text-primary);
        font-size: 1.1rem;
    }

    .user-details .email {
        margin: 0;
        font-size: 0.85rem;
        color: var(--text-secondary);
        word-break: break-all;
    }

    .welcome-text {
        margin: 0 0 20px 0;
        font-weight: 800;
        color: var(--text-primary);
        font-size: 1.15rem;
        text-align: right;
    }

    .user-action-row {
        display: flex;
        gap: 10px;
    }

    .btn-micro {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        font-family: inherit;
        line-height: 1; /* Eliminates flex baseline stretching */
    }

    .btn-micro box-icon {
        display: block;
        transform: translateY(0); /* Aligns perfectly with the text baseline */
    }

    .btn-micro.primary {
        background: linear-gradient(135deg, #5b3bb0, #4c1d95);
        color: white;
        box-shadow: 0 4px 15px rgba(91, 59, 176, 0.2);
    }

    .btn-micro.danger {
        background: #fef2f2;
        color: #ef4444;
        border: 1px solid #fee2e2;
    }

    .btn-micro.outline {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

    /* --- Navigation Groups --- */
    .nav-group {
        display: flex;
        flex-direction: column;
        padding: 25px;
    }

    .mobile-nav-title {
        display: block;
        margin: 0 0 15px 0;
        font-size: 0.85rem;
        color: #94a3b8;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .main-navigation .nav-link {
        width: 100%;
        padding: 14px 18px;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 12px;
        color: var(--text-primary);
        justify-content: flex-start;
        margin-bottom: 6px;
        transition: all 0.2s ease;
    }

    .main-navigation .nav-link:hover,
    .main-navigation .nav-link.active {
        background-color: #f0ecfb;
        color: var(--primary-color);
        transform: translateX(-4px); /* Slight bump in RTL */
    }

    .main-navigation .nav-link box-icon {
        margin-left: 14px;
        fill: currentColor;
    }

    .main-navigation .header-button {
        width: 100%;
        margin-bottom: 12px;
        justify-content: center;
        height: 50px;
    }

    .main-content-wrapper {
        padding-top: 100px;
        gap: 40px;
    }

    /* Tablet Responsive Adjustments */
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text-content {
        display: none;
    }

    .hero-features-list {
        align-items: center;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step-connector {
        flex: auto;
        width: 2px;
        height: 40px;
        margin: -10px auto 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 20px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .widget-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .transaction-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    .tx-info {
        width: 100%;
        justify-content: flex-start;
    }

    .tx-details-badge {
        width: 100%;
        justify-content: center;
        direction: ltr;
        padding: 10px;
    }

    .trust-grid {
        gap: 20px;
    }

    .counter-value {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .toast-actions {
        flex-direction: column;
    }

    .toast-btn {
        width: 100%;
    }
}

/* =================================================================== */
/* --- 11. Exchange Page Refinements (Status & Support) --- */
/* =================================================================== */

/* --- Status View Card Styling --- */
.status-view-wrapper {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-view-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-view-icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

.status-view-title {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.status-view-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 30px;
}

/* Status-Specific Themes (Applied via JS) */
.status-theme-review .status-view-icon-box {
    background: #eff6ff;
    color: #3b82f6;
}

.status-theme-review .status-view-title {
    color: #1e40af;
}

.status-theme-processing .status-view-icon-box {
    background: #ecfdf5;
    color: #10b981;
}

.status-theme-processing .status-view-title {
    color: #047857;
}

.status-theme-completed .status-view-icon-box {
    background: #f0fdf4;
    color: #22c55e;
}

.status-theme-completed .status-view-title {
    color: #166534;
}

.status-theme-rejected .status-view-icon-box {
    background: #fef2f2;
    color: #ef4444;
}

.status-theme-rejected .status-view-title {
    color: #991b1b;
}

/* Secondary Action Button (Back to History) */
.btn-secondary-outline {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Slightly reduced gap for tighter visual */
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    line-height: 1;
    /* FIXED: Vertical Alignment */
}

/* Optical Fix for Icon inside Button */
.btn-secondary-outline box-icon {
    display: block;
    transform: translateY(-2px);
    /* Optical Correction for Cairo */
}

.btn-secondary-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
    transform: translateY(-2px);
}

/* --- Enhanced Support Section --- */
.support-section {
    margin-top: 30px;
    text-align: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

.support-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: all 0.2s ease;
}

.support-action-btn box-icon {
    fill: #25D366;
    /* WhatsApp Brand Color */
}

.support-action-btn:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    color: #2d3748;
    transform: translateY(-1px);
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .status-view-title {
        font-size: 1.4rem;
    }

    .status-view-icon-box {
        width: 70px;
        height: 70px;
    }
}
