/* =====================================================
   CENZAH.COM — Where Real Connections Begin
   Theme Colors: Red, Green, Blue (flat, no gradients)
   ===================================================== */

/* ---- CSS Variables ---- */
:root {
    --red: #E63946;
    --red-dark: #C62828;
    --red-light: #FFCDD2;
    --green: #2DC653;
    --green-dark: #1B9E3E;
    --green-light: #C8E6C9;
    --blue: #1D3557;
    --blue-mid: #457B9D;
    --blue-light: #A8DADC;
    --blue-pale: #E3F2FD;
    --navbar-bg: #8a39af;

    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --dark: #0D1117;

    --gold: #F4A261;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 2px 8px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,.15);
    --transition: .2s ease;
}

html,
body,
input,
select,
textarea,
button {
    font-family: var(--font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.lp2-hero-badge,
.lp2-sec-label {
    font-family: var(--font-display);
}

.lp2-members {
    padding: 84px 0;
    background: linear-gradient(180deg, #f8f3fc 0%, #ffffff 100%);
}
.lp2-members-inner {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}
.lp2-members-sub {
    margin-top: 14px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.8;
    max-width: 52ch;
}
.lp2-members-mini-list {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}
.lp2-members-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(138,57,175,.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.lp2-member-avatar {
    position: relative;
    flex-shrink: 0;
}
.lp2-members-mini-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(138,57,175,.2);
}
.lp2-country-flag {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(138,57,175,.16);
    box-shadow: 0 4px 10px rgba(34, 20, 43, .12);
    font-size: 13px;
    line-height: 1;
}
.lp2-members-mini-item strong {
    display: block;
    color: var(--gray-900);
    font-size: 14px;
}
.lp2-members-mini-item span {
    display: block;
    color: var(--gray-600);
    font-size: 12px;
}
/* ---- Activity Feed (members section) ---- */
.lp2-activity-feed {
    background: #ffffff;
    border: 1.5px solid rgba(138,57,175,.15);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 340px;
    box-shadow: 0 4px 24px rgba(138,57,175,.08);
}
.lp2-activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.lp2-activity-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(45,198,83,.4);
    animation: lp2-pulse 1.8s ease-out infinite;
}
@keyframes lp2-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(45,198,83,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(45,198,83,0); }
    100% { box-shadow: 0 0 0 0 rgba(45,198,83,0); }
}
.lp2-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.lp2-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translateY(10px);
    animation: lp2-slide-in .5s ease forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes lp2-slide-in {
    to { opacity: 1; transform: translateY(0); }
}
.lp2-activity-item--match .lp2-activity-icon { color: var(--red); background: var(--red-light); }
.lp2-activity-item--live  .lp2-activity-icon { color: var(--green-dark); background: var(--green-light); }
.lp2-activity-item--gift  .lp2-activity-icon { color: var(--blue-mid); background: var(--blue-pale); }
.lp2-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.lp2-activity-text {
    flex: 1;
    min-width: 0;
}
.lp2-activity-text strong {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}
.lp2-activity-text span {
    display: block;
    font-size: .76rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp2-activity-time {
    font-size: .7rem;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}
.lp2-activity-footer {
    font-size: .72rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid var(--gray-200);
}
.lp2-activity-footer i { color: var(--green); font-size: .82rem; }
.lp2-activity-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--gray-500);
    padding: 24px 0;
}

.lp2-members-map {
    position: relative;
    min-height: 420px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 20% 20%, rgba(138,57,175,.06), transparent 30%),
        radial-gradient(circle at 75% 70%, rgba(138,57,175,.06), transparent 30%),
        linear-gradient(180deg, #f8f3fc 0%, #ffffff 100%);
    border: 1px solid rgba(138,57,175,.12);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lp2-members-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/public/images/world-map.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    opacity: .3;
}
.lp2-members-map-shape {
    display: none;
}
.lp2-member-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.lp2-member-avatar--map img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 12px 28px rgba(34, 20, 43, .18);
    background: #fff;
}
.lp2-country-flag--map {
    right: -5px;
    bottom: -4px;
}
.lp2-member-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% - 2px);
    width: 2px;
    height: 18px;
    transform: translateX(-50%);
    background: rgba(138,57,175,.35);
}
.lp2-member-card {
    position: absolute;
    left: 50%;
    top: calc(100% + 22px);
    transform: translateX(-50%);
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(138,57,175,.12);
    box-shadow: var(--shadow);
    text-align: center;
}
.lp2-member-card strong {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
}
.lp2-member-card span {
    display: block;
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 2px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.text-gold { color: var(--gold) !important; }
.text-gray { color: var(--gray-600) !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn i { font-size: 16px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-mid); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-red { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--gray-100); color: var(--blue); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius-full); }
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-icon.btn-lg { width: 48px; height: 48px; }
.brand-mark-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.brand-mark-icon--button {
    width: 18px;
    height: 18px;
}
.brand-mark-icon--mockup {
    width: 24px;
    height: 24px;
}

/* ---- Navbar ---- */
.navbar {
    background: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
}

/* Brand */
.brand-logo {
    --logo-wordmark: #17324F;
    --logo-tagline: #5B7288;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-logo__svg {
    display: block;
    width: auto;
    height: 40px;
}
.brand-logo__wordmark { fill: var(--logo-wordmark); }
.brand-logo__tagline { fill: var(--logo-tagline); }

.navbar-brand {
    display: flex;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
    margin-right: 8px;
    text-decoration: none;
}
.navbar-brand { --logo-wordmark: #FFFFFF; --logo-tagline: #D7E4EF; }
.navbar-brand .brand-logo__svg { height: 34px; }
.navbar-brand:hover { color: #fff; opacity: .9; }

/* Center nav links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.navbar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius);
    color: rgba(255,255,255,.72);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s, background .18s;
    white-space: nowrap;
}
.navbar-link i { font-size: 17px; flex-shrink: 0; }
.navbar-link:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.navbar-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--red);
    border-radius: 2px 2px 0 0;
}
/* Chat unread badge */
.navbar-link-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--red);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
.dash-premium-badge--creator {
    background: rgba(45,198,83,.18);
    color: #d8ffe4;
    border: 1px solid rgba(45,198,83,.38);
}
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid var(--blue);
}
/* Live red dot */
.navbar-live-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
.navbar-dropdown-plan {
    margin-top: 6px;
}
.navbar-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(244,162,97,.14);
    border: 1px solid rgba(244,162,97,.28);
    color: #8a4f08;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.navbar-plan-chip i {
    font-size: 12px;
}
.navbar-plan-chip--creator {
    background: rgba(45,198,83,.12);
    border-color: rgba(45,198,83,.26);
    color: var(--green-dark);
}
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

/* Right-side actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Coins chip */
.navbar-coins {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(244,162,97,.15);
    border: 1px solid rgba(244,162,97,.35);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s, border-color .18s;
    flex-shrink: 0;
    letter-spacing: .01em;
}
.navbar-coins i { font-size: 15px; }
.navbar-coins #navCoinsBal {
    min-width: 20px;
    text-align: right;
}
.navbar-coins:hover {
    background: rgba(244,162,97,.25);
    border-color: rgba(244,162,97,.6);
    color: var(--gold);
}

/* Icon buttons (notif bell) */
.navbar-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: rgba(255,255,255,.78);
    font-size: 20px;
    transition: background .18s, color .18s;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.navbar-icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar-icon-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: var(--radius-full);
    border: 2px solid var(--navbar-bg);
}
/* Count variant — shows number instead of a dot */
.navbar-icon-badge--count {
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* Chat link badge bubble */
.navbar-link { position: relative; }
.navbar-link-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--red);
    border-radius: var(--radius-full);
    border: 2px solid var(--navbar-bg);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* ---- Notification panel (dropdown from bell) ---- */
.navbar-notif-wrap { position: relative; }
.navbar-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    width: 340px;
    max-height: 460px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 910;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}
.navbar-notif-panel.open { display: flex; }
.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px 14px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
    background: #fff;
}
.notif-panel-head span {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -.01em;
}
/* Unread count badge inside the panel header */
.notif-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    margin-left: 7px;
    vertical-align: middle;
    line-height: 1;
}
.notif-panel-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-400);
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    margin-left: 4px;
}
.notif-panel-close:hover { background: var(--gray-200); color: var(--gray-700); }
.notif-panel-body { overflow-y: auto; flex: 1; }
.notif-panel-foot {
    padding: 10px 18px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}
.notif-mark-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--blue-mid);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: background .15s, color .15s;
}
.notif-mark-read::before {
    content: '\f017';
    font-family: remixicon;
    font-size: 13px;
}
.notif-mark-read:hover {
    background: var(--blue-pale);
    color: var(--blue);
}
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 24px;
    color: var(--gray-400);
    font-size: 13px;
    text-align: center;
}
.notif-empty i {
    font-size: 38px;
    color: var(--gray-300);
    display: block;
}
.notif-empty p {
    margin: 0;
    font-weight: 500;
    color: var(--gray-500);
}

/* Notification items */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-100);
    transition: background .15s;
    cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-100); }
.notif-item.unread { background: var(--blue-pale); }
.notif-item-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-item-icon.match      { background: var(--red-light);   color: var(--red); }
.notif-item-icon.message    { background: var(--blue-pale);   color: var(--blue-mid); }
.notif-item-icon.gift       { background: var(--green-light); color: var(--green-dark); }
.notif-item-icon.system     { background: var(--gray-200);    color: var(--gray-600); }
.notif-item-icon.withdrawal { background: #fff7ed;            color: #c2410c; }
.notif-item-icon.payment    { background: #f0fdf4;            color: #16a34a; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-body strong { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); }
.notif-item-body p  { font-size: 12px; color: var(--gray-600); margin: 2px 0 3px; line-height: 1.4; }
.notif-item-body time { font-size: 11px; color: var(--gray-400); }

/* ---- Profile dropdown ---- */
.navbar-profile-wrap { position: relative; }
.navbar-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    font-size: 13.5px;
    font-weight: 600;
}
.navbar-profile-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.28);
}
.navbar-avatar {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.navbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar-avatar-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    border: 1.5px solid var(--navbar-bg);
}
.navbar-profile-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-chevron { font-size: 16px; transition: transform .2s; color: rgba(255,255,255,.7); }
.navbar-profile-btn[aria-expanded="true"] .navbar-chevron { transform: rotate(180deg); }

/* Dropdown menu */
.navbar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    z-index: 910;
}
.navbar-dropdown.open { display: block; }

.navbar-dropdown-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px 13px;
    background: var(--gray-100);
}
.navbar-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--blue-mid);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.navbar-dropdown-avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar-dropdown-info { min-width: 0; }
.navbar-dropdown-info strong {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-dropdown-info span {
    display: block;
    font-size: 11.5px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.navbar-dropdown-divider { height: 1px; background: var(--gray-200); margin: 4px 0; }
.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--gray-700);
    transition: background .15s, color .15s;
    text-decoration: none;
}
.navbar-dropdown-item i { font-size: 17px; width: 18px; text-align: center; color: var(--gray-500); }
.navbar-dropdown-item:hover { background: var(--gray-100); color: var(--blue); }
.navbar-dropdown-item:hover i { color: var(--blue-mid); }
.navbar-dropdown-item--danger { color: var(--red); }
.navbar-dropdown-item--danger i { color: var(--red); }
.navbar-dropdown-item--danger:hover { background: var(--red-light); color: var(--red-dark); }

/* Mobile hamburger */
.navbar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: rgba(255,255,255,.85);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .18s;
    flex-shrink: 0;
}
.navbar-toggle:hover { background: rgba(255,255,255,.12); }

/* ---- Mobile Bottom Nav ---- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Regular tab item */
.mn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 1;
    min-width: 0;
    padding: 8px 4px 6px;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: color .2s;
}
.mn-item i {
    font-size: 22px;
    line-height: 1;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 1;
}
.mn-label {
    font-size: 10px;
    font-weight: 600;
    transition: color .2s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Pill highlight behind active item */
.mn-pill {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 48px;
    height: 30px;
    border-radius: 16px;
    background: #8a39af;
    opacity: 0;
    transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
}

/* Active state */
.mn-item--active {
    color: #8a39af;
}
.mn-item--active .mn-pill {
    opacity: .12;
    transform: translateX(-50%) scaleX(1);
}
.mn-item--active i {
    transform: translateY(-2px) scale(1.1);
    color: #8a39af;
}
.mn-item:active i {
    transform: scale(.85);
}

/* Icon wrap for badge positioning */
.mn-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Unread badge */
.mn-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
    line-height: 1;
    box-sizing: border-box;
}

/* ── Centre FAB (Live) ── */
.mn-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 1;
    padding-bottom: 6px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 600;
    position: relative;
    margin-top: -18px; /* lift above bar */
}
.mn-fab-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a39af 0%, #5c2d7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(138,57,175,.45);
    position: relative;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.mn-fab-inner i {
    font-size: 24px;
    color: #fff;
    line-height: 1;
}
.mn-fab:active .mn-fab-inner {
    transform: scale(.88);
    box-shadow: 0 2px 8px rgba(138,57,175,.35);
}
.mn-fab--active .mn-fab-inner {
    box-shadow: 0 6px 20px rgba(138,57,175,.55);
    transform: scale(1.05);
}
.mn-label--fab {
    color: #8a39af;
    font-weight: 700;
}

/* Live pulse dot on FAB */
.mn-live-pulse {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    border: 1.5px solid #fff;
}
.mn-live-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--red);
    animation: mn-pulse 1.8s ease-out infinite;
    opacity: 0;
}
@keyframes mn-pulse {
    0%   { transform: scale(.6); opacity: .7; }
    100% { transform: scale(1.8); opacity: 0; }
}


/* ---- Notification Panel — see Navbar section above (.navbar-notif-panel) ---- */

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group label .required { color: var(--red); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: #fff;
    color: var(--gray-800);
    transition: border-color var(--transition);
    font-size: 14px;
}
.form-control:focus { border-color: var(--blue-mid); }
.form-control::placeholder { color: var(--gray-500); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23868E96' d='M12 16l-6-6h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group-append {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 18px;
}
.input-group-append:hover { color: var(--gray-700); }

/* ---- Radio Cards ---- */
.radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card {
    flex: 1;
    min-width: 100px;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
.radio-card:hover { border-color: var(--blue-mid); }
.radio-card input { display: none; }
.radio-card input:checked + .radio-card-body { color: var(--blue); }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.radio-card-body i { font-size: 28px; display: block; margin-bottom: 6px; }
.radio-card-body span { font-size: 13px; font-weight: 600; }

/* ---- Alerts ---- */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.alert i { font-size: 18px; flex-shrink: 0; }
.alert-success { background: var(--green-light); color: var(--green-dark); }
.alert-error { background: var(--red-light); color: var(--red-dark); }
.alert-info { background: var(--blue-pale); color: var(--blue); }

/* ---- Cards ---- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: 16px; margin: 0; }

/* ---- Auth Pages ---- */
.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.auth-card.auth-card-wide { max-width: 560px; }
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-header p { color: var(--gray-600); font-size: 14px; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-600);
}
.auth-footer a { color: var(--blue-mid); font-weight: 600; }
.auth-footer a:hover { color: var(--blue); }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }

/* Multi-step register */
.register-steps { display: flex; gap: 8px; margin-bottom: 28px; justify-content: center; }
.register-step {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-300);
    transition: background var(--transition);
}
.register-step.active { background: var(--blue); }
.register-step.completed { background: var(--green); }
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Interests grid */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.interest-tag {
    padding: 6px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.interest-tag:hover { border-color: var(--blue-mid); }
.interest-tag input { display: none; }
.interest-tag:has(input:checked) { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Password strength */
.password-strength { display: flex; gap: 4px; margin-top: 6px; }
.password-strength-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--gray-300); transition: background var(--transition); }
.password-strength-bar.weak { background: var(--red); }
.password-strength-bar.medium { background: var(--gold); }
.password-strength-bar.strong { background: var(--green); }

/* ---- Landing Page ---- */
.hero {
    background: var(--blue);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero .tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 2rem;
    color: #fff;
}
.hero-stat span { color: rgba(255,255,255,.7); font-size: 14px; }

/* Features Grid */
.features-section { padding: 80px 0; }
.features-section h2 { text-align: center; margin-bottom: 48px; font-size: 2rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-card-icon.red { background: var(--red-light); color: var(--red); }
.feature-card-icon.blue { background: var(--blue-pale); color: var(--blue); }
.feature-card-icon.green { background: var(--green-light); color: var(--green); }
.feature-card-icon.gold { background: #FFF3E0; color: var(--gold); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 14px; }

/* How It Works */
.how-section { padding: 80px 0; background: var(--gray-100); }
.how-section h2 { text-align: center; margin-bottom: 48px; font-size: 2rem; }
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.how-step {
    text-align: center;
    padding: 24px;
}
.how-step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--blue);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.how-step h3 { margin-bottom: 8px; }
.how-step p { color: var(--gray-600); font-size: 14px; }

/* Live Showcase */
.live-showcase { padding: 80px 0; }
.live-showcase h2 { text-align: center; margin-bottom: 16px; font-size: 2rem; }
.live-showcase > .container > p { text-align: center; color: var(--gray-600); margin-bottom: 48px; }
.live-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.live-preview-card {
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
}
.live-preview-card .live-preview-overlay {
    padding: 20px;
    width: 100%;
    color: #fff;
}
.live-preview-card .live-preview-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
}
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--red);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.live-badge i { font-size: 8px; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.viewer-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* Audience Cards */
.audience-section { padding: 80px 0; background: var(--gray-100); }
.audience-section h2 { text-align: center; margin-bottom: 48px; font-size: 2rem; }
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.audience-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.audience-card i { font-size: 40px; color: var(--blue-mid); margin-bottom: 16px; display: block; }
.audience-card h3 { margin-bottom: 10px; }
.audience-card p { color: var(--gray-600); font-size: 14px; }

/* Testimonials */
.testimonials-section { padding: 80px 0; }
.testimonials-section h2 { text-align: center; margin-bottom: 48px; font-size: 2rem; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.testimonial-card p { color: var(--gray-700); font-style: italic; margin-bottom: 16px; }
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--blue-pale);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 13px; color: var(--gray-500); }

/* CTA */
.cta-section {
    padding: 80px 0;
    background: var(--red);
    color: #fff;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ================================================================
   Dashboard (Redesigned)
   ================================================================ */

/* Page background */
.page-dashboard { background: #f0f2f5; }

/* ── Dashboard Layout ── */
.dash-wrap { padding: 32px 0 56px; }
.dash-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── Sidebar User Card ── */
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.dash-user-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.dash-uc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.dash-uc-avatar {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-full);
    border: 3px solid var(--blue-light);
    background: var(--blue-pale);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-mid);
    font-size: 36px;
}
.dash-uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-uc-avatar-wrap .dash-online-ring {
    bottom: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border: 2.5px solid #fff;
    background: var(--green);
    border-radius: var(--radius-full);
    position: absolute;
}
.dash-uc-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.dash-uc-location {
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.dash-uc-location i { color: var(--red); }
.dash-uc-plan {
    font-size: 12px;
}
.dash-uc-free-badge {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 2px 12px;
}
.dash-uc-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fdf8ec;
    border: 1px solid #f5e0a0;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    color: var(--gold);
    font-size: 13px;
    margin-top: 4px;
    transition: background var(--transition);
}
.dash-uc-coins:hover { background: #fbf0cc; }
.dash-uc-coins strong { font-size: 15px; font-weight: 800; }
.dash-uc-coins span { color: var(--gray-600); }
.dash-uc-progress {
    width: 100%;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 14px;
    text-align: left;
}
.dash-uc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
}
.dash-uc-progress-header strong { color: var(--gray-800); }
.dash-uc-progress-header span { display: flex; align-items: center; gap: 4px; }
.dash-uc-progress-cta {
    display: block;
    font-size: 12px;
    color: var(--blue-mid);
    margin-top: 6px;
    font-weight: 600;
}
.dash-uc-today {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 12px 8px;
}
.dash-uc-today-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.dash-uc-today-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
}
.dash-uc-today-lbl {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.dash-uc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--blue-mid); color: var(--blue); background: var(--blue-pale); }

