/* =====================================================================
   APEX NOVA — "NOVA NOIR" DESIGN SYSTEM
   Deep-ink surfaces · drifting aurora light · electric-lime money accent
   Display: Unbounded · Body: Manrope
   (previous theme kept in _backup_old_design/assets/style.css)
   ===================================================================== */

:root {
    /* Ink surfaces */
    --ink-0: #060609;
    --ink-1: #0e0e15;
    --ink-2: #15151f;
    --ink-3: #1d1d2a;
    --ink-4: #262636;

    /* Lines */
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);
    --line-3: rgba(255, 255, 255, 0.2);

    /* Text */
    --text: #f4f3fa;
    --text-2: #a9a7bc;
    --text-3: #6f6d85;

    /* Accents */
    --lime: #d6ff3d;
    --lime-2: #b8f000;
    --lime-ink: #0b0f00;
    --violet: #8c7bff;
    --violet-2: #6b55ff;
    --coral: #ff5d7a;
    --amber: #ffb547;
    --aqua: #3ddcc0;
    --sky: #5cc8ff;
    --wa: #25d366;
    --tg: #2ca5e0;

    /* Tints */
    --lime-t: rgba(214, 255, 61, 0.12);
    --violet-t: rgba(140, 123, 255, 0.14);
    --coral-t: rgba(255, 93, 122, 0.13);
    --amber-t: rgba(255, 181, 71, 0.13);
    --aqua-t: rgba(61, 220, 192, 0.13);
    --sky-t: rgba(92, 200, 255, 0.13);

    /* Shape */
    --r-xl: 28px;
    --r-lg: 24px;
    --r-md: 18px;
    --r-sm: 13px;
    --r-xs: 10px;

    /* Type */
    --f-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Legacy aliases (some page styles still read these) */
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-tertiary: var(--text-3);
    --accent-primary: var(--lime);
    --accent-secondary: var(--violet);
    --accent-success: var(--lime);
    --accent-warning: var(--amber);
    --accent-danger: var(--coral);
    --border-color: var(--line-2);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--ink-0);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f-body);
    background: var(--ink-0);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 120px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Aurora light field */
body::before {
    content: '';
    position: fixed;
    inset: -20vh -20vw;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38vmax 30vmax at 12% 8%, rgba(107, 85, 255, 0.28), transparent 62%),
        radial-gradient(30vmax 26vmax at 92% 22%, rgba(214, 255, 61, 0.10), transparent 60%),
        radial-gradient(40vmax 34vmax at 70% 105%, rgba(255, 93, 122, 0.12), transparent 62%);
    filter: blur(10px);
    animation: auroraDrift 28s ease-in-out infinite alternate;
}

/* Fine dot grid */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

::selection {
    background: var(--lime);
    color: var(--lime-ink);
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 14px 16px 0;
}

@media (min-width: 640px) {
    .container {
        max-width: 560px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ink-4);
    border-radius: 6px;
}

/* ==================== MOTION ==================== */
@keyframes auroraDrift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-4vw, 3vh, 0) rotate(8deg); }
    100% { transform: translate3d(3vw, -2vh, 0) rotate(-6deg); }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes livePing {
    0% { box-shadow: 0 0 0 0 rgba(214, 255, 61, 0.55); }
    80%, 100% { box-shadow: 0 0 0 8px rgba(214, 255, 61, 0); }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.container > * {
    animation: fadeInUp 0.55s var(--ease) backwards;
}

.container > *:nth-child(2) { animation-delay: 0.04s; }
.container > *:nth-child(3) { animation-delay: 0.08s; }
.container > *:nth-child(4) { animation-delay: 0.12s; }
.container > *:nth-child(5) { animation-delay: 0.16s; }
.container > *:nth-child(6) { animation-delay: 0.2s; }
.container > *:nth-child(n+7) { animation-delay: 0.24s; }

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

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(6, 6, 9, 0.62);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
    animation: slideDown 0.5s var(--ease) backwards;
}

