@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #5B16D6;
    --secondary: #F97316;
    --bs-primary: var(--primary);
    --bs-primary-rgb: 91, 22, 214;
    --typix-violet: var(--primary);
    --typix-navy: #11164D;
    --typix-orange: var(--secondary);
    --typix-gold: #F59E0B;
    --typix-canvas: #F8F9FC;
    --typix-tray: #ECEFF6;
    --typix-ink: #0D1138;
    --typix-muted: #4A526E;
    --typix-border: #E2E6F0;
    --bg-dark: #F8F9FC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --border-glass: #E2E6F0;
    --text-primary: #0D1138;
    --text-secondary: #4A526E;
    --text-muted: #646D8A;
    --gradient-primary: var(--primary);
    --shadow-soft: 0 2px 6px rgba(17, 22, 77, 0.04), 0 12px 28px -12px rgba(17, 22, 77, 0.10);
    --shadow-glow: none;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --blur: none;
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --gold-primary: #F59E0B;
    --gold-light: #FDE68A;
    --gold-dark: #D97706
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: none;
}

a {
    text-decoration: none;
    color: var(--typix-violet);
    transition: color 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

a:hover {
    color: var(--typix-orange);
}

img {
    max-width: 100%;
    height: auto
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: var(--bg-dark)
}

::-webkit-scrollbar-thumb {
    background: var(--typix-violet);
    border-radius: 3px
}

/* ============================================================
   TYPIX SURFACE CARDS (Crisp Tactile Hairline Architecture)
   ============================================================ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.25s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: #D5DBE9;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(17, 22, 77, 0.10);
}

.glass-card-static {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.gradient-border-card {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

/* ============================================================
   NAVIGATION / HEADER
   ============================================================ */
.navbar-glass {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-glass);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: border-color 0.25s ease;
}

.navbar-glass .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: var(--typix-navy);
}

.navbar-glass .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    color: var(--typix-violet);
    background: rgba(91, 22, 214, 0.08);
}

.navbar-glass .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--typix-violet);
    border-radius: 2px;
}

.navbar-toggler {
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.navbar-toggler-icon {
    filter: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gradient {
    background: var(--typix-violet);
    color: #fff !important;
    border: 1px solid var(--typix-violet);
    padding: 0.78rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.btn-gradient:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000000);
    border-color: color-mix(in srgb, var(--primary) 86%, #000000);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 35%, transparent);
    color: #fff !important;
}

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

.btn-glass,
a.btn-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary) !important;
    padding: 0.75rem 1.65rem;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-glass:hover {
    background: #F4F1FD;
    border-color: var(--typix-violet);
    color: var(--typix-violet) !important;
    transform: translateY(-1px);
}

.btn-sm-gradient {
    background: var(--typix-violet);
    color: #fff !important;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.2s ease;
}

.btn-sm-gradient:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000000);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-glass {
    background: var(--typix-canvas);
    border: 1px solid var(--typix-border);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.85rem 1.1rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-glass:focus {
    outline: none;
    border-color: var(--typix-violet);
    box-shadow: 0 0 0 3px rgba(91, 22, 214, 0.14);
    background: #FFFFFF;
}

span.form-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

select.form-glass {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

select.form-glass option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-glass::placeholder {
    color: var(--text-secondary);
    text-transform: none;
}

.form-label-glass {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}

/* ============================================================
   AUTH PAGES (Login/Signup)
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--typix-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -20px rgba(15, 23, 42, 0.14);
}

.auth-card .auth-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    color: var(--typix-ink);
    text-align: center;
    margin-bottom: 0.4rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-size: 0.92rem;
}

.auth-card .form-group {
    margin-bottom: 1.2rem;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Step indicator for multi-step signup */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border-glass);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--typix-violet);
    border-color: var(--typix-violet);
    color: #fff;
}

.step-dot.completed {
    background: #ECFDF5;
    border-color: #059669;
    color: #059669;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-glass);
    border-radius: 1px;
}

.step-line.active {
    background: var(--typix-violet);
}

/* Avatar upload area */
.avatar-upload-area {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px dashed #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    position: relative;
    background: var(--typix-canvas);
}

.avatar-upload-area:hover {
    border-color: var(--typix-violet);
    transform: translateY(-2px);
}

.avatar-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-area .upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

