/* Color Variables (Default / Light Mode) */
:root, [data-theme="light"] {
    --bg-color: #FAFAF8;
    --text-color: #111114;
    --signup-text-color: #FFFFFF;
    --signup-btn-bg: #673AB7;
    --input-border: #D1D1D6;
    --input-bg: #FFFFFF;
}

/* Forced Dark Mode via Menu */
[data-theme="dark"] {
    --bg-color: #121216;
    --text-color: #F3F3F6;
    --signup-text-color: #FFFFFF;
    --signup-btn-bg: #7C4DFF;
    --input-border: #2C2C35;
    --input-bg: #1A1A22;
}

/* System / Device Color Scheme Preference (Used when "System" is selected) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --bg-color: #121216;
        --text-color: #F3F3F6;
        --signup-text-color: #FFFFFF;
        --signup-btn-bg: #7C4DFF;
        --input-border: #2C2C35;
        --input-bg: #1A1A22;
    }
}

/* Base Reset & Mobile-First Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-height: 100vh;
    padding: 24px 16px;
}

/* Base View Control */
.app-view {
    display: none;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    animation: fadeIn 0.25s ease-in-out;
}

.app-view.active {
    display: flex;
}

/* Centered views (Landing, Signin, Signup) */
.center-view {
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: auto 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo placement */
.logo-container {
    margin-bottom: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-image {
    max-width: 120px;
    height: auto;
}

/* Content Layout */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.main-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.75;
    margin-bottom: 28px;
    line-height: 1.5;
    padding: 0 12px;
}

/* Landing-only install button */
/* Full-height landing view; other views remain unchanged */
#landing-view {
    position: relative;
    align-self: stretch;
    margin: 0;

    /* Account for the body's 24px top and bottom padding */
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);

    /* Reserve space for the install button */
    padding-block: 72px;
}

.landing-install-btn {
    position: absolute;
    top: 26px;
    right: 0;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 16px;

    border: 1px solid var(--signup-btn-bg);
    border-radius: 12px;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;

    cursor: pointer;
    transition: background-color 0.2s ease;
}

.landing-install-btn:hover {
    background-color: rgba(103, 58, 183, 0.1);
}

.landing-install-btn:focus-visible {
    outline: 3px solid var(--signup-btn-bg);
    outline-offset: 3px;
}

/* Form Styling */
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.input-group input:focus {
    border-color: var(--signup-btn-bg);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6E6E73;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s ease;
}

.toggle-password-btn:hover {
    color: var(--text-color);
}

.forgot-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.forgot-link {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Action Buttons & Spinner */
.action-btn {
    background-color: var(--signup-btn-bg);
    color: var(--signup-text-color);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 14px 48px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
    transition: transform 0.15s ease, opacity 0.15s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#landing-view .action-btn {
    width: auto;
    min-width: 180px;
    margin-top: 0;
    margin-bottom: 24px;
}

.action-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Spinner styling */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Switch Links */
.switch-prompt {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.85;
}

.switch-link {
    color: var(--signup-btn-bg);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.switch-link:hover {
    text-decoration: underline;
}

/* ================= THEME-ADAPTIVE FUND WALLET MODAL ================= */
.sure-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sure-modal-content {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: var(--text-color);
    animation: modalPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopUp {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sure-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sure-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
}

.sure-close-btn {
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.sure-close-btn:hover {
    opacity: 0.8;
}

.sure-modal-body p {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.sure-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 0 16px;
    margin-bottom: 14px;
}

.currency-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #34C759;
    margin-right: 8px;
}

.sure-input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    padding: 14px 0;
    outline: none;
}

.quick-amount-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.chip-btn {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover {
    background: rgba(103, 58, 183, 0.12);
    border-color: var(--signup-btn-bg);
    color: var(--signup-btn-bg);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--signup-btn-bg);
    background: rgba(103, 58, 183, 0.08);
}

.payment-option input[type="radio"] {
    accent-color: var(--signup-btn-bg);
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.option-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.option-desc {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 2px;
}

.modal-actions-row {
    display: flex;
    gap: 10px;
}

.sure-secondary-btn {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    transition: opacity 0.2s;
}

.sure-secondary-btn:hover {
    opacity: 0.8;
}

.sure-primary-btn {
    width: 100%;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    transition: opacity 0.2s;
}

.sure-primary-btn:hover {
    opacity: 0.9;
}

/* ================= DASHBOARD SPECIFIC STYLES ================= */
.dashboard-layout {
    text-align: left;
    position: relative;
    padding-top: 66px; 
    padding-bottom: 54px;
}

/* Fixed Header Bar */
.dashboard-header {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 8px 16px;
    z-index: 100;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile:hover .profile-avatar {
    border-color: var(--signup-btn-bg);
    transform: scale(1.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(103, 58, 183, 0.2);
    transition: transform 0.15s ease;
}

.user-greeting h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.user-greeting p {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.65;
}

.icon-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--signup-btn-bg);
    opacity: 0.9;
}

/* Hidden file input for profile picture upload */
#profile-upload-input {
    display: none;
}

/* Expanding Search Bar Styling */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    position: absolute;
    right: 0;
    width: 40px; /* matches .icon-btn width initially */
    height: 40px;
    border: 1px solid var(--input-border);
    border-radius: 20px;
    background: var(--input-bg);
    padding: 0 16px 0 36px;
    font-size: 13px;
    color: var(--text-color);
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.15s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.search-container.active .search-input {
    width: 150px; /* Expanded width */
    opacity: 1;
    pointer-events: auto;
    border-color: var(--signup-btn-bg);
}

.search-input:focus {
    border-color: var(--signup-btn-bg);
}

.search-icon-absolute {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

/* --- Notification View Styles --- */
#notification-view {
    display: none;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
}

#notification-view.active {
    display: flex;
}

.notification-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--input-border);
}

.back-to-dashboard-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.65; /* Muted appearance for read items */
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Unread notification card style (stands out clearly) */
.notification-card.unread {
    opacity: 1;
    background-color: var(--input-bg);
    font-weight: 500;
    border: 1px solid var(--signup-btn-bg); /* Dynamic brand border for unread items */
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-color);
}

.notification-time {
    font-size: 11.5px;
    color: var(--text-color);
    opacity: 0.6;
}

.notification-message {
    font-size: 12.5px;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.4;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #FF3B30; /* High-visibility warning badge red */
    color: #FFFFFF;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Dashboard Scrollable Content Area */
.dashboard-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Balanced spacing elements */
    margin-top: 0px;
}

/* =========================================================================
   EMBEDDED WALLET CARD & TRANSACTIONS LINK STYLES
   ========================================================================= */

.wallet-card {
    background-color: #111114; /* Dedicated sleek dark focal card */
    color: #FFFFFF;
    border-radius: 20px;
    padding: 20px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;       
    margin: 0 auto;         
    box-sizing: border-box;
    border: 1px solid var(--input-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.wallet-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.wallet-label {
    font-size: 12.5px;
    opacity: 0.75;
    display: block;
    margin-bottom: 6px;     
    letter-spacing: 0.02em;
}

.wallet-amount-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency, .balance-text {
    font-size: 22px;         
    font-weight: 600;
    letter-spacing: -0.01em;
}

.eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 2px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.eye-btn:hover {
    opacity: 1;
}

.fund-wallet-btn {
    background-color: var(--signup-btn-bg);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fund-wallet-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Footer Row Container */
.wallet-footer-row {
    margin-top: 18px;
    padding-top: 8px;
    padding-bottom: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Shield + ACTIVE Badge (Left) */
.account-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
}

.shield-icon {
    color: #4CAF50;
}

.status-text {
    font-size: 10px;
    color: #4CAF50;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Embedded View Transactions Button (Right) */
.embedded-tx-btn {
    background: transparent;
    border: none;
    color: #D1C4E9;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.embedded-tx-btn:hover {
    color: #FFFFFF;
}

.embedded-tx-btn .tx-arrow {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.embedded-tx-btn:hover .tx-arrow {
    transform: translateX(3px);
}

/* Transaction History View Layout */
#transaction-history-view {
    display: none;
    flex-direction: column;
    padding: 0 16px 16px 16px;
    box-sizing: border-box;
}

#transaction-history-view.active {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    overscroll-behavior: none;
}

#transactions-list-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
}

.transaction-fixed-header {
    flex-shrink: 0;
    background: var(--bg-color); /* Dynamically adopts light/dark view background */
    z-index: 10;
    padding-top: 28px;
}

.transaction-header-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--input-border);
}