.header-top {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
}

@media (min-width: 640px) {
    .header-top {
        max-width: 560px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Light chip so the dark-blue logo artwork stays legible on ink */
.logo-icon {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 12px;
    border-radius: 14px;
    /* background: #f4f3fa;
    box-shadow: 0 8px 20px -10px rgba(140, 123, 255, 0.6); */
}

.logo-icon img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px 0 10px;
    border-radius: 999px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    transition: border-color 0.25s, background 0.25s;
}

.balance-box:hover {
    border-color: rgba(214, 255, 61, 0.45);
}

.balance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    animation: livePing 2s infinite;
    flex-shrink: 0;
}

.balance-box .bal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.balance-box .bal-value {
    font-family: var(--f-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--lime);
    white-space: nowrap;
}

/* Auth buttons (guest) */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.auth-btn:active {
    transform: scale(0.96);
}

.auth-btn.login-btn {
    background: transparent;
    color: var(--text);
    border-color: var(--line-3);
}

.auth-btn.login-btn:hover {
    border-color: var(--text);
}

.auth-btn.register-btn {
    background: var(--lime);
    color: var(--lime-ink);
}

.auth-btn.register-btn:hover {
    background: #e2ff70;
}

/* Profile dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    padding: 2px;
    background: conic-gradient(from 200deg, var(--lime), var(--violet), var(--coral), var(--lime));
}

.profile-trigger > i {
    display: none;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--ink-0);
    background: var(--ink-3);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 248px;
    background: rgba(18, 18, 27, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line-2);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(140, 123, 255, 0.22), rgba(214, 255, 61, 0.08));
    margin-bottom: 6px;
}

.dropdown-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line-3);
}

.dropdown-header h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.dropdown-header p {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 6px 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.2s, color 0.2s;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-3);
    transition: color 0.2s;
}

.dropdown-item:hover {
    background: var(--ink-3);
    color: var(--text);
}

.dropdown-item:hover i {
    color: var(--lime);
}

.dropdown-item.logout,
.dropdown-item.logout i {
    color: var(--coral);
}

.dropdown-item.logout:hover {
    background: var(--coral-t);
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 3, 6, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

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

.modal-container {
    position: relative;
    width: 100%;
    max-width: 410px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    transform: translateY(40px) scale(0.98);
    transition: transform 0.4s var(--ease);
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: radial-gradient(120% 100% at 0% 0%, rgba(140, 123, 255, 0.28), transparent 60%),
                radial-gradient(80% 90% at 100% 0%, rgba(214, 255, 61, 0.12), transparent 60%);
    pointer-events: none;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

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

/* Bottom sheet on phones */
@media (max-width: 520px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 30px 30px 0 0;
        border-bottom: 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .modal-container::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        margin-left: -20px;
        border-radius: 4px;
        background: var(--line-3);
    }
}

.modal-header {
    position: relative;
    padding: 30px 22px 8px;
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--lime);
    color: var(--lime-ink);
    margin-bottom: 16px;
    box-shadow: 0 12px 30px -8px rgba(214, 255, 61, 0.55);
}

.modal-icon.register {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(140, 123, 255, 0.6);
}

.modal-header h2 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.modal-header p {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 4px;
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--ink-2);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
    z-index: 2;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--line-3);
    transform: rotate(90deg);
}

.modal-body {
    position: relative;
    padding: 14px 22px 24px;
}

.modal-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.modal-footer p {
    font-size: 13px;
    color: var(--text-2);
}

.modal-footer a {
    color: var(--lime);
    font-weight: 700;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label,
.activation-form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--text-3);
    font-size: 11px;
}

.form-group label .sponsor {
    color: var(--coral);
}

.form-group input,
.form-input,
.form-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-input::placeholder {
    color: var(--text-3);
    font-weight: 500;
}

.form-group input:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--lime);
    background: var(--ink-3);
    box-shadow: 0 0 0 4px rgba(214, 255, 61, 0.12);
}

