/* ==========================================================================
   G-SIP - Global-Systematic Investment Plan
   Redesigned Component UI Styles (Matching Reference Screenshots)
   ========================================================================== */

/* App Top Header Bar */
.app-header-bar {
    background: var(--header-gradient);
    color: #ffffff;
    padding: 1.25rem 1.25rem 2rem;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-md);
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.brand-header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
    overflow: hidden;
}

.brand-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.brand-header-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Language Selector & Theme Toggle Controls */
.lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

/* Announcement Ticker Bar */
.announcement-bar {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.announcement-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Action Banner Buttons Inside Header */
.header-action-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.header-action-pill {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.925rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-action-pill span {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.925rem;
    letter-spacing: -0.01em;
}

.header-action-pill i,
.header-action-pill svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.header-action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #0f172a !important;
}

.header-action-pill:hover span {
    color: #0f172a !important;
}

/* Large Redesigned Action Section Box */
.action-grid-card {
    background: var(--header-gradient);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.action-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.action-grid-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
    font-size: 0.925rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.action-grid-item span {
    color: #ffffff !important;
    font-weight: 700;
}

.action-grid-item:hover {
    opacity: 0.9;
    color: #ffffff !important;
}

.action-grid-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grid-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.85rem 0;
}

/* Auth Action Sign In / Sign Up Bar (Matching Reference Screenshot 1) */
.auth-action-bar {
    background: var(--header-gradient);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.auth-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    transition: opacity var(--transition-fast);
}

.auth-action-btn span {
    color: #ffffff !important;
    font-weight: 700;
}

.auth-action-btn:hover {
    opacity: 0.88;
    color: #ffffff !important;
}

.auth-bar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

/* Standardized Rounded Cards */
.card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Task & Reward Hall Cards (Matching Reference Screenshot 1) */
.task-hall-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.task-card-left {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-lock-avatar {
    width: 54px;
    height: 54px;
    background: var(--bg-card-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.task-card-right {
    background: var(--header-gradient);
    color: #ffffff;
    min-width: 140px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.task-card-right.unlocked {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

/* Stacked Investment Plan Cards (VIP Section - Matching Screenshot 2) */
.plan-vip-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    align-items: stretch;
}

.plan-vip-left {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-vip-right {
    background: var(--header-gradient);
    color: #ffffff;
    min-width: 140px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

/* Team Member Cards (Matching Screenshot 3) */
.team-member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.team-member-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.team-member-top {
    background: var(--header-gradient);
    color: #ffffff;
    padding: 0.75rem;
    text-align: center;
    position: relative;
}

.team-member-level-tag {
    position: absolute;
    top: 0.4rem;
    left: 0.5rem;
    background: var(--accent-gold);
    color: var(--text-inverse);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

.team-member-bottom {
    padding: 0.65rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Large Rounded Profile Menu Rows (Matching Screenshot 3 Bottom Rows) */
.menu-row-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast);
}

.menu-row-card:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.menu-row-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.menu-row-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Fixed 5-Tab Bottom Navigation Bar */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: var(--bottom-nav-height);
    background: var(--bg-card-solid);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    transition: color var(--transition-fast);
}

.nav-tab-item.active {
    color: var(--primary);
}

.nav-tab-item svg,
.nav-tab-item i[data-lucide],
.nav-tab-item .lucide {
    width: 22px;
    height: 22px;
}

/* Form Inputs & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
}

.btn-emerald {
    background: var(--accent-emerald);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-2xs {
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    border-radius: 4px;
}

/* OAuth & Social Login Controls */
.btn-oauth,
.btn-google {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary, #ffffff);
    font-size: 0.925rem;
    font-weight: 600;
    padding: 0.72rem 1.25rem;
    border-radius: var(--radius-md, 10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease);
    text-decoration: none;
}

.btn-oauth:hover,
.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-oauth:active,
.btn-google:active {
    transform: translateY(0);
}

.btn-oauth svg,
.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oauth-divider span {
    padding: 0 0.85rem;
}


.reward-choice-card {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.reward-choice-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.reward-choice-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Payment Method Selection Cards with Wallet Logos */
.payment-methods-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md, 12px);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.payment-method-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.payment-method-card.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.payment-method-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.payment-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.payment-method-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.15rem;
}

.payment-method-chain {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.payment-method-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.payment-method-card.active .payment-method-radio {
    border-color: #10b981;
    background: #10b981;
}

.payment-method-card.active .payment-method-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}


.form-group {
    margin-bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Phone Input Group (Country Code + Mobile Number) */
.phone-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.country-code-select {
    flex: 0 0 105px !important;
    width: 105px !important;
    min-width: 100px !important;
    max-width: 120px !important;
    height: 44px;
    padding: 0.5rem 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.country-code-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.phone-input-row .input-wrapper {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input[readonly], .form-input:disabled, .readonly-input {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    user-select: none;
}

.input-has-icon .form-input,
.input-has-icon input.form-input {
    padding-left: 2.85rem !important;
}

.currency-input-dollar,
#compoundingAmountInput {
    padding-left: 34px !important;
}

.input-wrapper input[type="password"],
.input-wrapper .form-input[style*="padding-right"] {
    padding-right: 2.85rem !important;
}

.input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}

.input-icon svg, .input-icon i {
    width: 18px;
    height: 18px;
}

.input-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.input-toggle-pwd:hover {
    color: var(--text-primary);
}

.input-toggle-pwd svg, .input-toggle-pwd i {
    width: 18px;
    height: 18px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: rgba(99, 102, 241, 0.15); color: var(--primary); }

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Modals & Overlay Engine */
.modal, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    background: rgba(5, 8, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 1rem)) 1rem max(1rem, env(safe-area-inset-bottom, 1rem)) 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal.active, .modal-overlay.active, .modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content, .modal-container {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 2rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
    position: relative;
    margin: auto;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes modalPopIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card-solid);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.modal-header h3,
.modal-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    padding-right: 0.5rem;
    line-height: 1.35;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

.modal-container > form {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

.modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    touch-action: manipulation;
}

.modal-close:hover,
.modal-close:active {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.06);
}

.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    pointer-events: auto;
    padding: 0.85rem 1.15rem;
    background: var(--bg-card-solid);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.toast-success { border-left-color: var(--success); }
.toast-danger { border-left-color: var(--danger); }

/* ==========================================================================
   Competition Gift & Task Hub Upgrade Styles
   ========================================================================== */

/* Scrollable Modern Tab Bar */
.task-nav-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    scrollbar-width: none;
}

.task-nav-tabs::-webkit-scrollbar {
    display: none;
}

.task-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.825rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.task-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.task-tab-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Lucky Wheel Container & Canvas */
.lucky-wheel-container {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-wrapper {
    position: relative;
    width: min(300px, calc(100vw - 44px));
    height: min(300px, calc(100vw - 44px));
    max-width: 300px;
    max-height: 300px;
    margin: 1.25rem auto;
    border-radius: 50%;
    padding: 10px;
    background: radial-gradient(circle at 35% 35%, #92400e 0%, #451a03 50%, #1c0a00 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 
                0 0 35px rgba(245, 158, 11, 0.3), 
                inset 0 2px 4px rgba(254, 240, 138, 0.6), 
                inset 0 -4px 8px rgba(0, 0, 0, 0.8);
    border: 3px solid #f59e0b;
}

/* Realistic 3D Mechanical Flapper Pointer */
.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 42px;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
    transform-origin: 50% 15%;
    transition: transform 0.08s ease-out;
}

.wheel-pointer::before {
    /* Golden Mounting Pivot Bracket */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 50%, #78350f 100%);
    border-radius: 4px 4px 6px 6px;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.wheel-pointer::after {
    /* Ruby Gemstone Flapper Needle */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 30px solid #dc2626;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
    z-index: 1;
}

.wheel-pointer.ticking {
    animation: pointerFlick 0.08s ease-in-out;
}

@keyframes pointerFlick {
    0% { transform: translateX(-50%) rotate(0deg); }
    40% { transform: translateX(-50%) rotate(-14deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

#wheelCanvas,
#spinWheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fef08a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.5);
    display: block;
    background: #0f172a;
}

#wheelCanvas {
    transition: transform 4.1s cubic-bezier(0.15, 0.9, 0.25, 1);
}

/* Realistic 3D Jewel Center Push-Button */
.spin-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff6b6b 0%, #dc2626 55%, #7f1d1d 100%);
    color: #ffffff;
    border: 4px solid #fef08a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(239, 68, 68, 0.6), 
                inset 0 2px 4px rgba(255, 255, 255, 0.8),
                inset 0 -3px 6px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 15;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: spinBtnPulse 2.5s infinite ease-in-out;
}

.spin-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 
                0 0 28px rgba(245, 158, 11, 0.8),
                inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

.spin-center-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 
                0 0 10px rgba(239, 68, 68, 0.4),
                inset 0 3px 6px rgba(0, 0, 0, 0.9);
}

@keyframes spinBtnPulse {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    }
}

/* Winner Marquee Ticker */
.ticker-marquee {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    margin-top: 1rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-text {
    display: inline-block;
    animation: marquee 18s linear infinite;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Task Item Card */
.task-item-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.task-item-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.task-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Charity Campaign Cards */
.charity-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.charity-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.charity-card-body {
    padding: 1.15rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.65rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Digital Donor Certificate Box */
.certificate-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.certificate-seal {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   Portfolio Summary 6-Box Grid & View Options Styles
   ========================================================================== */

.portfolio-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .portfolio-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }
}

.portfolio-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: all var(--transition-fast);
}

.portfolio-box:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.portfolio-box-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.portfolio-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

.portfolio-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.view-options-btn {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.view-options-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.view-options-btn i,
.view-options-btn svg {
    width: 10px;
    height: 10px;
}

.portfolio-value {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.portfolio-subtitle {
    font-size: 0.625rem;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Team Page 7-Box Grid & Team Business Modal Styles (Matching Design)
   ========================================================================== */

.team-7box-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .team-7box-grid {
        gap: 0.5rem;
    }
}

.team-card-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.85rem 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .team-card-box {
    background: rgba(18, 26, 43, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.team-card-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.team-card-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-card-watermark {
    position: absolute;
    bottom: 4px;
    right: 6px;
    width: 36px;
    height: 36px;
    opacity: 0.25;
    pointer-events: none;
}

.team-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    z-index: 1;
}

.team-card-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: 0.01em;
    z-index: 1;
}

.team-card-box.box-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.team-card-box.box-featured .team-card-title {
    color: var(--text-primary);
    font-size: 0.85rem;
    max-width: 68%;
    margin-bottom: 0;
}

.team-card-view-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.55rem 0.95rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    border: none;
    cursor: pointer;
    z-index: 2;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.6);
}

/* Team Business Milestone Pop-Up Modal Content */
.referral-rates-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.referral-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.825rem;
}

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

.referral-scroll-list {
    max-height: 84px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255, 255, 255, 0.04);
}

.referral-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.referral-scroll-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.referral-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.referral-scroll-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

.team-tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-tier-item {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color var(--transition-fast);
}

.team-tier-item:hover {
    border-color: var(--primary);
}

.team-tier-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.team-tier-details {
    flex: 1;
}

.team-tier-title {
    font-weight: 800;
    font-size: 0.925rem;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-tier-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* ==========================================================================
   Word Captcha Verification Component Styles
   ========================================================================== */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-visual-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.captcha-canvas {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    display: block;
}

.captcha-canvas:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.captcha-refresh-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.captcha-refresh-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.captcha-refresh-btn.spin-active i,
.captcha-refresh-btn.spin-active svg {
    animation: captchaSpin 0.4s ease-in-out;
}

@keyframes captchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.captcha-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==========================================================================
   Compounding Packages & Box View Styling
   ========================================================================== */

.package-view-switcher {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 10px);
    padding: 0.2rem;
    gap: 0.2rem;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: var(--text-primary);
}

.view-toggle-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* 2-Column Grid for Box View */
.package-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-box-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.package-box-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
}

.package-box-card.popular-tier {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.85));
}