/* ============================================================
   FEED / POST CARDS
   ============================================================ */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-card {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
}

.post-card .post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
}

.post-card .post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--typix-border);
}

.post-card .post-username {
    font-weight: 600;
    font-size: 0.95rem;
}

.post-card .post-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.post-card .post-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
}

.post-card .post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image-wrap img {
    transform: scale(1.02);
}

/* Like heart overlay animation */
.like-heart-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 5rem;
    color: #ff2d55;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.5));
}

.like-heart-overlay.animate {
    animation: heartPop 0.8s ease-in-out forwards;
}

@keyframes heartPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.3);
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
    }

    60% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.post-card .post-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
}

.post-card .action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-card .action-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.post-card .action-btn.liked {
    color: #ff2d55;
}

.post-card .action-btn .count {
    font-size: 0.85rem;
    font-weight: 500;
}

.post-card .post-caption {
    padding: 0 1.2rem 1rem;
    background: var(--bg-card);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
    word-break: break-word;
}

.post-card .post-caption strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* ============================================================
   FLOATING WALLET CARD
   ============================================================ */
.floating-wallet {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 220px;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: #11164D;
    border: 1px solid rgba(91, 22, 214, 0.45);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.25s ease;
    animation: walletFloat 3s ease-in-out infinite;
}

.floating-wallet:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.35);
}

.floating-wallet::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg,
            transparent 40%,
            rgba(255, 215, 0, 0.15) 45%,
            rgba(255, 215, 0, 0.25) 50%,
            rgba(255, 215, 0, 0.15) 55%,
            transparent 60%);
    animation: goldShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes goldShine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

@keyframes walletFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.floating-wallet .wallet-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.floating-wallet .wallet-balance {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.floating-wallet .wallet-icon {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.2rem;
    color: var(--gold-light);
    opacity: 0.5;
}

/* ============================================================
   WALLET PAGE
   ============================================================ */
.wallet-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.wallet-hero .balance-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: none;
}

.wallet-hero .balance-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Transaction list */
.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

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

.transaction-item .tx-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-item .tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tx-icon.credit {
    background: #ECFDF5;
    color: #059669;
}

.tx-icon.debit {
    background: rgba(255, 45, 85, 0.15);
    color: #ff2d55;
}

.transaction-item .tx-type {
    font-weight: 500;
    font-size: 0.9rem;
}

.transaction-item .tx-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.transaction-item .tx-amount {
    font-weight: 700;
    font-family: var(--font-heading);
}

.tx-amount.positive {
    color: #2ecc71;
}

.tx-amount.negative {
    color: #ff2d55;
}

/* ============================================================
   SPIN WHEEL & DAILY CLAIM
   ============================================================ */
.spin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.spin-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 2rem 0;
}

.spin-wrapper canvas {
    width: 100%;
    height: 100%;
}

.spin-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    z-index: 5;
}

.spin-btn {
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.claim-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.claim-amount {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.claim-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.claim-btn:disabled,
.claim-btn.claimed {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
    text-align: center;
    padding: 3rem 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-image: var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    margin-bottom: 1rem;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(17, 22, 77, 0.16);
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 22, 214, 0.35);
}

.admin-sidebar .sidebar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--typix-navy);
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.admin-sidebar .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 0 auto;
}

.admin-sidebar .sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .sidebar-nav li a:hover,
.admin-sidebar .sidebar-nav li a.active {
    color: var(--typix-violet);
    background: rgba(91, 22, 214, 0.08);
    border-left-color: var(--typix-violet);
}

.admin-sidebar .sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

.admin-page-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.stat-card .stat-icon.purple {
    background: rgba(91, 22, 214, 0.10);
    color: var(--typix-violet);
}

.stat-card .stat-icon.cyan {
    background: #FEF3C7;
    color: #B45309;
}

.stat-card .stat-icon.pink {
    background: #ECFDF5;
    color: #047857;
}

.stat-card .stat-icon.gold {
    background: #FEF3C7;
    color: var(--gold-dark);
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(20px, -20px);
}

/* Admin Tables & Elements */
.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass thead th {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    text-align: left;
    font-weight: 600;
}