.form-select option {
    background: var(--ink-2);
    color: var(--text);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s, background 0.2s;
}

.toggle-password:hover {
    color: var(--text);
    background: var(--ink-3);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 20px;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--lime);
}

.remember-me a,
.forgot-link {
    color: var(--lime);
    font-weight: 700;
    font-size: 13px;
}

.form-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--coral);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 255, 61, 0.35), transparent);
}

.form-section-title:not(:first-child) {
    margin-top: 24px;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    font-size: 12px;
}

.form-actions {
    margin-top: 8px;
}

/* Primary button */
.submit-btn {
    position: relative;
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 14px 30px -12px rgba(214, 255, 61, 0.6);
    transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position 0.7s var(--ease);
}

.submit-btn:hover {
    background: #e0ff66;
    box-shadow: 0 18px 36px -12px rgba(214, 255, 61, 0.75);
}

.submit-btn:hover::after {
    background-position: 200% 0;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn.register {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(140, 123, 255, 0.7);
}

.submit-btn.register:hover {
    background: #9f90ff;
}

.submit-btn:disabled {
    background: var(--ink-3);
    color: var(--text-3);
    box-shadow: none;
    cursor: not-allowed;
}

.submit-btn:disabled::after {
    display: none;
}

/* Generic pill CTA */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 13.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s;
}

.action-btn:hover {
    background: #e0ff66;
    color: var(--lime-ink);
}

.action-btn:active {
    transform: scale(0.97);
}

.action-btn.small {
    height: 38px;
    padding: 0 16px;
    font-size: 12.5px;
}

/* ==================== FOOTER DOCK ==================== */
.footer {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 950;
    width: calc(100% - 24px);
    max-width: 440px;
    height: 70px;
    padding: 0 6px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(17, 17, 26, 0.82);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    border: 1px solid var(--line-2);
    border-radius: 26px;
    box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-indicator {
    position: absolute;
    top: -1px;
    height: 3px;
    opacity: 0;
    pointer-events: none;
    transition: left 0.45s var(--spring), width 0.45s var(--spring), opacity 0.3s;
}

.footer-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 26px;
    height: 3px;
    margin-left: -13px;
    border-radius: 0 0 4px 4px;
    background: var(--lime);
    box-shadow: 0 0 14px 2px rgba(214, 255, 61, 0.6);
}

.footer-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    color: var(--text-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.25s;
}

.footer-item i {
    font-size: 18px;
    transition: transform 0.35s var(--spring);
}

.footer-item:hover {
    color: var(--text-2);
}

.footer-item.active {
    color: var(--text);
}

.footer-item.active i {
    color: var(--lime);
    transform: translateY(-2px);
}

/* Raised center action */
.footer-item.dock-fab {
    color: var(--text-2);
}

.footer-item.dock-fab .fab-orb {
    width: 56px;
    height: 56px;
    margin-top: -34px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime);
    color: var(--lime-ink);
    box-shadow: 0 0 0 6px var(--ink-0), 0 14px 30px -6px rgba(214, 255, 61, 0.65);
    transform: rotate(45deg);
    transition: transform 0.4s var(--spring), box-shadow 0.3s;
}

.footer-item.dock-fab .fab-orb i {
    color: var(--lime-ink);
    font-size: 20px;
    transform: rotate(-45deg);
}

.footer-item.dock-fab:hover .fab-orb,
.footer-item.dock-fab.active .fab-orb {
    transform: rotate(135deg);
}

.footer-item.dock-fab:hover .fab-orb i,
.footer-item.dock-fab.active .fab-orb i {
    transform: rotate(-135deg);
}

.footer-item.dock-fab.active i {
    color: var(--lime-ink);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(104px + env(safe-area-inset-bottom));
    transform: translate(-50%, 20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 14px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 20px 40px -10px rgba(214, 255, 61, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--spring);
}

.toast i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lime-ink);
    color: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==================== PAGE HEADER ==================== */