/* Sidebar quick links */
.dash-sidebar-links {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dash-sl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.dash-sl-item:last-child { border-bottom: none; }
.dash-sl-item:hover { background: var(--blue-pale); color: var(--blue); }
.dash-sl-item > i:first-child { font-size: 18px; color: var(--blue-mid); width: 20px; flex-shrink: 0; }
.dash-sl-item span { flex: 1; }
.dash-sl-arrow { color: var(--gray-400); font-size: 18px; margin-left: auto; }
.dash-sl-item--locked { opacity: .7; }

/* ── Tabs ── */
.dash-main { display: flex; flex-direction: column; gap: 20px; }
.dash-tabs {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 6px;
}
.dash-tab-nav {
    display: flex;
    gap: 4px;
}
.dash-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.dash-tab-btn i { font-size: 17px; }
.dash-tab-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.dash-tab-btn.is-active {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.dash-tab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,.25);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-tab-btn:not(.is-active) .dash-tab-badge {
    background: var(--blue-pale);
    color: var(--blue-mid);
}
.dash-tab-badge--red { background: var(--red) !important; color: #fff !important; }
.dash-tab-panel { display: none; flex-direction: column; gap: 20px; }
.dash-tab-panel.is-active { display: flex; }

/* ── Today card grid ── */
.dash-today-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.dash-today-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.dash-today-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}
.dash-today-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-100);
}
.dash-today-row:last-child { border-bottom: none; }
.dash-today-row--bar { grid-column: 1/-1; flex-direction: column; align-items: stretch; gap: 4px; }

/* hero styles kept for reference but unused */
.dash-hero { display: none; }


    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.dash-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
/* Avatar */
.dash-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.dash-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: 3px solid rgba(255,255,255,.25);
    background: var(--blue-mid);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 28px;
}
.dash-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-online-ring {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border: 2px solid var(--blue);
    border-radius: var(--radius-full);
    display: block;
}
/* Text */
.dash-hero-text h1 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-hero-name { color: #fff; }
.dash-verified-hero { color: #60c5f5; font-size: 1.1rem; }
.dash-hero-sub {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
}
.dash-hero-sub i { font-size: 14px; }
.dash-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(244,162,97,.2);
    color: var(--gold);
    border: 1px solid rgba(244,162,97,.35);
    border-radius: var(--radius-full);
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 600;
}
/* CTA buttons */
.dash-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Profile completion */
.dash-progress-wrap {
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-progress-label {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dash-progress-label a { color: rgba(255,255,255,.9); text-decoration: underline; }
.dash-progress-track {
    flex: 1;
    min-width: 120px;
    height: 5px;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.dash-progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: var(--radius-full);
    transition: width .5s ease;
}

/* ── Stat Cards ── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.dash-stat {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.dash-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.dash-stat-red::before  { background: var(--red); }
.dash-stat-blue::before { background: var(--blue-mid); }
.dash-stat-green::before { background: var(--green); }
.dash-stat-gold::before  { background: var(--gold); }
.dash-stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dash-stat-red  .dash-stat-icon { background: var(--red-light);   color: var(--red); }
.dash-stat-blue .dash-stat-icon { background: var(--blue-pale);   color: var(--blue-mid); }
.dash-stat-green .dash-stat-icon { background: var(--green-light); color: var(--green-dark); }
.dash-stat-gold .dash-stat-icon { background: #fdf3e7;            color: var(--gold); }
.dash-stat-body { flex: 1; min-width: 0; }
.dash-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 3px;
}
.dash-stat-lbl {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.dash-stat-link {
    position: absolute;
    inset: 0;
}

/* ── Panels ── */
.dash-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dash-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dash-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-panel-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.dash-panel-icon-red  { background: var(--red-light);  color: var(--red); }
.dash-panel-icon-blue { background: var(--blue-pale);  color: var(--blue-mid); }
.dash-panel-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    transition: color var(--transition);
}
.dash-panel-more:hover { color: var(--blue); }
.dash-panel-more i { font-size: 17px; }

/* ── Empty states ── */
.dash-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dash-empty-sm { padding: 28px 20px; }
.dash-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-400);
    margin-bottom: 4px;
}
.dash-empty p { font-size: 14px; color: var(--gray-500); margin: 0; }

/* ── Match List ── */
.dash-match-list { padding: 4px 0; }
.dash-match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
    color: var(--gray-800);
}
.dash-match-item:last-child { border-bottom: none; }
.dash-match-item:hover { background: var(--blue-pale); }
.dash-match-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 18px;
    position: relative;
}
.dash-match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-match-avatar.is-online::after {
    content: '';
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    background: var(--green);
    border: 2px solid #fff;
    border-radius: var(--radius-full);
}
.dash-match-info {
    flex: 1;
    min-width: 0;
}
.dash-match-info strong {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--gray-900);
}
.dash-vbadge { color: var(--blue-mid); font-size: 13px; }
.dash-match-preview {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.dash-match-preview em { font-style: normal; color: var(--blue-mid); }
.dash-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-match-arrow { color: var(--gray-400); font-size: 18px; }

/* ── Quick Actions Grid ── */
.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.dash-quick-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.dash-quick-card:hover {
    border-color: var(--qc, var(--blue));
    color: var(--qc, var(--blue));
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.dash-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--qc, var(--blue)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--qc, var(--blue));
    transition: background var(--transition);
}
.dash-quick-card:hover .dash-quick-icon {
    background: color-mix(in srgb, var(--qc, var(--blue)) 20%, transparent);
}

/* ── Notifications ── */
.dash-notif-count {
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-notif-list { padding: 4px 0; }
.dash-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.dash-notif-item:last-child { border-bottom: none; }
.dash-notif-item.is-unread { background: #f0f5ff; }
.dash-notif-item:hover { background: var(--gray-100); }
.dash-notif-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.dash-notif-icon-red   { background: var(--red-light);   color: var(--red); }
.dash-notif-icon-blue  { background: var(--blue-pale);   color: var(--blue-mid); }
.dash-notif-icon-green { background: var(--green-light); color: var(--green-dark); }
.dash-notif-icon-gold  { background: #fdf3e7;            color: var(--gold); }
.dash-notif-body { flex: 1; min-width: 0; }
.dash-notif-body strong { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); }
.dash-notif-body p { font-size: 12px; color: var(--gray-600); margin: 2px 0 3px; }
.dash-notif-body time { font-size: 11px; color: var(--gray-400); }
.dash-notif-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-mid);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ── Today card ── */
.dash-today-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}
.dash-today-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}
.dash-today-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}
.dash-today-label i { font-size: 15px; color: var(--blue-mid); }
.dash-today-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}
.dash-today-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 12px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .dash-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        position: static;
    }
    .dash-wrap {
        padding: 20px 0 40px;
    }
    .dash-panel-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .dash-match-item,
    .dash-notif-item {
        padding-left: 16px;
        padding-right: 16px;
    }
    .dash-today-grid {
        grid-template-columns: 1fr;
    }
    .dash-tab-btn {
        font-size: 13px;
        padding: 9px 10px;
    }
}
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .dash-stat {
        padding: 14px;
    }
    .dash-stat-num { font-size: 1.3rem; }
    .dash-tab-btn span { display: none; }
    .dash-tab-btn { flex: none; padding: 10px 14px; }
    .dash-tab-nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-panel-head { padding: 14px 16px; }
    .dash-panel-title { font-size: 14px; }
}


/* ---- Discover / Matching ---- */
/* ============================================================
   DISCOVER PAGE
   ============================================================ */
.disc-wrap {
    min-height: calc(100vh - 64px);
    background: var(--off-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 80px;
}
.disc-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Header */
.disc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.disc-header h1 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.disc-header-sub { font-size: 13px; color: var(--gray-500); margin: 2px 0 0; }
.disc-header-right { display: flex; align-items: center; gap: 10px; }
.disc-likes-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--red-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}
.disc-likes-pill i { font-size: 15px; }
.disc-likes-label { font-weight: 400; font-size: 12px; color: var(--red); opacity: .8; }
.disc-super-likes-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(41,182,246,.12);
    border: 1px solid rgba(41,182,246,.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: #29b6f6;
}
.disc-super-likes-pill i { font-size: 15px; }
.disc-super-likes-label { font-weight: 400; font-size: 12px; color: #29b6f6; opacity: .85; }
.disc-likes-you-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--red);
    font-size: 18px;
    transition: all .18s;
    box-shadow: var(--shadow-sm);
}
.disc-likes-you-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.disc-likes-you-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}
.disc-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: all;
}
.disc-compatibility-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(230,57,70,.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
}
.disc-compatibility-badge i { font-size: 12px; }
.disc-filter-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-size: 18px;
    transition: all .18s;
    box-shadow: var(--shadow-sm);
}
.disc-filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Geo location banner */
.disc-geo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d0eaff 100%);
    border: 1px solid #a8d4f5;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 0 12px;
    font-size: .875rem;
    color: #1a5f8a;
}
.disc-geo-banner > i { font-size: 1.1rem; flex-shrink: 0; }
.disc-geo-banner > span { flex: 1; }
.disc-geo-btn {
    background: #1a80c4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.disc-geo-btn:hover { background: #1568a2; }
.disc-geo-btn:disabled { opacity: .7; cursor: default; }
.disc-geo-dismiss {
    background: none;
    border: none;
    color: #6b9ab8;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    flex-shrink: 0;
}
.disc-geo-dismiss:hover { color: #1a5f8a; }

/* Distance badge on cards */
.disc-distance-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .73rem;
    font-weight: 600;
    color: inherit;
    margin-left: 4px;
    vertical-align: middle;
}

/* Filter bar */
.disc-filters {
    margin: 0 0 14px;
}
.disc-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
}
.disc-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.disc-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.disc-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.disc-filter-pill {
    padding: 5px 13px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-200);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .15s;
    line-height: 1.4;
}
.disc-filter-pill:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.disc-filter-pill.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}


.disc-stack {
    position: relative;
    width: 100%;
    height: 560px;
}
.disc-card {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    transition: transform .3s ease, opacity .3s ease, box-shadow .3s;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}
.disc-card:active { cursor: grabbing; }
/* Stack peek effect */
.disc-card[data-index="0"] { z-index: 5; }
.disc-card[data-index="1"] { z-index: 4; transform: scale(.97) translateY(6px); box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.disc-card[data-index="2"] { z-index: 3; transform: scale(.94) translateY(12px); box-shadow: 0 1px 10px rgba(0,0,0,.06); }
.disc-card[data-index="3"] { z-index: 2; transform: scale(.91) translateY(18px); opacity: .7; }

/* Photo */
.disc-card-photo {
    position: relative;
    width: 100%;
    height: 100%;
}
.disc-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.disc-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    color: var(--blue-mid);
    font-size: 72px;
}

/* Photo dots */
.disc-photo-dots {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.disc-photo-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.45);
    transition: background .2s;
}
.disc-photo-dot.active { background: #fff; }

/* Photo tap zones */
.disc-photo-prev, .disc-photo-next {
    position: absolute;
    top: 0;
    bottom: 44%;
    width: 38%;
    z-index: 4;
    cursor: pointer;
}
.disc-photo-prev { left: 0; }
.disc-photo-next { right: 0; }

/* Gradient overlay */
.disc-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 35%,
        rgba(0,0,0,.1) 55%,
        rgba(0,0,0,.65) 100%
    );
    pointer-events: none;
}

/* Info overlay on card */
.disc-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 10px;
    color: #fff;
    z-index: 5;
    pointer-events: none;
}
.disc-card-name {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.disc-card-age {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: .9;
}
.disc-verified {
    color: #60c8ff;
    font-size: 17px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.disc-online-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.5);
}
.disc-card-location {
    font-size: 12.5px;
    opacity: .85;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 7px;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.disc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}
.disc-tag {
    padding: 3px 10px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
/* In drawer, tags are dark */
.disc-card-drawer .disc-tag {
    background: var(--blue-pale);
    border-color: transparent;
    color: var(--blue);
}

/* Info toggle button */
.disc-info-toggle {
    position: absolute;
    bottom: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all;
    transition: background .18s;
    z-index: 6;
}
.disc-info-toggle:hover { background: rgba(255,255,255,.38); }
.disc-card.drawer-open .disc-info-toggle { background: rgba(255,255,255,.5); color: var(--blue); }

/* Expanded info drawer */
.disc-card-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    z-index: 7;
}
.disc-card.drawer-open .disc-card-drawer { max-height: 65%; }
.disc-drawer-inner {
    padding: 18px 18px 20px;
    overflow-y: auto;
    max-height: inherit;
}
.disc-drawer-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.disc-drawer-location {
    font-size: 12.5px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.disc-drawer-bio {
    font-size: 13.5px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 12px;
}
.disc-drawer-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.disc-drawer-profile-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    gap: 4px;
}
.disc-drawer-profile-link:hover { color: var(--blue); }

/* Swipe labels */
.disc-label {
    position: absolute;
    top: 28px;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 1.35rem;
    font-weight: 900;
    border: 4px solid;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}
.disc-label-like  { left: 20px;  color: var(--green);   border-color: var(--green);  transform: rotate(-15deg); }
.disc-label-pass  { right: 20px; color: var(--red);     border-color: var(--red);    transform: rotate(15deg); }
.disc-label-super { left: 50%; transform: translateX(-50%) rotate(0); bottom: 90px; top: auto; color: #4fc3f7; border-color: #4fc3f7; }

.disc-card.swiping-right .disc-label-like  { opacity: 1; }
.disc-card.swiping-left  .disc-label-pass  { opacity: 1; }
.disc-card.swiping-up    .disc-label-super { opacity: 1; }

/* Action buttons bar — below the card stack */
.disc-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 4px 0 0;
}
.disc-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.disc-btn-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.disc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    background: #fff;
    flex-shrink: 0;
}
.disc-btn:hover  { transform: scale(1.1) translateY(-2px); }
.disc-btn:active { transform: scale(.94); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.disc-btn-pass {
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: var(--red);
    border-color: rgba(230,57,70,.18);
    box-shadow: 0 4px 20px rgba(230,57,70,.1);
}
.disc-btn-pass:hover {
    background: rgba(230,57,70,.06);
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(230,57,70,.22);
}
.disc-btn-super {
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #29b6f6;
    border-color: rgba(41,182,246,.18);
    box-shadow: 0 4px 20px rgba(41,182,246,.1);
}
.disc-btn-super:hover {
    background: rgba(41,182,246,.06);
    border-color: #29b6f6;
    box-shadow: 0 8px 24px rgba(41,182,246,.2);
}
.disc-btn-like {
    width: 60px;
    height: 60px;
    font-size: 26px;
    background: var(--green);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(45,198,83,.25);
}
.disc-btn-like:hover {
    background: #25b048;
    box-shadow: 0 8px 28px rgba(45,198,83,.4);
}

/* Keyboard hints */
.disc-hints {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 12px;
}
.disc-hints kbd {
    display: inline-block;
    padding: 2px 7px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font);
    color: var(--gray-600);
    margin-right: 4px;
}

/* Empty state */
.disc-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.disc-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--blue-pale);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--blue-mid);
    margin-bottom: 18px;
}
.disc-empty h2 { font-size: 1.3rem; margin-bottom: 8px; }
.disc-empty p  { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; max-width: 260px; }
.disc-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Match Modal */
.disc-match-modal {
    position: fixed;
    inset: 0;
    background: rgba(13,17,23,.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.disc-match-modal.open { display: flex; }
.disc-match-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 44px 36px 36px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: matchPop .45s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes matchPop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.disc-match-hearts {
    font-size: 32px;
    color: var(--red);
    letter-spacing: 4px;
    margin-bottom: 10px;
    animation: heartbeat 1.2s ease-in-out infinite;
}
@keyframes heartbeat {
    0%,100% { transform: scale(1);   }
    50%      { transform: scale(1.1); }
}
.disc-match-box h2 { font-size: 1.8rem; color: var(--red); margin-bottom: 6px; }
.disc-match-box p  { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.disc-match-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 26px;
}
.disc-match-avatar {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-full);
    border: 3px solid var(--red);
    overflow: hidden;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-mid);
    font-size: 26px;
}
.disc-match-avatar img { width: 100%; height: 100%; object-fit: cover; }
.disc-match-heart-center {
    font-size: 24px;
    color: var(--red);
    margin: 0 -6px;
    z-index: 1;
    text-shadow: 0 0 12px rgba(230,57,70,.4);
}
.disc-match-actions { display: flex; gap: 10px; flex-direction: column; }

/* Responsive */
@media (max-width: 480px) {
    .disc-wrap { padding: 16px 10px 80px; }
    .disc-stack { height: 480px; }
    .disc-hints { display: none; }
    .disc-btn-pass, .disc-btn-like { width: 56px; height: 56px; font-size: 24px; }
    .disc-btn-super { width: 44px; height: 44px; font-size: 18px; }
    .disc-actions-bar { gap: 18px; }
}


/* Matches List */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 24px 0;
}
.match-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.match-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.match-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 20px;
    position: relative;
}
.match-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.online-dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border: 2px solid #fff;
    border-radius: var(--radius-full);
    position: absolute;
    bottom: 0;
    right: 0;
}
.match-card-info { flex: 1; min-width: 0; }
.match-card-info strong { display: block; font-size: 14px; }
.match-card-info p { font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; }
.unread-badge {
    width: 20px;
    height: 20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Profile ---- */
.page-profile { background: var(--gray-100); }
.pv-wrap { padding-bottom: 60px; }

/* Hero / Banner */
.pv-hero { background: #fff; border-bottom: 1px solid var(--gray-200); margin-bottom: 28px; }
.pv-cover {
    height: 220px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #2a9d8f 100%);
    position: relative;
    overflow: hidden;
}
.pv-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* Hero body */
.pv-hero-body {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 0 24px;
    margin-top: -52px;
    flex-wrap: wrap;
}

/* Avatar */
.pv-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.pv-avatar-img,
.pv-avatar-placeholder {
    width: 110px; height: 110px;
    border-radius: var(--radius-full);
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
    background: var(--blue-pale);
}
.pv-avatar-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
    color: var(--blue-mid);
}
.pv-online-dot {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 16px; height: 16px;
    background: var(--green);
    border: 3px solid #fff;
    border-radius: var(--radius-full);
}

/* Identity */
.pv-identity { flex: 1; min-width: 200px; padding-top: 56px; }
.pv-name {
    font-size: 1.65rem; font-weight: 800;
    color: var(--blue);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.pv-age {
    font-size: 1.3rem; font-weight: 600;
    color: var(--gray-600);
}
.pv-verified { font-size: 1.2rem; color: var(--blue-mid); }
.pv-meta {
    display: flex; flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 13px;
    color: var(--gray-600);
}
.pv-meta-item { display: flex; align-items: center; gap: 5px; }
.pv-meta-item i { font-size: 15px; color: var(--blue-mid); }
.pv-online-label { color: var(--green-dark); font-weight: 600; }
.pv-online-pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: var(--radius-full);
    animation: pulse-green 1.6s infinite;
}
@keyframes pulse-green {
    0%,100% { box-shadow: 0 0 0 0 rgba(45,198,83,.45); }
    50%      { box-shadow: 0 0 0 5px rgba(45,198,83,0); }
}

/* Actions */
.pv-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding-top: 56px;
    margin-left: auto;
}

/* Stats bar */
.pv-stats {
    display: flex; align-items: center;
    gap: 0;
    border-top: 1px solid var(--gray-200);
    padding: 0;
}
.pv-stat {
    flex: 1; text-align: center;
    padding: 14px 0;
    display: flex; flex-direction: column; gap: 2px;
}
.pv-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.pv-stat-lbl { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; justify-content: center; gap: 4px; }
.pv-stat-lbl i { font-size: 13px; }
.pv-stat-div { width: 1px; background: var(--gray-200); align-self: stretch; margin: 8px 0; }

/* Body layout */
.pv-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
.pv-content { display: flex; flex-direction: column; gap: 20px; }