.back-to-dashboard-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.tx-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tx-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.tx-count {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

/* Individual Transaction Card Styling */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tx-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-service-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-service-type {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.tx-amount {
    font-weight: 700;
    font-size: 14px;
}

.tx-amount.successful { color: #34C759; }
.tx-amount.failed { color: #FF3B30; }
.tx-amount.pending { color: #FF9500; }

.tx-card-mid {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-color);
    opacity: 0.75;
}

.tx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed var(--input-border);
    font-size: 11.5px;
    color: var(--text-color);
}

/* Status Badges - Compatible with both Light & Dark modes */
.tx-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.03em;
}

.tx-status.successful { 
    background: rgba(52, 199, 89, 0.15); 
    color: #34C759; 
}
.tx-status.pending { 
    background: rgba(255, 149, 0, 0.15); 
    color: #FF9500; 
}
.tx-status.failed { 
    background: rgba(255, 59, 48, 0.15); 
    color: #FF3B30; 
}
.tx-status.refunded { 
    background: rgba(142, 142, 147, 0.18); 
    color: var(--text-color); 
}

.tx-empty-state {
    text-align: center;
    padding: 40px 0;
    opacity: 0.6;
    font-size: 13px;
    color: var(--text-color);
}

/* Filter Pills */
.tx-pill {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tx-pill.active {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-color: var(--signup-btn-bg);
}

/* Modal Overlay & Card */
.tx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tx-modal-content {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tx-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.tx-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.tx-modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.tx-modal-close-btn:hover {
    opacity: 1;
}

.tx-share-receipt-btn {
    width: 100%;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.tx-share-receipt-btn:hover {
    opacity: 0.92;
}

/* ================= SERVICES SECTION STYLES ================= */
.services-section {
    width: 100%;
    max-width: 320px;
    margin: 22px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.services-grid {
    display: flex;             /* Switch to flexbox for tighter control */
    flex-wrap: wrap;
    justify-content: center;   /* Perfectly centers the icons inside the 320px width */
    gap: 16px 16px;            /* 16px row & column gap */
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.service-card {
    background-color: transparent;
    color: var(--text-color);
    border-radius: 0;
    padding: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    width: 86px;               /* Fixed width per item keeps columns snug and uniform */
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.service-card:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ONLY the icon box gets rounded into a solid purple circle */
.service-icon-box {
    background-color: var(--signup-btn-bg); /* Solid purple circle using theme variable */
    border-radius: 50%;
    width: 50px;  /* Perfect size for a touch-friendly icon button */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.25);
    flex-shrink: 0;
}

/* Crisp icon size */
.service-icon-box svg {
    width: 22px;
    height: 22px;
}

/* Labels dynamically switch between light dark charcoal and bright off-white in dark mode */
.service-card span,
.service-card,
.service-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color); /* Dynamically respects light/dark mode */
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Horizontal Scrollable Promotion Carousel */
.promo-carousel-wrapper {
    width: 100%;
    max-width: 320px;  
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    scrollbar-width: none; /* Hide scrollbar for clean UI */
}

.promo-track::-webkit-scrollbar {
    display: none;
}

/* ================= DYNAMIC PROMOTION BANNER STYLING ================= */

.offer-banner {
    background: #1A1A1E !important; /* Premium dark featured surface */
    color: #FFFFFF !important;
    border-radius: 16px;
    padding: 18px !important;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--input-border);
    position: relative;
    overflow: hidden;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.offer-banner .offer-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #34C759; /* Accent green icon */
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-banner .offer-content {
    flex: 1;
}

.offer-banner h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-banner p {
    font-size: 12.5px;
    color: #94A3B8 !important; /* Legible gray body copy */
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Action button inside promo banner */
.promo-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #34C759;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.promo-action-btn:hover {
    opacity: 0.92;
}

.promo-action-btn:active {
    transform: scale(0.96);
}

/* Pagination Dots */
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--input-border);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.dot.active {
    background-color: var(--signup-btn-bg);
    width: 10px;
    border-radius: 3px;
}

/* Bottom Nav - Hidden by default */
.bottom-nav {
  display: none; /* Hidden on landing, signin, signup */
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-color);
  justify-content: space-around;
  padding: 10px 0 14px 0;
  z-index: 100;
  border-top: 1px solid var(--input-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Show bottom nav only when body has authenticated class */
body.authenticated .bottom-nav {
  display: flex !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.55;
    font-size: 12.5px;
    font-weight: 500;
    gap: 3px;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    opacity: 0.85;
}

.nav-item.active {
    opacity: 1;
    color: var(--signup-btn-bg);
}

/* This allows active SVGs to also inherit the active text color if you want them to match */
.nav-item.active svg {
    fill: var(--signup-btn-bg);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force nav SVG icons to inherit theme text color in both light and dark mode */
.bottom-nav .nav-icon svg {
    fill: var(--text-color) !important;
}

/* Keep active icon colored with your brand primary accent */
.bottom-nav .nav-item.active svg {
    fill: var(--signup-btn-bg) !important;
    stroke: var(--signup-btn-bg) !important;
}

/* ================= TRANSACTION HISTORY STYLES ================= */

.tx-search-row {
    margin-bottom: 12px;
}

.tx-search-row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.tx-search-row input:focus {
    border-color: var(--signup-btn-bg);
}

.tx-filter-pills-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.tx-filter-pills-row::-webkit-scrollbar {
    display: none;
}

/* Modal Overlay Styling */
.tx-modal-overlay {
    display: none; /* Controlled via JS or class */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.tx-modal-overlay.active {
    display: flex;
}

/* ================= TRANSACTION REDEMPTION DETAILS STYLES ================= */
.tx-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-detail-label {
    color: var(--text-color);
    opacity: 0.65;
}

.tx-detail-value-bonus {
    color: #34C759;
    font-weight: 600;
}

.tx-detail-value-normal {
    color: var(--text-color);
    font-weight: 500;
}

/* ================= ELECTRICITY TRANSACTION DETAILS STYLES ================= */
.tx-detail-value {
    color: var(--text-color);
    font-weight: 500;
}

.tx-detail-address {
    color: var(--text-color);
    font-weight: 500;
    font-size: 11px;
    max-width: 180px;
    text-align: right;
    opacity: 0.85;
}

.tx-token-box {
    margin: 12px 0 4px 0;
    padding: 12px;
    background: var(--input-bg);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--input-border);
}

.tx-token-label {
    font-size: 10px;
    color: var(--text-color);
    opacity: 0.6;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tx-token-value {
    font-family: monospace;
    font-size: 16px;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* ================= TRANSACTION DETAILS SECTIONS STYLES ================= */
.tx-detail-row-bordered {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--input-border);
}

.tx-exam-token-box {
    margin: 6px 0 2px 0;
    padding: 10px;
    background: var(--input-bg);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed var(--input-border);
}

.tx-exam-token-text {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.3px;
    line-height: 1.6;
    text-align: center;
    display: block;
}

/* ================= TRANSACTION MODAL WATERMARK & CONTENT STYLES ================= */
.tx-modal-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-content: center;
    justify-items: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    transform: rotate(-25deg);
    overflow: hidden;
}

.tx-modal-content-wrap {
    position: relative;
    z-index: 1;
}

.tx-modal-header-wrap {
    text-align: center;
    margin-bottom: 12px;
    padding-top: 5px;
}

.tx-modal-logo-row {
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.tx-modal-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.tx-modal-logo-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.tx-modal-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.tx-modal-details-card {
    background: var(--bg-color);
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
}

.tx-modal-details-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 14px 0;
}

.tx-modal-details-list {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-modal-detail-label {
    color: var(--text-color);
    opacity: 0.65;
}

.tx-modal-detail-value {
    color: var(--text-color);
    font-weight: 500;
    font-size: 11px;
}

.tx-modal-detail-value-mono {
    color: var(--text-color);
    font-family: monospace;
    font-size: 11px;
}

/* ================= SHARE RECEIPT SNAPSHOT & WATERMARK STYLES ================= */
.receipt-snapshot-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 420px;
    display: inline-block;
    height: auto;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 20px 16px 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.receipt-watermark-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-content: center;
    justify-items: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    transform: rotate(-25deg);
    overflow: hidden;
}

.receipt-content-wrapper {
    position: relative;
    z-index: 1;
}

.receipt-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.receipt-top-card {
    background-color: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
}

.receipt-header-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.7;
}

.receipt-branding-container {
    display: inline-flex;
    align-items: center;
    gap: 0px;
}

.receipt-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: 5px;
    margin-right: -6px;
}

.receipt-brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.receipt-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    margin: 2px auto 16px auto;
}

.receipt-footer-note {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--input-border);
    text-align: center;
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    line-height: 1.4;
    font-weight: 400;
}

/* ================= INITIAL AVATAR BADGE STYLES ================= */
.initial-avatar-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--signup-btn-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

/* ================= PROJECT FILTER & GRID STYLES ================= */
.project-pill-all-active {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
}

.project-pill-default {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    opacity: 0.6;
}

.project-card {
    background: var(--input-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--input-border);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-thumbnail-wrap {
    height: 140px;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.project-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    border-radius: 6px;
}

.project-category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

.project-card-body {
    padding: 14px;
}

.project-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-color);
}

.project-card-desc {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.75;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.project-actions-row {
    display: flex;
    gap: 8px;
}

.project-launch-btn {
    flex: 1;
    text-align: center;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.project-launch-btn:hover {
    opacity: 0.92;
}

.project-notify-btn-active {
    flex: 1;
    background: #34C759;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
}

.project-notify-btn-default {
    flex: 1;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.project-notify-btn-default:hover {
    opacity: 0.88;
}

/* ================= PROMOTIONS CAROUSEL STYLES ================= */
.promo-empty-banner {
    justify-content: center;
    text-align: center;
    background: #1A1A1E;
}

.promo-empty-title {
    color: #fff;
}

.promo-empty-desc {
    color: #94A3B8;
}

.promo-image-card {
    background: #111114 !important;
    height: 155px;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--input-border);
}

.promo-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.promo-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.promo-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.15) 10%, rgba(10, 10, 14, 0.92) 80%);
    z-index: 1;
}

.promo-floating-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 149, 0, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.promo-card-content {
    z-index: 2;
    position: relative;
}

.promo-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.promo-card-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: #E2E8F0;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-fallback-badge {
    font-size: 9px;
    background: #FF9500;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* ================= FAQ RENDER & FILTER STYLES ================= */
.faq-empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 13px;
}