.table-glass tbody td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.table-glass tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.badge-status {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-status.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badge-status.inactive {
    background: rgba(255, 45, 85, 0.15);
    color: #ff2d55;
}

.badge-status.admin {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-preview:hover {
    transform: scale(1.1);
}

/* ============================================================
   ALERTS, MODALS, EXTRAS
   ============================================================ */
.alert-glass {
    padding: 0.95rem 1.25rem;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-glass.success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-glass.error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.alert-glass.info {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.modal-glass .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}


.modal-glass .modal-header {
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem;
}

.modal-glass .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.modal-glass .modal-body {
    padding: 1.5rem;
}

.modal-glass .modal-footer {
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem;
}

.modal-glass .btn-close {
    filter: invert(1);
}

.create-post-area {
    padding: 1.2rem;
    margin-bottom: 2rem;
    cursor: pointer;
}

.create-post-area .user-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.image-preview-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.03);
}

.image-preview-container:hover {
    border-color: var(--primary);
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-container .preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
}

.spin-result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.spin-result-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.spin-result-content {
    text-align: center;
    animation: popIn 0.5s ease;
}

.spin-result-content .result-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.segment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.segment-item .seg-color {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
}

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-gradient {
    color: var(--typix-violet);
}

.text-gold {
    color: var(--gold-primary);
}

/* Bootstrap Primary Token Overrides */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--primary) 86%, #000000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--primary) 86%, #000000);
    --bs-btn-active-bg: color-mix(in srgb, var(--primary) 78%, #000000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--primary) 78%, #000000);
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: var(--typix-violet) !important;
    border-color: var(--typix-violet) !important;
}

.btn-outline-primary:hover {
    background-color: var(--typix-violet) !important;
    border-color: var(--typix-violet) !important;
    color: #FFFFFF !important;
}

.text-primary {
    color: var(--typix-violet) !important;
}

.bg-primary {
    background-color: rgba(var(--bs-primary-rgb, 91, 22, 214), var(--bs-bg-opacity, 1)) !important;
}

.border-primary {
    border-color: rgba(var(--bs-primary-rgb, 91, 22, 214), var(--bs-border-opacity, 1)) !important;
}

.form-check-input:checked {
    background-color: var(--typix-violet) !important;
    border-color: var(--typix-violet) !important;
}

.form-check-input:focus {
    border-color: var(--typix-violet) !important;
    box-shadow: 0 0 0 0.25rem rgba(91, 22, 214, 0.2) !important;
}

/* ============================================================
   SPACING UTILITIES
   ============================================================ */
.mt-section {
    margin-top: 3rem;
}

.mb-section {
    margin-bottom: 3rem;
}