/* Cards */
.pv-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pv-card--cta { border-color: var(--blue-light); background: var(--blue-pale); }
.pv-card-head {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 20px;
    font-size: 14px; font-weight: 700;
    color: var(--blue);
    border-bottom: 1px solid var(--gray-100);
}
.pv-card-head i { font-size: 16px; color: var(--blue-mid); }
.pv-card-head-count {
    margin-left: auto;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.pv-card-body { padding: 20px; }
.pv-card-body--flush { padding: 0; }
.pv-card-body--details { padding: 4px 0; }

/* Bio */
.pv-bio { color: var(--gray-700); line-height: 1.75; font-size: 15px; }

/* Tags / Interests */
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-tag {
    padding: 5px 14px;
    background: var(--blue-pale);
    color: var(--blue);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 600;
    border: 1px solid rgba(29,53,87,.12);
    transition: background var(--transition), color var(--transition);
}
.pv-tag:hover { background: var(--blue-mid); color: #fff; }

/* Photos grid */
.pv-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}
.pv-photo {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--gray-200);
}
.pv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pv-photo:hover img { transform: scale(1.05); }
.pv-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
    color: #fff; font-size: 22px;
}
.pv-photo:hover .pv-photo-overlay { opacity: 1; }

/* Details rows */
.pv-detail-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.pv-detail-row:last-child { border-bottom: none; }
.pv-detail-icon { color: var(--blue-mid); font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.pv-detail-label { color: var(--gray-500); flex: 1; }
.pv-detail-val { font-weight: 600; color: var(--gray-800); }

/* Sidebar CTA */
.pv-cta-body { text-align: center; padding: 24px 20px; }
.pv-cta-label { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* Sidebar */
.pv-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Lightbox */
.pv-lightbox {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.9);
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.pv-lightbox.open { display: flex; }
.pv-lightbox img {
    max-width: 90vw; max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}
.pv-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-full);
    color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.pv-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ---- Profile Edit ---- */
.page-profile-edit { background: var(--gray-100); }
.pe-wrap { padding: 32px 0 60px; }

/* Avatar upload widget */
.pe-avatar-field {
    display: flex; align-items: center; gap: 20px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.pe-avatar-wrap {
    position: relative;
    width: 72px; height: 93px;   /* 7:9 passport ratio */
    flex-shrink: 0;
}
.pe-avatar-img {
    width: 72px; height: 93px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}
.pe-avatar-overlay {
    position: absolute; inset: 0;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,.45);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    color: #fff; font-size: 11px; font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition);
}
.pe-avatar-overlay i { font-size: 20px; }
.pe-avatar-wrap:hover .pe-avatar-overlay { opacity: 1; }
.pe-avatar-meta { display: flex; flex-direction: column; gap: 4px; }
.pe-avatar-label { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.pe-avatar-hint { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }

.pe-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.pe-header-title { font-size: 1.5rem; font-weight: 800; color: var(--blue); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pe-header-title i { color: var(--blue-mid); }
.pe-header-sub { font-size: 14px; color: var(--gray-500); }

/* Two-column layout */
.pe-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

/* Side nav */
.pe-nav {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    position: sticky; top: 80px;
}
.pe-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    font-size: 14px; font-weight: 600;
    color: var(--gray-600);
    border-left: 3px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-align: left;
    background: none;
    border-top: none; border-right: none; border-bottom: none;
}
.pe-nav-item i { font-size: 18px; flex-shrink: 0; }
.pe-nav-item span:first-of-type { flex: 1; }
.pe-nav-item:hover { background: var(--gray-100); color: var(--blue); }
.pe-nav-item.active { color: var(--blue); border-left-color: var(--blue-mid); background: var(--blue-pale); }
.pe-nav-badge {
    font-size: 11px; font-weight: 700;
    background: var(--blue-pale);
    color: var(--blue-mid);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}
.pe-nav-item.active .pe-nav-badge { background: rgba(29,53,87,.12); }

/* Subscription plan card in left nav */
.pe-plan-card {
    margin: 12px 12px 4px;
    padding: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.pe-plan-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.pe-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}
.pe-plan-badge--free    { background: var(--gray-100); color: var(--gray-600); }
.pe-plan-badge--premium { background: #fff8e1; color: #b8860b; }
.pe-plan-badge--creator { background: linear-gradient(135deg,#f0e6ff,#ffe6f7); color: #7c3aed; }
.pe-plan-renews {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
}
.pe-plan-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.pe-plan-upgrade:hover { text-decoration: underline; }

/* Main area */
.pe-main {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Tabs */
.pe-tab { display: none; padding: 28px 28px 24px; }
.pe-tab.active { display: block; }

.pe-section-title {
    font-size: 1.05rem; font-weight: 800;
    color: var(--blue); margin-bottom: 4px;
}
.pe-section-hint { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }

/* Alert */
.pe-alert {
    display: flex; gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.pe-alert i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.pe-alert--error { background: #fff5f5; border: 1px solid #fdd; color: var(--red-dark); }

/* Fields */
.pe-field { margin-bottom: 20px; }
.pe-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 600; color: var(--gray-700);
    margin-bottom: 7px;
}
.pe-label-hint { font-size: 12px; color: var(--gray-400); font-weight: 400; }
.pe-required { color: var(--red); }
.pe-input {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px; color: var(--gray-800);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pe-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(69,123,157,.12); outline: none; }
.pe-input--error { border-color: var(--red); }
.pe-input--icon { padding-left: 38px; }
.pe-input--sm { width: 90px; text-align: center; }
.pe-textarea { resize: vertical; min-height: 120px; }
.pe-error { font-size: 12px; color: var(--red); margin-top: 5px; display: block; }
.pe-char-count { font-size: 12px; color: var(--gray-400); text-align: right; margin-top: 4px; }

/* Input with icon */
.pe-input-icon-wrap { position: relative; }
.pe-input-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; color: var(--gray-400); pointer-events: none;
}

/* Two-col row */
.pe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Looking-for radio */
.pe-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.pe-radio-card {
    flex: 1; min-width: 90px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
}
.pe-radio-card:hover { border-color: var(--blue-mid); }
.pe-radio-card input { display: none; }
.pe-radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.pe-radio-inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 16px 10px;
    font-size: 13px; font-weight: 600; color: var(--gray-600);
    transition: color var(--transition);
}
.pe-radio-inner i { font-size: 24px; }
.pe-radio-card:has(input:checked) .pe-radio-inner { color: var(--blue); }

/* Interests */
.pe-interest-group { margin-bottom: 20px; }
.pe-interest-cat {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: var(--gray-400);
    margin-bottom: 10px;
}
.pe-interests { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-interest-tag { cursor: pointer; user-select: none; }
.pe-interest-tag input { display: none; }
.pe-interest-inner {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    transition: all var(--transition);
    color: var(--gray-700);
}
.pe-interest-tag:hover .pe-interest-inner { border-color: var(--blue-mid); color: var(--blue-mid); }
.pe-interest-tag:has(input:checked) .pe-interest-inner {
    background: var(--blue); color: #fff; border-color: var(--blue);
}

/* Photos grid */
.pe-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.pe-photo-slot {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.pe-photo-slot--filled { background: var(--gray-200); }
.pe-photo-slot--filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-photo-primary {
    position: absolute; top: 6px; left: 6px;
    background: var(--gold); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: var(--radius-full);
    display: flex; align-items: center; gap: 3px;
}
.pe-photo-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    display: flex; justify-content: center; gap: 6px;
    padding: 8px;
    opacity: 0; transition: opacity .2s;
}
.pe-photo-slot--filled:hover .pe-photo-actions { opacity: 1; }
.pe-photo-btn {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.2);
    border-radius: var(--radius-full);
    color: #fff; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: background .15s;
}
.pe-photo-btn:hover { background: rgba(255,255,255,.4); }
.pe-photo-btn--delete:hover { background: var(--red); }
.pe-photo-slot--empty {
    border: 2px dashed var(--gray-300);
    background: var(--gray-100);
    transition: border-color var(--transition), background var(--transition);
}
.pe-photo-slot--empty:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.pe-photo-upload-label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; width: 100%; height: 100%; cursor: pointer;
    color: var(--gray-500); font-size: 12px; font-weight: 600;
    padding: 12px;
}
.pe-photo-upload-label i { font-size: 28px; color: var(--gray-400); }
.pe-photo-slot--empty:hover .pe-photo-upload-label { color: var(--blue-mid); }
.pe-photo-slot--empty:hover .pe-photo-upload-label i { color: var(--blue-mid); }

/* Discovery */
.pe-range-row { display: flex; align-items: center; gap: 12px; }
.pe-range-item { display: flex; flex-direction: column; gap: 4px; }
.pe-range-label { font-size: 12px; color: var(--gray-500); }
.pe-range-sep { color: var(--gray-400); font-size: 18px; margin-top: 20px; }
.pe-distance-wrap { display: flex; align-items: center; gap: 16px; }
.pe-range-slider {
    flex: 1; -webkit-appearance: none; appearance: none;
    height: 5px; border-radius: 3px;
    background: var(--gray-300); outline: none; cursor: pointer;
}
.pe-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-mid);
    cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pe-range-slider::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-mid); border: none; cursor: pointer;
}
.pe-distance-val {
    font-size: 15px; font-weight: 700;
    color: var(--blue); white-space: nowrap;
    min-width: 60px;
}

/* Actions bar */
.pe-actions {
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .pe-layout { grid-template-columns: 1fr; }
    .pe-nav { flex-direction: row; overflow-x: auto; position: static; }
    .pe-nav-item { flex-direction: column; gap: 4px; padding: 12px 16px; font-size: 11px; border-left: none; border-bottom: 3px solid transparent; flex-shrink: 0; }
    .pe-nav-item.active { border-left-color: transparent; border-bottom-color: var(--blue-mid); }
    .pe-nav-item i { font-size: 20px; }
    .pe-row { grid-template-columns: 1fr; }
    .pe-photos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   CHAT
   ================================================================ */
.page-chat { background: #f0f2f5; }

/* Full-height two-column grid */
.chat-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────── */
.chat-sidebar {
    background: #fff;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chat-sidebar-head {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-sidebar-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-sidebar-head h2 i { font-size: 18px; color: var(--blue-mid); }
.chat-sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* Search */
.chat-sidebar-search {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.chat-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    border: 1.5px solid transparent;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.chat-search-box:focus-within {
    background: #fff;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(29,53,87,.06);
}
.chat-search-box i { color: var(--gray-400); font-size: 15px; flex-shrink: 0; }
.chat-search-box input {
    border: none; background: none; outline: none;
    font-size: 13.5px; color: var(--gray-800); flex: 1; min-width: 0;
}
.chat-search-box input::placeholder { color: var(--gray-400); }

/* Subscription notice strip in sidebar */
.chat-sub-notice {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(230,57,70,.15);
    background: var(--red-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex-shrink: 0;
}
.chat-sub-notice i { font-size: 22px; color: var(--red); }
.chat-sub-notice p { font-size: 12.5px; color: var(--gray-700); margin: 0; }

/* Conversation list */
.chat-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: background .14s;
    text-decoration: none;
    color: inherit;
}
.chat-item:last-child { border-bottom: none; }
.chat-item:hover { background: var(--gray-100); }
.chat-item.active { background: var(--blue-pale); }
.chat-item.has-unread { background: #f0f5ff; }
.chat-item.has-unread:hover { background: #e8f0fe; }

/* Item avatar */
.chat-item-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 18px;
    position: relative;
}
.chat-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-avatar::after {
    content: '';
    position: absolute;
    bottom: 1px; right: 1px;
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--gray-400);
    display: none;
}
.chat-item-avatar.is-online::after { display: block; background: var(--green); }

/* Item body */
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.chat-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-item-name .verified { color: var(--blue-mid); font-size: 13px; }
.chat-item.has-unread .chat-item-name { font-weight: 800; color: var(--gray-900); }
.chat-item-time { font-size: 11px; color: var(--gray-400); flex-shrink: 0; }
.chat-item-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-item-preview {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.chat-item.has-unread .chat-item-preview { color: var(--gray-700); font-weight: 500; }
.chat-item-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sidebar empty state */
.chat-sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    gap: 12px;
    color: var(--gray-500);
}
.chat-sidebar-empty i { font-size: 44px; color: var(--gray-300); }
.chat-sidebar-empty p { font-size: 13px; margin: 0; }

/* ── Main panel ──────────────────────────────────── */
.chat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f0f2f5;
}

/* No conversation selected */
.chat-empty-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 32px 20px;
}
.chat-empty-pane-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--blue-mid);
}
.chat-empty-pane h3 { font-size: 1.1rem; color: var(--blue); margin: 0; font-weight: 700; }
.chat-empty-pane p { font-size: 13.5px; color: var(--gray-500); margin: 0; max-width: 240px; }

/* Upgrade wall (unsubscribed on /chat) */
.chat-upgrade-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 40px 24px;
    max-width: 500px;
    margin: 0 auto;
}
.chat-upgrade-icon {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-full);
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.chat-upgrade-pane h2 { font-size: 1.3rem; color: var(--blue); margin: 0; }
.chat-upgrade-pane > p { font-size: 14px; color: var(--gray-600); margin: 0; max-width: 340px; }
.chat-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 380px;
}
.chat-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--blue-pale);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}
.chat-feature-item i { font-size: 16px; color: var(--blue-mid); flex-shrink: 0; }

/* ── Conversation header ─────────────────────────── */
.chat-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    z-index: 2;
}
.chat-header-back {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-size: 20px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.chat-header-back:hover { background: var(--gray-100); color: var(--blue); }
.chat-header-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.chat-header-partner:hover .chat-header-info strong { color: var(--blue-mid); }
.chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}
.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-avatar::after {
    content: '';
    position: absolute;
    bottom: 1px; right: 1px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--gray-400);
    display: none;
}
.chat-header-avatar.is-online::after { display: block; background: var(--green); }
.chat-header-info { min-width: 0; }
.chat-header-info strong {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.chat-header-info .verified { color: var(--blue-mid); font-size: 14px; }
.chat-header-status {
    font-size: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-header-status.is-online { color: var(--green-dark); font-weight: 600; }
.chat-header-status.is-offline { color: var(--gray-400); }
.chat-header-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.chat-header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chat-header-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: none;
    background: none;
    color: var(--gray-500);
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.chat-header-btn:hover { background: var(--gray-100); color: var(--blue); }

/* Subscription banner (in conversation panel) */
.chat-sub-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 100%);
    color: #fff;
    flex-shrink: 0;
}
.chat-sub-banner-icon { font-size: 22px; flex-shrink: 0; opacity: .85; }
.chat-sub-banner-body { flex: 1; min-width: 0; }
.chat-sub-banner-body h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 2px; }
.chat-sub-banner-body p { font-size: 12px; margin: 0; opacity: .88; }

/* ── Messages ────────────────────────────────────── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

/* Date separator */
.chat-date-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px;
    color: var(--gray-400);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.chat-date-sep::before,
.chat-date-sep::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* Message row */
.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    max-width: 72%;
}
.chat-message.sent { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.received { align-self: flex-start; }
/* Tighten same-sender messages, open between switches */
.chat-message + .chat-message.sent,
.chat-message + .chat-message.received { margin-top: 2px; }
.chat-message.received + .chat-message.sent,
.chat-message.sent + .chat-message.received { margin-top: 10px; }

/* Avatar (received only) */
.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 13px;
    flex-shrink: 0;
}
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-message.sent .chat-msg-avatar { display: none; }

/* Bubble */
.chat-bubble {
    padding: 8px 13px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
    max-width: 100%;
}
.chat-message.received .chat-bubble {
    background: #fff;
    color: var(--gray-900);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.07);
}
.chat-message.sent .chat-bubble {
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-bubble p { margin: 0; }
.chat-bubble-meta {
    font-size: 10.5px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
}
.chat-message.received .chat-bubble-meta { color: var(--gray-400); }
.chat-message.sent .chat-bubble-meta { color: rgba(255,255,255,.6); }
.chat-bubble-meta i { font-size: 13px; }

/* Gift bubble */
.chat-gift-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.chat-gift-bubble i { font-size: 20px; color: var(--gold); }

/* Conversation start prompt */
.chat-start-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    gap: 12px;
    color: var(--gray-500);
    margin: auto;
}
.chat-start-prompt i { font-size: 44px; color: var(--blue-mid); opacity: .4; }
.chat-start-prompt p { font-size: 14px; margin: 0; }

/* ── Footer / Input ──────────────────────────────── */
.chat-footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 10px 14px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.chat-footer-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.chat-footer-btn:hover { background: var(--blue-pale); color: var(--blue); }
.chat-footer-form {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
}
.chat-footer-input-wrap {
    flex: 1;
    background: var(--gray-100);
    border-radius: 22px;
    border: 1.5px solid transparent;
    transition: border-color .18s, background .18s, box-shadow .18s;
    display: flex;
    align-items: flex-end;
    padding: 2px 4px;
}
.chat-footer-input-wrap:focus-within {
    background: #fff;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(29,53,87,.06);
}
.chat-footer-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    min-height: 36px;
    color: var(--gray-900);
    font-family: var(--font);
    scrollbar-width: thin;
}
.chat-footer-input::placeholder { color: var(--gray-400); }
.chat-footer-send {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--blue);
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.chat-footer-send:hover { background: var(--blue-mid); }
.chat-footer-send:active { transform: scale(.92); }

/* Locked footer (unsubscribed user in conversation) */
.chat-locked-footer {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: 22px;
    color: var(--gray-500);
    font-size: 13.5px;
    cursor: default;
}
.chat-locked-footer i { font-size: 17px; color: var(--gray-400); }
.chat-locked-footer span { flex: 1; }

/* ── Error toast ─────────────────────────────────── */
.chat-error-notification {
    margin: 0 14px 10px;
    background: var(--red-light);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-shrink: 0;
    animation: chatSlideDown .25s ease;
}
@keyframes chatSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-error-notification p { margin: 0; flex: 1; color: var(--gray-800); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .chat-wrap { grid-template-columns: 1fr; }
    .chat-sidebar--hidden-mobile { display: none; }
    .chat-header-back { display: flex; }
    .chat-messages { padding: 12px 14px; }
    .chat-footer { padding: 8px 10px; }
}
@media (max-width: 480px) {
    .chat-message { max-width: 86%; }
    .chat-features-grid { grid-template-columns: 1fr; }
}

/* ---- Live Streaming ---- */

/* Page & layout */
.page-live { background: #0a0e1a; }
.page-live .footer,
.page-stream .footer { display: none; }
.live-layout { min-height: calc(100vh - 64px); background: #0a0e1a; }

/* Hero */
.live-hero {
    background: linear-gradient(135deg, #0d1526 0%, #1a1f3a 60%, #0d1526 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    overflow: hidden;
}
.live-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(230,57,70,.09) 0%, transparent 70%);
    pointer-events: none;
}
.live-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.live-hero-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.live-hero-title { display: flex; align-items: center; gap: 14px; }
.live-hero-title h1 { color: #fff; font-size: 1.75rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.live-hero-title h1 i { color: var(--red); }
.live-streams-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.08);
}
.live-streams-count-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.7); }
}
.live-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.live-hero-stat { text-align: center; }
.live-hero-stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.live-hero-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: 3px;
}
.live-hero-divider {
    width: 1px; height: 28px;
    background: rgba(255,255,255,.12);
}

/* Category filter */
.live-filter-wrap {
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.05);
    overflow-x: auto;
    scrollbar-width: none;
}
.live-filter-wrap::-webkit-scrollbar { display: none; }
.live-filter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2px;
    white-space: nowrap;
}
.live-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition), border-color var(--transition);
    background: none;
    cursor: pointer;
    border-top: none; border-left: none; border-right: none;
}
.live-filter-btn i { font-size: 14px; }
.live-filter-btn:hover { color: rgba(255,255,255,.8); }
.live-filter-btn.active { color: #fff; border-bottom-color: var(--red); }

/* Content area */
.live-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}
.live-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.live-content-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .7px;
}