.faq-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-card:hover {
    border-color: var(--signup-btn-bg);
}

.faq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-card-question {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.faq-card-category {
    font-size: 10px;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-color);
    opacity: 0.75;
}

.faq-ans {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 8px;
    display: none;
    line-height: 1.4;
}

.faq-pill-default {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
}

.faq-pill-active {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-color: var(--signup-btn-bg);
}

/* ================= CHATBOT MESSAGE & HANDOFF STYLES ================= */
.chat-message-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.chat-message-row.user {
    align-items: flex-end;
}

.chat-message-row.bot {
    align-items: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    font-size: 13px;
    max-width: 80%;
    word-break: break-word;
}

.chat-bubble.user {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-radius: 14px 14px 2px 14px;
}

.chat-bubble.bot {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 14px 14px 14px 2px;
}

.chat-timestamp {
    font-size: 10px;
    color: var(--text-color);
    opacity: 0.55;
    margin-top: 3px;
}

.human-handoff-container {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.human-handoff-btn {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: opacity 0.15s ease;
}

.human-handoff-btn:hover {
    opacity: 0.92;
}

/* ================= SUPPORT TICKETS STYLES ================= */
.ticket-empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 13px;
}

.ticket-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-title-id {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 600;
}

.ticket-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.ticket-desc {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.ticket-admin-update {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.65;
    border-top: 1px dashed var(--input-border);
    padding-top: 4px;
    margin-top: 2px;
}

/* ================= REFERRAL CARDS STYLES ================= */
.referral-card-base {
    background: var(--input-bg);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.referral-card-success {
    border: 1px solid var(--input-border);
}

.referral-card-pending {
    border: 1px solid rgba(255, 214, 10, 0.6); /* Semantic warning border */
}

.referral-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.referral-username {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 600;
}

.referral-bonus-text {
    font-size: 12px;
    color: #34C759;
    font-weight: 700;
}

.referral-pending-text {
    font-size: 11px;
    color: #FF9500;
    font-weight: 600;
}

.referral-details-row {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.75;
    display: flex;
    justify-content: space-between;
}

.referral-status-success-bold {
    color: #34C759;
    font-weight: 600;
}

.referral-footer-note {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    border-top: 1px dashed var(--input-border);
    padding-top: 4px;
    margin-top: 2px;
}

/* ================= REFERRAL LIST & HEADER STYLES ================= */
.referral-header-badge {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
}

.referral-list-empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 13px;
}

/* ================= INITIAL AVATAR BADGE STYLES (DASHBOARD) ================= */
.initial-avatar-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

/* ================= TRANSACTION CARD STYLES ================= */
.transaction-card {
    cursor: pointer;
    padding: 12px;
    margin-bottom: 10px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tx-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tx-card-service-title {
    font-weight: bold;
    color: var(--text-color);
}

.tx-card-amount {
    color: var(--text-color);
    opacity: 0.75;
}

.tx-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
}

.tx-card-status-badge {
    text-transform: capitalize;
}

.tx-card-date {
    color: var(--text-color);
    opacity: 0.6;
}

/* ================= NETWORK CARD SELECTION STYLES ================= */
.network-card {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.network-card.selected {
    border-color: var(--signup-btn-bg);
}

/* ================= AIRTIME VIEW NAVIGATION STYLES ================= */
.network-card-default {
    border-color: var(--input-border);
}

/* ================= AIRTIME FORM RESET STYLES ================= */
.network-card-reset {
    border-color: var(--input-border);
}

/* ================= DATA SERVICE STYLES ================= */
.data-network-card-default {
    border-color: var(--input-border);
}

.data-network-card-selected {
    border-color: var(--signup-btn-bg);
}

/* Force network cards back to default when their radio is not checked */
.network-card-styled:not(:has(input:checked)) {
    border-color: var(--input-border) !important;
}
.data-pill-default {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    transition: all 0.2s ease;
}

.data-pill-active {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-color: var(--signup-btn-bg);
}

/* ================= ENTERTAINMENT SERVICE STYLES ================= */
.provider-card-default {
    border-color: var(--input-border);
}

.provider-card-selected {
    border-color: var(--signup-btn-bg);
}

.smartcard-feedback-error {
    display: block;
    color: #FF3B30;
}

.smartcard-feedback-loading {
    display: block;
    color: var(--text-color);
    opacity: 0.6;
}

.smartcard-feedback-success {
    display: block;
    color: #34C759;
}

.customer-info-box {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.customer-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 10px;
}

.customer-info-label-subscriber {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    opacity: 0.65;
    font-weight: 600;
}

.customer-info-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 2px 0 0 0;
}

.customer-info-renewal-wrapper {
    text-align: right;
}

.customer-info-label-renewal {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34C759;
    font-weight: 600;
}

.customer-info-renewal-price {
    font-size: 15px;
    font-weight: 700;
    color: #34C759;
    margin: 2px 0 0 0;
}

.customer-info-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 14px;
}

.customer-info-bouquet-highlight {
    color: var(--signup-btn-bg);
    font-weight: 600;
}

.customer-info-action-box {
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 16px;
}

.customer-info-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
}

.customer-info-radio-input {
    accent-color: var(--signup-btn-bg);
}

/* ================= ELECTRICITY SERVICE STYLES ================= */
.electricity-feedback {
    font-size: 13px;
    margin-top: 4px;
    color: var(--text-color);
}

