/* assets/css/pigachat.css - the PigaChat design used by every public page
   (loaded by includes/header.php after tokens.css, which holds the colours). */

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

::selection {
    background: #FFC93C;
    color: var(--on-brand);
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.link {
    color: var(--gold-text);
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Animated aurora background */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-aurora .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: var(--blob-opacity);
    animation: drift 24s ease-in-out infinite alternate;
}

.blob-1 {
    width: min(560px, 90vw);
    height: min(560px, 90vw);
    background: #7c5cff;
    top: -180px;
    left: -140px;
}

.blob-2 {
    width: min(480px, 80vw);
    height: min(480px, 80vw);
    background: #f472b6;
    top: 25%;
    right: -160px;
    animation-delay: -8s;
}

.blob-3 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    background: #FFB627;
    bottom: -180px;
    left: 30%;
    animation-delay: -16s;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ========================================
           BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s;
}

.btn-primary {
    background: var(--grad-brand);
    color: var(--on-brand);
    box-shadow: 0 8px 24px -8px rgba(255, 170, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px rgba(255, 170, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 28px;
    font-size: 15.5px;
}

.btn-block {
    width: 100%;
}

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

.btn-primary .fa-arrow-right {
    transition: transform 0.25s var(--ease);
}

.btn-primary:hover .fa-arrow-right {
    transform: translateX(3px);
}

/* ========================================
           TOP NAVIGATION
======================================== */
.top-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: top 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}

.top-nav.scrolled {
    top: 10px;
    background: var(--nav-bg-strong);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 18px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Logo (assets/img/logo*.svg): white "Piga" on the dark theme, ink "Piga" on the light theme */
.brand-logo { display: block; width: auto; }
.brand-logo.for-light { display: none; }
[data-theme="light"] .brand-logo.for-dark { display: none; }
[data-theme="light"] .brand-logo.for-light { display: block; }

.nav-brand .brand-logo { height: 38px; }
.footer-brand .brand-logo { height: 42px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
}

.mobile-menu-btn {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--border-strong);
}

/* ========================================
           MOBILE SIDEBAR
======================================== */
.mobile-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--ease), background 0.2s;
}

.sidebar-close-btn:hover {
    transform: rotate(90deg);
    background: var(--border-strong);
}