/* Stream Cards Grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.stream-card {
    background: #111827;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    border: 1px solid rgba(255,255,255,.07);
    position: relative;
}
.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(0,0,0,.6);
    border-color: rgba(255,255,255,.14);
    color: inherit;
}
.stream-card-visual {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a2035;
    overflow: hidden;
}
.stream-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.stream-card:hover .stream-card-visual img { transform: scale(1.06); }
.stream-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a2035 0%, #0f1828 100%);
    color: rgba(255,255,255,.1);
    font-size: 36px;
    transition: color .22s ease;
}
.stream-card:hover .stream-card-placeholder { color: rgba(255,255,255,.16); }
.stream-card-visual::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, transparent 40%, rgba(0,0,0,.65) 100%);
    pointer-events: none;
}
.stream-card-badges {
    position: absolute;
    top: 7px; left: 7px; right: 7px;
    display: flex; justify-content: space-between; align-items: flex-start;
    z-index: 2;
}
.viewer-badge {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,.65);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.1);
}
.viewer-badge i { font-size: 10px; opacity: .7; }
.stream-gifts-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,.65);
    color: var(--gold);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,200,0,.15);
}
.stream-card-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.stream-card-streamer { display: flex; align-items: center; gap: 7px; }
.stream-card-avatar {
    width: 26px; height: 26px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: #1e2a44;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(255,255,255,.3);
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.12);
}
.stream-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stream-card-streamer-text { flex: 1; min-width: 0; }
.stream-card-streamer strong {
    display: flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 700; color: #fff; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stream-category {
    display: inline-block;
    font-size: 9px; font-weight: 700;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
    opacity: .8;
}
.stream-card-title {
    font-size: 11px; color: rgba(255,255,255,.48);
    font-weight: 400; line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.live-empty-state {
    background: linear-gradient(135deg, #111827 0%, #0f1422 100%);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.live-empty-icon {
    width: 80px; height: 80px;
    border-radius: var(--radius-full);
    background: rgba(230,57,70,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--red);
    margin: 0 auto 20px;
}
.live-empty-state h2 { color: #fff; margin-bottom: 8px; font-size: 1.25rem; }
.live-empty-state p { color: rgba(255,255,255,.4); margin-bottom: 28px; font-size: 14px; line-height: 1.6; }

/* Go Live promo banner */
.live-promo-banner {
    background: linear-gradient(135deg, #1a0a0e 0%, #2a0d12 50%, #1a0a0e 100%);
    border: 1px solid rgba(230,57,70,.18);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.live-promo-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(230,57,70,.1) 0%, transparent 70%);
    pointer-events: none;
}
.live-promo-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-lg);
    background: rgba(230,57,70,.14);
    border: 1px solid rgba(230,57,70,.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--red);
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.live-promo-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.live-promo-body h3 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 4px; }
.live-promo-body p { color: rgba(255,255,255,.48); font-size: 13px; margin: 0; line-height: 1.5; }
.live-promo-banner .btn { flex-shrink: 0; position: relative; z-index: 1; white-space: nowrap; }

/* Responsive */
@media (max-width: 1200px) {
    .streams-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .streams-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .live-hero-inner { padding: 20px 16px 18px; gap: 14px; }
    .live-hero-stats { display: none; }
    .live-content { padding: 20px 16px 48px; }
    .streams-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .live-promo-banner { padding: 18px; gap: 14px; }
    .live-promo-banner .btn { display: none; }
}
@media (max-width: 480px) {
    .streams-grid { grid-template-columns: 1fr; }
    .live-filter-btn { padding: 11px 12px; font-size: 12px; }
    .live-empty-state { padding: 56px 20px; }
}

/* Legacy live-grid / live-card (used on landing page preview) */
.live-header {
    padding: 32px 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.live-header h1 { display: flex; align-items: center; gap: 8px; }
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding-bottom: 32px;
}
.live-card {
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    display: flex; align-items: flex-end;
    transition: transform var(--transition);
    cursor: pointer;
}
.live-card:hover { transform: translateY(-4px); }
.live-card-overlay { width: 100%; padding: 16px; color: #fff; }
.live-card-overlay strong { display: block; font-size: 14px; }
.live-card-overlay span { font-size: 12px; opacity: .8; }
.live-card-top {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    display: flex; justify-content: space-between;
}
.live-card-gift-total {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,.5);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
}

/* ---- Stream Watch Page ---- */
.page-stream { background: #000; }
.stream-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: calc(100vh - 64px);
    overflow: hidden;
    background: #000;
}
.stream-main { display: flex; flex-direction: column; background: #000; overflow: hidden; }
.stream-video { flex: 1; position: relative; overflow: hidden; }
.stream-video-area {
    width: 100%; height: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.stream-video-area video { width: 100%; height: 100%; object-fit: cover; }
.stream-offline-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    min-height: 320px;
    background: #080c17;
    text-align: center;
    padding: 40px 24px;
    color: rgba(255,255,255,.85);
}
.stream-offline-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    color: rgba(255,255,255,.35);
    margin-bottom: 4px;
}
.stream-offline-screen h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.stream-offline-screen p { color: rgba(255,255,255,.45); font-size: 14px; margin: 0 0 6px; }
.stream-offline-screen .btn + .btn { margin-left: 8px; }
.btn-ghost-white {
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.7);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }

.stream-placeholder {
    text-align: center;
    color: rgba(255,255,255,.4);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px;
    position: absolute; inset: 0; z-index: 1;
}
.stream-placeholder i { font-size: 40px; display: block; margin-bottom: 12px; }
.stream-placeholder p { font-size: 14px; }
.stream-connecting-spin { animation: spin 1.2s linear infinite; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.stream-overlay-top {
    position: absolute; top: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}
.stream-live-info { display: flex; align-items: center; gap: 10px; }
.stream-viewers {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,.6);
    color: #fff; padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    backdrop-filter: blur(4px);
}
.stream-duration {
    background: rgba(0,0,0,.6);
    color: #fff; padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    backdrop-filter: blur(4px);
}
.stream-overlay-bottom {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    z-index: 10; pointer-events: none;
}
.stream-info-bar {
    padding: 12px 20px;
    background: #0d1117;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.stream-streamer-info { display: flex; align-items: center; gap: 12px; color: #fff; }
.stream-streamer-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--gray-700);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400); font-size: 18px;
    border: 2px solid rgba(255,255,255,.1);
}
.stream-streamer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stream-streamer-info strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.stream-streamer-info span { font-size: 12px; color: rgba(255,255,255,.5); }
.stream-info-actions { display: flex; gap: 8px; }

/* Sidebar */
.stream-sidebar {
    background: #0d1117;
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255,255,255,.06);
}
.stream-sidebar-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.stream-tab {
    flex: 1; padding: 14px;
    text-align: center; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    border-top: none; border-left: none; border-right: none;
    background: none;
}
.stream-tab i { font-size: 15px; }
.stream-tab:hover { color: rgba(255,255,255,.8); background: rgba(255,255,255,.03); }
.stream-tab.active { color: #fff; border-bottom-color: var(--red); }
.stream-tab-content { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.stream-tab-content.active { display: flex; }

/* Chat */
.stream-comments {
    flex: 1; overflow-y: auto; padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}
.stream-comments::-webkit-scrollbar { width: 4px; }
.stream-comments::-webkit-scrollbar-track { background: transparent; }
.stream-comments::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.stream-comment { display: flex; gap: 8px; align-items: flex-start; }
.stream-comment-avatar {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    overflow: hidden; flex-shrink: 0;
    background: var(--gray-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--gray-400);
}
.stream-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stream-comment-body {
    background: #1a2236;
    padding: 7px 12px;
    border-radius: 4px var(--radius) var(--radius) var(--radius);
    font-size: 13px; color: rgba(255,255,255,.8);
    max-width: calc(100% - 36px);
    word-break: break-word;
}
.stream-comment-body strong { font-size: 11px; color: var(--blue-light); font-weight: 700; display: block; margin-bottom: 2px; }
.stream-comment-form {
    padding: 12px; flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; gap: 8px;
}
.stream-comment-input {
    flex: 1; padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-full);
    font-size: 13px; background: #1a2236; color: #fff;
}
.stream-comment-input::placeholder { color: rgba(255,255,255,.3); }
.stream-comment-input:focus { border-color: var(--blue-mid); background: #1d2740; outline: none; }
.stream-comment-send {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: background var(--transition);
    flex-shrink: 0;
}
.stream-comment-send:hover { background: var(--red-dark); }

/* Wallet & Gifts */
.stream-wallet {
    padding: 12px 16px;
    background: #151d30;
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.stream-wallet i { color: var(--gold); font-size: 18px; }
.gifts-panel {
    flex: 1; overflow-y: auto; padding: 12px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}
.gift-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    background: #1a2236;
    transition: all var(--transition);
    cursor: pointer;
}
.gift-item:hover { border-color: var(--gold); background: rgba(244,162,97,.08); }
.gift-icon { font-size: 28px; }
.gift-name { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 600; text-align: center; }
.gift-price { font-size: 10px; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 2px; }
.gift-price i { font-size: 10px; }

/* ---- Stream Controls Bar ---- */
.stream-controls {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.80));
    z-index: 10;
    opacity: 0;
    transition: opacity .25s;
}
.stream-video-area:hover .stream-controls,
.stream-video-area:focus-within .stream-controls { opacity: 1; }
.stream-controls-left  { display: flex; align-items: center; gap: 8px; }
.stream-controls-right { display: flex; align-items: center; gap: 8px; }

.stream-ctrl-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .2s, transform .15s;
    cursor: pointer;
    flex-shrink: 0;
}
.stream-ctrl-btn:hover { background: rgba(255,255,255,.28); transform: scale(1.08); }
.stream-ctrl-btn.is-muted { background: rgba(230,57,70,.45); border-color: var(--red); }

/* Volume slider */
.stream-volume-slider-wrap {
    display: flex; align-items: center;
    width: 0; overflow: hidden;
    transition: width .25s ease;
}
.stream-controls-left:hover .stream-volume-slider-wrap,
.stream-volume-slider-wrap:focus-within { width: 90px; }

.stream-volume-slider {
    -webkit-appearance: none; appearance: none;
    width: 80px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.35);
    outline: none; cursor: pointer;
}
.stream-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.stream-volume-slider::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: none; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Quality selector */
.stream-quality-wrap { position: relative; }
.stream-quality-menu {
    display: none;
    position: absolute; bottom: calc(100% + 8px); right: 0;
    background: rgba(10,14,26,.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 100px;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.stream-quality-menu.open { display: block; }
.stream-quality-opt {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 9px 14px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.65);
    text-align: left; background: none;
    border: none; cursor: pointer;
    transition: background .15s, color .15s;
    gap: 8px;
}
.stream-quality-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.stream-quality-opt.active { color: #fff; }
.stream-quality-opt .q-check { font-size: 11px; color: var(--red); display: none; }
.stream-quality-opt.active .q-check { display: inline; }
.stream-quality-label { display: flex; align-items: center; gap: 6px; }

/* Gift Toast */
.gift-toast-popup {
    width: min(92vw, 340px) !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform-origin: center center;
}
.gift-toast-popup--show {
    animation: giftPopupIn .42s cubic-bezier(.2, .9, .2, 1) forwards;
}
.gift-toast-popup--hide {
    animation: giftPopupOut .22s ease-in forwards;
}
.gift-toast-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 22px 20px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(10,20,40,.98), rgba(26,50,92,.94));
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 26px 60px rgba(0,0,0,.34);
    overflow: hidden;
}
.gift-toast-popup--luxury .gift-toast-content {
    background: linear-gradient(160deg, rgba(37,16,44,.98), rgba(93,40,72,.94));
    box-shadow: 0 30px 72px rgba(64, 14, 42, .34);
}
.gift-toast-popup--legendary .gift-toast-content {
    background: linear-gradient(160deg, rgba(44,18,10,.98), rgba(124,56,18,.94));
    box-shadow: 0 34px 78px rgba(91, 42, 9, .38);
}
.gift-toast-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,209,102,.38) 0%, rgba(255,123,84,.2) 38%, rgba(255,123,84,0) 72%);
    filter: blur(6px);
    opacity: .9;
    animation: giftHalo 1.4s ease-in-out infinite;
}
.gift-toast-popup--luxury .gift-toast-content::before {
    background: radial-gradient(circle, rgba(255,140,210,.35) 0%, rgba(170,113,255,.2) 40%, rgba(170,113,255,0) 76%);
}
.gift-toast-popup--legendary .gift-toast-content::before {
    background: radial-gradient(circle, rgba(255,230,148,.44) 0%, rgba(255,151,66,.24) 42%, rgba(255,151,66,0) 78%);
}
.gift-toast-icon {
    position: relative;
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    font-size: 54px;
    line-height: 1;
    border-radius: 28px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.34), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 34px rgba(0,0,0,.26);
    animation: giftPop .5s ease-out, giftShimmer 1.8s ease-in-out infinite;
    z-index: 1;
}
.gift-toast-popup--luxury .gift-toast-icon {
    background: radial-gradient(circle at 30% 30%, rgba(255,207,244,.36), rgba(196,148,255,.12));
}
.gift-toast-popup--legendary .gift-toast-icon {
    background: radial-gradient(circle at 30% 30%, rgba(255,242,188,.42), rgba(255,173,77,.16));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 36px rgba(85, 48, 6, .32);
}
.gift-toast-copy {
    min-width: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}
.gift-toast-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    margin-bottom: 4px;
}
.gift-toast-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.15;
    max-width: 240px;
    text-wrap: balance;
}
.gift-toast-price {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.74);
}
.gift-toast-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gift-toast-burst span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd166, #ff7b54);
    opacity: 0;
    animation: giftBurst 1s ease-out forwards;
}
.gift-toast-burst--luxury span {
    background: linear-gradient(135deg, #ff9ad5, #b082ff);
}
.gift-toast-burst--legendary span {
    background: linear-gradient(135deg, #ffe082, #ff9f43);
    box-shadow: 0 0 14px rgba(255, 190, 82, .42);
}
.gift-toast-burst span:nth-child(1) { top: 18%; left: 18%; animation-delay: .02s; --burst-x: -34px; --burst-y: -26px; }
.gift-toast-burst span:nth-child(2) { top: 14%; right: 20%; animation-delay: .08s; --burst-x: 34px; --burst-y: -30px; }
.gift-toast-burst span:nth-child(3) { top: 44%; left: 9%; animation-delay: .12s; --burst-x: -42px; --burst-y: -6px; }
.gift-toast-burst span:nth-child(4) { top: 48%; right: 10%; animation-delay: .18s; --burst-x: 42px; --burst-y: -2px; }
.gift-toast-burst span:nth-child(5) { bottom: 18%; left: 24%; animation-delay: .1s; --burst-x: -22px; --burst-y: 26px; }
.gift-toast-burst span:nth-child(6) { bottom: 16%; right: 24%; animation-delay: .16s; --burst-x: 24px; --burst-y: 28px; }
.gift-toast-burst span:nth-child(7) { top: 8%; left: 44%; animation-delay: .04s; --burst-x: 0; --burst-y: -46px; }
.gift-toast-burst span:nth-child(8) { bottom: 10%; left: 46%; animation-delay: .14s; --burst-x: 0; --burst-y: 40px; }
.gift-toast-burst span:nth-child(9) { top: 28%; left: 4%; animation-delay: .06s; --burst-x: -48px; --burst-y: -16px; }
.gift-toast-burst span:nth-child(10) { top: 28%; right: 4%; animation-delay: .2s; --burst-x: 48px; --burst-y: -16px; }
.gift-toast-burst span:nth-child(11) { top: 8%; left: 28%; animation-delay: .05s; --burst-x: -26px; --burst-y: -42px; }
.gift-toast-burst span:nth-child(12) { top: 8%; right: 28%; animation-delay: .11s; --burst-x: 26px; --burst-y: -42px; }
.gift-toast-burst span:nth-child(13) { bottom: 8%; left: 30%; animation-delay: .17s; --burst-x: -22px; --burst-y: 42px; }
.gift-toast-burst span:nth-child(14) { bottom: 8%; right: 30%; animation-delay: .22s; --burst-x: 22px; --burst-y: 42px; }
@keyframes giftPop {
    0% { transform: scale(.7) rotate(-8deg); }
    70% { transform: scale(1.15) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}
@keyframes giftShimmer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes giftBurst {
    0% { opacity: 0; transform: scale(.2); }
    35% { opacity: 1; transform: scale(1.25) translate(0, 0); }
    100% { opacity: 0; transform: scale(.6) translate(var(--burst-x, 0), var(--burst-y, -12px)); }
}
@keyframes giftHalo {
    0%, 100% { opacity: .55; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.14); }
}
@keyframes giftPopupIn {
    0% { opacity: 0; transform: translateY(24px) scale(.78) rotate(-2deg); }
    55% { opacity: 1; transform: translateY(-8px) scale(1.04) rotate(.4deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes giftPopupOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(.92); }
}

/* ---- Go Live / Start Stream Page ---- */
.page-live-start {
    background:
        radial-gradient(circle at top left, rgba(69,123,157,.22), transparent 28%),
        radial-gradient(circle at top right, rgba(230,57,70,.18), transparent 30%),
        linear-gradient(180deg, #07101d 0%, #0a0e1a 42%, #08111d 100%);
}
.live-start-layout {
    max-width: 680px;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
    padding: 32px 20px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-start-layout .settings-card {
    position: relative;
    overflow: hidden;
    background: rgba(10,18,35,.9);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
    border-radius: 30px;
    width: 100%;
    max-width: 560px;
}
.live-start-layout .settings-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%, transparent 70%, rgba(255,255,255,.04));
    pointer-events: none;
}
.live-start-form-head {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 18px;
}
.live-start-layout .settings-card {
    background: rgba(11,20,38,.94);
}
.live-start-layout .settings-card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
}
.live-start-form-head {
    align-items: center;
}
.live-start-form-head h1 {
    color: #fff;
    font-size: 30px;
    line-height: 1.1;
}
.live-start-form-head p {
    max-width: 32ch;
    color: rgba(235,241,250,.68);
    line-height: 1.55;
    font-size: 14px;
}
.live-start-form {
    display: grid;
    gap: 16px;
}
.live-start-layout .form-label { color: rgba(255,255,255,.84); }
.live-start-layout .form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 13px 16px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255,255,255,.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
        rgba(8,14,28,.88);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        inset 0 -1px 0 rgba(255,255,255,.02),
        0 10px 24px rgba(0,0,0,.14);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
}
.live-start-layout .form-input:hover {
    border-color: rgba(255,255,255,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)),
        rgba(10,17,34,.92);
}
.live-start-layout .form-input::placeholder {
    color: rgba(226,235,248,.4);
}
.live-start-layout .form-input:focus {
    border-color: rgba(168,218,220,.78);
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
        rgba(12,22,42,.95);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 0 0 4px rgba(168,218,220,.12),
        0 18px 30px rgba(0,0,0,.2);
    transform: translateY(-1px);
}
.live-start-layout .form-textarea {
    min-height: 104px;
    resize: vertical;
    line-height: 1.55;
}
.live-start-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9e3f0' d='M12 16l-6-6h12z'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    background-repeat: no-repeat, no-repeat;
    background-position: right 16px center, 0 0;
    background-size: 14px, auto;
    cursor: pointer;
}

.live-start-select option {
    background: #0f1728;
    color: #fff;
}
.live-start-submit {
    justify-content: center;
    width: 100%;
    min-width: 0;
    box-shadow: 0 16px 30px rgba(230,57,70,.25);
}

@media (max-width: 1100px) {
    .live-start-layout {
        min-height: auto;
        padding-top: 24px;
    }
}

@media (max-width: 768px) {
    .live-start-layout {
        padding: 22px 16px 56px;
    }

    .live-start-layout .settings-card-body {
        padding: 20px;
    }

}

@media (max-width: 640px) {
    .live-start-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .live-start-layout .settings-card {
        border-radius: 22px;
    }

    .live-start-form-head h1 {
        font-size: 26px;
    }
}