.page-header-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background:
        radial-gradient(130% 160% at 100% 0%, rgba(140, 123, 255, 0.32), transparent 55%),
        radial-gradient(90% 120% at 0% 120%, rgba(214, 255, 61, 0.10), transparent 55%),
        var(--ink-1);
}

.page-header-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.015), 0 0 0 54px rgba(255, 255, 255, 0.012);
    pointer-events: none;
}

.page-header-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    background: var(--lime);
    color: var(--lime-ink);
    box-shadow: 0 14px 28px -10px rgba(214, 255, 61, 0.6);
}

.page-header-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.page-header-content h2 {
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
}

.page-header-content p {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
}

/* ==================== STAT TILES ==================== */
.stats-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    --c: var(--violet);
    --ct: var(--violet-t);
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 20px;
    background: var(--ink-1);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--c);
    opacity: 0.12;
    filter: blur(20px);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
}

.stat-card.blue { --c: var(--sky); --ct: var(--sky-t); }
.stat-card.green { --c: var(--lime); --ct: var(--lime-t); }
.stat-card.red { --c: var(--coral); --ct: var(--coral-t); }
.stat-card.orange { --c: var(--amber); --ct: var(--amber-t); }
.stat-card.purple { --c: var(--violet); --ct: var(--violet-t); }

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--ct);
    color: var(--c);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stat-value {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ==================== INFO CARD ==================== */
.info-card {
    background: var(--ink-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 14px;
    overflow: hidden;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.info-card-header > i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--violet-t);
    color: var(--violet);
    flex-shrink: 0;
}

.info-card-header h3 {
    flex: 1;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.005em;
}

.info-card-header .badge,
.info-card-header .step-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 28px;
    height: 26px;
    padding: 0 10px;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text);
}

.info-card-header .step-badge {
    background: var(--coral-t);
    border-color: rgba(255, 93, 122, 0.3);
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}

.info-card-header .edit-link {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-3);
    color: var(--lime);
    font-size: 13px;
    transition: background 0.2s;
}

.info-card-header .edit-link:hover {
    background: var(--ink-4);
}

.info-card-body {
    padding: 8px 18px 18px;
}

.info-card-body > form {
    padding-top: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line-2);
}

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

.info-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    color: var(--text-2);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.info-value {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-2);
}

.empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-2);
    border: 1px dashed var(--line-3);
    font-size: 26px;
    color: var(--text-3);
}

.empty-state h3 {
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 18px;
}

.empty-state.small {
    padding: 22px 10px 10px;
}

.empty-state.small > i {
    font-size: 26px;
    color: var(--amber);
    margin-bottom: 10px;
    display: block;
}

/* ==================== TRANSACTIONS ==================== */
.transaction-list {
    padding: 6px 8px 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 10px;
    border-radius: 16px;
    position: relative;
    transition: background 0.2s;
}

.transaction-item + .transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 66px;
    right: 10px;
    height: 1px;
    background: var(--line);
}

.transaction-item:hover {
    background: var(--ink-2);
}

.transaction-icon {
    --c: var(--violet);
    --ct: var(--violet-t);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--ct);
    color: var(--c);
}