.electricity-customer-box {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.electricity-customer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.electricity-customer-row-flex {
    display: flex;
    justify-content: space-between;
}

.electricity-customer-label {
    color: var(--text-color);
    opacity: 0.65;
    font-weight: 600;
}

.electricity-customer-name {
    color: var(--text-color);
    font-weight: 600;
}

.electricity-customer-address {
    color: var(--text-color);
    opacity: 0.85;
    text-align: right;
    max-width: 65%;
}

/* ================= BETTING SERVICE STYLES ================= */
.betting-loading-state {
    padding: 12px;
    color: var(--text-color);
    opacity: 0.65;
    font-size: 14px;
}

.betting-error-state {
    padding: 12px;
    color: #FF3B30;
    font-size: 14px;
}

.betting-dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: background-color 0.15s ease;
}

.betting-dropdown-item:hover {
    background-color: var(--input-border);
}

/* ================= EXAM PINS SERVICE STYLES ================= */
.exam-dropdown-loading-text {
    color: var(--text-color);
    opacity: 0.65;
}

.exam-dropdown-option {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.exam-dropdown-option:hover {
    background-color: var(--input-border);
}

.exam-dropdown-option-default {
    background: var(--input-bg);
}

.exam-quantity-input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    cursor: not-allowed;
    opacity: 0.8;
}

.exam-field-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* ================= INTERNET SERVICE STYLES ================= */
.internet-loading-text {
    color: var(--text-color);
    opacity: 0.65;
}

.internet-error-text {
    color: #FF3B30;
}

/* ================= SESSION RESTORATION & PROMOTIONS CAROUSEL STYLES ================= */
.initial-avatar-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

.promo-fallback-banner {
    min-width: 100%;
    box-sizing: border-box;
    background: #111114;
    height: 155px;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    border: 1px solid var(--input-border);
}

.promo-fallback-icon {
    background: rgba(10, 10, 14, 0.85);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34C759;
    font-size: 20px;
}

.promo-fallback-content {
    z-index: 2;
    position: relative;
}

.promo-fallback-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.promo-fallback-desc {
    font-size: 12.5px;
    font-weight: 500;
    color: #F1F5F9;
    margin: 0;
    line-height: 1.35;
}

.promo-image-slide {
    min-width: 100%;
    box-sizing: border-box;
    background: #0A0A0E !important;
    height: 155px;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    border: 1px solid var(--input-border);
    flex-shrink: 0;
}

.promo-image-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.promo-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1; /* 👈 Changed from 0.15 to 1 for 100% full brightness */
}

.promo-image-gradient {
    position: absolute;
    inset: 0;
    background: none; /* 👈 Disabled the dark overlay gradient */
    z-index: 1;
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 149, 0, 0.95);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.promo-image-content-box {
    z-index: 2;
    position: relative;
    background: #141419;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.promo-image-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 0 0 3px 0;
    letter-spacing: -0.2px;
}

.promo-image-desc {
    font-size: 12px;
    font-weight: 500;
    color: #E2E8F0 !important;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-minimal-slide {
    min-width: 100%;
    box-sizing: border-box;
    background: #1A1A1E !important;
    height: 155px;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--input-border);
    flex-shrink: 0;
}

.promo-minimal-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #34C759;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.promo-minimal-content {
    flex: 1;
    position: relative;
}

.promo-minimal-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-minimal-badge {
    font-size: 9px;
    background: #FF9500;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-minimal-desc {
    font-size: 12.5px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.4;
}

/* ================= PROJECT VIEW STYLES ================= */

.project-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--input-border);
  background-color: var(--bg-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--signup-btn-bg);
  transition: color 0.15s ease;
}

.project-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

#project-count-badge {
  font-size: 12px;
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.project-scroll-content {
  padding: 16px;
  padding-bottom: 100px;
  box-sizing: border-box;
}

.project-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.project-filter-row::-webkit-scrollbar {
  display: none;
}

.project-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-pill.active {
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  border-color: var(--signup-btn-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ================= HELP & SUPPORT VIEW STYLES ================= */

.help-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--input-border);
  background-color: var(--bg-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.help-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.help-reply-badge {
  font-size: 11px;
  background: rgba(52, 199, 89, 0.15);
  color: #34C759;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.help-scroll-content {
  padding: 16px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.help-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.help-action-btn {
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.help-action-btn:active {
  transform: scale(0.97);
}

.help-action-btn.chat-btn {
  background: rgba(103, 58, 183, 0.12);
  border-color: rgba(103, 58, 183, 0.25);
}

.help-action-btn.chat-btn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--signup-btn-bg);
}

.help-action-btn.report-btn {
  background: rgba(255, 149, 0, 0.12);
  border-color: rgba(255, 149, 0, 0.25);
}

.help-action-btn.report-btn span {
  font-size: 12px;
  font-weight: 600;
  color: #FF9500;
}

.help-action-btn.tickets-btn {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.25);
  position: relative;
}

.help-action-btn.tickets-btn span {
  font-size: 12px;
  font-weight: 600;
  color: #34C759;
}

#ticket-badge-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #FF3B30;
  color: #fff;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.faq-search-wrapper {
  position: relative;
}

.faq-search-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  background: var(--input-bg);
  color: var(--text-color);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.faq-search-wrapper input:focus {
  border-color: var(--signup-btn-bg);
}

.faq-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.6;
}

.faq-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.faq-filter-row::-webkit-scrollbar {
  display: none;
}

.faq-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-pill.active {
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  border-color: var(--signup-btn-bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ================= SUPPORT & CHAT MODALS STYLES ================= */

/* Chat Modal Customization */
.chat-modal-content {
  max-width: 380px;
  height: 480px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
}

.chat-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--input-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.chat-modal-header h3 {
  font-size: 15px;
  margin: 0;
  color: var(--text-color);
}

.chat-online-badge {
  font-size: 11px;
  color: #34C759;
  font-weight: 600;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-messages-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-color);
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 80%;
  line-height: 1.4;
}

.chat-bubble.assistant-bubble {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
  align-self: flex-start;
}

.chat-chips-row {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: var(--input-bg);
  border-top: 1px solid var(--input-border);
  scrollbar-width: none;
}

.chat-chips-row::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  background: var(--bg-color);
  border: 1px solid var(--input-border);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chat-chip:hover {
  border-color: var(--signup-btn-bg);
}

.chat-input-form {
  display: flex;
  padding: 10px 12px;
  border-top: 1px solid var(--input-border);
  background: var(--input-bg);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  gap: 8px;
  align-items: center;
}

.chat-input-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.15s ease;
}

.chat-input-form input:focus {
  border-color: var(--signup-btn-bg);
}

.chat-send-btn {
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.chat-send-btn:hover {
  opacity: 0.92;
}

/* Report & Tickets Modal Specifics */
.report-modal-content {
  max-width: 360px;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--input-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.15s ease;
}

.report-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  resize: none;
  background: var(--input-bg);
  color: var(--text-color);
  transition: border-color 0.15s ease;
}

.report-form textarea:focus,
.report-form select:focus {
  border-color: var(--signup-btn-bg);
}

.report-submit-btn {
  margin-top: 4px;
  padding: 12px;
}

.tickets-modal-content {
  max-width: 380px;
}

.tickets-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}

/* ================= SOCIAL & REACH OUT CONTACT CARD ================= */

.social-contact-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-contact-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.75;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.social-link-item:active {
    transform: scale(0.97);
}

/* Platform-specific subtle backgrounds using RGBA for dark/light compatibility */
.social-link-item.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.social-link-item.email {
    background: rgba(103, 58, 183, 0.12);
    color: var(--signup-btn-bg);
    border: 1px solid rgba(103, 58, 183, 0.25);
}

.social-link-item.facebook {
    background: rgba(24, 119, 242, 0.12);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.25);
}

.social-link-item.tiktok {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--input-border);
}

#data-plan {
    width: 100%;
    margin: 0 auto;
    max-height: 180px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ================= CUSTOM DROPDOWN STYLES ================= */

.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s ease, background-color 0.2s ease;
}

.dropdown-selected::after {
    content: '▼';
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    pointer-events: none;
}

.dropdown-options-list {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-bottom: 6px;
}