/* ---- Gift Store ---- */
.gifts-layout { padding: 32px 0; }
.gifts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.gifts-header h1 { display: flex; align-items: center; gap: 8px; }
.wallet-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.wallet-display i { color: var(--gold); font-size: 24px; }
.wallet-display strong { font-size: 1.3rem; color: var(--blue); }
.wallet-display span { color: var(--gray-600); font-size: 13px; }
.gifts-section { margin-bottom: 40px; }
.gifts-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.coin-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.coin-package {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.coin-package:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.coin-package.popular { border-color: var(--blue); }
.coin-package--custom { border-style: dashed; }
.coin-package--custom .coin-package-amount { color: var(--gray-600); }
.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    padding: 2px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.package-badge-gold { background: var(--gold); }
.coin-package-amount { font-size: 1.3rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.coin-package-amount i { color: var(--gold); }
.coin-package-price { font-size: 1rem; font-weight: 600; color: var(--gray-700); }
.coin-package-bonus { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 4px; }
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.gift-store-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.gift-store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gift-store-icon { font-size: 36px; margin-bottom: 8px; }
.gift-store-card h3 { font-size: 13px; margin-bottom: 6px; }
.gift-store-price { font-size: 13px; color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; }
.gift-store-price i { font-size: 12px; }
.gifts-info { margin-top: 40px; }
.gifts-info-card {
    background: var(--blue-pale);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.gifts-info-card > i { font-size: 24px; color: var(--blue); flex-shrink: 0; }
.gifts-info-card h3 { font-size: 15px; margin-bottom: 4px; }
.gifts-info-card p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* ---- Gift History ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0 24px;
}
.wallet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.wallet-summary-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}
.wallet-summary-card i { font-size: 28px; }
.wallet-summary-card span { font-size: 13px; color: var(--gray-500); display: block; }
.wallet-summary-card strong { font-size: 1.3rem; color: var(--blue); }
.transactions-list {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.transaction-item:last-child { border: none; }
.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.transaction-item.sent .transaction-icon { background: var(--red-light); color: var(--red); }
.transaction-item.received .transaction-icon { background: var(--green-light); color: var(--green); }
.transaction-item.purchase .transaction-icon { background: var(--blue-pale); color: var(--blue); }
.transaction-details { flex: 1; min-width: 0; }
.transaction-details strong { display: block; font-size: 14px; }
.transaction-date { font-size: 12px; color: var(--gray-500); }
.transaction-amount {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.transaction-amount i { font-size: 14px; color: var(--gold); }
.transaction-amount.positive { color: var(--green); }
.transaction-amount.negative { color: var(--red); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pagination-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-300);
    transition: all var(--transition);
}
.pagination-link:hover { border-color: var(--blue-mid); color: var(--blue); }
.pagination-link.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ================================================================
   TRANSACTIONS PAGE
   ================================================================ */

/* Page header */
.tx-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 0 24px;
}
.tx-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tx-page-title-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.tx-page-title h1 {
    font-size: 1.6rem;
    margin: 0;
}
.tx-page-title p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 2px 0 0;
}
.tx-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Summary grid */
.tx-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) { .tx-summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .tx-summary-grid { grid-template-columns: repeat(2, 1fr); } }

.tx-summary-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.tx-summary-card:hover { box-shadow: var(--shadow); }
.tx-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.tx-summary-body span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}
.tx-summary-body strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-top: 1px;
    white-space: nowrap;
}

/* Table card */
.tx-table-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 32px;
}

/* Toolbar */
.tx-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-100);
}
.tx-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tx-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-300);
    transition: all var(--transition);
    text-decoration: none;
}
.tx-filter-pill i { font-size: 14px; }
.tx-filter-pill:hover {
    border-color: var(--blue-mid);
    color: var(--blue);
    background: var(--blue-pale);
}
.tx-filter-pill.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.tx-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tx-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tx-search-wrap > i {
    position: absolute;
    left: 10px;
    color: var(--gray-500);
    font-size: 15px;
    pointer-events: none;
}
.tx-search-wrap input {
    padding: 7px 32px 7px 32px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-300);
    font-size: 13px;
    background: #fff;
    color: var(--gray-800);
    width: 220px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.tx-search-wrap input:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(69,123,157,.15);
    outline: none;
}
.tx-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    display: flex;
    align-items: center;
}
.tx-search-clear:hover { color: var(--gray-800); }
.tx-row-count {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Table wrapper (horizontal scroll on mobile) */
.tx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tx-table thead {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
}
.tx-table th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-600);
    white-space: nowrap;
}
.tx-th-amount, .tx-th-kes { text-align: right; }
.tx-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.tx-table tbody tr:last-child { border-bottom: none; }
.tx-table tbody tr:hover { background: var(--gray-100); }
.tx-table td { padding: 12px 16px; vertical-align: middle; }

/* Type pill */
.tx-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.tx-type--topup         { background: #fff7e6; color: #b45309; }
.tx-type--gift-sent     { background: #fdf2f8; color: #be185d; }
.tx-type--gift-received { background: #ecfdf5; color: #065f46; }
.tx-type--withdrawal    { background: #eff6ff; color: #1d4ed8; }

/* Description cell */
.tx-td-desc { max-width: 260px; }
.tx-desc-main {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-desc-sub {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}

/* Date cell */
.tx-date-main {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}
.tx-date-time {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

/* Status badge */
.tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.tx-badge i { font-size: 12px; }
.tx-badge--success { background: #ecfdf5; color: #065f46; }
.tx-badge--pending { background: #fffbeb; color: #92400e; }
.tx-badge--danger  { background: #fef2f2; color: #991b1b; }
.tx-badge--neutral { background: var(--gray-100); color: var(--gray-600); }

/* KES cell */
.tx-td-kes { text-align: right; color: var(--gray-600); font-size: 13px; white-space: nowrap; }

/* Amount cell */
.tx-td-amount { text-align: right; }
.tx-amount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.tx-amount i { font-size: 13px; color: var(--gold); }
.tx-amount--credit { color: #059669; }
.tx-amount--debit  { color: var(--red); }

/* No-results */
.tx-no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-500);
}
.tx-no-results i { font-size: 36px; opacity: .35; display: block; margin-bottom: 8px; }
.tx-no-results p { font-size: 14px; }

/* Upgraded pagination */
.tx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}
.tx-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--gray-300);
    text-decoration: none;
    transition: all var(--transition);
}
.tx-page-btn:hover:not(.disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.tx-page-btn.disabled { opacity: .4; pointer-events: none; }
.tx-page-numbers { display: flex; gap: 4px; }
.tx-page-num {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: all var(--transition);
}
.tx-page-num:hover { border-color: var(--blue-mid); color: var(--blue); }
.tx-page-num.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tx-page-ellipsis {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 13px;
}

/* Shared M-Pesa modal */
.mpesa-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.mpesa-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.mpesa-modal-logo {
    text-align: center;
    margin-bottom: 12px;
}

.mpesa-modal-title {
    text-align: center;
    font-size: 1.25rem;
    margin: 0 0 4px;
}

.mpesa-modal-sub,
.mpesa-modal-package {
    text-align: center;
    color: #555;
    margin: 0 0 20px;
    font-size: .95rem;
}

.mpesa-order-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--off-white);
}

.mpesa-order-box span {
    display: block;
    margin-top: 4px;
    color: var(--gray-600);
    font-size: .85rem;
}

.mpesa-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .9rem;
    text-align: center;
    display: block;
}

.mpesa-status--info {
    background: #e8f5e9;
    color: #1b5e20;
}

.mpesa-status--success {
    background: #c8e6c9;
    color: #1b5e20;
    font-weight: 600;
}

.mpesa-status--error {
    background: #fce4ec;
    color: #b71c1c;
}

.mpesa-modal-note {
    font-size: .78rem;
    color: #888;
    text-align: center;
    margin-top: 16px;
}

/* ── Gift History Page ───────────────────────────────────── */
.gh-wrap { min-height: 100vh; background: var(--off-white); }

/* Hero */
.gh-hero {
    background: linear-gradient(135deg, var(--blue) 0%, #8a39af 100%);
    padding: 36px 0 28px;
    color: #fff;
}
.gh-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.gh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 6px;
}
.gh-hero-text h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}
.gh-hero-text p { opacity: .8; margin: 0; font-size: .95rem; }

/* Balance widget */
.gh-hero-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}
.gh-balance-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
}
.gh-balance-info { display: flex; flex-direction: column; }
.gh-balance-label { font-size: .75rem; opacity: .75; font-weight: 600; letter-spacing: .04em; }
.gh-balance-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.gh-balance-unit { font-size: .78rem; opacity: .7; }

/* Body */
.gh-body { padding-top: 28px; padding-bottom: 48px; }

/* Stats */
.gh-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.gh-stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.gh-stat-card:hover { box-shadow: var(--shadow); }
.gh-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.gh-stat--earned .gh-stat-icon { background: #ecfdf5; color: #059669; }
.gh-stat--spent  .gh-stat-icon { background: #fdf2f8; color: #be185d; }
.gh-stat--txns   .gh-stat-icon { background: #eff6ff; color: #1d4ed8; }
.gh-stat--withdraw .gh-stat-icon { background: #fff7e6; color: #d97706; }
.gh-stat-content { display: flex; flex-direction: column; min-width: 0; }
.gh-stat-label { font-size: .75rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gh-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.gh-stat-unit { font-size: .72rem; color: var(--gray-500); }
.gh-withdraw-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--blue-mid);
    text-decoration: none;
    margin-top: 4px;
    transition: color var(--transition);
}
.gh-withdraw-btn:hover { color: var(--blue); }

/* Card */
.gh-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

/* Toolbar */
.gh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--off-white);
}
.gh-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-600);
    background: #fff;
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    transition: all var(--transition);
}
.gh-filter-pill:hover { border-color: var(--blue-mid); color: var(--blue); }
.gh-filter-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.gh-toolbar-right { display: flex; align-items: center; gap: 12px; }
.gh-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    transition: border-color var(--transition);
}
.gh-search-wrap:focus-within { border-color: var(--blue-mid); }
.gh-search-wrap i { color: var(--gray-400); font-size: 14px; }
.gh-search-wrap input { border: none; outline: none; font-size: .85rem; width: 160px; background: transparent; color: var(--gray-800); }
.gh-search-clear { background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 0; display: flex; }
.gh-count { font-size: .78rem; color: var(--gray-500); white-space: nowrap; font-weight: 600; }

/* Feed rows */
.gh-feed { }
.gh-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.gh-row:last-child { border-bottom: none; }
.gh-row:hover { background: var(--off-white); }