.transaction-icon.blue { --c: var(--sky); --ct: var(--sky-t); }
.transaction-icon.gold,
.transaction-icon.orange,
.transaction-icon.pending { --c: var(--amber); --ct: var(--amber-t); }
.transaction-icon.green,
.transaction-icon.success { --c: var(--lime); --ct: var(--lime-t); }
.transaction-icon.failed { --c: var(--coral); --ct: var(--coral-t); }
.transaction-icon.whatsapp { --c: var(--wa); --ct: rgba(37, 211, 102, 0.13); }
.transaction-icon.telegram { --c: var(--tg); --ct: rgba(44, 165, 224, 0.14); }

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-info p {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-date {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.transaction-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.transaction-amount span,
.transaction-amount .amount {
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.transaction-amount.credit span {
    color: var(--lime);
}

.transaction-amount.debit span {
    color: var(--coral);
}

/* Status pills */
.status,
.status-badge,
.request-status,
.alert-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-family: var(--f-body) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status::before,
.status-badge::before,
.request-status::before,
.alert-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status.pending,
.status-badge.pending,
.request-status.pending,
.alert-status.pending {
    background: var(--amber-t);
    color: var(--amber) !important;
}

.status.success,
.status-badge.success,
.request-status.approved,
.alert-status.approved,
.alert-status.success {
    background: var(--lime-t);
    color: var(--lime) !important;
}

.status.failed,
.status-badge.failed,
.request-status.rejected,
.alert-status.rejected,
.alert-status.failed {
    background: var(--coral-t);
    color: var(--coral) !important;
}

.status-badge {
    margin-top: 4px;
}

/* ==================== TRANSACTION PAGE ==================== */
.earnings-summary-card {
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
    padding: 18px 6px;
    border-radius: var(--r-lg);
    background:
        linear-gradient(var(--ink-1), var(--ink-1)) padding-box,
        linear-gradient(120deg, rgba(214, 255, 61, 0.5), rgba(140, 123, 255, 0.4), rgba(255, 255, 255, 0.06)) border-box;
    border: 1px solid transparent;
}

.summary-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 6px;
}

.summary-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.summary-value {
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-value.green {
    color: var(--lime);
}

.summary-divider {
    width: 1px;
    background: var(--line-2);
}

.transaction-tabs-wrapper {
    margin: 0 0 14px;
    position: relative;
}

.transaction-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.transaction-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn i {
    font-size: 12px;
}

.tab-btn:hover {
    color: var(--text);
    border-color: var(--line-3);
}

.tab-btn.active {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--lime-ink);
}

/* ==================== TEAM ==================== */
.team-list {
    padding: 6px 8px 10px;
}

.team-member-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    border-radius: 16px;
    transition: background 0.2s;
}

.team-member-card + .team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--line);
}

.team-member-card:hover {
    background: var(--ink-2);
}

.member-rank {
    width: 22px;
    flex-shrink: 0;
    font-family: var(--f-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-align: center;
}

.member-avatar {
    position: relative;
    flex-shrink: 0;
}

.member-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
}

.status-dot {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--ink-1);
    background: var(--text-3);
}

.status-dot.active {
    background: var(--lime);
}

.status-dot.inactive {
    background: var(--coral);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--violet);
    letter-spacing: 0.04em;
}

.member-id i {
    display: none;
}

.member-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 3px;
}

.member-details span {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.member-details i {
    margin-right: 3px;
    font-size: 10px;
}

.member-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.member-earning {
    font-family: var(--f-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--lime);
}

.member-date {
    font-size: 10.5px;
    color: var(--text-3);
    font-weight: 600;
}

/* Invite card (lime slab) */
.referral-cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    background: var(--lime);
    color: var(--lime-ink);
}

.referral-cta-card::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 18px solid rgba(11, 15, 0, 0.06);
}

.cta-content {
    flex: 1;
    position: relative;
}

.cta-content h3 {
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-content p {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0.72;
}

.cta-actions {
    display: flex;
    gap: 8px;
    position: relative;
}

.cta-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--lime-ink);
    transition: transform 0.25s var(--spring);
}

.cta-btn.whatsapp { color: var(--wa); }
.cta-btn.telegram { color: var(--tg); }

.cta-btn:hover {
    transform: translateY(-3px) rotate(-6deg);
}

/* ==================== PROFILE ==================== */
.profile-header-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    background: var(--ink-1);
    border: 1px solid var(--line);
    text-align: center;
    padding-bottom: 22px;
}