.package-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.package-box-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.package-box-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--emerald, #10b981);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.package-box-amount span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Compounding Formula Highlight Pill */
.compounding-formula-pill {
    background: rgba(16, 185, 129, 0.1);
    border: 1px dashed rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.package-box-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 0.6rem;
    margin-bottom: 1rem;
}

.package-box-stat-item {
    text-align: center;
}

.package-box-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.package-box-stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
}

.package-box-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.package-box-actions-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-top: auto;
}

/* Compounding Explanation Notice Card */
.compounding-notice-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Website Floating Notification Center & Top Corner Icon
   ========================================================================== */

/* Floating Notification Button (Positioned safely above bottom nav to avoid header overlap) */
.floating-notif-corner-btn {
    position: fixed;
    bottom: max(78px, env(safe-area-inset-bottom, 78px));
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(99, 102, 241, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
}

.floating-notif-corner-btn:hover,
.floating-notif-corner-btn:active {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(99, 102, 241, 0.6);
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(99, 102, 241, 0.45);
}

/* Header Inline Notification Button */
.header-notif-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.header-notif-btn:hover,
.header-notif-btn:active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.06);
}

/* Notification Unread Badge Pill */
.notif-badge-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.65);
    animation: notifPulseAnim 2.2s infinite;
    pointer-events: none;
    line-height: 1;
}