/* Avatar */
.gh-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.gh-avatar-img,
.gh-avatar-initial {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.gh-avatar-initial {
    background: linear-gradient(135deg, var(--blue-mid), #8a39af);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gh-dir-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.gh-dir-dot.received { background: #059669; color: #fff; }
.gh-dir-dot.sent     { background: #be185d; color: #fff; }

/* Gift emoji bubble */
.gh-emoji-bubble {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Row body */
.gh-row-body { flex: 1; min-width: 0; }
.gh-row-title { font-size: .9rem; color: var(--gray-800); margin-bottom: 4px; line-height: 1.4; }
.gh-row-title strong { color: var(--gray-900); }
.gh-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gh-meta-date { font-size: .75rem; color: var(--gray-500); display: flex; align-items: center; gap: 3px; }
.gh-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-pale);
    color: var(--blue);
    font-size: .72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

/* Context badges */
.gh-ctx-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: .02em;
}
.gh-ctx--stream { background: #fee2e2; color: #b91c1c; }
.gh-ctx--chat   { background: #eff6ff; color: #1d4ed8; }
.gh-ctx--profile { background: #f0fdf4; color: #15803d; }

/* Amount */
.gh-amount {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}
.gh-amount-val {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.gh-amount--credit .gh-amount-val { color: #059669; }
.gh-amount--debit  .gh-amount-val { color: #be185d; }
.gh-amount-sub {
    font-size: .7rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 2px;
}
.gh-amount-sub i { color: var(--gold); }

/* Empty / no-results states */
.gh-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--gray-500);
}
.gh-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--gray-300);
}
.gh-empty h3 { font-size: 1.1rem; color: var(--gray-700); margin-bottom: 6px; }
.gh-empty p { margin-bottom: 20px; font-size: .9rem; }
.gh-no-results {
    text-align: center;
    padding: 40px 24px;
    color: var(--gray-500);
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.gh-no-results i { font-size: 1.8rem; color: var(--gray-300); }

/* Footer links */
.gh-links-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.gh-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.gh-link-btn:hover { border-color: var(--blue-mid); color: var(--blue); box-shadow: var(--shadow-sm); }

/* Responsive */
@media (max-width: 900px) {
    .gh-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .gh-hero-inner { flex-direction: column; align-items: flex-start; }
    .gh-hero-balance { width: 100%; box-sizing: border-box; }
    .gh-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gh-stat-card { padding: 14px 14px; }
    .gh-stat-value { font-size: 1.2rem; }
    .gh-toolbar { flex-direction: column; align-items: stretch; }
    .gh-toolbar-right { justify-content: space-between; }
    .gh-row { gap: 10px; padding: 12px 14px; }
    .gh-emoji-bubble { display: none; }
}
@media (max-width: 400px) {
    .gh-stats-row { grid-template-columns: 1fr 1fr; }
    .gh-search-wrap input { width: 120px; }
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .tx-toolbar { flex-direction: column; align-items: flex-start; }
    .tx-toolbar-right { width: 100%; justify-content: space-between; }
    .tx-search-wrap input { width: 180px; }
    .tx-page-title h1 { font-size: 1.3rem; }
    .tx-th-kes, .tx-td-kes { display: none; }
}
@media (max-width: 480px) {
    .tx-search-wrap input { width: 140px; }
    .tx-page-actions .btn span { display: none; }
}

/* ---- Empty States ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state i { font-size: 64px; opacity: .3; display: block; margin-bottom: 16px; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ---- Error Page ---- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    padding: 20px;
}
.error-content {
    text-align: center;
    color: #fff;
}
.error-icon { font-size: 80px; color: var(--red); margin-bottom: 16px; }
.error-content h1 { font-size: 6rem; color: #fff; font-weight: 800; line-height: 1; }
.error-content h2 { color: rgba(255,255,255,.8); font-size: 1.5rem; margin-bottom: 12px; font-weight: 400; }
.error-content p { color: rgba(255,255,255,.6); margin-bottom: 32px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ---- About Page ---- */
.about-hero {
    background: var(--blue);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.about-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 12px; }
.about-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.about-section { padding: 48px 0; }
.about-section h2 { text-align: center; margin-bottom: 32px; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.about-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.about-card i { font-size: 36px; color: var(--blue-mid); margin-bottom: 14px; display: block; }
.about-card h3 { margin-bottom: 8px; }
.about-card p { color: var(--gray-600); font-size: 14px; }
.about-mission { max-width: 700px; margin: 0 auto; }
.about-mission p { color: var(--gray-700); margin-bottom: 16px; font-size: 15px; line-height: 1.8; text-align: center; }

/* ---- Contact Page ---- */
.contact-header {
    max-width: 720px;
    margin: 48px auto 0;
    text-align: center;
}
.contact-kicker {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.contact-header h1 {
    margin: 16px 0 12px;
}
.contact-header p {
    color: var(--gray-600);
    line-height: 1.8;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
    gap: 48px;
    padding: 48px 0;
    align-items: start;
}
.contact-info {
    display: grid;
    gap: 20px;
}
.contact-panel {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 38, 63, 0.06);
}
.contact-panel h2,
.contact-panel h3 {
    margin-bottom: 10px;
}
.contact-panel p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
}
.contact-methods { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-method i {
    width: 44px;
    height: 44px;
    background: var(--blue-pale);
    color: var(--blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-method strong { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-method span,
.contact-method a { font-size: 13px; color: var(--gray-600); }
.contact-method a:hover { color: var(--blue); }
.contact-checklist {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-left: 18px;
}
.contact-checklist li {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
}
.contact-form-wrap {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 38, 63, 0.06);
}
.contact-form-wrap h2 {
    margin-bottom: 8px;
}
.contact-form-intro {
    margin-bottom: 22px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
}
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* ---- Go Live Page ---- */
.go-live-layout {
    max-width: 600px;
    margin: 32px auto;
}
.go-live-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.go-live-header {
    background: var(--blue);
    padding: 32px;
    color: #fff;
    text-align: center;
}
.go-live-header h1 { color: #fff; font-size: 1.5rem; }
.go-live-header p { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 4px; }
.go-live-body { padding: 32px; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.category-option {
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    font-weight: 500;
}
.category-option:hover { border-color: var(--blue-mid); }
.category-option input { display: none; }
.category-option:has(input:checked) { border-color: var(--red); background: var(--red-light); color: var(--red); }
.live-tips {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}
.live-tips h3 { font-size: 14px; margin-bottom: 10px; }
.live-tips ul { padding-left: 16px; }
.live-tips li { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; list-style: disc; }

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}
.footer-logo { --logo-wordmark: #FFFFFF; --logo-tagline: #D7E4EF; }
.footer-logo .brand-logo__svg { height: 38px; }
.footer-brand p { font-size: 13px; max-width: 280px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(255,255,255,.6); font-size: 13px; padding: 3px 0; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: 12px; }
.footer-bottom-links a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .pv-body { grid-template-columns: 1fr; }
    .pv-sidebar { order: -1; }
    .profile-sidebar { order: -1; }
    .stream-layout { grid-template-columns: 1fr; }
    .stream-sidebar { height: 50vh; min-height: 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .streams-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .contact-hero-grid,
    .contact-layout { grid-template-columns: 1fr; }
    .contact-hero-copy h1 { max-width: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 48px 0; }
    .features-section,
    .how-section,
    .live-showcase,
    .audience-section,
    .testimonials-section,
    .cta-section { padding: 48px 0; }

    /* ---- Navbar compact on mobile ---- */
    .navbar-inner { height: 56px; padding: 0 14px; }

    /* Mobile nav: hide links, show hamburger */
    .navbar-links { display: none; }
    .navbar-links.open {
        display: flex;
        flex-direction: column;
        gap: 2px;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        padding: 10px 12px 14px;
        box-shadow: 0 8px 32px rgba(0,0,0,.25);
        border-top: 1px solid rgba(255,255,255,.08);
        z-index: 901;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-links.open .navbar-link { padding: 12px 14px; font-size: 14px; border-radius: var(--radius); }
    .navbar-links.open .navbar-link.active::after { display: none; }
    .navbar-links.open .navbar-link.active { background: rgba(255,255,255,.14); }
    .navbar-toggle { display: flex; }
    .navbar-coins { display: none; }
    .navbar-profile-name { display: none; }
    .mobile-nav { display: flex; }

    /* Touch-friendly interactive elements */
    .navbar-icon-btn,
    .navbar-profile-btn { min-width: 40px; min-height: 40px; }

    .chat-layout { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
    .chat-sidebar.open { display: flex; position: fixed; inset: 56px 0 0 0; z-index: 999; }

    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-layout { gap: 32px; padding: 32px 0 40px; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Profile hero mobile */
    .pv-cover { height: 150px; }
    .pv-hero-body { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -44px; }
    .pv-identity { padding-top: 0; }
    .pv-actions { padding-top: 0; margin-left: 0; }
    .pv-name { font-size: 1.3rem; }

    /* Body padding to clear fixed bottom nav */
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

    /* Hide full footer on mobile — bottom nav replaces it */
    .footer { display: none; }

    .discover-cards { width: 100%; height: 460px; }
    .discover-card-photo { height: 280px; }

    .auth-card { padding: 28px 20px; }

    .hero-stats { gap: 24px; }

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

    /* Card/section spacing on mobile */
    .container { padding: 0 16px; }
    .section { padding: 24px 0; }
    .card { border-radius: var(--radius); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .contact-panel,
    .contact-form-wrap { padding: 20px; }
    .discover-cards { height: 400px; }
    .discover-card-photo { height: 240px; }
    .photo-upload-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-cards { flex-direction: column; }
    .stream-layout { grid-template-columns: 1fr; }
    .gifts-grid { grid-template-columns: repeat(2, 1fr); }
    .streams-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .live-hero-inner { padding: 16px 16px 14px; }
    .live-hero-title h1 { font-size: 1.35rem; }
    .live-content { padding: 20px 16px 48px; }

    /* Extra small: tighter navbar */
    .navbar-inner { padding: 0 12px; }
    .mn-item { font-size: 9.5px; }
    .mn-item i { font-size: 20px; }
    .mn-fab-inner { width: 46px; height: 46px; }
    .mn-fab-inner i { font-size: 21px; }
    .mn-fab { margin-top: -14px; }
}

/* =====================================================
   LANDING PAGE UPGRADE — lp-* namespace
   ===================================================== */

/* ── Shared section helpers ── */
.lp-section { padding: 96px 0; }
.lp-bg-light { background: var(--gray-100); }
.lp-section-head { text-align: center; margin-bottom: 64px; }
.lp-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 16px; }
.lp-section-head p { color: var(--gray-600); max-width: 560px; margin: 0 auto; font-size: 15px; }
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--blue-pale); color: var(--blue-mid);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: var(--radius-full);
}
.lp-eyebrow-green { background: var(--green-light); color: var(--green-dark); }
.lp-accent-red  { color: var(--red); }
.lp-accent-green{ color: var(--green); }
.lp-accent-blue { color: var(--blue-mid); }

/* ── Hero ── */
.lp-hero {
    background: var(--blue);
    color: #fff;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.lp-hero-particles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.lp-hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: .08;
    background: #fff;
    animation: lpFloat 12s ease-in-out infinite;
}
.lp-hero-particles span:nth-child(1){ width:320px;height:320px;top:-80px;left:-80px;animation-duration:14s; }
.lp-hero-particles span:nth-child(2){ width:200px;height:200px;top:20%;right:-40px;animation-duration:10s;animation-delay:-3s; }
.lp-hero-particles span:nth-child(3){ width:140px;height:140px;bottom:10%;left:15%;animation-duration:16s;animation-delay:-6s; }
.lp-hero-particles span:nth-child(4){ width:80px;height:80px;top:60%;right:20%;animation-duration:8s;animation-delay:-2s; }
.lp-hero-particles span:nth-child(5){ width:60px;height:60px;top:30%;left:40%;animation-duration:11s;animation-delay:-4s; }
.lp-hero-particles span:nth-child(6){ width:180px;height:180px;bottom:-40px;right:30%;animation-duration:13s;animation-delay:-7s; }
.lp-hero-particles span:nth-child(7){ width:100px;height:100px;top:5%;left:55%;animation-duration:9s;animation-delay:-1s; }
.lp-hero-particles span:nth-child(8){ width:50px;height:50px;bottom:25%;left:5%;animation-duration:7s;animation-delay:-5s; }

@keyframes lpFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.04); }
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
}
.lp-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 24px;
}
.lp-hero-heading {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 20px;
}
.lp-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}
.lp-hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.lp-cta-primary { box-shadow: 0 6px 20px rgba(230,57,70,.4); }
.lp-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(230,57,70,.5); }
.lp-hero-note { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 32px; }
.lp-hero-avatars { display: flex; align-items: center; gap: 12px; }
.lp-avatar-stack { display: flex; }
.lp-av {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--blue);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    margin-left: -8px;
}
.lp-av:first-child { margin-left: 0; }
.lp-av-more {
    background: var(--blue-mid); font-size: 11px; font-weight: 700;
}
.lp-hero-avatars p { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }

/* Phone mockup */
.lp-hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 24px; }
.lp-phone {
    width: 240px;
    background: #0a0e1a;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 32px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
    position: relative;
    z-index: 2;
}
.lp-phone-bar {
    display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; padding-top: 2px;
}
.lp-phone-bar span {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2);
}
.lp-phone-bar span:nth-child(2) { width: 48px; border-radius: 4px; }
.lp-phone-screen {
    background: #1a2340;
    border-radius: 24px;
    padding: 16px;
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.lp-card-swipe {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.lp-card-photo {
    height: 160px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; color: rgba(255,255,255,.5);
}
.lp-card-info { padding: 10px 12px 4px; }
.lp-card-name { font-size: 13px; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.lp-card-loc  { font-size: 11px; color: var(--gray-500); margin: 2px 0 6px; display: flex; align-items: center; gap: 3px; }
.lp-card-tags { display: flex; gap: 4px; flex-wrap: wrap; padding-bottom: 8px; }
.lp-card-tags span {
    background: var(--gray-100); color: var(--gray-600);
    font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 99px;
}
.lp-card-actions {
    display: flex; justify-content: center; gap: 12px; padding: 8px 12px 12px;
}
.lp-btn-pass,.lp-btn-super,.lp-btn-like {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; border: none; cursor: default;
}
.lp-btn-pass  { background: var(--red-light); color: var(--red); }
.lp-btn-super { background: var(--blue-pale); color: var(--blue-mid); }
.lp-btn-like  { background: var(--green); color: #fff; }

.lp-match-pop {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    background: var(--red); color: #fff; border-radius: 99px;
    font-size: 11px; font-weight: 700; padding: 4px 12px;
    display: flex; align-items: center; gap: 4px;
    animation: lpPop 3s ease infinite; white-space: nowrap;
}
.lp-match-pop img { width: 18px; height: 18px; }
@keyframes lpPop {
    0%,80%,100% { opacity:0; transform: translateX(-50%) translateY(-4px) scale(.9); }
    10%,70% { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
}
.lp-live-chip {
    position: absolute; bottom: 54px; left: 16px;
    background: rgba(230,57,70,.9); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 99px; display: flex; align-items: center; gap: 4px;
}
.lp-live-chip i { animation: pulse 1.5s ease infinite; font-size: 8px; }
.lp-live-chip span { background: rgba(255,255,255,.25); padding: 1px 6px; border-radius: 99px; }
.lp-gift-float {
    position: absolute; bottom: 54px; right: 16px;
    font-size: 22px; animation: lpGift 2.5s ease infinite;
}
@keyframes lpGift {
    0%,100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

/* Floating stat cards */
.lp-float-card {
    position: absolute;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    padding: 10px 16px;
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; z-index: 3;
}
.lp-float-card i { font-size: 22px; }
.lp-float-card strong { display: block; font-size: 14px; font-weight: 800; color: var(--blue); }
.lp-float-card span { color: var(--gray-500); }
.lp-float-top  { top: 20px; right: -20px; animation: lpFloatCard 4s ease infinite; }
.lp-float-bottom { bottom: 40px; right: -16px; animation: lpFloatCard 4s ease infinite .8s; }
@keyframes lpFloatCard {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Social proof bar ── */
.lp-proof-bar { background: var(--blue); border-top: 1px solid rgba(255,255,255,.1); padding: 28px 0; }
.lp-proof-inner {
    display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.lp-proof-stat { text-align: center; padding: 8px 32px; }
.lp-proof-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.lp-proof-stat span { font-size: 12px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }
.lp-proof-div { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

/* ── Features grid ── */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-feat {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.lp-feat::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
}
.lp-feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.lp-feat-red   { border-top-color: var(--red); }
.lp-feat-green { border-top-color: var(--green); }
.lp-feat-blue  { border-top-color: var(--blue-mid); }
.lp-feat-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.lp-feat-red   .lp-feat-icon { background: var(--red-light); color: var(--red); }
.lp-feat-green .lp-feat-icon { background: var(--green-light); color: var(--green-dark); }
.lp-feat-blue  .lp-feat-icon { background: var(--blue-pale); color: var(--blue-mid); }
.lp-feat h3 { font-size: 1.05rem; margin-bottom: 10px; }
.lp-feat p  { color: var(--gray-600); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.lp-feat-link {
    font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
    transition: gap var(--transition);
}
.lp-feat-red   .lp-feat-link { color: var(--red); }
.lp-feat-green .lp-feat-link { color: var(--green-dark); }
.lp-feat-blue  .lp-feat-link { color: var(--blue-mid); }
.lp-feat-link:hover { gap: 8px; }

/* ── How it works ── */
.lp-steps {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0; align-items: start; margin-bottom: 48px;
}
.lp-step { text-align: center; padding: 0 24px; }
.lp-step-arrow {
    display: flex; align-items: center; padding-top: 36px;
    color: var(--gray-400); font-size: 24px;
}
.lp-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 900; color: #fff;
    margin: 0 auto 14px;
}
.lp-step-red   { background: var(--red); }
.lp-step-green { background: var(--green); }
.lp-step-blue  { background: var(--blue-mid); }
.lp-step-icon {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: var(--white); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--blue-mid);
    margin: 0 auto 16px;
}
.lp-step h3 { font-size: 1rem; margin-bottom: 8px; }
.lp-step p  { color: var(--gray-600); font-size: 13px; max-width: 180px; margin: 0 auto; }
.lp-steps-cta { text-align: center; }

/* ── Live showcase ── */
.lp-live-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.lp-live-text .lp-eyebrow { margin-bottom: 16px; }
.lp-live-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.lp-live-text > p { color: var(--gray-600); margin-bottom: 28px; }
.lp-check-list { list-style: none; margin-bottom: 36px; }
.lp-check-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--gray-700); padding: 7px 0; line-height: 1.5;
}
.lp-check-list i { color: var(--green); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* Stream card */
.lp-live-preview { position: relative; }
.lp-stream-card {
    background: #1a1a2e;
    border-radius: var(--radius-xl);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.lp-stream-top {
    display: flex; justify-content: space-between; margin-bottom: 16px;
}
.lp-live-tag {
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 99px; display: inline-flex; align-items: center; gap: 4px;
}
.lp-live-tag i { font-size: 8px; animation: pulse 1.5s ease infinite; }
.lp-viewer-tag {
    background: rgba(255,255,255,.12); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 99px; display: inline-flex; align-items: center; gap: 4px;
}
.lp-stream-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: rgba(255,255,255,.5);
    margin: 0 auto 14px; border: 3px solid rgba(255,255,255,.2);
}
.lp-stream-meta { text-align: center; margin-bottom: 16px; }
.lp-stream-meta h4 { font-size: 1rem; color: #fff; }
.lp-stream-meta p  { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }
.lp-stream-gifts {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 16px;
}
.lp-gift-anim {
    font-size: 20px;
    animation: lpGiftFloat 2.4s ease infinite;
    animation-delay: var(--d, 0s);
}
@keyframes lpGiftFloat {
    0%,100% { transform: translateY(0); opacity: .8; }
    50% { transform: translateY(-12px); opacity: 1; }
}
.lp-stream-comments {
    background: rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.lp-comment { font-size: 12px; color: rgba(255,255,255,.75); }
.lp-comment strong { color: #fff; }

/* Earnings widget */
.lp-earn-card {
    position: absolute; bottom: -14px; right: -14px;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px 18px;
    display: flex; align-items: center; gap: 10px;
    animation: lpFloatCard 4s ease infinite;
}
.lp-earn-card i { font-size: 24px; }
.lp-earn-card strong { display: block; font-size: 14px; font-weight: 800; color: var(--blue); }
.lp-earn-card span { font-size: 11px; color: var(--gray-500); }

/* ── Audience ── */
.lp-audience-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.lp-audience-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.lp-audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-aud-icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 18px;
}
.lp-aud-red  { background: var(--red-light); color: var(--red); }
.lp-aud-green{ background: var(--green-light); color: var(--green-dark); }
.lp-aud-blue { background: var(--blue-pale); color: var(--blue-mid); }
.lp-aud-gold { background: #FFF3E0; color: var(--gold); }
.lp-audience-card h3 { font-size: 1rem; margin-bottom: 10px; }
.lp-audience-card p  { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ── Testimonials ── */
.lp-testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start;
}
.lp-testi-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.lp-testi-card:hover { box-shadow: var(--shadow-lg); }
.lp-testi-featured {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(230,57,70,.12), var(--shadow);
    transform: scale(1.03);
    transform-origin: top center;
}
.lp-testi-stars { color: var(--gold); margin-bottom: 14px; font-size: 14px; }
.lp-testi-card > p { color: var(--gray-700); font-style: italic; line-height: 1.7; font-size: 14px; margin-bottom: 20px; }
.lp-testi-author { display: flex; align-items: center; gap: 12px; }
.lp-testi-av {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.lp-testi-author strong { display: block; font-size: 13px; color: var(--blue); }
.lp-testi-author span   { font-size: 12px; color: var(--gray-500); }

/* ── Final CTA ── */
.lp-cta-section {
    background: var(--blue);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-cta-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.lp-cta-bg span {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.lp-cta-bg span:nth-child(1){ width:400px;height:400px;top:-100px;left:-100px; }
.lp-cta-bg span:nth-child(2){ width:300px;height:300px;bottom:-80px;right:-60px; }
.lp-cta-bg span:nth-child(3){ width:160px;height:160px;top:20%;right:20%; }
.lp-cta-bg span:nth-child(4){ width:80px;height:80px;bottom:30%;left:20%; }
.lp-cta-inner { position: relative; z-index: 1; }
.lp-cta-icon {
    margin-bottom: 20px; display: block;
    animation: lpHeartBeat 1.6s ease infinite;
}
.lp-cta-icon img {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto;
}
@keyframes lpHeartBeat {
    0%,100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    56% { transform: scale(1); }
}
.lp-cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.lp-cta-inner > p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 520px; margin: 0 auto 36px; }
.lp-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.lp-cta-note { font-size: 12px; color: rgba(255,255,255,.4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-audience-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-testi-grid    { grid-template-columns: repeat(2, 1fr); }
    .lp-testi-featured{ transform: none; }
    .lp-float-top,
    .lp-float-bottom  { display: none; }
}
@media (max-width: 860px) {
    .lp-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .lp-hero-sub,.lp-hero-note { margin-left: auto; margin-right: auto; }
    .lp-hero-actions,.lp-hero-avatars { justify-content: center; }
    .lp-hero-visual { order: -1; }
    .lp-live-inner { grid-template-columns: 1fr; }
    .lp-steps {
        grid-template-columns: 1fr;
    }
    .lp-step-arrow { display: none; }
    .lp-steps { gap: 24px; }
}
@media (max-width: 640px) {
    .lp-section { padding: 64px 0; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-audience-grid { grid-template-columns: 1fr 1fr; }
    .lp-testi-grid    { grid-template-columns: 1fr; }
    .lp-proof-inner   { gap: 0; }
    .lp-proof-stat    { padding: 8px 18px; }
    .lp-proof-div     { display: none; }
    .lp-phone         { width: 200px; }
}

/* =====================================================
   LANDING PAGE v2 — New Sections & Upgrades
   ===================================================== */

/* ── Announcement Bar ── */
.lp-announce-bar {
    background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    position: relative;
    z-index: 999;
}
.lp-announce-inner {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.lp-announce-badge {
    background: rgba(255,255,255,.2);
    border-radius: var(--radius-full);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}
.lp-announce-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-flex; align-items: center; gap: 3px;
    white-space: nowrap;
}
.lp-announce-bar a:hover { opacity: .85; color: #fff; }

/* ── Hero v2 upgrades ── */
.lp-hero-blobs {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
}
.lp-blob-1 {
    width: 500px; height: 500px;
    background: var(--red);
    top: -150px; right: -100px;
    animation: lpFloat 14s ease-in-out infinite;
}
.lp-blob-2 {
    width: 350px; height: 350px;
    background: var(--blue-mid);
    bottom: -80px; left: -80px;
    animation: lpFloat 18s ease-in-out infinite 3s;
}
.lp-blob-3 {
    width: 250px; height: 250px;
    background: var(--green);
    top: 40%; left: 45%;
    animation: lpFloat 12s ease-in-out infinite 6s;
}
.lp-heading-highlight {
    position: relative; display: inline-block;
}
.lp-heading-highlight::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 4px;
    background: var(--red);
    border-radius: 2px;
}
.lp-btn-glow:hover {
    box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.lp-hero-trust {
    margin-top: 32px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.lp-hero-trust > span { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; }
.lp-trust-logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-trust-logo {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,.45);
    font-size: 12px; font-weight: 600;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-full);
    transition: color var(--transition), border-color var(--transition);
}
.lp-trust-logo:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }

/* Phone v2 upgrades */
.lp-phone-glow {
    box-shadow: 0 32px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08),
                0 0 80px rgba(69,123,157,.25);
}
.lp-phone-notch {
    width: 80px; height: 24px;
    background: #000;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 6px;
}
.lp-app-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.lp-app-logo { font-size: 11px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 4px; }
.lp-app-logo img { width: 14px; height: 14px; flex-shrink: 0; }
.lp-app-notif { position: relative; color: rgba(255,255,255,.7); font-size: 16px; }
.lp-app-notif em {
    position: absolute; top: -4px; right: -4px;
    background: var(--red); color: #fff;
    font-size: 8px; font-style: normal; font-weight: 700;
    width: 14px; height: 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.lp-card-photo-anim { position: relative; }
.lp-card-online {
    position: absolute; bottom: 6px; left: 8px;
    background: rgba(0,0,0,.55); color: var(--green);
    font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
}
.lp-card-compat {
    font-size: 11px; color: var(--green-dark); font-weight: 600;
    display: flex; align-items: center; gap: 3px; margin-bottom: 4px;
}
.lp-msg-bubble {
    position: absolute; bottom: 16px; left: 16px;
    background: var(--green); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 5px 10px; border-radius: 12px 12px 12px 2px;
    display: flex; align-items: center; gap: 4px;
    animation: lpMsgPop 4s ease infinite 2s;
    opacity: 0;
}
@keyframes lpMsgPop {
    0%,60%,100% { opacity:0; transform: translateY(6px) scale(.9); }
    70%,90% { opacity:1; transform: translateY(0) scale(1); }
}
.lp-ai-badge {
    position: absolute; top: -14px; left: -24px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    color: #fff; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700; padding: 6px 14px;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 4px 16px rgba(69,123,157,.4);
    animation: lpFloatCard 5s ease infinite 1s;
}
.lp-ai-badge i { color: var(--gold); font-size: 14px; }
.lp-scroll-cue {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.3); font-size: 20px;
    animation: lpScrollBounce 2s ease infinite;
}
@keyframes lpScrollBounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Ticker ── */
.lp-ticker-wrap {
    background: var(--blue);
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    padding: 12px 0;
}
.lp-ticker-track {
    display: flex; align-items: center; gap: 0;
    width: max-content;
    animation: lpTicker 30s linear infinite;
}
.lp-ticker-track:hover { animation-play-state: paused; }
@keyframes lpTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.lp-ticker-item {
    display: inline-flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,.7);
    font-size: 13px; font-weight: 600;
    padding: 0 24px;
    white-space: nowrap;
}
.lp-ticker-item i { color: var(--red); font-size: 14px; }
.lp-ticker-sep {
    color: rgba(255,255,255,.2); font-size: 8px; padding: 0 4px;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ── Testimonial enhancements ── */
.lp-testi-featured .lp-testi-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: var(--radius-full); margin-bottom: 12px;
}
.lp-testi-summary {
    margin-top: 56px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lp-rating-big {
    font-size: 4rem; font-weight: 900; color: var(--blue); line-height: 1;
}
.lp-rating-stars {
    color: var(--gold); font-size: 22px; display: flex; gap: 4px;
}
.lp-testi-summary p { color: var(--gray-600); font-size: 14px; }
.lp-store-chips { display: flex; gap: 10px; margin-top: 4px; }
.lp-store-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gray-100); color: var(--gray-700);
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-300);
}
.lp-store-chip i { font-size: 14px; }

/* ── Pricing ── */
.lp-pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start;
}
.lp-plan {
    background: #fff; border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.lp-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.lp-plan-featured {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(230,57,70,.08), var(--shadow-lg);
    transform: scale(1.03);
    transform-origin: top center;
}
.lp-plan-featured:hover { transform: scale(1.03) translateY(-6px); }
.lp-plan-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 16px;
    border-radius: var(--radius-full); white-space: nowrap;
}
.lp-plan-header { text-align: center; margin-bottom: 28px; }
.lp-plan-icon {
    width: 60px; height: 60px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 16px;
}
.lp-plan-icon-red   { background: var(--red-light); color: var(--red); }
.lp-plan-icon-blue  { background: var(--blue-pale); color: var(--blue-mid); }
.lp-plan-icon-green { background: var(--green-light); color: var(--green-dark); }
.lp-plan-header h3  { font-size: 1.2rem; margin-bottom: 10px; }
.lp-plan-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 8px; }
.lp-price-amount { font-size: 2.4rem; font-weight: 900; color: var(--blue); }
.lp-price-per { font-size: 14px; color: var(--gray-500); }
.lp-plan-header > p { font-size: 13px; color: var(--gray-600); }
.lp-plan-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 10px;
}
.lp-plan-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--gray-700);
}
.lp-plan-features li i { font-size: 16px; flex-shrink: 0; }
.lp-plan-features li i.ri-check-line { color: var(--green); }
.lp-plan-features li i.ri-close-line { color: var(--gray-400); }
.lp-plan-disabled { opacity: .45; }
.lp-plan-note { text-align: center; font-size: 12px; color: var(--gray-400); margin-top: 12px; }

/* ── FAQ ── */
.lp-faq-grid {
    max-width: 780px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 12px;
}
.lp-faq-item {
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.lp-faq-item:hover { box-shadow: var(--shadow); }
.lp-faq-q {
    width: 100%; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    font-size: 15px; font-weight: 600; color: var(--blue);
    background: none; border: none; cursor: pointer;
    transition: background var(--transition);
}
.lp-faq-q:hover { background: var(--gray-100); }
.lp-faq-q i { font-size: 18px; flex-shrink: 0; transition: transform .25s ease; }
.lp-faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.lp-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.lp-faq-a.open { max-height: 300px; }
.lp-faq-a p {
    padding: 0 22px 18px;
    font-size: 14px; color: var(--gray-600); line-height: 1.7;
}

/* ── App Download ── */
.lp-app-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.lp-app-text .lp-eyebrow { margin-bottom: 16px; }
.lp-app-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.lp-app-text > p { color: var(--gray-600); margin-bottom: 28px; }
.lp-app-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px;
}
.lp-app-feat {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--gray-700);
}
.lp-app-feat i { font-size: 18px; color: var(--blue-mid); flex-shrink: 0; }
.lp-app-badges {
    display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.lp-store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--blue); color: #fff;
    padding: 12px 22px; border-radius: var(--radius-lg);
    font-size: 13px;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}
.lp-store-badge:hover { background: var(--blue-mid); color: #fff; transform: translateY(-2px); }
.lp-store-badge i { font-size: 24px; }
.lp-store-badge span { display: block; font-size: 10px; color: rgba(255,255,255,.65); line-height: 1; }
.lp-store-badge strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.lp-store-apple  { background: #000; }
.lp-store-apple:hover { background: #222; }
.lp-app-rating { font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 2px; }
.lp-app-rating i { color: var(--gold); font-size: 13px; }

/* App visual – dual-phone mockup */
.lp-app-visual { position: relative; height: 340px; }
.lp-app-phones { position: relative; height: 100%; }
.lp-app-phone {
    position: absolute;
    width: 160px;
    background: #0a0e1a;
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.lp-app-phone-back  { top: 20px; left: 20px; transform: rotate(-6deg); z-index: 1; }
.lp-app-phone-front { top: 40px; left: 110px; transform: rotate(3deg); z-index: 2; }
.lp-app-screen-mini {
    background: #1a2340; border-radius: 16px; padding: 12px;
    min-height: 260px; overflow: hidden;
}
.lp-apm-header {
    font-size: 10px; font-weight: 800; color: #fff;
    margin-bottom: 10px; display: flex; align-items: center; gap: 4px;
}
.lp-apm-header img { width: 16px; height: 16px; display: block; }
.lp-apm-header-live {
    background: var(--red); padding: 3px 8px; border-radius: 99px;
    font-size: 9px; gap: 3px; justify-content: center;
}
.lp-apm-header-live i { color: #fff; font-size: 7px; animation: pulse 1.5s ease infinite; }
.lp-apm-card {
    background: var(--blue-mid); border-radius: 12px;
    height: 120px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    color: rgba(255,255,255,.5); font-size: 28px; margin-bottom: 10px;
}
.lp-apm-card span { font-size: 11px; font-weight: 700; color: #fff; }
.lp-apm-actions {
    display: flex; justify-content: center; gap: 12px;
}
.lp-apm-actions span {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.lp-apm-stream {
    background: var(--blue); border-radius: 12px;
    height: 120px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    color: rgba(255,255,255,.4); font-size: 28px; margin-bottom: 8px;
}
.lp-apm-gifts { font-size: 16px; }
.lp-apm-comments { display: flex; flex-direction: column; gap: 4px; }
.lp-apm-comments span {
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
    font-size: 9px; padding: 3px 6px; border-radius: 6px;
}

/* ── Final CTA upgrades ── */
.lp-cta-primary-white:hover { box-shadow: 0 8px 24px rgba(255,255,255,.25); transform: translateY(-2px); }
.lp-cta-urgency {
    margin-top: 28px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 13px; color: rgba(255,255,255,.8);
}
.lp-cta-urgency i { color: var(--gold); }
.lp-cta-urgency strong { color: #fff; }

/* ── Responsive additions ── */
@media (max-width: 1024px) {
    .lp-pricing-grid { grid-template-columns: 1fr 1fr; }
    .lp-plan-featured { transform: none; }
    .lp-plan-featured:hover { transform: translateY(-6px); }
    .lp-app-inner { grid-template-columns: 1fr; }
    .lp-app-visual { display: none; }
}
@media (max-width: 860px) {
    .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-hero-trust { justify-content: center; }
    .lp-ai-badge { display: none; }
}
@media (max-width: 640px) {
    .lp-app-features { grid-template-columns: 1fr; }
    .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-announce-bar { font-size: 12px; }
    .lp-testi-summary { display: none; }
}

/* =====================================================
   AUTH PAGES — Split-panel layout
   ===================================================== */

/* Hide navbar & footer on auth pages */
.page-auth .navbar,
.page-auth .mobile-nav,
.page-auth .footer { display: none; }
.page-auth body,
body.page-auth { padding-bottom: 0; }

/* Landing page: not logged-in, no bottom nav needed */
body.page-landing { padding-bottom: 0 !important; }

@media (max-width: 640px) {
    body.page-landing .navbar-inner {
        height: auto;
        min-height: 56px;
        padding-top: 10px;
        padding-bottom: 10px;
        align-items: center;
        row-gap: 10px;
    }
    body.page-landing .navbar-brand {
        margin-right: auto;
        min-width: 0;
    }
    body.page-landing .navbar-brand .brand-logo__svg {
        height: 30px;
    }
    body.page-landing .navbar-actions {
        gap: 8px;
        margin-left: 0;
    }
    body.page-landing .navbar-actions .btn {
        min-height: 38px;
        padding-left: 12px;
        padding-right: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    body.page-landing .navbar-inner {
        align-items: stretch;
    }
    body.page-landing .navbar-brand {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
    body.page-landing .navbar-actions {
        width: 100%;
        justify-content: stretch;
    }
    body.page-landing .navbar-actions .btn {
        flex: 1 1 0;
        justify-content: center;
    }
    body.page-landing .footer {
        padding: 36px 0 20px;
    }
    body.page-landing .footer-grid {
        gap: 24px;
        margin-bottom: 24px;
    }
    body.page-landing .footer-brand,
    body.page-landing .footer-links {
        text-align: center;
    }
    body.page-landing .footer-logo,
    body.page-landing .footer-social {
        justify-content: center;
    }
    body.page-landing .footer-brand p {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    body.page-landing .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ── Simple auth pages ── */
.sauth-page,
.sauth-page--wide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--gray-100);
}

.sauth-card,
.sauth-card--wide {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.sauth-card--wide {
    max-width: 720px;
}

.sauth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-bottom: 20px;
}
.sauth-logo .brand-logo__svg { height: 42px; }

.sauth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.sauth-sub {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Alerts */
.auth-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px; border-radius: var(--radius); font-size: 14px;
    margin-bottom: 18px;
}
.auth-alert-success { background: #d1fae5; color: #065f46; }
.auth-alert-error   { background: #fee2e2; color: #991b1b; }

/* Fields */
.afield { margin-bottom: 18px; }
.afield > label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--gray-700); margin-bottom: 6px;
}
.afield-wrap {
    position: relative; display: flex; align-items: center;
}
.afield-wrap > i:first-child {
    position: absolute; left: 12px; font-size: 16px; color: var(--gray-500);
    pointer-events: none;
}
.afield-wrap input,
.afield-wrap select {
    width: 100%; padding: 10px 12px 10px 36px;
    border: 1.5px solid var(--gray-300); border-radius: var(--radius);
    font-size: 14px; color: var(--gray-800); background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}
.afield-wrap input:focus,
.afield-wrap select:focus { border-color: var(--blue-mid); }
.afield-wrap input.has-error { border-color: var(--red); }
.afield-toggle {
    position: absolute; right: 10px; background: none; border: none;
    cursor: pointer; color: var(--gray-500); font-size: 16px; padding: 4px;
    line-height: 1;
}
.afield-toggle:hover { color: var(--gray-700); }
.afield-error {
    font-size: 12px; color: var(--red); margin-top: 5px;
    display: flex; align-items: center; gap: 4px;
}
.afield-hint { font-weight: 400; color: var(--gray-500); font-size: 12px; }

/* Two-column layout */
.afield-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .afield-2col { grid-template-columns: 1fr; } }

/* Row (remember + forgot) */
.afield-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; font-size: 13px;
}

/* Checkbox */
.acheckbox {
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; color: var(--gray-700); user-select: none;
}
.acheckbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.acheckbox-box {
    width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
    border: 2px solid var(--gray-400); display: flex; align-items: center;
    justify-content: center; font-size: 11px; color: transparent;
    transition: all var(--transition);
}
.acheckbox input:checked ~ .acheckbox-box {
    background: var(--blue-mid); border-color: var(--blue-mid); color: #fff;
}

/* Links */
.alink { color: var(--blue-mid); text-decoration: none; font-size: 13px; }
.alink:hover { text-decoration: underline; }
.alink-strong { font-weight: 600; }

/* Radio cards */
.arcard-group { display: flex; gap: 8px; flex-wrap: wrap; }
.arcard { cursor: pointer; }
.arcard input { position: absolute; opacity: 0; width: 0; height: 0; }
.arcard span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--gray-300); color: var(--gray-700);
    background: var(--white); cursor: pointer; transition: all var(--transition);
}
.arcard:hover span { border-color: var(--blue-mid); color: var(--blue-mid); }
.arcard input:checked ~ span {
    border-color: var(--blue-mid); background: #e0f2fe; color: var(--blue-mid);
}

/* Interest tags */
.atag-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.atag {
    cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--gray-300); color: var(--gray-700); background: var(--white);
    transition: all var(--transition); user-select: none;
}
.atag input { position: absolute; opacity: 0; width: 0; height: 0; }
.atag:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.atag--on,
.atag:has(input:checked) {
    border-color: var(--blue-mid); background: #e0f2fe; color: var(--blue-mid);
}

/* Password strength bar */
.apw-strength {
    height: 4px; border-radius: 4px; margin-top: 6px;
    background: var(--gray-200); overflow: hidden;
}
.apw-strength::after {
    content: ''; display: block; height: 100%;
    width: var(--pw-w, 0%); background: var(--pw-c, var(--gray-400));
    border-radius: 4px; transition: width .3s, background .3s;
}

/* Submit button */
.auth-submit-btn {
    display: block; width: 100%;
    padding: 12px; border: none; border-radius: var(--radius);
    background: var(--red); color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background var(--transition);
    margin-top: 6px;
}
.auth-submit-btn:hover { background: var(--red-dark); }

/* Switch link */
.auth-switch {
    text-align: center; font-size: 13px; color: var(--gray-600);
    margin-top: 20px;
}

@media (max-width: 480px) {
    .sauth-card { padding: 28px 20px; }
    .afield-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =====================================================
   LANDING PAGE v3 — lp2-* namespace (Simple & Catchy)
   ===================================================== */

/* ── Hero ── */
.lp2-hero {
    background: var(--blue);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.lp2-hero-glow {
    position: absolute;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,.15) 0%, transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}
.lp2-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .95fr);
    gap: 52px;
    align-items: center;
}
.lp2-hero-copy {
    max-width: 560px;
}
.lp2-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
    font-size: 13px; font-weight: 600;
    padding: 7px 18px; border-radius: 99px;
    margin-bottom: 30px;
}
.lp2-hero-badge i { color: var(--gold); font-size: 15px; }
.lp2-hero-h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.06;
    letter-spacing: -2px;
    margin-bottom: 22px;
}
.lp2-red  { color: var(--red); }
.lp2-blue { color: var(--blue-mid); }
.lp2-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.68);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 0 26px;
}
.lp2-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.lp2-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 600;
}
.lp2-hero-pills i {
    color: var(--blue-light);
    font-size: 15px;
}
.lp2-hero-ctas {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.lp2-hero-note {
    color: rgba(255,255,255,.45);
    font-size: 13px;
}
.lp2-hero-visual {
    position: relative;
}
.lp2-system-graphic {
    position: relative;
    min-height: 540px;
}
.lp2-system-window {
    position: absolute;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    box-shadow: 0 24px 60px rgba(6, 16, 31, .35);
    backdrop-filter: blur(16px);
}
.lp2-system-window--main {
    inset: 34px 26px 38px 18px;
    padding: 22px;
}
.lp2-window-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.lp2-window-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
}
.lp2-window-topbar span:first-child { background: rgba(230,57,70,.9); }
.lp2-window-topbar span:nth-child(2) { background: rgba(244,162,97,.9); }
.lp2-window-topbar span:nth-child(3) { background: rgba(45,198,83,.9); }
.lp2-system-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.lp2-system-header small,
.lp2-system-window--side small {
    display: block;
    color: rgba(255,255,255,.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}
.lp2-system-header strong,
.lp2-system-window--side strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}
.lp2-system-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(45,198,83,.15);
    color: rgba(234,255,239,.92);
    font-size: 12px;
    font-weight: 700;
}
.lp2-system-status i { color: var(--green); }
.lp2-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.lp2-system-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(7, 17, 34, .55);
    border: 1px solid rgba(255,255,255,.08);
}
.lp2-system-card--gift {
    grid-column: 1 / -1;
}
.lp2-system-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 18px;
    color: #fff;
}
.lp2-system-card--match i { background: rgba(29,83,87,.85); }
.lp2-system-card--live i { background: rgba(230,57,70,.85); }
.lp2-system-card--gift i { background: rgba(45,198,83,.85); }
.lp2-system-card strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 6px;
}
.lp2-system-card span {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.6;
}
.lp2-system-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.lp2-system-flow-step {
    min-width: 0;
}
.lp2-system-flow-step span {
    display: inline-flex;
    margin-bottom: 6px;
    color: rgba(255,255,255,.46);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}