.dropdown-options-list.hidden {
    display: none;
}

.dropdown-option-item {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 1px solid var(--input-border);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-option-item:last-child {
    border-bottom: none;
}

.dropdown-option-item:hover {
    background: var(--bg-color);
    color: var(--signup-btn-bg);
}

/* Default or Data/Cable TV (opens upward) */
.custom-dropdown-container .dropdown-options-list {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-bottom: 6px;
}

/* Specific override for Electricity dropdown (opens downward) */
#customElectricityDropdown .dropdown-options-list {
    top: 100%;
    bottom: auto;
    margin-top: 4px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Make Internet dropdown options open downward */
#internet-view .dropdown-options-list {
    top: 100%;
    bottom: auto;
    margin-top: 6px;
    margin-bottom: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dropdown-menu.hidden {
    display: none !important;
}

/* ================= REWARDS & REFERRAL VIEW STYLES ================= */

.rewards-header {
    padding: 16px;
    border-bottom: 1px solid var(--input-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rewards-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.rewards-badge {
    font-size: 11px;
    background: rgba(255, 193, 7, 0.15);
    color: #FFB300;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.rewards-scroll-content {
    padding: 16px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Coin Balance Card - Premium Gradient Focal Surface */
.coin-balance-card {
    background: linear-gradient(135deg, var(--signup-btn-bg) 0%, #4A148C 100%);
    border-radius: 16px;
    padding: 20px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--input-border);
}

.coin-balance-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coin-subtitle {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#coin-balance-display {
    font-size: 32px;
    font-weight: 800;
    margin: 2px 0 0 0;
}

.coin-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
    display: flex;
}

.coin-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coin-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.9;
}

.coin-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

#coin-progress-bar {
    width: 70%;
    height: 100%;
    background: #FFD700;
    border-radius: 3px;
}

.redeem-coins-btn {
    background: #FFD700;
    color: #111114;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.redeem-coins-btn:active {
    opacity: 0.88;
    transform: scale(0.98);
}

/* Referral Link & Share Box */
.referral-box {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.referral-box h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.referral-desc {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.referral-desc strong {
    color: var(--text-color);
    opacity: 1;
}

.referral-input-row {
    display: flex;
    gap: 8px;
}

.referral-input-row input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.referral-input-row input:focus {
    border-color: var(--signup-btn-bg);
}

.referral-input-row button {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.referral-input-row button:hover {
    opacity: 0.92;
}

/* Cashback Transparency Box */
.cashback-transparency-box {
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cashback-check-icon {
    background: #34C759;
    color: #FFFFFF;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
}

.cashback-transparency-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: #34C759;
}

.cashback-transparency-box p {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.85;
    margin: 2px 0 0 0;
}

/* Referral List Section */
.referral-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-list-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

#referral-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================= MENU & SETTINGS VIEW STYLES ================= */

.menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--input-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.menu-version-badge {
  font-size: 11px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
  opacity: 0.75;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.menu-scroll-content {
  padding: 16px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

/* Card wrappers */
.menu-card {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Menu View Avatar Styling */
#menu-view .profile-preview-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

#menu-view .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(103, 58, 183, 0.25);
}

#menu-view .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Disable pointer interactions on static Profile card */
#menu-view .menu-card:first-of-type {
    cursor: default !important;
    user-select: none;
}

#menu-view .profile-preview-row,
#menu-view .profile-avatar,
#menu-view #profile-name-title {
    pointer-events: none;
}

/* Readonly email field static appearance */
#menu-view .readonly-input {
    background-color: var(--bg-color);
    color: var(--text-color);
    opacity: 0.6;
    border: 1px solid var(--input-border);
    cursor: default;
    pointer-events: none;
}

/* Force strict single horizontal line layout */
.profile-upgrade-row {
  margin-top: 14px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.profile-upgrade-row:hover {
  opacity: 0.9;
}

.upgrade-row-text {
  display: flex !important;
  align-items: center !important;
  flex: 1;
}

.upgrade-row-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
}

/* Force button to sit on the far right on the same line */
.profile-upgrade-row .upgrade-row-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important; /* Overrides any inherited full width */
  margin: 0 !important;
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0; /* Prevents button from squeezing down */
}

.reseller-modal-card {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  width: 90%;
  max-width: 380px;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reseller-modal-header {
  display: flex;
  justify-content: flex-end;
}

.reseller-modal-close {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
}

.reseller-modal-close:hover {
  opacity: 1;
}

.reseller-modal-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reseller-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(103, 58, 183, 0.12);
  color: var(--signup-btn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.reseller-modal-title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-color);
}

.reseller-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.4;
  margin: 0 0 18px 0;
}

.reseller-price-card {
  width: 100%;
  background: var(--bg-color);
  border: 1px dashed var(--input-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #8E8E93;
}

.price-amount {
  margin: 4px 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-color);
}

.price-subtext {
  font-size: 0.72rem;
  color: var(--text-color);
  opacity: 0.6;
}

.btn-reseller-action {
  width: 100%;
  background: var(--signup-btn-bg);
  color: var(--signup-text-color);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-reseller-action:hover {
  opacity: 0.9;
}

.btn-reseller-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Appearance Theme Grid */
.theme-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-btn {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    /* Force high-contrast text color for inactive buttons in both modes */
    color: var(--text-color);
    opacity: 0.85;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    border-color: var(--signup-btn-bg);
    opacity: 1;
}

/* Active Button State (Clean Purple Tint & Accent) */
.theme-btn.active {
    border-color: var(--signup-btn-bg) !important;
    background: rgba(103, 58, 183, 0.15) !important;
    color: var(--signup-btn-bg) !important;
    opacity: 1 !important;
}

.push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.push-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.push-row-title {
  font-size: 15px;
  color: var(--text-color);
}
.push-row-sub {
  font-size: 12.5px;
  color: var(--text-color);
  opacity: 0.65;
  line-height: 1.4;
}

.push-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
}
.push-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.push-slider {
  position: absolute;
  inset: 0;
  background: var(--input-border);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.push-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.push-switch input:checked + .push-slider {
  background: var(--signup-btn-bg);
}
.push-switch input:checked + .push-slider::before {
  transform: translateX(20px);
}
.push-switch input:disabled {
  cursor: not-allowed;
}
.push-switch input:disabled + .push-slider {
  opacity: 0.5;
}

/* =========================================================================
   CHANGE PASSWORD MODAL & FORM STYLES
   ========================================================================= */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    padding: 0;
    transition: opacity 0.15s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Modal form inputs & button styling */
#change-password-form .input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

#change-password-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 6px;
}

#change-password-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

#change-password-form input[type="password"]:focus {
    border-color: var(--signup-btn-bg);
    outline: none;
}

.primary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.primary-btn:hover {
    opacity: 0.92;
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-action-btn {
    width: 100%;
    padding: 10px 14px;
    margin-top: 8px;
    background-color: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-action-btn:hover {
    background-color: rgba(103, 58, 183, 0.12);
    border-color: var(--signup-btn-bg);
}

.menu-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
}

.menu-info-row strong {
    color: var(--text-color);
    opacity: 1;
}

.legal-modal-box {
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-body-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.legal-body-content p {
    margin-bottom: 12px;
}

.legal-body-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

#install-pwa-btn, 
.pwa-link {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--input-border) !important;
}

/* ==========================================
   MENU CARD & PWA INSTALL BUTTON STYLING
   ================================---------- */

.menu-card {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.menu-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: 12px;
}

.menu-link-row.pwa-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.menu-link-row.pwa-link:hover {
    background-color: rgba(103, 58, 183, 0.08); /* Adapts smoothly to light/dark themes */
}

.menu-link-row.pwa-link:active {
    transform: scale(0.98);
}

.menu-link-row.pwa-link .download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(103, 58, 183, 0.3);
    transition: transform 0.2s ease;
}

.menu-link-row.pwa-link:hover .download-icon {
    transform: translateY(1px);
}

/* ==========================================
   CUSTOM PWA INSTALL MODAL (Theme-Aware)
   ================================---------- */

