:root {
    --bg-light: #f8fafc;
    --card-white: #ffffff;
    --card-grey: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --accent-blue: #0ea5e9;
    --selection-bg: #e0f2fe;
    --border-light: #e2e8f0;
    --primary-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
    --confirm-blue: #87d4ff;
}

/* ═══ Smart Sync System ═══ */
@keyframes sync-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-active {
    animation: sync-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sync-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.sync-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #10b981;
    animation: sync-pulse 2s infinite;
}

.page-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}



@media (max-width: 768px) {
    .page-logo {
        width: 60px;
        height: 60px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-y {
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .nav-header {
        margin-bottom: 0.25rem;
        padding: 0 0.75rem;
    }

    .container {
        max-width: 100vw;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem 0.75rem;
        padding-bottom: 70px;
    }

    .header {
        margin-bottom: 0.75rem;
    }

    .header h1 {
        font-size: 1.15rem;
    }

    .header p {
        font-size: 0.8rem;
    }

    .section-label {
        font-size: 0.85rem;
        margin: 0.75rem 0 0.5rem 0;
    }

    .user-card {
        padding: 0.6rem 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }

    .add-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .add-text {
        font-size: 0.9rem;
    }

    .package-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        margin-bottom: 0.4rem;
    }

    .package-card {
        padding: 0.35rem 0.2rem;
        border-radius: 10px;
    }

    .package-card img {
        width: 22px;
        height: 22px;
        margin-bottom: 0.15rem;
    }

    .gift-icon-placeholder {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    .pkg-diamonds {
        font-size: 0.7rem;
        margin-bottom: 1px;
    }

    

    .price-tag {
        font-size: 0.6rem;
    }

    .quantity-control {
        padding: 0.4rem 0.8rem;
        margin: 0.4rem 0;
        border-radius: 12px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        animation: qty-blink 2s infinite;
    }

    .qty-input {
        font-size: 1rem;
    }

    .bottom-bar {
        padding: 0.5rem 0.85rem;
        min-height: 60px;
    }

    .bar-price .label {
        font-size: 0.85rem;
    }

    .diamond-effect {
        font-size: 0.75rem !important;
    }

    .confirm-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .modal-content {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .summary-details {
        padding: 1rem;
    }

    .summary-item {
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }

    .payment-section {
        padding: 1rem;
    }

    .number-copy {
        padding: 0.6rem;
    }
}

.nav-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.reseller-nav-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: white;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    overflow-y: auto;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .main-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        height: 100%;
        align-content: start;
    }

    .gift-section {
        overflow-y: auto;
        padding-bottom: 100px;
    }
}

.section-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.section-label .required {
    color: #ef4444;
    margin-left: 4px;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* User Section */
.user-card {
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.add-icon {
    width: 40px;
    height: 40px;
    background: var(--card-grey);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-right: 0.75rem;
}

.add-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Gift Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.package-card {
    background: var(--card-grey);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.package-card:hover {
    background: #e2e8f0;
}

.package-card.selected {
    background: var(--selection-bg);
    border-color: var(--accent-blue);
}

.package-card img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.3rem;
    object-fit: contain;
}

.gift-icon-placeholder {
    width: 30px;
    height: 30px;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.pkg-diamonds {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 2px;
    color: var(--text-dark);
}



.price-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Custom package input styling */
.custom-diamonds-input {
    width: 64px;
    height: 26px;
    border: 2px solid var(--border-light);
    border-radius: 50px; /* Perfectly round / pill shape */
    padding: 2px 6px;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    background: #f8fafc;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-diamonds-input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.custom-diamonds-input:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
    width: 72px; /* Smoothly expands width when focused */
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), inset 0 1px 2px rgba(0,0,0,0.02);
}

/* Chrome, Safari, Edge, Opera: Hide spin buttons */
.custom-diamonds-input::-webkit-outer-spin-button,
.custom-diamonds-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox: Hide spin buttons */
.custom-diamonds-input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Card Container Styles & Effects */
.custom-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer shine sweep effect on hover */
.custom-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: none;
    pointer-events: none;
}

.custom-card:hover::after {
    transition: transform 0.6s ease-in-out;
    transform: translate(50%, 50%) rotate(45deg);
}

/* Pulsing premium glow effect when custom card is selected */
.package-card.selected.custom-card {
    background: var(--selection-bg);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    animation: custom-pulse-glow 2s infinite ease-in-out;
}

.package-card.selected.custom-card .custom-diamonds-input {
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
}

@keyframes custom-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
        border-color: var(--accent-blue);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
        border-color: #6366f1;
    }
}

.price-tag span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Quantity Selector Control */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.5rem 1rem;
    width: 100%;
    margin: 0.75rem 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--card-grey);
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    animation: qty-blink 2s infinite;
}