.lp2-system-flow-step strong {
    display: block;
    color: #fff;
    font-size: 13px;
}
.lp2-system-flow-line {
    flex: 1;
    height: 1px;
    min-width: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.22), rgba(255,255,255,.06));
}
.lp2-system-window--side {
    width: 220px;
    padding: 18px 18px 16px;
}
.lp2-system-window--top {
    top: 0;
    right: 0;
}
.lp2-system-window--bottom {
    left: 0;
    bottom: 0;
}

/* ── Features ── */
.lp2-features {
    padding: 100px 0;
    background: var(--off-white);
}
.lp2-sec-label {
    display: block; text-align: center;
    background: var(--blue-pale); color: var(--blue-mid);
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 16px; border-radius: 99px;
    margin-bottom: 14px;
    width: fit-content; margin-left: auto; margin-right: auto;
}
.lp2-sec-label--light { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.lp2-sec-h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800; color: var(--blue);
    margin-bottom: 56px; text-align: center;
}
.lp2-sec-h2--light { color: #fff; }
.lp2-accent-light { color: var(--red); }
.lp2-feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.lp2-feat-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 38px 30px 30px;
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.lp2-feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.lp2-feat-card--highlight { border-top: 3px solid var(--green); }
.lp2-feat-icon {
    width: 58px; height: 58px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 22px;
}
.lp2-icon-red   { background: var(--red-light); color: var(--red); }
.lp2-icon-green { background: var(--green-light); color: var(--green-dark); }
.lp2-icon-blue  { background: var(--blue-pale); color: var(--blue-mid); }
.lp2-feat-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.lp2-feat-card p  { font-size: 14px; color: var(--gray-600); line-height: 1.75; margin-bottom: 22px; }
.lp2-feat-cta {
    font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap .2s ease;
}
.lp2-feat-cta:hover { gap: 8px; }
.lp2-cta-red   { color: var(--red); }
.lp2-cta-green { color: var(--green-dark); }
.lp2-cta-blue  { color: var(--blue-mid); }

.typewriter-text {
    display: inline-block;
    min-height: 1em;
}

.typewriter-text--hero {
    color: var(--gold);
    min-width: 18ch;
}

.typewriter-text.is-typing {
    border-right: 2px solid currentColor;
    padding-right: 2px;
    animation: typewriterCaret .85s step-end infinite;
}

@keyframes typewriterCaret {
    0%, 49% { border-right-color: currentColor; }
    50%, 100% { border-right-color: transparent; }
}

.lp2-feat-card.reveal {
    transition: opacity .55s ease, transform .55s ease, box-shadow .22s ease;
}

/* ── Testimonials ── */
.lp2-testimonials {
    padding: 100px 0;
    background: var(--blue);
}
.lp2-testi-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; align-items: stretch;
}
.lp2-testi {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    padding: 30px;
    transition: background .2s ease;
}
.lp2-testi:hover { background: rgba(255,255,255,.1); }
.lp2-testi--featured {
    background: rgba(255,255,255,.11);
    border-color: rgba(230,57,70,.6);
    box-shadow: 0 0 0 1px rgba(230,57,70,.3);
}
.lp2-testi-stars {
    color: var(--gold); font-size: 14px;
    letter-spacing: 2px; margin-bottom: 14px;
}
.lp2-testi > p {
    font-size: 14px; color: rgba(255,255,255,.78);
    line-height: 1.75; font-style: italic; margin-bottom: 22px;
}
.lp2-testi-who { display: flex; align-items: center; gap: 11px; }
.lp2-testi-av {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
}
.lp2-testi-who strong { display: block; font-size: 13px; color: #fff; }
.lp2-testi-who span   { font-size: 12px; color: rgba(255,255,255,.45); }

/* ── Pricing ── */
.lp2-pricing {
    padding: 100px 0;
    background: var(--off-white);
}
.lp2-plan-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; align-items: start; max-width: 980px; margin: 0 auto;
}
.lp2-plan {
    background: #fff; border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    padding: 38px 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}
.lp2-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.lp2-plan--featured {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230,57,70,.08), var(--shadow-lg);
    transform: scale(1.04); transform-origin: top center;
}
.lp2-plan--featured:hover { transform: scale(1.04) translateY(-6px); }
.lp2-plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 16px;
    border-radius: 99px; white-space: nowrap;
}
.lp2-plan-top { text-align: center; margin-bottom: 26px; }
.lp2-plan-top h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lp2-plan-price {
    font-size: 2.5rem; font-weight: 900; color: var(--blue);
    line-height: 1; margin-bottom: 8px;
}
.lp2-plan-price span { font-size: 14px; color: var(--gray-500); font-weight: 400; }
.lp2-plan-top > p { font-size: 13px; color: var(--gray-500); }
.lp2-plan-list {
    list-style: none; margin-bottom: 26px;
    display: flex; flex-direction: column; gap: 11px;
}
.lp2-plan-list li {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--gray-700);
}
.lp2-plan-list li i { font-size: 16px; flex-shrink: 0; }
.lp2-plan-list .ri-check-line { color: var(--green); }
.lp2-plan-list .ri-close-line { color: var(--gray-400); }
.lp2-plan-off { opacity: .45; }
.lp2-plan-note {
    text-align: center; font-size: 11px; color: var(--gray-400); margin-top: 12px;
}