.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pwa-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pwa-modal-card {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(15px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-overlay.active .pwa-modal-card {
    transform: translateY(0) scale(1);
}

.pwa-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pwa-modal-close-btn:hover {
    opacity: 1;
}

.pwa-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pwa-modal-app-icon img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pwa-modal-titles h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.pwa-modal-titles p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.65;
}

.pwa-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

.feature-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* iOS Specific Steps Box */
.pwa-ios-steps {
    background-color: var(--bg-color);
    border: 1px dashed var(--input-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ios-heading {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.pwa-ios-steps ol {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pwa-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-primary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.pwa-primary-btn:hover {
    opacity: 0.92;
}

.pwa-primary-btn:active {
    transform: scale(0.98);
}

.pwa-secondary-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pwa-secondary-btn:hover {
    opacity: 1;
}

/* =========================================================================
   FULL & SCROLLABLE LEGAL MODAL STYLES
   ========================================================================= */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
}

.auth-modal-content.legal-modal-box {
    width: 100%;
    max-width: 550px;
    height: 85vh;
    max-height: 700px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--input-border);
    flex-shrink: 0;
}

.auth-modal-content .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Scrollable body content area */
.legal-body-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-top: 16px;
    padding-right: 8px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
}

/* Customizing scrollbar appearance */
.legal-body-content::-webkit-scrollbar {
    width: 6px;
}

.legal-body-content::-webkit-scrollbar-track {
    background: transparent;
}

.legal-body-content::-webkit-scrollbar-thumb {
    background: var(--input-border);
    border-radius: 4px;
}

.legal-body-content h4 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--signup-btn-bg);
}

.legal-body-content p {
    margin-bottom: 14px;
}

.legal-body-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-body-content li {
    margin-bottom: 6px;
}

/* Log Out Button Styling */
.logout-container {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background-color: #FF3B30; /* Red indicator for destructive actions */
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.logout-btn:hover {
    background-color: #E02D23;
}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================================
   CUSTOM LOGOUT CONFIRMATION MODAL
   ========================================================================= */

.logout-modal-box {
    position: relative;
    max-width: 420px;
    padding: 28px 24px 20px 24px;
    border-radius: 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
}

.modal-close-corner {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    color: var(--text-color);
    opacity: 0.6;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.modal-close-corner:hover {
    opacity: 1;
}

.logout-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 12px 0 28px 0;
    text-align: left;
}

.logout-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cancel-btn:hover {
    background-color: var(--bg-color);
    opacity: 1;
}

.confirm-logout-btn {
    background-color: #EF5350;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.confirm-logout-btn:hover {
    background-color: #E53935;
}

.confirm-logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================= NOTIFICATION BUTTON STYLES ================= */
.notification-trigger-btn {
    position: relative;
}

.notification-badge-init {
    display: none;
}

/* ================= TRANSACTION FILTER ROW STYLES ================= */
.tx-filter-row-custom {
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* ================= REDEMPTION PROGRESS BAR STYLES ================= */
.coin-progress-bar-init {
    width: 0%;
}

/* ================= MENU VIEW & MODAL STYLES ================= */
.profile-img-hidden {
    display: none;
}

.clickable-action {
    cursor: pointer;
}

.modal-hidden {
    display: none;
}

/* ================= AIRTIME SERVICE VIEW STYLES ================= */
.airtime-view-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.airtime-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
    color: var(--text-color);
}

.airtime-header-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.airtime-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.airtime-input-group-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.airtime-input-group-sm {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.airtime-section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.airtime-field-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* ================= NETWORK SELECTION GRID ================= */
.airtime-network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-items: center;
}

/* Circular network card container (Scaled to 50px) */
.airtime-network-card {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    border: 2px solid var(--input-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff; /* White circular base so logos pop cleanly in dark & light mode */
    padding: 0;
    overflow: hidden;
}

.airtime-network-card:hover {
    border-color: var(--signup-btn-bg);
}

/* Active Selected State */
.airtime-network-card.active,
.airtime-network-card[data-selected="true"],
.airtime-network-card:has(.airtime-network-radio:checked) {
    border-color: var(--signup-btn-bg) !important;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.25); /* Sleek active ring effect */
}

/* Centered inner logo fitting cleanly inside the circle */
.airtime-net-logo {
    position: static !important;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
}

.airtime-network-radio {
    display: none;
}

/* Hide the old inside tag since labels now sit outside */
.airtime-network-label-tag {
    display: none;
}

/* External network text label (matches dashboard icon titles) */
.network-label-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-top: 2px;
}

.airtime-input-field {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.airtime-input-field:focus {
    border-color: var(--signup-btn-bg);
}

.airtime-amount-pills-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.airtime-amount-pill-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.airtime-amount-pill-btn:hover {
    border-color: var(--signup-btn-bg);
}

.airtime-submit-btn {
    padding: 14px;
    border-radius: 8px;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: opacity 0.15s ease;
}

.airtime-submit-btn:hover {
    opacity: 0.92;
}

.airtime-spinner {
    margin-left: 8px;
}

/* Wrapper to position the contact icon inside the field */
.input-with-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Ensure typed numbers don't slide under the contact button */
.input-with-icon-wrapper .airtime-input-field {
    width: 100%;
    padding-right: 46px; 
}

/* Purple contact picker icon button */
.contact-picker-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--signup-btn-bg); /* Signature purple accent */
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.contact-picker-btn:hover {
    background-color: rgba(103, 58, 183, 0.12);
}

.contact-picker-btn:active {
    opacity: 0.7;
}

/* ================= DATA & ENTERTAINMENT SERVICE VIEWS ================= */
.sub-view-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.sub-view-header-flex {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
    color: var(--text-color);
}

.sub-view-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.service-form-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group-col-10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group-col-6 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-label-bold {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.field-label-medium {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* Grids */
.network-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-items: center;
}

.provider-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
}

.network-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Circular Network & Cable Provider Cards (Scaled to 50px) */
.network-card-styled,
.provider-card-styled {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    border: 2px solid var(--input-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff; /* Clean white circular base so logos pop cleanly in dark & light mode */
    padding: 0;
    overflow: hidden;
}

.network-card-styled:hover,
.provider-card-styled:hover {
    border-color: var(--signup-btn-bg);
}

/* Active Selected States */
.network-card-styled:has(.hidden-radio-input:checked),
.provider-card-styled:has(.hidden-radio-input:checked),
.network-card-styled.active,
.provider-card-styled.active {
    border-color: var(--signup-btn-bg) !important;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.25);
}

.hidden-radio-input {
    display: none;
}

/* Centered inner logos scaled to 42px */
.net-logo-absolute,
.provider-logo-absolute {
    position: static !important;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    padding: 2px !important;
    background: #ffffff;
}

/* External Text Labels sitting underneath */
.network-label-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

.card-label-tag,
.provider-label-tag {
    display: none; /* Hid old interior rectangular label boxes */
}

/* Input Fields with Contact Picker Wrapper */
.input-with-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon-wrapper .form-input-styled {
    width: 100%;
    padding-right: 46px;
}

.contact-picker-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--signup-btn-bg);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.contact-picker-btn:hover {
    background-color: rgba(103, 58, 183, 0.12);
}

.form-input-styled {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input-styled:focus {
    border-color: var(--signup-btn-bg);
}

.form-input-readonly {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--bg-color);
    color: var(--text-color);
    opacity: 0.65;
    cursor: not-allowed;
}

.data-type-scroll-container {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.data-type-scroll-container::-webkit-scrollbar {
    display: none;
}

.data-type-pill-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.data-type-pill-btn:hover {
    border-color: var(--signup-btn-bg);
}

.data-type-pill-btn.active {
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    border-color: var(--signup-btn-bg);
}

.feedback-text-sm {
    font-size: 13px;
    font-weight: 500;
    display: none;
    margin-top: 2px;
    color: var(--text-color);
}

.section-wrapper-hidden {
    display: none;
}

.form-submit-btn-primary {
    padding: 14px;
    border-radius: 12px;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: opacity 0.15s ease;
}

.form-submit-btn-primary:hover {
    opacity: 0.92;
}

.btn-spinner-spacing {
    margin-left: 8px;
}

/* Sleek Compact Customer Verification Card */
.customer-compact-info-card {
    padding: 8px 12px; /* Tighter padding */
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced gap between rows */
    margin-top: 4px;
}

.compact-card-inline-details {
    font-size: 11px;
    opacity: 0.85;
    border-top: 1px dashed var(--input-border);
    border-bottom: 1px dashed var(--input-border);
    padding: 4px 0;
}

.compact-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-card-row-border {
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 6px;
}

.compact-card-row-sm {
    font-size: 11px;
}

.compact-info-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.compact-info-group.text-right {
    text-align: right;
}

.compact-card-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.5;
    letter-spacing: 0.4px;
}