@keyframes notifPulseAnim {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Backdrop Overlay */
.notif-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2200;
    animation: notifFadeIn 0.2s ease;
}

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

/* Floating Notification Center Panel (Matching Screenshot) */
.notif-floating-panel {
    position: fixed;
    top: max(65px, calc(env(safe-area-inset-top, 0px) + 65px));
    right: 16px;
    width: min(440px, calc(100vw - 32px));
    max-height: min(560px, calc(100dvh - 100px));
    background: #0d1322;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.15);
    z-index: 2300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: notifPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifPopIn {
    from { transform: translateY(-12px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.25rem 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1322;
    flex-shrink: 0;
}

.notif-panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.notif-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-mark-read-btn {
    background: #151d30;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-mark-read-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.notif-panel-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-panel-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.notif-panel-body {
    padding: 1rem 1.15rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    overscroll-behavior: contain;
}

/* Notification Items (Matching Screenshot) */
.notif-item-card {
    background: #11192d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    transition: all 0.2s ease;
}

.notif-item-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: #141f38;
}

.notif-item-card.unread {
    border-left: 3px solid #6366f1;
}

.notif-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-icon.reward {
    background: rgba(99, 102, 241, 0.14);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.notif-item-icon.wallet {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.notif-item-message {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 0.4rem;
}

.notif-item-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 480px) {
    .notif-floating-panel {
        top: max(55px, calc(env(safe-area-inset-top, 0px) + 55px));
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100dvh - 80px);
    }
}

/* Modal Backdrop & Dialog System for Reward & Support Popups */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-dialog {
    width: 100%;
    max-width: 520px;
    margin: auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #ffffff);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    background: var(--bg-input-focus, rgba(255, 255, 255, 0.08));
}

/* ==========================================================================
   Spin & Win Lucky Wheel Core Component Styles
   ========================================================================== */
.spin-game-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
}

.jackpot-hero-card {
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.25) 0%, rgba(245, 158, 11, 0.15) 50%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.2);
}