.profile-cover {
    height: 110px;
    background:
        radial-gradient(60% 120% at 20% 0%, rgba(140, 123, 255, 0.85), transparent 70%),
        radial-gradient(50% 120% at 85% 10%, rgba(214, 255, 61, 0.55), transparent 70%),
        radial-gradient(60% 100% at 55% 100%, rgba(255, 93, 122, 0.55), transparent 70%),
        var(--ink-3);
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
}

.profile-avatar-section {
    position: relative;
    margin-top: -48px;
    padding: 0 20px;
}

.profile-avatar-large {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg, var(--lime), var(--violet), var(--coral), var(--lime));
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--ink-1);
    background: var(--ink-3);
}

.avatar-badge {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--lime-ink);
    border: 3px solid var(--ink-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.profile-name {
    font-family: var(--f-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.profile-id {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.profile-id i {
    color: var(--violet);
    margin-right: 4px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-status i {
    font-size: 6px;
}

.profile-status.active {
    background: var(--lime-t);
    color: var(--lime);
}

.profile-status.active i {
    animation: pulse 1.6s infinite;
}

.profile-status.inactive {
    background: var(--coral-t);
    color: var(--coral);
}

/* Quick actions tiles */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 15px 4px 13px;
    border-radius: 20px;
    background: var(--ink-1);
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-2);
    text-align: center;
    transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-3);
    color: var(--text);
}

.action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--ink-3);
    color: var(--lime);
    transition: transform 0.35s var(--spring);
}

.action-card:hover .action-icon {
    transform: scale(1.08) rotate(-6deg);
}

.action-card.logout {
    color: var(--coral);
}

.action-card.logout .action-icon {
    background: var(--coral-t);
    color: var(--coral);
}

/* ==================== SETTINGS ==================== */
.settings-menu {
    background: var(--ink-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 14px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    position: relative;
    transition: background 0.2s;
}

.settings-item + .settings-item {
    border-top: 1px solid var(--line);
}

.settings-item:hover {
    background: var(--ink-2);
}

.settings-icon {
    --c: var(--violet);
    --ct: var(--violet-t);
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--ct);
    color: var(--c);
}

.settings-icon.purple { --c: var(--violet); --ct: var(--violet-t); }
.settings-icon.blue { --c: var(--sky); --ct: var(--sky-t); }
.settings-icon.green { --c: var(--lime); --ct: var(--lime-t); }
.settings-icon.orange { --c: var(--amber); --ct: var(--amber-t); }
.settings-icon.red { --c: var(--coral); --ct: var(--coral-t); }

.settings-info {
    flex: 1;
    min-width: 0;
}

.settings-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
}

.settings-info p {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    margin-top: 1px;
}

.settings-item > .fa-chevron-right {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-2);
    color: var(--text-3);
    font-size: 11px;
    transition: transform 0.3s var(--spring), color 0.2s, background 0.2s;
}

.settings-item:hover > .fa-chevron-right {
    transform: translateX(3px);
    color: var(--lime-ink);
    background: var(--lime);
}

/* Tips & notes */
.tips-card,
.notes-card {
    position: relative;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    background: var(--ink-1);
    border: 1px dashed var(--line-3);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tips-header i,
.notes-card h4 i {
    color: var(--lime);
}

.tips-header h3,
.notes-card h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-card h4 {
    margin-bottom: 12px;
}

.notes-card h4 i {
    color: var(--amber);
}

.tips-list,
.notes-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-list li,
.notes-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.5;
}

.tips-list li i {
    margin-top: 3px;
    font-size: 10px;
    color: var(--lime);
}

.notes-card li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 2px;
    background: var(--amber);
    transform: rotate(45deg);
}

/* ==================== E-PIN PURCHASE ==================== */
.offer-card {
    position: relative;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(214, 255, 61, 0.12), transparent 50%),
        var(--ink-1);
    border: 1.5px dashed rgba(214, 255, 61, 0.45);
    overflow: hidden;
}

.offer-card::before,
.offer-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: var(--ink-0);
    border: 1.5px dashed rgba(214, 255, 61, 0.45);
}