.compact-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.compact-card-subtext {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.8;
}

.compact-highlight-text {
    color: var(--signup-btn-bg);
    font-weight: 600;
}

.compact-highlight-green {
    color: #34C759;
    font-weight: 700;
}

/* Action Segmented Pills */
.compact-card-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.compact-radio-pill {
    padding: 5px 8px; /* Slimmer height for buttons */
    font-size: 11px;
    border-radius: 6px;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
}

.compact-radio-pill:hover {
    border-color: var(--signup-btn-bg);
}

.compact-radio-input {
    display: none;
}

.compact-radio-pill:has(.compact-radio-input:checked) {
    background: rgba(103, 58, 183, 0.15);
    border-color: var(--signup-btn-bg);
    color: var(--signup-btn-bg);
}

/* ================= ELECTRICITY & BETTING SERVICE VIEWS ================= */

.meter-type-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meter-type-btn-prepaid {
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--signup-btn-bg);
    background: rgba(103, 58, 183, 0.12);
    color: var(--signup-btn-bg);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.meter-type-btn-postpaid {
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.meter-type-btn-postpaid:hover {
    border-color: var(--signup-btn-bg);
}

.electricity-pills-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.electricity-amount-pill-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.electricity-amount-pill-btn:hover {
    border-color: var(--signup-btn-bg);
}

#electricity-customer-card {
    margin-top: 4px;
}

#electricity-customer-card .compact-card-subtext {
    word-break: break-word;
    text-align: right;
    max-width: 70%;
}

.betting-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.betting-dropdown-trigger-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-color);
    transition: border-color 0.15s ease;
}

.betting-dropdown-trigger-box:hover {
    border-color: var(--signup-btn-bg);
}

.betting-dropdown-arrow-icon {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
}

.betting-dropdown-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
}

.betting-customer-card-box {
    padding: 12px 16px;
    border-radius: 12px;
    background-color: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.betting-customer-card-label {
    font-size: 13px;
    color: #34C759;
    font-weight: 500;
}

.betting-customer-card-strong {
    font-size: 14px;
    color: #34C759;
    font-weight: 700;
}

.betting-summary-card-box {
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.85;
}

.betting-summary-row {
    display: flex;
    justify-content: space-between;
}

.betting-summary-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 700;
    border-top: 1px solid var(--input-border);
    padding-top: 8px;
}

/* ================= MORE SERVICES, EXAM PINS & INTERNET VIEWS ================= */

.sub-view-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.sub-view-header-flex {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
    color: var(--text-color);
}

.sub-view-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.more-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.more-service-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Fully Round Circular Button Container */
.more-service-card {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50% !important;
    border: 2px solid var(--input-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--signup-btn-bg);
    padding: 0;
    overflow: hidden;
}

.more-service-card:hover {
    border-color: var(--signup-btn-bg);
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.2);
    transform: translateY(-2px);
}

/* Inner Icon Circles */
.more-icon-box-blue {
    width: 56px;
    height: 56px;
    background: rgba(103, 58, 183, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signup-btn-bg);
    font-size: 22px;
}

.more-icon-box-amber {
    width: 56px;
    height: 56px;
    background: rgba(255, 149, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF9500;
    font-size: 22px;
}

/* External Labels Stacked Underneath */
.more-label-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.more-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.more-card-desc {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    line-height: 1.2;
}




.service-form-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group-col-6 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group-relative {
    position: relative;
}

.field-label-medium {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.custom-dropdown-display-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.15s ease, background-color 0.2s ease;
}

.custom-dropdown-display-box:hover {
    border-color: var(--signup-btn-bg);
}

/* Only mute when it's strictly an unselected placeholder */
.custom-dropdown-display-box .placeholder-text-muted {
    color: var(--text-color);
    opacity: 0.55;
}

/* Ensure selected text inside the dropdown display is fully solid and crisp */
.custom-dropdown-display-box:not(:has(.placeholder-text-muted)),
#exam-selected-display:not(:has(.placeholder-text-muted)),
#exam-selected-display span:not(.placeholder-text-muted) {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

.dropdown-arrow-icon {
    transition: transform 0.2s ease;
    color: var(--text-color);
    opacity: 0.6;
}

.custom-dropdown-options-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.form-input-styled {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input-styled:focus {
    border-color: var(--signup-btn-bg);
}

.form-input-readonly {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 15px;
    background: var(--bg-color);
    color: var(--text-color);
    opacity: 0.65;
    cursor: not-allowed;
}

.form-submit-btn-primary {
    padding: 14px;
    border-radius: 8px;
    background: var(--signup-btn-bg);
    color: var(--signup-text-color);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: opacity 0.15s ease;
}

.form-submit-btn-primary:hover {
    opacity: 0.92;
}

.btn-spinner-spacing {
    margin-left: 8px;
}




/* ====================================================
   UNIFIED RESPONSIVE & FIXED NAVIGATION PATCH
   ================================================    */

/* --- 1. BASE MOBILE DASHBOARD STYLES --- */
.dashboard-layout {
    text-align: left;
    position: relative;
    padding-top: 66px; 
    padding-bottom: 54px;
}

/* Fixed Header Bar (Mobile Default) */
.dashboard-header {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 8px 16px;
    z-index: 100;
}

.user-profile,
.user-profile-section,
.user-profile-info,
.header-user-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile:hover .profile-avatar {
    border-color: var(--signup-btn-bg);
    transform: scale(1.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(103, 58, 183, 0.2);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.user-greeting {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-greeting h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.user-greeting p {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.65;
    margin: 2px 0 0 0;
}

.icon-btn {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--signup-btn-bg);
    opacity: 0.9;
}

/* Hidden file input for profile picture upload */
#profile-upload-input {
    display: none;
}

/* Expanding Search Bar Styling */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--input-border);
    border-radius: 20px;
    background: var(--input-bg);
    padding: 0 16px 0 36px;
    font-size: 13px;
    color: var(--text-color);
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, border-color 0.15s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.search-container.active .search-input {
    width: 150px;
    opacity: 1;
    pointer-events: auto;
    border-color: var(--signup-btn-bg);
}

.search-input:focus {
    border-color: var(--signup-btn-bg);
}

.search-icon-absolute {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

/* --- Notification View Styles --- */
#notification-view {
    display: none;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
}

#notification-view.active {
    display: flex;
}

.notification-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--input-border);
}

.back-to-dashboard-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.65;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.notification-card.unread {
    opacity: 1;
    background-color: var(--input-bg);
    font-weight: 500;
    border: 1px solid var(--signup-btn-bg);
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-color);
}

.notification-time {
    font-size: 11.5px;
    color: var(--text-color);
    opacity: 0.6;
}

.notification-message {
    font-size: 12.5px;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.4;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #FF3B30;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

.dashboard-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 0px;
}

/* ====================================================
   TABLET & DESKTOP SCALE-UP (481px and Above)
   ================================================    */