.jackpot-amount-display {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    margin: 0.25rem 0;
}

.wheel-stage {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    margin: 0.75rem 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.wheel-wrapper {
    position: relative;
    width: 320px;
    max-width: 90vw;
    height: 320px;
    margin: 0.75rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.25);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 42px;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    z-index: 20;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
    transition: transform 0.08s ease;
}

.wheel-pointer.ticking {
    transform: translateX(-50%) rotate(8deg);
}

.spin-center-btn {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 60%, #7f1d1d 100%);
    border: 3px solid #fef08a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: manipulation;
}

.spin-center-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.spin-center-btn:active {
    transform: scale(0.95);
}

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

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.package-card.popular {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.package-ribbon {
    position: absolute;
    top: 6px;
    right: -24px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 28px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.spins-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--accent-gold);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ticker-marquee-wrap {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    overflow: hidden;
    white-space: nowrap;
    margin: 0.75rem 0;
    font-size: 0.75rem;
}

@keyframes tickerAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-marquee-content {
    display: inline-block;
    animation: tickerAnim 22s linear infinite;
}

/* KYC Document Upload Preview Image Constraints */
.kyc-preview-img {
    max-height: 160px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    display: block !important;
}

#kycFrontWrap, #kycBackWrap {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* ==============================================================
   REALTIME BALANCE CREDITING PULSE ANIMATION
   ============================================================== */
@keyframes balancePulseGlow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }
    30% {
        transform: scale(1.15);
        color: #34d399 !important;
        text-shadow: 0 0 16px rgba(16, 185, 129, 0.9), 0 0 32px rgba(16, 185, 129, 0.5);
    }
    60% {
        transform: scale(1.05);
        color: #10b981;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }
}

.balance-pulse-glow {
    animation: balancePulseGlow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: inline-block !important;
}

/* ==============================================================
   SEARCHABLE COUNTRY CODE PICKER COMPONENT
   ============================================================== */