@keyframes qty-blink {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px 5px rgba(14, 165, 233, 0.2);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        transform: scale(1);
    }
}


.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    text-align: center;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    background: none;
}

/* Bottom Confirm Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.bar-price .label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bar-balance {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.confirm-btn {
    background: #87d4ff;
    color: white;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn:hover {
    background: #76c5f0;
    transform: scale(1.02);
}

/* Modal / Form */
#imo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="password"],
.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.recharge-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Summary & Status */
.summary-details {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.summary-item span:last-child {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.highlight {
    color: var(--accent-blue) !important;
    font-weight: 700 !important;
}

.payment-section {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.number-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-grey);
    padding: 1.25rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.copy-btn {
    background: var(--card-white);
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: transparent;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.status-completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

/* Dashboard Cards */
.data-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.data-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

@media (max-width: 768px) {
    .data-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .data-card {
        padding: 1.25rem;
    }
}

/* Redesigned Topup Styles */
.payment-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-card {
    background: white;
    padding: 1.25rem;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.payment-method-card.airtel {
    border-color: #ff0000;
}

.payment-method-card.mtn {
    border-color: #ffcc00;
}

.payment-brand {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    display: block;
}

.airtel .payment-brand {
    color: #ff0000;
}

.mtn .payment-brand {
    color: #cc9900;
}

.payment-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.copy-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.payment-method-card:hover .copy-indicator {
    opacity: 1;
}

.topup-input-group {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.custom-file-upload {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-file-upload:hover {
    background: #f1f5f9;
    border-color: var(--accent-blue);
}

.upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.upload-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* UI Refinements */
.diamond-effect {
    font-size: 1.1rem;
    font-weight: 950;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.loyalty-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.loyalty-gold {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

.loyalty-silver {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.loyalty-bronze {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #ffedd5;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.step-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    position: relative;
}

.step-indicator.active {
    background: var(--accent-blue);
}

.step-indicator.active::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    opacity: 0.3;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-weight: 600;
    color: var(--text-muted);
}

.step-time {
    font-weight: 700;
    color: var(--text-dark);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: white;
    border-radius: 32px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: grayscale(1);
    opacity: 0.5;
}

/* Premium Modal Effects */
.rate-ticker {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #dbeafe;
    margin-bottom: 0.5rem;
}

.modal-btn-close-premium {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.modal-btn-close-premium:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
}

.modal-btn-submit-premium {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    flex: 2;
}

.modal-btn-submit-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.6);
}

.blue-title-effect {
    background: linear-gradient(to right, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
    display: inline-block;
}

/* ═══ Global Refresh Button ═══ */
.refresh-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid white;
    text-decoration: none;
}

.refresh-btn:hover {
    transform: translateY(-3px) rotate(90deg);
    background: #0284c7;
}

.refresh-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .refresh-btn {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

.help-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex: 1;
}

.help-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: transparent;
}

.whatsapp-btn {
    background: #25D366;
    border: none;
    padding: 0.5rem 1rem;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    flex: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ═══ Support Actions Container ═══ */
.support-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

/* ═══ Blinking Effect ═══ */
.blink-effect {
    animation: blink-animation 1.5s infinite;
}

@keyframes blink-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px 5px rgba(14, 165, 233, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.whatsapp-btn.blink-effect {
    animation: whatsapp-blink 1.5s infinite;
}

@keyframes whatsapp-blink {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px 5px rgba(37, 211, 102, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ═══ Scrolling Marquee ═══ */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 12px;
    height: 34px;
    display: flex;
    align-items: center;
    margin-top: 15px;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 30s linear infinite;
    font-size: 0.82rem;
    font-weight: 900;
    color: #6366f1;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

/* ═══ Help Modal Styles ═══ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.help-modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.help-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
}

.close-help {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-help:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.help-modal-body p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
    line-height: 1.5;
    font-weight: 500;
}

.guide-image-container {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
}

.guide-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.guide-video-container {
    margin: 1rem auto;
    background: #0f172a; /* Slate-900 premium dark background */
    border-radius: 16px;
    padding: 0.35rem;
    border: 3px solid #334155; /* Smartphone bezel border styling */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 150px; /* Small, phone-sized width */
    max-height: 270px; /* Constrained height limit */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.guide-video {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain; /* Ensure aspect ratio is preserved without stretching/cropping */
    border-radius: 10px;
    display: block;
}

@media (max-width: 768px) {
    .help-modal-content {
        padding: 1.25rem;
        border-radius: 20px;
    }
    .help-modal-header {
        margin-bottom: 1rem;
    }
    .help-modal-body p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .guide-video-container {
        margin: 0.75rem auto;
    }
}

/* ═══ Floating WhatsApp Button ═══ */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp img {
    width: 35px;
    height: 35px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}