.feed-section {
    padding-bottom: 5rem;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-primary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE — TABLETS (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: 1rem;
    }

    .navbar-glass .nav-link {
        padding: 0.6rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .navbar-glass .nav-link.active::after {
        display: none;
    }

    .wallet-hero .balance-amount {
        font-size: 2.4rem;
    }

    .claim-amount {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — TABLETS & PHONES (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Admin */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.open,
    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-page-title {
        font-size: 1.4rem;
    }

    /* Tables: horizontal scroll */
    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-glass thead th,
    .table-glass tbody td {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.82rem;
    }

    /* Floating Wallet */
    .floating-wallet {
        width: 170px;
        bottom: 1rem;
        right: 1rem;
        padding: 0.7rem 0.9rem;
    }

    .floating-wallet .wallet-balance {
        font-size: 1rem;
    }

    .floating-wallet .wallet-label {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    /* Auth */
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-card .auth-logo {
        font-size: 1.6rem;
    }

    /* Spin Wheel */
    .spin-wrapper {
        width: 260px;
        height: 260px;
    }

    .spin-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Profile */
    .profile-header {
        padding: 2rem 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-stats {
        gap: 2rem;
    }

    .profile-stat .stat-num {
        font-size: 1.2rem;
    }

    /* Wallet */
    .wallet-hero {
        padding: 2rem 1rem;
    }

    .wallet-hero .balance-amount {
        font-size: 2rem;
    }

    .transaction-item {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .transaction-item .tx-info {
        gap: 0.7rem;
    }

    .transaction-item .tx-icon {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    /* Claim */
    .claim-amount {
        font-size: 2.8rem;
    }

    .claim-container {
        min-height: 50vh;
        padding: 1.5rem;
    }

    /* Post grid */
    .page-wrapper.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Segment items (spin config) */
    .segment-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Stat cards */
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    /* Spin result */
    .spin-result-content .result-amount {
        font-size: 2.5rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE PHONES (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {

    /* Navbar */
    .navbar-glass {
        padding: 0.5rem 0;
    }

    .navbar-glass .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-glass .navbar-brand img {
        max-height: 24px !important;
    }

    /* Feed */
    .feed-container {
        padding: 1rem 0.5rem;
    }

    .post-card {
        margin-bottom: 1rem;
        border-radius: var(--radius-sm);
    }

    .post-card .post-header {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
    }

    .post-card .post-avatar {
        width: 36px;
        height: 36px;
    }

    .post-card .post-username {
        font-size: 0.88rem;
    }

    .post-card .post-time {
        font-size: 0.7rem;
    }

    .post-card .post-actions {
        padding: 0.6rem 0.8rem;
        gap: 0.8rem;
    }

    .post-card .action-btn {
        font-size: 1.15rem;
    }

    .post-card .action-btn .count {
        font-size: 0.8rem;
    }

    .post-caption {
        font-size: 0.88rem !important;
    }

    /* Like heart overlay */
    .like-heart-overlay {
        font-size: 3.5rem;
    }

    /* Glass cards general */
    .glass-card {
        border-radius: var(--radius-sm);
    }

    .glass-card-static {
        border-radius: var(--radius-sm);
    }

    /* Profile */
    .profile-header {
        padding: 1.5rem 1rem;
    }

    .profile-avatar {
        width: 85px;
        height: 85px;
    }

    .profile-name {
        font-size: 1.15rem;
    }

    .profile-email {
        font-size: 0.8rem;
    }

    .profile-stats {
        gap: 1.5rem;
    }

    .profile-stat .stat-num {
        font-size: 1.1rem;
    }

    .profile-stat .stat-label {
        font-size: 0.65rem;
    }

    /* Post grid on profile */
    .row.g-4 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    /* Wallet */
    .wallet-hero {
        padding: 1.5rem 1rem;
    }

    .wallet-hero .balance-amount {
        font-size: 1.8rem;
    }

    .wallet-hero .balance-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .transaction-item .tx-type {
        font-size: 0.82rem;
    }

    .transaction-item .tx-date {
        font-size: 0.7rem;
    }

    /* Claim */
    .claim-amount {
        font-size: 2.2rem;
    }

    .claim-btn,
    .spin-btn {
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
    }

    .claim-container {
        min-height: 45vh;
        padding: 1rem;
    }

    /* Spin Wheel */
    .spin-wrapper {
        width: 240px;
        height: 240px;
    }

    .spin-container {
        padding: 1rem;
    }

    /* Auth */
    .auth-wrapper {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem 1.2rem;
    }

    .auth-card .auth-logo {
        font-size: 1.4rem;
    }

    .form-glass {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn-gradient {
        padding: 0.6rem 1.5rem;
        font-size: 0.88rem;
    }

    /* Floating Wallet */
    .floating-wallet {
        width: 155px;
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.6rem 0.8rem;
        border-radius: var(--radius-sm);
    }

    .floating-wallet .wallet-balance {
        font-size: 0.95rem;
    }

    .floating-wallet .wallet-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .floating-wallet .wallet-icon {
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Alerts */
    .alert-glass {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Section spacing */
    .mt-section {
        margin-top: 2rem;
    }

    .mb-section {
        margin-bottom: 2rem;
    }

    /* Admin stat cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .stat-card .stat-label {
        font-size: 0.7rem;
    }

    /* Spin result overlay */
    .spin-result-content .result-amount {
        font-size: 2rem;
    }

    /* Comment section */
    .comments-list {
        max-height: 250px !important;
    }

    /* Step indicator */
    .step-line {
        width: 40px;
    }

    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Avatar upload area */
    .avatar-upload-area {
        width: 120px;
        height: 120px;
    }

    /* Referral page */
    .glass-card.p-4 {
        padding: 1.2rem !important;
    }

    /* Empty states */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state i {
        font-size: 2rem;
    }

    /* h1-h5 scaling */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    h4 {
        font-size: 1.05rem;
    }

    h5 {
        font-size: 0.95rem;
    }
}

/* ============================================================
   RESPONSIVE — VERY SMALL PHONES (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .navbar-glass .navbar-brand {
        font-size: 1rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .profile-stat .stat-num {
        font-size: 1rem;
    }

    .spin-wrapper {
        width: 210px;
        height: 210px;
    }

    .claim-amount {
        font-size: 1.8rem;
    }

    .wallet-hero .balance-amount {
        font-size: 1.5rem;
    }

    .floating-wallet {
        width: 140px;
        padding: 0.5rem 0.7rem;
    }

    .floating-wallet .wallet-balance {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   UTILITY — TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .glass-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .btn-gradient:hover {
        transform: none;
    }

    .btn-glass:hover {
        transform: none;
    }

    .post-card:hover .post-image-wrap img {
        transform: none;
    }

    /* Larger tap targets */
    .post-card .action-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Disable floating wallet animation on touch */
    .floating-wallet {
        animation: none;
    }

    .floating-wallet:hover {
        transform: none;
    }
}

/* ============================================================
   AD LAYOUT FIXES
   ============================================================ */

/* Ensure navbar is ALWAYS above ads */
.navbar-glass {
    z-index: 99999 !important;
}

/* Move Monetag In-Page Push notifications to the LEFT side */
/* These notifications normally appear top-right, blocking the menu */
div[class*="ipush"],
div[id*="ipush"],
div[class*="push-notification"],
div[style*="z-index: 99999"],
div[style*="z-index:99999"] {
    left: 10px !important;
    right: auto !important;
}

/* Ad slots: prevent overflow on mobile */
.ad-slot {
    max-width: 100%;
    overflow: hidden;
    margin: 10px auto;
    text-align: center;
}

.ad-slot iframe {
    max-width: 100% !important;
}

/* A-Ads frame: responsive */
#frame {
    max-width: 100%;
    overflow: hidden;
}

#frame iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* Mobile-specific ad fixes */
@media (max-width: 768px) {

    /* Scale down banner ads on mobile */
    .ad-slot {
        transform: scale(0.9);
        transform-origin: center top;
    }

    /* A-Ads frame responsive */
    #frame {
        width: 100% !important;
    }

    /* Ensure navbar toggler is clickable */
    .navbar-toggler {
        z-index: 100000 !important;
        position: relative;
    }

    /* Monetag notifications: left side, smaller */
    div[class*="ipush"],
    div[id*="ipush"] {
        left: 5px !important;
        right: auto !important;
        max-width: 80% !important;
    }
}

/* ============================================================
   TYPIX LOGO-MATCHED LANDING, BLOCKED APP HUB & AUTH POLISH
   Palette from Typix Logo: Navy #11164D, Violet #5B16D6, Orange #F97316, Gold #F59E0B
   ============================================================ */
.tx-page {
    background: #F8F9FC;
    color: #0D1138;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: clip;
}

.tx-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

.tx-hero-grid > *,
.tx-core,
.tx-tray {
    min-width: 0;
}

.tx-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E6F0;
}

.tx-nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tx-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    color: #11164D;
    text-decoration: none;
}

.tx-brand:hover {
    color: #5B16D6;
}

.tx-brand img {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #E2E6F0;
    background: #FFFFFF;
}

.tx-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tx-nav-link {
    font-size: 0.94rem;
    font-weight: 600;
    color: #4A526E;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tx-nav-link:hover {
    color: #11164D;
}

.tx-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 56px 0 64px;
}

.tx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 48px;
    align-items: center;
}

.tx-display {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0D1138;
    margin-bottom: 18px;
    text-wrap: balance;
}

.tx-lead {
    font-size: 1.06rem;
    line-height: 1.65;
    color: #4A526E;
    max-width: 52ch;
    margin-bottom: 30px;
    text-wrap: pretty;
}

.tx-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.tx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #5B16D6;
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    border: 1px solid #5B16D6;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.tx-btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000000);
    border-color: color-mix(in srgb, var(--primary) 86%, #000000);
    color: #FFFFFF;
    transform: translateY(-1px);
}

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

.tx-btn-violet {
    background: var(--primary);
    border-color: var(--primary);
}

.tx-btn-violet:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000000);
    border-color: color-mix(in srgb, var(--primary) 86%, #000000);
}

.tx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #11164D;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #D5DBE9;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.tx-btn-secondary:hover {
    border-color: var(--primary);
    background: #F4F1FD;
    color: var(--primary);
    transform: translateY(-1px);
}

.tx-btn-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.tx-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 8px;
}

.tx-stats-divider {
    width: 1px;
    height: 38px;
    background: #DCE2EE;
}

.tx-metric-val {
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0D1138;
    line-height: 1.2;
}

.tx-metric-lbl {
    font-size: 0.84rem;
    color: #646D8A;
    margin-top: 2px;
}

/* Hero Right: Typix Feed Mockup + Daily Reward Badge */
.tx-showcase-wrap {
    position: relative;
}

.tx-feed-card {
    background: #FFFFFF;
    border: 1px solid #E2E6F0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 44px -18px rgba(17, 22, 77, 0.16);
}

.tx-feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EEF1F8;
}

.tx-feed-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tx-feed-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tx-feed-dots .dot-navy { background: #11164D; }
.tx-feed-dots .dot-violet { background: #5B16D6; }
.tx-feed-dots .dot-orange { background: #F97316; }

.tx-post-preview {
    background: #FFFFFF;
    border: 1px solid #EEF1F8;
    border-radius: 14px;
    padding: 16px;
}

.tx-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tx-post-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EEF1F8;
}

.tx-skel-line {
    background: #DCE2EE;
    border-radius: 6px;
}

.tx-skel-line.is-light {
    background: #EEF1F8;
}

.tx-post-media {
    width: 100%;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
}

.tx-reward-badge {
    position: absolute;
    top: -20px;
    right: -16px;
    background: #FFFFFF;
    border: 1px solid #E2E6F0;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 14px 30px -12px rgba(17, 22, 77, 0.22);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.tx-reward-coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FEF3C7;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Blocked / Download Page Styles */
.tx-badge-app {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.tx-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.tx-feature-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.tx-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.tx-feature-icon.gold { background: #FEF3C7; color: #D97706; }
.tx-feature-icon.orange { background: #FFEDD5; color: #EA580C; }
.tx-feature-icon.violet { background: #F3EEFD; color: #5B16D6; }

/* Android Phone Mockup */
.tx-phone-wrap {
    display: flex;
    justify-content: center;
}

.tx-phone-frame {
    width: 268px;
    height: 486px;
    background: #FFFFFF;
    border-radius: 36px;
    border: 8px solid #11164D;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 50px -18px rgba(17, 22, 77, 0.28);
}

.tx-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    background: #11164D;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.tx-phone-screen {
    width: 100%;
    height: 100%;
    background: #F8F9FC;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 46px 16px 58px;
}

.tx-phone-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #E2E6F0;
    background: #FFFFFF;
    margin-bottom: 10px;
}

.tx-phone-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #11164D;
    margin-bottom: 18px;
}

.tx-phone-item {
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #E2E6F0;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.tx-phone-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tx-phone-bar {
    height: 8px;
    border-radius: 4px;
    background: #E2E6F0;
}

.tx-phone-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #FFFFFF;
    border-top: 1px solid #E2E6F0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
}

.tx-phone-dot {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: #DCE2EE;
}

.tx-phone-dot.is-active {
    background: #F97316;
    width: 26px;
}

.tx-footer {
    margin-top: auto;
    border-top: 1px solid #E2E6F0;
    background: #FFFFFF;
    padding: 24px 0;
}

.tx-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 991px) {
    .tx-hero {
        padding: 36px 0 48px;
    }

    .tx-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tx-reward-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 14px;
    }
}

@media (max-width: 575px) {
    .tx-container {
        padding-inline: 16px;
    }

    .tx-nav-actions .tx-btn-secondary {
        display: none;
    }

    .tx-nav-actions .tx-btn-primary {
        padding: 9px 16px;
        font-size: 0.84rem;
    }

    .tx-nav-link {
        font-size: 0.85rem;
    }

    .tx-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-cta-row .tx-btn-primary,
    .tx-cta-row .tx-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tx-stats-row {
        gap: 16px;
        flex-wrap: wrap;
    }

    .tx-phone-frame {
        width: 220px;
        height: 400px;
    }

    .tx-footer {
        overflow-x: hidden;
    }

    .auth-wrapper {
        padding: 20px 16px;
        width: 100%;
    }

    .auth-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }
}