.country-code-btn {
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 100px !important;
    max-width: 125px !important;
    height: 44px !important;
    padding: 0.5rem 0.55rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    background: var(--bg-input, rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    border-radius: var(--radius-md, 10px) !important;
    outline: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    transition: all var(--transition-fast, 0.2s ease) !important;
    user-select: none;
}

.country-code-btn:hover,
.country-code-btn:focus-visible {
    border-color: var(--primary) !important;
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

.country-picker-display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-picker-flag {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.country-picker-code {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.country-picker-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.country-code-btn[aria-expanded="true"] .country-picker-chevron {
    transform: rotate(180deg);
}

/* Modal Overlay & Container */
.country-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.country-picker-modal.active {
    display: flex !important;
    animation: countryPickerFadeIn 0.2s ease;
}

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

.country-picker-box {
    width: 100%;
    max-width: 440px;
    height: 82vh;
    max-height: 580px;
    background: var(--bg-card-solid, #111827);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: var(--radius-xl, 18px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: countryPickerScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes countryPickerScaleIn {
    from { transform: scale(0.94) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.country-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem 0.75rem;
    background: var(--bg-card-solid, #111827);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.country-picker-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.country-picker-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.country-picker-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.country-picker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
    line-height: 1;
}

.country-picker-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fff;
    transform: scale(1.05);
}

.country-picker-search-wrap {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
}

.country-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.country-search-input-box .input-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-search-input {
    width: 100%;
    padding: 0.65rem 2.4rem 0.65rem 2.65rem !important;
    font-size: 0.9rem !important;
    background: var(--bg-input, rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    border-radius: var(--radius-md, 10px) !important;
    color: var(--text-primary) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.country-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.country-search-clear {
    position: absolute;
    right: 0.65rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--text-secondary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    transition: 0.2s;
}

.country-search-clear:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.country-picker-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0.65rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.country-picker-list::-webkit-scrollbar {
    width: 5px;
}

.country-picker-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.country-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    user-select: none;
    margin-bottom: 2px;
    outline: none;
}

.country-picker-item:hover,
.country-picker-item:focus-visible {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(2px);
}

.country-picker-item.selected {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.country-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.country-item-flag {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.country-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.country-item-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item-iso {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.country-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.country-item-dial {
    font-size: 0.825rem;
    font-weight: 800;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-emerald, #10b981);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-picker-item.selected .country-item-dial {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.country-item-check {
    color: var(--accent-emerald, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-item-check svg,
.country-item-check i {
    width: 16px;
    height: 16px;
}

.country-picker-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
}

@media (max-width: 540px) {
    .country-picker-modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    .country-picker-box {
        max-width: 100% !important;
        height: 85vh !important;
        max-height: 85vh !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
}

/* ==========================================================================
   Withdrawal Verification OTP Modal Styles
   ========================================================================== */
.otp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.otp-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.otp-modal-card {
    background: var(--bg-card, #131a2a);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.15);
    max-width: 440px;
    width: 100%;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-modal-backdrop.active .otp-modal-card {
    transform: scale(1) translateY(0);
}

.otp-modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(16, 185, 129, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--primary, #6366f1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.otp-inputs-wrap {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.otp-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: inherit;
    color: var(--text-primary, #ffffff);
    background: var(--bg-input, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-box:focus {
    border-color: var(--primary, #6366f1);
    background: var(--bg-input-focus, rgba(99, 102, 241, 0.12));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}

.otp-box.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    animation: otpShake 0.35s ease;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@media (max-width: 420px) {
    .otp-inputs-wrap {
        gap: 0.35rem;
    }
    .otp-box {
        width: 38px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 10px;
    }
}

/* ==========================================================================
   G-SIP DASHBOARD POPUP & ANNOUNCEMENT MODAL STYLES
   ========================================================================== */
.gsip-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

.gsip-popup-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gsip-popup-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    max-height: 85dvh;
    background: var(--bg-card-solid, #121a2b);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl, 24px);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.gsip-popup-overlay.active .gsip-popup-container {
    transform: scale(1) translateY(0);
}

.gsip-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all var(--transition-fast, 0.15s ease);
    padding: 0;
    box-sizing: border-box;
}

.gsip-popup-close:hover,
.gsip-popup-close:focus-visible {
    background: rgba(239, 68, 68, 0.9);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
    outline: none;
}

.gsip-popup-scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
}

.gsip-popup-image-wrap {
    width: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 480px;
}

.gsip-popup-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    display: block;
    aspect-ratio: 4 / 5;
}

.gsip-popup-content-wrap {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--bg-card-solid, #121a2b);
}

.gsip-popup-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #f8fafc);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.gsip-popup-desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.gsip-popup-actions {
    margin-top: 0.5rem;
}

.gsip-popup-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg, 16px);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform var(--transition-fast, 0.15s ease), box-shadow var(--transition-fast, 0.15s ease);
}

.gsip-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
}

/* Mobile specific styling */
@media (max-width: 480px) {
    .gsip-popup-overlay {
        padding: 0.75rem;
    }

    .gsip-popup-container {
        max-width: 92%;
        border-radius: 20px;
    }

    .gsip-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .gsip-popup-image-wrap {
        max-height: 380px;
    }

    .gsip-popup-image-wrap img {
        max-height: 360px;
    }

    .gsip-popup-content-wrap {
        padding: 1rem 1.15rem 1.25rem;
    }

    .gsip-popup-title {
        font-size: 1.12rem;
    }

    .gsip-popup-desc {
        font-size: 0.82rem;
    }

    .gsip-popup-btn {
        padding: 0.75rem 0.9rem;
        font-size: 0.88rem;
    }
}