.sidebar-menu {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu-item:hover,
.sidebar-menu-item.active {
    background: var(--surface-2);
    color: var(--text);
}

.sidebar-menu-item.active i {
    color: var(--gold-text);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 14px;
}

.sidebar-button {
    padding: 8px 2px 0;
}

.sidebar-btn {
    width: 100%;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 12, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ========================================
           HOME HERO
======================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 116px 0 56px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    width: 36px;
    height: 36px;
    margin-left: -10px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

.proof-text .stars {
    color: #FFC93C;
    font-size: 11px;
    letter-spacing: 2px;
}

.proof-text p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.proof-text strong {
    color: var(--text);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 520px;
}

.stat-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ========================================
           PHONE MOCKUP
======================================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-glow {
    position: absolute;
    width: 80%;
    height: 70%;
    top: 15%;
    left: 10%;
    background: var(--grad-accent);
    filter: blur(80px);
    opacity: 0.45;
    border-radius: 50%;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 310px;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.phone-frame {
    position: relative;
    padding: 6px;
    border-radius: 46px;
    background: linear-gradient(145deg, #2c2a44, #0c0b16);
    box-shadow:
        0 50px 100px -30px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 2px #1a1828;
}

.phone-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 3;
}

.phone-screen {
    /* Grows with the window but always leaves room for the nav bar, so the hero fits one screen */
    height: clamp(500px, calc(100vh - 170px), 610px);
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    overflow: hidden;
    background: var(--screen-bg);
    transition: background 0.4s;
}

/* Phone mockup: a personal chat exactly as the app draws it on a phone (sizes and colours from
   assets/css/app.css: .chat-head, .messages, .bubble, .voice, .reactions, .composer). */
.phone-screen {
    --pm-panel: #0e0c1b;
    text-align: left; /* the hero centres its text on phones */
}

[data-theme="light"] .phone-screen {
    --pm-panel: #ffffff;
}

.pm-head {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 62px;
    padding: 40px 8px 8px;
    background: var(--pm-panel);
    border-bottom: 1px solid var(--border);
}

.pm-btn {
    width: 30px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.pm-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pm-avatar.c-pink { background: linear-gradient(135deg, #f472b6, #e11d74); }

.pm-presence {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid var(--pm-panel);
}

.pm-head-info {
    flex: 1;
    min-width: 0;
    margin: 0 2px 0 8px;
}

.pm-head-info h4 {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pm-head-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.pm-head-info .pm-typing {
    color: #22c55e;
    font-style: italic;
}

.pm-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px 18px;
    scrollbar-width: none;
    background:
        radial-gradient(var(--grid) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
        radial-gradient(500px 320px at 100% 0%, rgba(124, 92, 255, 0.08), transparent 60%),
        radial-gradient(500px 320px at 0% 100%, rgba(255, 201, 60, 0.06), transparent 60%);
}

.pm-messages::-webkit-scrollbar {
    display: none;
}

.pm-e2e {
    align-self: center;
    margin-bottom: 4px;
    padding: 7px 11px;
    border-radius: 12px;
    background: rgba(255, 201, 60, 0.08);
    border: 1px solid rgba(255, 201, 60, 0.2);
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}

.pm-e2e i {
    margin-right: 5px;
    color: var(--gold-text);
}

.pm-day {
    align-self: center;
    margin: 6px 0;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--pm-panel);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.pm-msg {
    display: flex;
    animation: bubbleIn 0.5s var(--ease) both;
}

.pm-msg.out {
    justify-content: flex-end;
}

.pm-msg.has-react {
    margin-bottom: 14px;
}

.pm-messages > :nth-child(3) { animation-delay: 0.3s; }
.pm-messages > :nth-child(4) { animation-delay: 0.7s; }
.pm-messages > :nth-child(5) { animation-delay: 1.1s; }
.pm-messages > :nth-child(6) { animation-delay: 1.5s; }

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.pm-bubble {
    position: relative;
    max-width: 84%;
    padding: 7px 11px 5px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.45;
}

.pm-msg.in .pm-bubble {
    background: var(--bubble-in);
    color: var(--screen-text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.pm-msg.out .pm-bubble {
    background: linear-gradient(135deg, #7c5cff, #a855f7);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 6px 16px -10px rgba(124, 92, 255, 0.8);
}

.pm-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 10px;
    opacity: 0.7;
}

.pm-msg.out .pm-meta {
    opacity: 0.85;
}

.pm-msg.out .pm-meta i {
    color: #7ee8fa;
}

/* Reaction under the bubble */
.pm-react {
    position: absolute;
    right: 10px;
    bottom: -15px;
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--pm-panel);
    color: #f43f5e;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Voice message */
.pm-voice {
    width: 84%;
}

.pm-voice-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pm-play {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: var(--on-brand);
    font-size: 12px;
}

.pm-wave {
    flex: 1;
    min-width: 0;
    height: 26px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pm-wave span {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.35;
}

.pm-wave span.on {
    opacity: 1;
}

.pm-voice-time {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
}

/* Composer: the send button is a microphone while the box is empty */
.pm-composer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 14px;
    background: var(--pm-panel);
    border-top: 1px solid var(--border);
}

.pm-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px 5px;
    border-radius: 26px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.pm-tool {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 15px;
}

.pm-placeholder {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 4px;
    color: var(--text-dim);
    font-size: 13.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pm-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 8px 20px -8px rgba(5, 150, 105, 0.7);
}

/* Floating info cards around the phone */
.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    animation: floatCard 5s ease-in-out infinite;
}

.float-card .fc-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
}

.float-card strong {
    display: block;
    font-size: 13px;
    color: var(--text);
    line-height: 1.3;
}

.float-card small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.fc-1 { bottom: 20%; left: -8%; } /* beside the chat, clear of the encryption note */
.fc-2 { bottom: 16%; right: -10%; animation-delay: -2.5s; }
.fc-3 { top: 40%; right: -14%; animation-delay: -1.2s; gap: 12px; padding: 10px 16px; font-size: 17px; }

/* Icon colours for reactions and in-message icons */
.ic-heart { color: #f43f5e; }
.ic-fire { color: #f97316; }
.ic-laugh { color: #facc15; }
.ic-clap { color: #f59e0b; }


@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
           INNER PAGE HERO
======================================== */
.page-hero {
    position: relative;
    padding: 150px 0 56px;
    text-align: center;
}

.page-title {
    max-width: 840px;
    margin: 0 auto 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-lead {
    max-width: 660px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-muted);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.meta-chip i {
    color: var(--gold-text);
}

/* ========================================
           SECTIONS
======================================== */
.section {
    position: relative;
    padding: 110px 0;
}

.section-tight {
    padding: 24px 0 100px;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ========================================
           CARDS
======================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.35s var(--ease), border-color 0.35s;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.wide {
    grid-column: span 2;
}

.feature-card.center {
    align-items: center;
    text-align: center;
}

.feature-card.compact {
    padding: 24px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #fff;
}

.feature-icon.lg {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 26px;
}

.i-gold { background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px rgba(255, 170, 30, 0.7); }
.i-violet { background: linear-gradient(135deg, #7c5cff, #a855f7); box-shadow: 0 10px 24px -10px rgba(124, 92, 255, 0.8); }
.i-pink { background: linear-gradient(135deg, #f472b6, #e11d74); box-shadow: 0 10px 24px -10px rgba(244, 114, 182, 0.8); }
.i-cyan { background: linear-gradient(135deg, #22d3ee, #0284c7); box-shadow: 0 10px 24px -10px rgba(34, 211, 238, 0.8); }
.i-green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 24px -10px rgba(52, 211, 153, 0.8); }

.feature-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.feature-card.compact h3 {
    font-size: 17px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 520px;
}

.feature-card .btn,
.feature-card .card-link {
    margin-top: auto;
}

.feature-card .btn {
    width: 100%;
}

.card-spacer {
    flex: 1;
    min-height: 22px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
    color: var(--gold-text);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    word-break: break-word;
}

.card-link:hover {
    text-decoration: underline;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.chip i {
    color: var(--gold-text);
    font-size: 11px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.check-list.plain {
    border-top: none;
    padding-top: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.check-list li i {
    margin-top: 4px;
    font-size: 13px;
    color: var(--ok);
}

.check-list li strong {
    color: var(--text);
}

/* Two-column text + visual block */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.split-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 32px;
    background: var(--cta-bg);
    border: 1px solid var(--border);
}

.split-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
}

.shield-badge {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 40px;
    display: grid;
    place-items: center;
    font-size: 58px;
    color: #fff;
    background: var(--grad-accent);
    box-shadow: 0 30px 60px -20px rgba(124, 92, 255, 0.7);
    animation: floatPhone 6s ease-in-out infinite;
}

/* About page: the app icon in the middle of the split visual */
.about-logo {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    border-radius: 24%;
    box-shadow: 0 30px 60px -20px rgba(247, 147, 30, 0.7);
    animation: floatPhone 6s ease-in-out infinite;
}

.orbit-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    animation: floatCard 5s ease-in-out infinite;
}

.orbit-chip i {
    color: var(--ok);
}

.orbit-chip.o1 { top: 14%; left: 8%; }
.orbit-chip.o2 { top: 24%; right: 6%; animation-delay: -1.6s; }
.orbit-chip.o3 { bottom: 14%; left: 14%; animation-delay: -3.2s; }

/* Panel used for the QR codes and similar blocks */
.panel {
    margin-top: 56px;
    padding: 44px 32px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}

.panel h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.panel > p {
    color: var(--text-muted);
}

.qr-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 30px;
}

.qr-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.qr-code {
    width: 132px;
    height: 132px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 46px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
}

/* A real QR code needs a white background and dark squares to scan in both themes */
.qr-code.qr-real {
    width: 172px;
    height: 172px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    color: #0e0c1b;
    border: none;
}

.qr-code.qr-real svg {
    width: 100%;
    height: 100%;
}

.store-note {
    max-width: 560px;
    margin: 30px auto 0;
    font-size: 14px;
}

.store-note i {
    margin-right: 6px;
    color: var(--gold-text);
}

/* Download page: install steps */
.install-cta {
    margin-top: 28px;
}

.install-done {
    color: var(--text-muted);
    font-weight: 600;
}

.install-done i {
    margin-right: 6px;
    color: var(--ok);
}

.install-card {
    position: relative;
}

.install-card.is-yours {
    order: -1;
    border-color: rgba(255, 201, 60, 0.6);
}

.install-yours {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
}

.install-card.is-yours .install-yours {
    display: inline-flex;
}

.install-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 0;
}

.install-steps li {
    counter-increment: step;
    position: relative;
    min-height: 24px;
    padding-left: 36px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #0e0c1b;
    background: linear-gradient(135deg, #FFC93C, #F7931E);
}

.install-steps strong {
    color: var(--text);
}

/* Download CTA */
.cta-card {
    position: relative;
    overflow: hidden;
    padding: 76px 40px;
    border-radius: 32px;
    text-align: center;
    background: var(--cta-bg);
    border: 1px solid var(--border);
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -380px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 180, 40, 0.28), transparent 65%);
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -340px;
    right: -120px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 65%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.download-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
    padding: 13px 24px;
    border-radius: 16px;
    background: var(--store-bg);
    color: var(--store-text);
    border: 1px solid var(--border-strong);
    text-decoration: none;
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.download-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 201, 60, 0.6);
    box-shadow: 0 16px 34px -16px rgba(255, 170, 30, 0.6);
}

.download-btn i {
    font-size: 28px;
    width: 30px;
    text-align: center;
}

.btn-text {
    text-align: left;
    line-height: 1.25;
}

.btn-text span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.btn-text strong {
    font-size: 16.5px;
    font-weight: 700;
}

/* ========================================
           SUPPORT: SEARCH AND FAQ
======================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 32px auto 0;
    padding: 6px 6px 6px 20px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
    border-color: rgba(255, 201, 60, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.12);
}

.search-box > i {
    color: var(--text-dim);
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.empty-note {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.open {
    border-color: var(--border-strong);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--gold-text);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--text-muted);
}

/* ========================================
           FORMS (sign in, register, reset, contact)
======================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
}

/* The section is a flex row, so its container would otherwise size to its content and push
   the card past the screen edge on small phones */
.auth-section .container {
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 36px;
    border-radius: 28px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.auth-card.wide {
    max-width: 560px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .feature-icon {
    margin: 0 auto 18px;
}

.auth-header h1 {
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 14.5px;
    color: var(--text-muted);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.steps span {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--surface-2);
    transition: background 0.3s;
}

.steps span.active {
    background: var(--grad-brand);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row > * {
    min-width: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.input-wrapper:focus-within {
    border-color: rgba(255, 201, 60, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.12);
}

.input-wrapper > i {
    width: 16px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-dim);
}

.input-wrapper select {
    cursor: pointer;
}

.input-wrapper select.country-code {
    flex: 0 0 auto;
    width: 92px;
    padding-right: 8px;
    border-right: 1px solid var(--border);
}

.input-wrapper select option {
    background: var(--bg-2);
    color: var(--text);
}

.input-wrapper.textarea {
    align-items: flex-start;
}

.input-wrapper.textarea > i {
    margin-top: 17px;
}

.input-wrapper textarea {
    min-height: 140px;
    resize: vertical;
}

.toggle-password {
    cursor: pointer;
    transition: color 0.2s;
}

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

.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -4px 0 22px;
    font-size: 13.5px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #FFB627;
}

.alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert.show {
    display: flex;
}

.alert i {
    margin-top: 3px;
}

.alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--bad);
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--ok);
}

.alert-info {
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    color: var(--info);
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.strength-bar-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.otp-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.otp-input {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    text-align: center;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.otp-input:focus {
    border-color: rgba(255, 201, 60, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.12);
}

.otp-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-dim);
}

.resend-link .link.disabled {
    color: var(--text-dim);
    pointer-events: none;
    cursor: default;
}

.timer-text,
.resend-link {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
}

.timer-text {
    margin-top: 16px;
}

.resend-link {
    margin-top: 6px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.back-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--text);
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.form-card {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-card h2 {
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.form-card > p {
    margin-bottom: 24px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    flex-direction: row;
    gap: 16px;
    padding: 22px;
}

.contact-item .feature-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: 18px;
}

.contact-item h3 {
    margin-bottom: 2px;
    font-size: 16px;
}

.contact-item p {
    font-size: 14px;
}

.contact-item .card-link {
    padding-top: 6px;
}

/* ========================================
           LEGAL PAGES
======================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
    align-items: start;
}

/* Grid and flex children may shrink below their content (wide tables, long words) instead of
   stretching the page sideways */
.legal-layout > *,
.contact-layout > *,
.split > *,
.hero-content > * {
    min-width: 0;
}

.legal-toc {
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-toc h4 {
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.legal-toc a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.legal-toc a.active {
    background: var(--surface-2);
    color: var(--gold-text);
    font-weight: 600;
}

.legal-body {
    padding: 44px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-section {
    scroll-margin-top: 100px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-section h2 {
    margin-bottom: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    margin: 22px 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.legal-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
}

.legal-section li::marker {
    color: var(--gold-text);
}

.legal-section strong {
    color: var(--text);
}

.legal-section a {
    color: var(--gold-text);
}

.legal-note {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-dim);
}

.callout {
    display: flex;
    gap: 14px;
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 201, 60, 0.08);
    border: 1px solid rgba(255, 201, 60, 0.25);
}

.callout > i {
    margin-top: 3px;
    font-size: 18px;
    color: var(--gold-text);
}

.callout.green {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.25);
}

.callout.green > i {
    color: var(--ok);
}

.callout.violet {
    background: rgba(124, 92, 255, 0.08);
    border-color: rgba(124, 92, 255, 0.25);
}

.callout.violet > i {
    color: var(--info);
}

.callout p {
    margin: 0;
    color: var(--text);
}

.table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    padding: 12px 14px;
    background: var(--surface-2);
    text-align: left;
    font-weight: 700;
}

.data-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.data-table .yes {
    color: var(--ok);
    font-weight: 600;
}

.data-table .no {
    color: var(--bad);
    font-weight: 600;
}

/* ========================================
           SHARE SHEET (same layout as PigaSports)
======================================== */
.share-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 12, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.share-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.share-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(460px, 100vw);
    transform: translate(-50%, 110%);
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    z-index: 1004;
    transition: transform 0.35s var(--ease);
}

.share-sheet.open {
    transform: translate(-50%, 0);
}

.share-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
}

.share-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.3s var(--ease);
}

.share-close:hover {
    transform: rotate(90deg);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
}

.share-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.share-grid a[hidden] {
    display: none;
}

.share-grid i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    background: var(--grad-accent);
    transition: transform 0.2s var(--ease);
}

.share-grid a:hover i {
    transform: translateY(-3px);
}

.share-grid [data-share="whatsapp"] i { background: #25d366; }
.share-grid [data-share="facebook"] i { background: #1877f2; }
.share-grid [data-share="x"] i { background: #111827; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.share-grid [data-share="telegram"] i { background: #229ed9; }
.share-grid [data-share="linkedin"] i { background: #0a66c2; }
.share-grid [data-share="pinterest"] i { background: #e60023; }
.share-grid [data-share="instagram"] i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-grid [data-share="tiktok"] i { background: #000; text-shadow: -1.5px -1px 0 #25f4ee, 1.5px 1px 0 #fe2c55; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.share-grid [data-share="sms"] i { background: #f59e0b; }
.share-grid [data-share="email"] i { background: #e11d48; }
.share-grid [data-share="copy"] i { background: var(--grad-brand); color: var(--on-brand); }

.share-url {
    margin-top: 18px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.toast {
    position: fixed;
    left: 50%;
    top: 90px;
    transform: translate(-50%, -12px);
    max-width: calc(100vw - 32px);
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* ========================================
           FLOATING DOCK
======================================== */
.floating-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
    border-radius: 999px;
    background: var(--nav-bg-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}

.floating-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.25s var(--ease), opacity 0.3s, height 0.3s, margin 0.3s;
}

.floating-icon:hover {
    background: var(--surface-2);
    transform: scale(1.06);
}

.floating-icon.download-icon {
    background: var(--grad-brand);
    color: var(--on-brand);
}

.floating-icon.theme-icon:hover { color: #a78bfa; }
.floating-icon.lang-icon:hover { color: #34d399; }
.floating-icon.contact-icon:hover { color: #22d3ee; }
.floating-icon.share-icon:hover { color: #f472b6; }
.floating-icon.up-arrow:hover { color: var(--text); }

.floating-icon .tooltip {
    position: absolute;
    right: 56px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: var(--shadow-md);
}

.floating-icon:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-icon.up-arrow {
    height: 0;
    margin-top: -6px;
    opacity: 0;
    pointer-events: none;
}

.floating-icon.up-arrow.visible {
    height: 42px;
    margin-top: 0;
    opacity: 1;
    pointer-events: auto;
}

/* The + button that opens the dock on phones (hidden on larger screens) */
.floating-icon.dock-toggle {
    display: none;
}

@keyframes dockIn {
    from { opacity: 0; transform: translateY(10px) scale(0.8); }
    to { opacity: 1; transform: none; }
}

/* ========================================
           FOOTER
======================================== */
.footer {
    position: relative;
    padding: 80px 0 32px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .tagline {
    max-width: 320px;
    margin: 18px 0 22px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}

.footer-social a:hover {
    background: var(--grad-brand);
    color: var(--on-brand);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-section h4 {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-section ul li a {
    color: var(--text-muted);
    font-size: 14.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--gold-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-dim);
}

.footer-bottom .highlight {
    color: var(--text);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--text);
}

/* ========================================
           SCROLL REVEAL
======================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ========================================
           RESPONSIVE
======================================== */
@media (max-width: 1100px) {
    .fc-1 { left: -2%; }
    .fc-2 { right: -2%; }
    .fc-3 { right: -4%; }

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

@media (max-width: 980px) {
    .hero {
        padding: 108px 0 56px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }

    .hero-description,
    .stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-proof {
        justify-content: center;
    }

    .proof-text {
        text-align: left;
    }

    .bento,
    .card-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-toc {
        position: static;
        padding: 16px;
    }

    .legal-toc h4 {
        margin-bottom: 10px;
    }

    /* The section list becomes one row of chips that scrolls sideways */
    .legal-toc ul {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .legal-toc ul::-webkit-scrollbar {
        display: none;
    }

    .legal-toc a {
        white-space: nowrap;
        border-radius: 999px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        font-size: 13px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .top-nav {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav-container {
        padding: 7px 7px 7px 14px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .section {
        padding: 80px 0;
    }

    .section-tight {
        padding: 16px 0 80px;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    .bento,
    .card-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .feature-card.wide {
        grid-column: auto;
    }

    .feature-card {
        padding: 24px;
    }

    .cta-card {
        padding: 56px 22px;
        border-radius: 24px;
    }

    .panel {
        padding: 32px 18px;
    }

    /* Phones: the form starts under the nav bar instead of floating mid-screen */
    .auth-section {
        min-height: auto;
        align-items: flex-start;
        padding: 96px 0 64px;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-header .feature-icon.lg {
        width: 54px;
        height: 54px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .auth-header h1 {
        font-size: 25px;
    }

    /* 16px stops iPhones from zooming into the page when a field is tapped */
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea,
    .search-box input {
        font-size: 16px;
    }

    .auth-card,
    .form-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .legal-body {
        padding: 24px 20px;
    }

    /* Phones: the dock folds into one + button; tapping it opens the buttons with their labels */
    .floating-icons {
        right: 14px;
        bottom: 14px;
        align-items: center;
        gap: 10px;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .floating-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
        background: var(--nav-bg-strong);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .floating-icons:not(.open) .floating-icon:not(.dock-toggle):not(.up-arrow) {
        display: none;
    }

    .floating-icons.open .floating-icon:not(.dock-toggle):not(.up-arrow) {
        animation: dockIn 0.25s var(--ease) both;
    }

    .floating-icon.dock-toggle {
        display: grid;
        width: 52px;
        height: 52px;
        border: none;
        background: var(--grad-brand);
        color: var(--on-brand);
        font-size: 20px;
        box-shadow: 0 10px 28px -8px rgba(255, 170, 30, 0.7);
    }

    .dock-toggle i {
        transition: transform 0.3s var(--ease);
    }

    .floating-icons.open .dock-toggle i {
        transform: rotate(45deg);
    }

    .floating-icon.up-arrow {
        margin-top: -10px;
    }

    .floating-icon.up-arrow.visible {
        height: 44px;
        margin-top: 0;
    }

    .floating-icon .tooltip {
        display: none;
    }

    .floating-icons.open .floating-icon:not(.dock-toggle):not(.up-arrow) .tooltip {
        display: block;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 520px) {
    .hero-buttons .btn {
        width: 100%;
    }

    .stats {
        gap: 8px;
    }

    .stat-item {
        padding: 12px 10px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .phone-screen {
        height: 520px;
    }

    .pm-btn {
        width: 26px;
    }

    .fc-3 {
        display: none;
    }

    /* Keep the floating cards off the chat header: one above the phone, one below */
    .fc-1 { left: 0; top: -18px; bottom: auto; }
    .fc-2 { right: 0; bottom: -18px; }

    .float-card {
        padding: 8px 10px;
    }

    .float-card small {
        display: none;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .card-grid.cols-4,
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Help topics: two small tiles per row instead of eight tall cards */
    .card-grid.topic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .topic-grid .feature-card {
        padding: 16px;
        border-radius: 18px;
    }

    .topic-grid .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 12px;
        font-size: 16px;
    }

    .topic-grid .feature-card h3 {
        font-size: 14.5px;
        margin-bottom: 4px;
    }

    .topic-grid .feature-card p {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .form-row {
        gap: 0;
    }

    .otp-group {
        gap: 6px;
    }

    .qr-code {
        width: 104px;
        height: 104px;
        font-size: 38px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Recovery code (login.php after signing in, forgot-password.php) */
.recovery-code {
    margin: 4px 0 16px;
    padding: 18px 12px;
    border-radius: 16px;
    border: 2px dashed rgba(255, 201, 60, 0.6);
    background: rgba(255, 201, 60, 0.08);
    font: 700 22px/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace;
    letter-spacing: 0.08em;
    text-align: center;
    word-break: break-word;
    user-select: all;
}

.recovery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.recovery-actions .btn { margin-top: 0; }
.recovery-check { margin-bottom: 16px; }

@media (max-width: 480px) {
    .recovery-code { font-size: 18px; }
}

/* Home page: "Made in Dodoma" line (index.php) */
.proof-text .made-in { margin-right: 4px; color: var(--gold-text); }

/* Sign in with the phone (login.php, QR code) */
.qr-open { margin-top: 14px; }
.qr-box { display: grid; place-items: center; width: min(260px, 100%); aspect-ratio: 1; margin: 6px auto 12px; padding: 12px; border-radius: 18px; background: #fff; color: #1b1830; font-size: 1.6rem; }
.qr-box svg { width: 100%; height: 100%; }