/* ── CTA ── */
.lp2-cta {
    padding: 110px 0;
    background: var(--blue);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp2-cta-glow {
    position: absolute;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,.12) 0%, transparent 70%);
    top: -180px; right: -80px;
    pointer-events: none;
}
.lp2-cta-inner { position: relative; z-index: 1; }
.lp2-cta-heart {
    display: block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    animation: lpHeartBeat 1.6s ease infinite;
}
.lp2-cta-inner h2 {
    color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 900; letter-spacing: -1px; margin-bottom: 14px;
}
.lp2-cta-inner > p {
    color: rgba(255,255,255,.62); font-size: 1rem;
    max-width: 460px; margin: 0 auto 38px;
    line-height: 1.7;
}
.lp2-cta-btn {
    box-shadow: 0 6px 24px rgba(255,255,255,.14);
    display: inline-flex; margin-bottom: 18px;
}
.lp2-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.22); }
.lp2-cta-note { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── Responsive ── */
@media (max-width: 960px) {
    .lp2-hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .lp2-hero-copy { max-width: none; text-align: center; }
    .lp2-hero-sub,
    .lp2-hero-note { margin-left: auto; margin-right: auto; }
    .lp2-hero-pills,
    .lp2-hero-ctas { justify-content: center; }
    .lp2-hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
    .lp2-feat-grid { grid-template-columns: 1fr 1fr; }
    .lp2-testi-row { grid-template-columns: 1fr 1fr; }
    .lp2-plan-row  { grid-template-columns: 1fr 1fr; }
    .lp2-members-inner { grid-template-columns: 1fr; }
    .lp2-plan--featured { transform: none; }
    .lp2-plan--featured:hover { transform: translateY(-6px); }
}
@media (max-width: 640px) {
    .lp2-hero { padding: 52px 0 48px; }
    .lp2-hero-inner > * { min-width: 0; }
    .lp2-hero-h1 { letter-spacing: -1px; font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .lp2-hero-sub { font-size: 1rem; }
    .lp2-hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 22px; }
    .lp2-hero-pills { gap: 8px; }
    .lp2-hero-pills span { width: 100%; justify-content: center; padding: 9px 12px; }
    .lp2-hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
    .lp2-hero-ctas .btn { width: 100%; justify-content: center; }
    .typewriter-text--hero { min-width: 0; }

    /* Simplify the system graphic on small screens */
    .lp2-system-graphic { min-height: 320px; }
    .lp2-system-window--main {
        inset: 0;
        padding: 16px;
        border-radius: 20px;
    }
    .lp2-system-window { max-width: 100%; }
    .lp2-system-header { flex-direction: row; align-items: center; }
    .lp2-system-header strong { font-size: 15px; }
    .lp2-system-flow { gap: 8px; margin-top: 14px; }
    .lp2-system-flow-step strong { font-size: 12px; }
    .lp2-system-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .lp2-system-card { padding: 14px; border-radius: 16px; }
    .lp2-system-card i { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; margin-bottom: 10px; }
    .lp2-system-card strong { font-size: 13px; margin-bottom: 4px; }
    .lp2-system-card span { font-size: 11px; }

    .lp2-features,
    .lp2-testimonials,
    .lp2-pricing,
    .lp2-members { padding: 56px 0; }
    .lp2-sec-h2 { margin-bottom: 32px; font-size: clamp(1.5rem, 6vw, 1.9rem); }
    .lp2-sec-label { max-width: 100%; }

    .lp2-feat-grid { grid-template-columns: 1fr; gap: 16px; }
    .lp2-feat-card { padding: 26px 22px 22px; }
    .lp2-testi-row { grid-template-columns: 1fr; gap: 16px; }
    .lp2-testi { padding: 22px 20px; }
    .lp2-plan-row  { grid-template-columns: 1fr; gap: 20px; }
    .lp2-plan { padding: 28px 22px; }
    .lp2-plan-badge { top: -11px; font-size: 10px; padding: 3px 12px; }
    .lp2-plan-list li { align-items: flex-start; }

    .lp2-members-inner { gap: 32px; }
    .lp2-members-copy .btn { width: 100%; justify-content: center; }
    .lp2-members-mini-item > div:last-child { min-width: 0; }
    .lp2-members-map { min-height: 280px; }
    .lp2-member-card { display: none; }
    .lp2-member-avatar--map img { width: 42px; height: 42px; }

    .lp2-cta { padding: 72px 0; }
    .lp2-cta-btn { width: 100%; justify-content: center; max-width: 340px; }
}
@media (max-width: 480px) {
    .lp2-features,
    .lp2-pricing,
    .lp2-members { padding: 44px 0; }
    .lp2-hero-copy { text-align: left; }
    .lp2-hero-sub,
    .lp2-hero-note {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    .lp2-hero-sub,
    .lp2-members-sub { line-height: 1.6; }
    .lp2-hero-pills { margin-bottom: 20px; }
    .lp2-hero-pills span {
        font-size: 12px;
        padding: 8px 10px;
    }
    .lp2-hero-ctas { gap: 8px; margin-bottom: 14px; }
    .lp2-hero-ctas .btn { min-height: 48px; }
    .lp2-hero-note { font-size: 12px; }
    .lp2-feat-card,
    .lp2-plan,
    .lp2-testi { border-radius: 18px; }
    .lp2-members-mini-item { padding: 11px 12px; }
    .lp2-members-copy .btn { min-height: 48px; }
}
@media (max-width: 400px) {
    .lp2-hero { padding: 40px 0 44px; }
    .lp2-hero-h1 { font-size: 1.75rem; }
    .lp2-hero-pills span { width: 100%; justify-content: flex-start; }
    .lp2-hero-visual { display: none; }
    .lp2-system-grid { grid-template-columns: 1fr; }
    .lp2-system-card--gift { grid-column: auto; }
    .lp2-plan-price { font-size: 2rem; }
    .lp2-members-map { display: none; }
}

/* ============================================================
   WITHDRAWAL REQUEST — modal & history
   ============================================================ */

/* Backdrop */
.withdraw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.withdraw-modal-backdrop[hidden] { display: none; }

/* Modal card */
.withdraw-modal {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    animation: withdrawModalIn .2s ease;
}
@keyframes withdrawModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.withdraw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.withdraw-modal-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--blue);
}
.withdraw-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-500);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
}
.withdraw-modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.withdraw-modal-body { padding: 22px; }

.withdraw-rate-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--blue);
    margin-bottom: 18px;
}
.withdraw-rate-info i { font-size: 16px; flex-shrink: 0; }

/* Withdrawal history */
.withdrawal-history { margin-top: 40px; }
.withdrawal-history-title {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--blue);
}
.withdrawal-list {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.withdrawal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    gap: 12px;
}
.withdrawal-item:last-child { border-bottom: none; }
.withdrawal-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.withdrawal-item-left strong {
    display: block;
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 700;
}
.withdrawal-sub {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}
.withdrawal-date {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Status badges */
.withdrawal-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    flex-shrink: 0;
    white-space: nowrap;
}
.withdrawal-badge--pending  { background: #FFF3CD; color: #856404; }
.withdrawal-badge--approved { background: var(--blue-pale); color: var(--blue); }
.withdrawal-badge--paid     { background: var(--green-light); color: var(--green-dark); }
.withdrawal-badge--rejected { background: var(--red-light); color: var(--red-dark); }

@media (max-width: 480px) {
    .withdrawal-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .withdrawal-date { align-self: flex-end; }
}

/* ============================================================
   WITHDRAW PAGE — dedicated page layout
   ============================================================ */
.withdraw-page-wrap {
    max-width: 560px;
    margin: 32px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.withdraw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    transition: color var(--transition);
}
.withdraw-back-link i { font-size: 16px; }
.withdraw-back-link:hover { color: var(--blue); }

.withdraw-page-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.withdraw-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.withdraw-page-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.withdraw-page-title {
    font-size: 1.2rem;
    margin: 0 0 3px;
    color: var(--blue);
}
.withdraw-page-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.withdraw-balance-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 18px 28px;
    border-bottom: 1px solid var(--gray-100);
}
.withdraw-balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.withdraw-balance-item i {
    font-size: 26px;
    color: var(--gold);
}
.withdraw-balance-item span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}
.withdraw-balance-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--gray-900);
    font-weight: 700;
}
.withdraw-balance-sep {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
    flex-shrink: 0;
    margin: 0 24px;
}

.withdraw-form {
    padding: 24px 28px 28px;
}
.withdraw-form .withdraw-rate-info {
    margin-bottom: 22px;
}

@media (max-width: 520px) {
    .withdraw-page-wrap { margin-top: 16px; }
    .withdraw-page-header { padding: 18px 18px 16px; gap: 12px; }
    .withdraw-balance-strip { padding: 14px 18px; }
    .withdraw-balance-sep { margin: 0 14px; }
    .withdraw-form { padding: 18px 18px 24px; }
    .withdraw-page-icon { width: 42px; height: 42px; font-size: 20px; }
}

/* ============================================================
   ADMIN PANEL
   Uses real design tokens from the Cenzah theme:
   --blue #1D3557 | --blue-mid #457B9D | --blue-pale #E3F2FD
   --red #E63946  | --green #2DC653    | --gold #F4A261
   --gray-100…900 | --navbar-bg #8a39af
   ============================================================ */

/* Page background — same as dashboard */
.page-admin { background: #f0f2f5; }
.page-admin .main-content { padding-top: 0; }

/* ── Layout ── */
.admin-wrap {
    display: flex;
    min-height: calc(100vh - 64px);
    align-items: stretch;
}

/* ── Sidebar ── */
.admin-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-400);
    padding: 0 20px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 8px;
}
.admin-sidebar-title i {
    font-size: 16px;
    color: #8a39af;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 10px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius);
    border-left: 3px solid transparent;
    transition: background .14s, color .14s;
}
.admin-nav-link i { font-size: 17px; width: 18px; text-align: center; flex-shrink: 0; }
.admin-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}
.admin-nav-link.active {
    color: #8a39af;
    border-left-color: #8a39af;
    background: rgba(138,57,175,.07);
    font-weight: 600;
}

/* ── Main content area ── */
.admin-main {
    flex: 1;
    padding: 28px 32px;
    overflow-x: auto;
    min-width: 0;
}

.admin-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
}

.admin-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    padding: 2px 10px;
}

/* ── Stats grid ── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .18s;
}
.admin-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.admin-stat-icon--purple { background: rgba(138,57,175,.1);  color: #8a39af; }
.admin-stat-icon--blue   { background: var(--blue-pale);     color: var(--blue-mid); }
.admin-stat-icon--gold   { background: rgba(244,162,97,.14); color: #b45309; }
.admin-stat-icon--green  { background: var(--green-light);   color: var(--green-dark); }
.admin-stat-icon--red    { background: var(--red-light);     color: var(--red-dark); }
.admin-stat-icon--teal   { background: rgba(20,184,166,.1);  color: #0f766e; }

.admin-stat-body { display: flex; flex-direction: column; min-width: 0; }
.admin-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    font-family: var(--font-display);
}
.admin-stat-label {
    font-size: 11.5px;
    color: var(--gray-500);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Section card ── */
.admin-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-100);
}
.admin-section-head h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.admin-section-head h2 i { color: #8a39af; font-size: 15px; }

/* ── Table ── */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.admin-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gray-400);
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.admin-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafbfc; }

/* ── Banned row ── */
.admin-row--banned { opacity: .6; }
.admin-row--banned td { background: rgba(230,57,70,.03); }

/* ── User cell ── */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}
.admin-avatar--fallback {
    color: var(--gray-400);
    font-size: 17px;
}

.admin-online-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid #fff;
}

.admin-user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.3;
}
.admin-verified-icon { color: var(--blue-mid); font-size: 13px; }

.admin-user-email {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 1px;
}
.admin-user-meta {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 1px;
}

/* Location cell */
.admin-location {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-600);
}
.admin-location i { color: var(--gray-400); font-size: 13px; }

/* Plan chip */
.admin-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
}
.admin-plan-chip--premium {
    color: #7c3aed;
}
.admin-plan-chip--creator {
    color: #b45309;
}

/* Badges */
.admin-badges-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.admin-badge i { font-size: 11px; }
.admin-badge--admin    { background: rgba(138,57,175,.12); color: #6d1f8b; }
.admin-badge--verified { background: var(--blue-pale);    color: var(--blue); }
.admin-badge--active   { background: var(--green-light);  color: var(--green-dark); }
.admin-badge--banned   { background: var(--red-light);    color: var(--red-dark); }

/* Date cell */
.admin-date-cell { display: flex; flex-direction: column; gap: 1px; }
.admin-date-cell span { font-size: 13px; color: var(--gray-700); }
.admin-date-cell small { font-size: 11px; color: var(--gray-400); }

/* ── Icon action buttons ── */
.admin-action-btns {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: #fff;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    transition: background .14s, color .14s, border-color .14s, transform .1s, box-shadow .14s;
    flex-shrink: 0;
}
.admin-icon-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.admin-icon-btn:disabled {
    opacity: .45;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.admin-icon-btn--danger {
    border-color: #fca5a5;
    color: var(--red-dark);
    background: rgba(230,57,70,.06);
}
.admin-icon-btn--danger:hover  { background: var(--red-light); border-color: var(--red); }
.admin-icon-btn--success {
    border-color: #86efac;
    color: var(--green-dark);
    background: rgba(45,198,83,.06);
}
.admin-icon-btn--success:hover { background: var(--green-light); border-color: var(--green); }
.admin-icon-btn--active {
    border-color: var(--blue-light);
    color: var(--blue);
    background: var(--blue-pale);
}
.admin-icon-btn--active:hover  { background: #c5e8fd; border-color: var(--blue-mid); }
.admin-icon-btn--admin {
    border-color: rgba(138,57,175,.3);
    color: #8a39af;
    background: rgba(138,57,175,.07);
}
.admin-icon-btn--admin:hover { background: rgba(138,57,175,.14); border-color: #8a39af; }

/* ── Text-label action buttons (Users page) ── */
.admin-action-btns .btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.5;
    border-width: 1px;
}
.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ── Search form ── */
.admin-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-search-input {
    flex: 1;
    min-width: 200px;
    max-width: 380px;
    padding: 8px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff;
    color: var(--gray-800);
    transition: border-color .15s;
}
.admin-search-input:focus {
    outline: none;
    border-color: #8a39af;
    box-shadow: 0 0 0 3px rgba(138,57,175,.1);
}
.admin-search-input::placeholder { color: var(--gray-400); }

/* ── Pagination ── */
.admin-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-page-btn {
    padding: 6px 13px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-700);
    background: #fff;
    transition: background .14s, border-color .14s, color .14s;
}
.admin-page-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}
.admin-page-btn.active {
    background: #8a39af;
    color: #fff;
    border-color: #8a39af;
    font-weight: 700;
}

/* ── Empty state ── */
.admin-table-empty {
    text-align: center;
    color: var(--gray-400);
    padding: 48px 20px !important;
}
.admin-table-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
    color: var(--gray-300);
}

/* ── Spinner ── */
@keyframes ri-spin { to { transform: rotate(360deg); } }
.ri-spin { display: inline-block; animation: ri-spin .65s linear infinite; }

/* ── Toast notification ── */
.admin-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    background: #fff;
    box-shadow: 0 6px 28px rgba(0,0,0,.16);
    border-left: 4px solid var(--green);
    transform: translateY(18px);
    opacity: 0;
    transition: opacity .22s, transform .22s;
    pointer-events: none;
    max-width: 320px;
}
.admin-toast--error { border-left-color: var(--red); }
.admin-toast--visible { opacity: 1; transform: translateY(0); }
.admin-toast i { font-size: 17px; flex-shrink: 0; }
.admin-toast--success i { color: var(--green-dark); }
.admin-toast--error   i { color: var(--red-dark); }

/* ── Withdrawal-specific elements ── */

/* Sidebar badge (pending count) */
.admin-nav-link { position: relative; }
.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: auto;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.admin-nav-badge--green { background: var(--green); }

/* Clickable stat card link */
.admin-stat-card--link {
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.admin-stat-card--link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--gray-300);
    text-decoration: none;
}
/* Alert state (has pending items) */
.admin-stat-card--alert {
    border-color: rgba(244,162,97,.45);
    background: rgba(244,162,97,.04);
}
.admin-stat-card--alert .admin-stat-value { color: #b45309; }

/* Filter bar wrapper */
.admin-filter-bar { margin-bottom: 18px; }

/* Filter tabs */
.admin-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.admin-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: #fff;
    border: 1px solid var(--gray-300);
    text-decoration: none;
    transition: background .14s, color .14s, border-color .14s;
}
.admin-filter-tab:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-400);
}
.admin-filter-tab.active {
    background: #8a39af;
    color: #fff;
    border-color: #8a39af;
    font-weight: 700;
}
.admin-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-600);
    line-height: 1;
}
.admin-filter-tab.active .admin-filter-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.admin-filter-count--warn { background: var(--red); color: #fff; }
.admin-filter-tab.active .admin-filter-count--warn { background: rgba(255,255,255,.3); }

/* Amount cell */
.admin-amount-cell { display: flex; flex-direction: column; gap: 2px; }
.admin-amount-kes {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-800);
}
.admin-amount-coins {
    font-size: 11.5px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 3px;
}
.admin-amount-coins i { font-size: 12px; }

/* Monospace phone number */
.admin-mono {
    font-family: ui-monospace, 'SFMono-Regular', monospace;
    font-size: 13px;
    color: var(--gray-700);
    letter-spacing: .02em;
}

/* Note cell */
.admin-note-cell { max-width: 180px; }
.admin-note-text {
    font-size: 12px;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.admin-note-empty { color: var(--gray-300); font-size: 13px; }

/* ── Plan cell (inline change-plan picker) ── */
.admin-plan-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.admin-plan-edit-btn {
    opacity: 0;
    transition: opacity .15s;
}
.admin-plan-cell:hover .admin-plan-edit-btn { opacity: 1; }

.admin-plan-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}
.admin-plan-select {
    padding: 4px 8px;
    border: 2px solid #8a39af;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%238a39af' d='M12 16l-6-6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    padding-right: 24px;
}
.admin-plan-select:focus { box-shadow: 0 0 0 3px rgba(138,57,175,.12); }

/* ── Change Plan Modal ── */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.admin-modal-overlay.open { display: flex; }

.admin-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0,0,0,.22);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: adminModalIn .18s ease;
}
@keyframes adminModalIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-100);
}
.admin-modal-head span {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 7px;
}
.admin-modal-head span i { color: #8a39af; font-size: 17px; }
.admin-modal-close {
    width: 28px; height: 28px;
    border: none; background: none;
    font-size: 20px; line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: background .14s, color .14s;
}
.admin-modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

.admin-modal-body { padding: 20px; }
.admin-modal-sub {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0 0 16px;
}

/* Plan option cards */
.admin-plan-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-plan-option {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .14s, background .14s;
    user-select: none;
}
.admin-plan-option input[type=radio] { display: none; }
.admin-plan-option:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
}
.admin-plan-option.selected {
    border-color: #8a39af;
    background: rgba(138,57,175,.05);
}
.admin-plan-option-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.admin-plan-option-body i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--gray-400);
}
.admin-plan-option.selected .admin-plan-option-body i { color: #8a39af; }
.admin-plan-option[data-plan="premium"] .admin-plan-option-body i { color: #7c3aed; }
.admin-plan-option[data-plan="creator"] .admin-plan-option-body i { color: #b45309; }
.admin-plan-option-body strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}
.admin-plan-option-body span {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-500);
}

.admin-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-100);
}

/* Finalised label */
.admin-finalised-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Modal overlay */
.wr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wr-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}
.wr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wr-modal-desc {
    font-size: 13.5px;
    color: var(--gray-600);
    margin: 0 0 20px;
    line-height: 1.5;
}
.wr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .admin-stats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 768px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 0;
    }
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 12px;
        gap: 2px;
    }
    .admin-nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        white-space: nowrap;
        padding: 8px 14px;
    }
    .admin-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: #8a39af;
        background: rgba(138,57,175,.06);
    }
    .admin-main { padding: 20px 16px; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-table th,
    .admin-table td { padding: 9px 12px; }
}

/* ── Admin sidebar group labels ── */
.admin-nav-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    padding: 12px 16px 4px;
    pointer-events: none;
    user-select: none;
}

/* ── Report reason chip ── */
.admin-report-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}
.admin-report-reason i { font-size: 13px; color: var(--gray-500); }

/* ── Date cell (two-line date+time) ── */
.admin-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--gray-700);
}
.admin-date-cell small {
    font-size: 11px;
    color: var(--gray-400);
}

/* ── Admin stat mini (summary cards on transactions page) ── */
.admin-stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-width: 140px;
}
.admin-stat-mini-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}
.admin-stat-mini-label i { font-size: 13px; }
.admin-stat-mini-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

/* ── Avatar fallback initial circle ── */
.admin-avatar--fallback {
    background: linear-gradient(135deg, #8a39af, #457B9D);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Balances page ── */
.admin-balance-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
}
.admin-balance-rank--top {
    background: rgba(244,162,97,.12);
    color: #b45309;
}
.admin-balance-rank--top i { font-size: 16px; }

.admin-balance-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}
.admin-balance-val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
}
.admin-balance-val--active {
    font-size: 14px;
    font-weight: 700;
    color: #8a39af;
}
.admin-balance-secondary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
}

.admin-balance-bar-wrap {
    height: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    max-width: 120px;
}
.admin-balance-bar {
    height: 100%;
    background: linear-gradient(90deg, #8a39af, #457B9D);
    border-radius: var(--radius-full);
    transition: width .3s ease;
}