@media screen and (min-width: 481px) {
    /* Lock the body viewport to prevent global page scrolling */
    body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background-color: var(--bg-color);
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        padding: 16px 24px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Active application views expand cleanly and scroll internally under the fixed nav */
    .app-view.active,
    .dashboard-layout.active,
    #dashboard-view.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 1150px !important;
        width: 100% !important;
        height: calc(100vh - 85px) !important;
        max-height: calc(100vh - 85px) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 0 90px 0 !important;
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .app-view:not(.active),
    .dashboard-layout:not(.active) {
        display: none !important;
    }

    /* Custom smooth scrollbar */
    .app-view.active::-webkit-scrollbar,
    .dashboard-layout.active::-webkit-scrollbar {
        width: 6px;
    }
    .app-view.active::-webkit-scrollbar-thumb,
    .dashboard-layout.active::-webkit-scrollbar-thumb {
        background: var(--input-border);
        border-radius: 10px;
    }

    /* Permanently Fixed Bottom Navigation Bar */
    .bottom-nav {
        position: fixed !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 1150px !important;
        width: calc(100% - 48px) !important;
        background-color: var(--input-bg);
        padding: 14px 32px !important;
        border: 1px solid var(--input-border);
        border-radius: 18px;
        box-sizing: border-box;
        display: flex !important;
        justify-content: space-around !important;
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12);
        z-index: 99999 !important;
    }

    /* --- HIDE BOTTOM NAV BAR ON PUBLIC & SUB VIEWS --- */
#landing-view.active ~ .bottom-nav,
#signin-view.active ~ .bottom-nav,
#signup-view.active ~ .bottom-nav,
#forgot-password-view.active ~ .bottom-nav,
#reset-password-view.active ~ .bottom-nav,
#notification-view.active ~ .bottom-nav,
#transaction-history-view.active ~ .bottom-nav,
#more-view.active ~ .bottom-nav,
#more-services-view.active ~ .bottom-nav,
.sub-view-container.active ~ .bottom-nav,
.hide-bottom-nav .bottom-nav {
    display: none !important;
}

    /* Sticky Header Bar properly matched & centered */
    .dashboard-header,
    .project-header,
    .help-header,
    .rewards-header,
    .menu-header {
        position: sticky !important;
        top: 0 !important;
        left: unset !important;
        transform: none !important;
        background-color: var(--bg-color);
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1050px !important;
        margin: 0 auto !important;
        padding: 16px 24px !important;
        border-bottom: 1px solid var(--input-border);
        z-index: 100;
        box-sizing: border-box;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 1. PERFECT GREETING & NAME ALIGNMENT */
    .user-profile,
    .user-profile-section,
    .user-profile-info,
    .header-user-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .user-greeting {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .user-greeting h2 {
        font-size: 15px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        color: var(--text-color);
        text-align: left !important;
    }

    .user-greeting p {
        font-size: 12.5px !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        color: var(--text-color);
        opacity: 0.65;
        text-align: left !important;
    }

    /* Align inner dashboard content wrappers and center them */
    .dashboard-scroll-content,
    .wallet-card,
    .services-section,
    .promo-carousel-wrapper,
    .airtime-view-container,
    .sub-view-container {
        max-width: 1050px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    /* DESKTOP DEFAULT SERVICE CARDS GRID */
    .services-grid {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 28px 48px !important;
        width: 100% !important;
        max-width: 1050px !important;
        margin: 0 auto !important;
    }

    .service-card,
    .services-grid .service-card {
        width: 130px !important;
        height: auto !important;
        padding: 16px 10px !important;
    }

    .service-card img,
    .service-card .service-icon,
    .service-card .icon-box,
    .services-grid .service-icon {
        width: 76px !important;
        height: 76px !important;
        font-size: 32px !important;
        border-radius: 22px !important;
    }

    .service-card span,
    .service-card p,
    .services-grid .service-card span {
        font-size: 14.5px !important;
        margin-top: 8px !important;
    }

    /* WALLET CARD */
    .wallet-card {
        padding: 32px 36px !important;
        min-height: 160px !important;
        border-radius: 24px !important;
        margin-top: 24px !important;    
        margin-bottom: 32px !important; 
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
    }

    .currency, 
    .balance-text {
        font-size: 32px !important;
        font-weight: 700 !important;
    }

    .fund-wallet-btn {
        padding: 12px 24px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
    }

    .wallet-footer-row {
        margin-top: 24px !important;
    }

    .dashboard-scroll-content {
        gap: 28px !important; 
    }

    /* PROMOTION BANNER FIX */
    .promo-carousel-wrapper {
        margin-top: 36px !important; 
        width: 100% !important;
        max-width: 1050px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .offer-banner,
    .promo-image-card,
    .promo-fallback-banner,
    .promo-image-slide,
    .promo-minimal-slide {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 4.8 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .promo-carousel-wrapper img,
    .promo-image-slide img,
    .offer-banner img {
        width: 100% !important;
        height: 100% !important;
        object-fit: fill !important;
        border-radius: 20px !important;
    }

    /* --- MORE SERVICES VIEW LAYOUT FIX --- */
    #more-services-view,
    #more-view,
    .more-services-container,
    .sub-view-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 1050px !important;
        margin: 0 auto !important;
        padding: 24px 20px 80px 20px !important;
        box-sizing: border-box;
    }

    .more-services-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 1050px !important;
        margin: 20px auto 0 auto !important;
    }

    .more-service-card {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        padding: 20px 12px !important;
        background: var(--input-bg) !important;
        border: 1px solid var(--input-border) !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .more-service-card img,
    .more-icon-box-blue,
    .more-icon-box-amber {
        width: 64px !important;
        height: 64px !important;
        font-size: 26px !important;
        border-radius: 18px !important;
        margin-bottom: 10px !important;
    }

    .more-card-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
        margin: 4px 0 2px 0 !important;
    }

    .more-card-desc {
        font-size: 11.5px !important;
        color: var(--text-color) !important;
        opacity: 0.65 !important;
    }
}

/* ====================================================
   TABLET-SPECIFIC SERVICE CARD FIT (481px to 1024px)
   ================================================    */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    .services-grid {
        gap: 16px 20px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .service-card,
    .services-grid .service-card {
        width: 95px !important;
        padding: 10px 4px !important;
    }

    .service-card img,
    .service-card .service-icon,
    .service-card .icon-box,
    .services-grid .service-icon {
        width: 58px !important;
        height: 58px !important;
        font-size: 24px !important;
        border-radius: 18px !important;
    }

    .service-card span,
    .service-card p,
    .services-grid .service-card span {
        font-size: 13px !important;
        margin-top: 6px !important;
    }

    .more-services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ====================================================
   WIDESCREEN DESKTOP SPECIFIC GRIDS & HEADERS (1025px and Above)
   ================================================    */
@media screen and (min-width: 1025px) {
    .project-card-grid,
    .projects-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
        max-width: 1150px !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .more-services-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 28px 22px !important;
        max-width: 1050px !important;
        margin: 0 auto !important;
    }

    /* Expanded desktop headers matching layout width */
    .dashboard-header,
    .project-header,
    .help-header,
    .rewards-header,
    .menu-header,
    .settings-header,
    .sub-view-header {
        max-width: 1150px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 32px !important;
        box-sizing: border-box;
    }
}

/* ====================================================
   FIX: HIDE "MORE SERVICES" VIEW BY DEFAULT ON HOME
   ================================================    */
#more-services-view,
#more-view,
.more-services-container {
    display: none !important; /* Hidden on home view by default */
}

#more-services-view.active,
#more-view.active,
.more-services-container.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 24px 20px 80px 20px !important;
    box-sizing: border-box;
}

/* ====================================================
   FIX: CIRCULAR ROUND STYLING FOR "MORE SERVICES" ICONS
   ================================================    */
@media screen and (min-width: 481px) {
    .more-service-card {
        width: 130px !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .more-service-card img,
    .more-icon-box-blue,
    .more-icon-box-amber,
    .more-service-card .icon-box,
    .more-service-card .service-icon {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important; /* Forces circular pill shape */
        object-fit: cover !important;
        background: var(--signup-btn-bg) !important;
        border: 1px solid var(--input-border) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 8px auto !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: transform 0.15s ease, border-color 0.15s ease;
    }

    .more-service-card:hover img,
    .more-service-card:hover .more-icon-box-blue,
    .more-service-card:hover .more-icon-box-amber {
        border-color: var(--signup-btn-bg) !important;
        transform: scale(1.05);
    }

    .more-card-title {
        font-size: 14.5px !important;
        font-weight: 600 !important;
        color: var(--text-color) !important;
        text-align: center !important;
        margin: 4px 0 2px 0 !important;
    }

    .more-card-desc {
        font-size: 11.5px !important;
        color: var(--text-color) !important;
        opacity: 0.65 !important;
        text-align: center !important;
    }
}