.offer-card::before { left: -12px; }
.offer-card::after { right: -12px; }

.offer-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--lime-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offer-content {
    padding: 20px;
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 100px;
}

.offer-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--violet);
    color: #fff;
}

.offer-title h3 {
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.offer-title p {
    font-size: 12px;
    color: var(--text-2);
}

.price-breakdown {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ink-2);
    border: 1px solid var(--line);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 600;
}

.price-value {
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.price-row.original .price-value {
    text-decoration: line-through;
    text-decoration-color: var(--coral);
    color: var(--text-2);
}

.price-row.final .price-label {
    color: var(--text);
    font-weight: 800;
}

.price-row.final .price-value {
    font-size: 22px;
    color: var(--lime);
}

.discount-badge {
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--lime-t);
    color: var(--lime);
    font-size: 10px;
    font-weight: 800;
}

.text-success {
    color: var(--lime) !important;
}

.price-divider {
    height: 0;
    border-top: 1px dashed var(--line-3);
    margin: 6px 0;
}

.qr-section {
    padding-top: 10px;
}

.qr-container {
    width: 100%;
    max-width: 240px;
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 0 0 6px var(--ink-2), 0 0 0 7px var(--line-2), 0 20px 50px -20px rgba(214, 255, 61, 0.35);
}

.qr-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.qr-placeholder {
    padding: 40px 10px;
    text-align: center;
    color: #6f6d85;
}

.qr-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.qr-instructions {
    display: grid;
    gap: 8px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--ink-2);
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 600;
}

.instruction-item i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-t);
    color: var(--lime);
    font-size: 12px;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    border-radius: 18px;
    border: 1.5px dashed var(--line-3);
    background: var(--ink-2);
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-wrapper:hover .file-upload-box {
    border-color: var(--lime);
    background: var(--ink-3);
}

.file-upload-box i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime-t);
    color: var(--lime);
    font-size: 22px;
    margin-bottom: 6px;
}

.file-upload-box p {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.file-upload-box span {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 600;
}

.file-preview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line-2);
}

.file-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--coral);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-list {
    padding: 6px 8px 10px;
    max-height: 26rem;
    overflow-y: auto;
}

.request-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 10px;
    border-radius: 16px;
    transition: background 0.2s;
}

.request-item + .request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--line);
}

.request-item:hover {
    background: var(--ink-2);
}

.request-number {
    width: 20px;
    flex-shrink: 0;
    padding-top: 12px;
    font-family: var(--f-display);
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

.request-icon {
    --c: var(--violet);
    --ct: var(--violet-t);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: var(--ct);
    color: var(--c);
}

.request-icon.pending { --c: var(--amber); --ct: var(--amber-t); }
.request-icon.approved { --c: var(--lime); --ct: var(--lime-t); }
.request-icon.rejected { --c: var(--coral); --ct: var(--coral-t); }

.request-info {
    flex: 1;
    min-width: 0;
}

.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.request-header h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 4px;
}

.request-details span {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.request-details i {
    margin-right: 3px;
}

.request-amount-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.discount-info {
    color: var(--text-2);
}

.amount-paid {
    color: var(--lime);
}

.request-slip img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line-2);
}

/* ==================== CAROUSEL & APP INSTALL (shared) ==================== */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    background: var(--lime-ink);
    color: var(--lime);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
}

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

/* ==================== SMALL SCREENS ==================== */
@media (max-width: 380px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-top {
        padding-left: 12px;
        padding-right: 12px;
    }

    .balance-box .bal-label {
        display: none;
    }

    .auth-btn {
        padding: 0 12px;
        font-size: 12px;
    }

    .page-header-content h2 {
        font-size: 18px;
    }

    .stat-value {
        font-size: 15px;
    }

    .quick-actions-grid {
        gap: 8px;
    }

    .summary-value {
        font-size: 13px;
    }
}
