/* ===== XzeroTOOLS - Base Global Styles (dark gaming glassmorphism) ===== */
/* ===== Fully Responsive & Adaptive Design System ===== */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --bg-main: #181920;
    --bg-gradient: radial-gradient(circle at 50% 0%, #2a2d3a 0%, #131419 100%);
    --orange-primary: #ff6b35;
    --orange-hover: #ff8254;
    --orange-glow: rgba(255, 107, 53, 0.4);
    --cyan: #4bd6ff;
    --cyan-glow: rgba(75, 214, 255, 0.35);
    --green: #50eb9b;
    --red: #ff5569;
    --gold: #ffcd50;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-white: #ffffff;
    --text-muted: #a1a1a1;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);

    /* Fluid typography */
    --fs-micro: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
    --fs-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
    --fs-sm: clamp(0.8rem, 0.76rem + 0.3vw, 0.9rem);
    --fs-base: clamp(0.88rem, 0.84rem + 0.4vw, 1rem);
    --fs-md: clamp(0.95rem, 0.9rem + 0.5vw, 1.1rem);
    --fs-lg: clamp(1.05rem, 0.98rem + 0.7vw, 1.3rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 1.2vw, 1.6rem);
    --fs-2xl: clamp(1.5rem, 1.3rem + 1.8vw, 2rem);
    --fs-3xl: clamp(1.8rem, 1.5rem + 2.5vw, 2.5rem);
    --fs-4xl: clamp(2.2rem, 1.8rem + 3.5vw, 3rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --container-max: 1100px;
    --container-wide: 1280px;
    --navbar-height: 64px;
    --touch-target: 44px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Global overflow & long-text guards */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

code, pre, kbd {
    font-family: "JetBrains Mono", "Consolas", monospace;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.overflow-wrap, .text-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: var(--space-3) var(--space-4);
    background: var(--orange-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

/* ---------- Text selection & scrollbar ---------- */
::selection {
    background: rgba(255, 107, 53, 0.25);
    color: #fff;
}

/* ---------- Fluid Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

p {
    line-height: 1.65;
    font-size: var(--fs-base);
    overflow-wrap: anywhere;
}

.lead-text {
    font-size: var(--fs-md);
    color: var(--text-muted);
    max-width: 65ch;
    margin: 0 auto;
}

/* ---------- Utility containers ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

/* No-horizontal-overflow helper */
.no-overflow {
    overflow-x: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.header {
    position: fixed;
    top: clamp(8px, 2vw, 20px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(10px, 3vw, 24px);
}

.navbar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(8px, 1.2vw, 10px) clamp(14px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    color: var(--text-white);
    font-weight: 800;
    font-size: var(--fs-md);
    flex-shrink: 0;
}

.brand-logo {
    width: clamp(34px, 4vw, 40px);
    height: clamp(34px, 4vw, 40px);
    object-fit: cover;
    object-position: left center;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.35));
    flex-shrink: 0;
}

.brand-name {
    white-space: nowrap;
}

.brand-name span {
    color: var(--orange-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.5vw, 0.5rem);
}

.navLinks {
    color: var(--text-muted);
    font-weight: 500;
    padding: clamp(8px, 1vw, 0.6rem) clamp(10px, 1.2vw, 1.1rem);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: var(--fs-sm);
}

.navLinks i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.navLinks:hover,
.navLinks.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.navLinks:hover i,
.navLinks.active i {
    opacity: 1;
    color: var(--orange-primary);
}

.navLinks:hover {
    transform: translateY(-2px);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    flex-shrink: 0;
}

.nav-cta {
    padding: clamp(8px, 1vw, 0.6rem) clamp(12px, 1.4vw, 1.4rem);
    background: var(--orange-primary);
    color: white;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px var(--orange-glow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: var(--touch-target);
}

.nav-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--orange-glow);
}

.nav-cta-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: none;
}

.nav-cta-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    overflow: visible;
    padding: 2px;
    transition: transform 0.2s ease;
}

.nav-avatar-link:hover {
    transform: scale(1.06);
}

.nav-action-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.nav-action {
    position: relative;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
    transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}

.nav-action:hover,
.nav-action[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    transform: translateY(-1px);
}

.nav-checker-action.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange-primary), #ff8b4a);
    box-shadow: 0 5px 14px var(--orange-glow);
}

.nav-action-lock {
    position: absolute;
    top: 3px;
    right: 3px;
    color: var(--gold);
    font-size: .52rem;
}

.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
    display: none;
    width: var(--touch-target);
    height: var(--touch-target);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-white);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--orange-primary);
}
/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 1.2vw, 0.7rem) clamp(16px, 2vw, 1.6rem);
    border-radius: 50px;
    border: none;
    font-size: var(--fs-base);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: var(--touch-target);
    line-height: 1.2;
}

.btn-primary {
    background: var(--orange-primary);
    color: #fff;
    box-shadow: 0 6px 18px var(--orange-glow);
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--green);
    color: #0a2416;
    box-shadow: 0 6px 18px rgba(80, 235, 155, 0.35);
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: clamp(6px, 0.8vw, 0.4rem) clamp(10px, 1.2vw, 0.9rem);
    font-size: var(--fs-xs);
    min-height: 36px;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    width: clamp(34px, 4vw, 36px);
    height: clamp(34px, 4vw, 36px);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--orange-primary);
}

/* ============================================================
   SECTIONS / CARDS
   ============================================================ */
.section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(70px, 10vh, 90px) clamp(16px, 4vw, 24px) 40px;
}

.section-head {
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}

.section-head h2 span {
    color: var(--orange-primary);
}

.section-head p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: var(--fs-sm);
}

.section-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: clamp(16px, 2.5vw, 24px);
    overflow-wrap: anywhere;
}

.section-card .section-head {
    text-align: left;
    margin-bottom: 20px;
}

.section-card .section-head h2 {
    font-size: var(--fs-xl);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(100px, 15vh, 120px) clamp(16px, 4vw, 24px) 40px;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
    border-radius: 50px;
    font-size: var(--fs-sm);
    color: var(--cyan);
    margin-bottom: clamp(16px, 2vw, 20px);
    max-width: 100%;
}

.hero-logo {
    width: clamp(24px, 3vw, 28px);
    height: clamp(24px, 3vw, 28px);
    object-fit: cover;
    object-position: left center;
    filter: drop-shadow(0 2px 8px rgba(75, 214, 255, 0.3));
    flex-shrink: 0;
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--orange-primary);
}

.hero-subtitle {
    max-width: 560px;
    color: var(--text-muted);
    margin: clamp(14px, 2vw, 18px) auto clamp(20px, 3vw, 28px);
    line-height: 1.7;
    font-size: var(--fs-md);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 20px);
    max-width: 1000px;
    margin-top: clamp(40px, 6vw, 60px);
    width: 100%;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px) clamp(18px, 2.5vw, 22px);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.4);
}

.feature-card i {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    color: var(--orange-primary);
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* ============================================================
   BORDER PREVIEW GRID
   ============================================================ */
.border-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(12px, 1.8vw, 16px);
    max-width: 1000px;
    margin: 0 auto;
}

.border-card {
    text-align: center;
    padding: clamp(22px, 3vw, 30px) clamp(14px, 2vw, 16px);
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-base);
}

.border-card small {
    color: var(--text-muted);
    font-weight: 400;
    font-size: var(--fs-xs);
}
/* ============================================================
   BORDER TIERS (shared by avatar-frame & badges)
   ============================================================ */
@property --af-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes af-spin {
    to { --af-angle: 360deg; }
}

@keyframes af-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px var(--ring-soft, rgba(255, 255, 255, 0.16)),
            0 4px 16px rgba(0, 0, 0, 0.45),
            0 0 14px var(--glow-soft, rgba(255, 255, 255, 0.15));
    }
    50% {
        box-shadow:
            0 0 0 2px var(--ring-strong, rgba(255, 255, 255, 0.32)),
            0 4px 16px rgba(0, 0, 0, 0.45),
            0 0 28px var(--glow-strong, rgba(255, 255, 255, 0.40));
    }
}

@keyframes af-shine {
    to { --af-angle: 360deg; }
}

.border-bronze {
    border: 4px solid #b5673a;
    box-shadow:
        0 0 0 2px rgba(205, 127, 50, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(205, 127, 50, 0.18);
}

.border-silver {
    border: 4px solid #c9cfda;
    box-shadow:
        0 0 0 2px rgba(201, 207, 218, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 10px rgba(201, 207, 218, 0.2);
}

.border-gold {
    border: 4px solid transparent;
    background:
        linear-gradient(#262b36, #262b36) padding-box,
        conic-gradient(from var(--af-angle), #ffd700, #ffb347, #fff3b0, #ffd700) border-box;
    box-shadow:
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(255, 215, 0, 0.3);
    animation: af-spin 6s linear infinite;
}

.border-platinum {
    border: 4px solid transparent;
    background:
        linear-gradient(#1e2532, #1e2532) padding-box,
        linear-gradient(135deg, #e8f7ff, #9adcff 40%, #cfefff 60%, #7de0ff 85%, #e8f7ff) border-box;
    box-shadow:
        0 0 0 2px rgba(125, 224, 255, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(125, 224, 255, 0.25);
}

.border-diamond {
    border: 4px solid transparent;
    background:
        linear-gradient(#1d2030, #1d2030) padding-box,
        conic-gradient(from var(--af-angle),
            #ffffff 0deg, #bfe8ff 22.5deg, #ffffff 45deg, #b39dff 67.5deg,
            #ffffff 90deg, #bfe8ff 112.5deg, #ffffff 135deg, #b39dff 157.5deg,
            #ffffff 180deg, #bfe8ff 202.5deg, #ffffff 225deg, #b39dff 247.5deg,
            #ffffff 270deg, #bfe8ff 292.5deg, #ffffff 315deg, #b39dff 337.5deg,
            #ffffff 360deg) border-box;
    box-shadow:
        0 0 0 2px rgba(179, 157, 255, 0.3),
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(125, 224, 255, 0.35);
    animation: af-spin 4s linear infinite;
}

.border-mythic {
    border: 4px solid transparent;
    background:
        linear-gradient(#1c121f, #1c121f) padding-box,
        conic-gradient(from var(--af-angle), #ff4f7b, #ff9a3d, #ff4f7b, #c03dff, #ff4f7b) border-box;
    box-shadow:
        0 0 0 2px rgba(255, 79, 123, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(255, 79, 123, 0.5);
    animation: af-spin 2.5s linear infinite, af-pulse 2s ease-in-out infinite;
}

.border-badge {
    border: 1px solid var(--glass-border);
    box-shadow: none;
}

/* ============================================================
   TIER EMBLEM FRAMES — animated conic-gradient rings (no JPG bg)
   ============================================================ */
.avatar-frame.border-bronze,
.avatar-frame.border-silver,
.avatar-frame.border-gold,
.avatar-frame.border-platinum,
.avatar-frame.border-diamond,
.avatar-frame.border-mythic,
.avatar-frame.border-admin,
.avatar-frame.border-plan,
.mini-avatar-frame.border-bronze,
.mini-avatar-frame.border-silver,
.mini-avatar-frame.border-gold,
.mini-avatar-frame.border-platinum,
.mini-avatar-frame.border-diamond,
.mini-avatar-frame.border-mythic,
.mini-avatar-frame.border-admin,
.mini-avatar-frame.border-plan {
    position: relative;
    border: none;
    overflow: visible;
    --ring: 5px;
    padding: var(--ring);
}

/* Smaller frames keep a thinner, refined ring */
.mini-avatar-frame.border-bronze,
.mini-avatar-frame.border-silver,
.mini-avatar-frame.border-gold,
.mini-avatar-frame.border-platinum,
.mini-avatar-frame.border-diamond,
.mini-avatar-frame.border-mythic,
.mini-avatar-frame.border-admin,
.mini-avatar-frame.border-plan {
    --ring: 2px;
    padding: var(--ring);
}

/* The avatar always fills the frame content-box, leaving the ring visible below */
.avatar-frame.border-bronze .avatar-img,
.avatar-frame.border-silver .avatar-img,
.avatar-frame.border-gold .avatar-img,
.avatar-frame.border-platinum .avatar-img,
.avatar-frame.border-diamond .avatar-img,
.avatar-frame.border-mythic .avatar-img,
.avatar-frame.border-admin .avatar-img,
.avatar-frame.border-plan .avatar-img,
.mini-avatar-frame.border-bronze img,
.mini-avatar-frame.border-silver img,
.mini-avatar-frame.border-gold img,
.mini-avatar-frame.border-platinum img,
.mini-avatar-frame.border-diamond img,
.mini-avatar-frame.border-mythic img,
.mini-avatar-frame.border-admin img,
.mini-avatar-frame.border-plan img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

/* ---- Bronze (slow, warm) ---- */
.avatar-frame.border-bronze,
.mini-avatar-frame.border-bronze {
    background: conic-gradient(from var(--af-angle), #5a3a24, #b5673a, #e0a06a 45%, #b5673a 70%, #5a3a24);
    box-shadow:
        0 0 0 2px rgba(205, 127, 50, 0.28),
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(205, 127, 50, 0.25);
    animation: af-spin 14s linear infinite;
}

/* ---- Silver (slow, metallic) ---- */
.avatar-frame.border-silver,
.mini-avatar-frame.border-silver {
    background: conic-gradient(from var(--af-angle), #7f8896, #c9cfda, #f2f5fa 45%, #c9cfda 70%, #7f8896);
    box-shadow:
        0 0 0 2px rgba(201, 207, 218, 0.28),
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(201, 207, 218, 0.28);
    animation: af-spin 11s linear infinite;
}

/* ---- Gold (rotating + pulse) ---- */
.avatar-frame.border-gold,
.mini-avatar-frame.border-gold {
    --ring-soft: rgba(255, 215, 0, 0.30);
    --ring-strong: rgba(255, 215, 0, 0.55);
    --glow-soft: rgba(255, 215, 0, 0.30);
    --glow-strong: rgba(255, 215, 0, 0.60);
    background: conic-gradient(from var(--af-angle), #8a5a00, #ffd700 22%, #fff6c0 40%, #ffb347 58%, #ffd700 78%, #8a5a00);
    animation: af-spin 6s linear infinite, af-pulse 2.4s ease-in-out infinite;
}

/* ---- Platinum (cool shimmer) ---- */
.avatar-frame.border-platinum,
.mini-avatar-frame.border-platinum {
    --ring-soft: rgba(125, 224, 255, 0.30);
    --ring-strong: rgba(125, 224, 255, 0.55);
    --glow-soft: rgba(125, 224, 255, 0.28);
    --glow-strong: rgba(125, 224, 255, 0.55);
    background: conic-gradient(from var(--af-angle), #5aa9d6, #bfe9ff, #e8f7ff 38%, #7de0ff 60%, #bfe9ff 82%, #5aa9d6);
    animation: af-spin 8s linear infinite, af-pulse 2.6s ease-in-out infinite;
}

/* ---- Diamond (sparkling) ---- */
.avatar-frame.border-diamond,
.mini-avatar-frame.border-diamond {
    --ring-soft: rgba(179, 157, 255, 0.32);
    --ring-strong: rgba(179, 157, 255, 0.62);
    --glow-soft: rgba(125, 224, 255, 0.35);
    --glow-strong: rgba(125, 224, 255, 0.70);
    background: conic-gradient(from var(--af-angle),
        #ffffff 0deg, #bfe8ff 22.5deg, #ffffff 45deg, #b39dff 67.5deg,
        #ffffff 90deg, #bfe8ff 112.5deg, #ffffff 135deg, #b39dff 157.5deg,
        #ffffff 180deg, #bfe8ff 202.5deg, #ffffff 225deg, #b39dff 247.5deg,
        #ffffff 270deg, #bfe8ff 292.5deg, #ffffff 315deg, #b39dff 337.5deg,
        #ffffff 360deg);
    animation: af-spin 4s linear infinite, af-pulse 2.2s ease-in-out infinite;
}

/* ---- Mythic (fast, pulsing, most luxurious) ---- */
.avatar-frame.border-mythic,
.mini-avatar-frame.border-mythic {
    --ring-soft: rgba(255, 79, 123, 0.38);
    --ring-strong: rgba(255, 79, 123, 0.70);
    --glow-soft: rgba(255, 79, 123, 0.50);
    --glow-strong: rgba(255, 79, 123, 0.85);
    background: conic-gradient(from var(--af-angle), #ff4f7b, #ff9a3d, #ff4f7b 40%, #c03dff 70%, #ff4f7b);
    animation: af-spin 3s linear infinite, af-pulse 1.8s ease-in-out infinite;
}

/* ---- Admin (premium gold/orange) ---- */
.avatar-frame.border-admin,
.mini-avatar-frame.border-admin {
    --ring-soft: rgba(255, 179, 71, 0.40);
    --ring-strong: rgba(255, 179, 71, 0.70);
    --glow-soft: rgba(255, 179, 71, 0.45);
    --glow-strong: rgba(255, 179, 71, 0.80);
    background: conic-gradient(from var(--af-angle), #b36a00, #ffb347, #ffe9b0 38%, #ffd700 58%, #ffb347 78%, #b36a00);
    animation: af-spin 5s linear infinite, af-pulse 2.3s ease-in-out infinite;
}

/* ---- Plan (cyan, clean) ---- */
.avatar-frame.border-plan,
.mini-avatar-frame.border-plan {
    --ring-soft: rgba(75, 214, 255, 0.40);
    --ring-strong: rgba(75, 214, 255, 0.70);
    --glow-soft: rgba(75, 214, 255, 0.40);
    --glow-strong: rgba(75, 214, 255, 0.75);
    background: conic-gradient(from var(--af-angle), #1a8ab0, #4bd6ff, #b0f0ff 40%, #7de0ff 60%, #4bd6ff 80%, #1a8ab0);
    animation: af-spin 7s linear infinite, af-pulse 2.5s ease-in-out infinite;
}

/* ============================================================
   USERNAME NAME-PLATE (clean glass pill + glow, no watermark bg)
   ============================================================ */
.profile-name.name-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 2.4em;
    padding: 0.3em 1.1em;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: #fff;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 107, 53, 0.35),
        0 0 32px rgba(255, 107, 53, 0.20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.profile-name.name-plate-male {
    border-color: rgba(75, 214, 255, 0.35);
    background: linear-gradient(135deg, rgba(75, 214, 255, 0.14), rgba(75, 214, 255, 0.02));
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.6),
        0 0 18px rgba(75, 214, 255, 0.35),
        0 0 32px rgba(75, 214, 255, 0.20);
}

.profile-name.name-plate-female {
    border-color: rgba(255, 107, 53, 0.40);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(255, 107, 53, 0.03));
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 107, 53, 0.40),
        0 0 32px rgba(255, 107, 53, 0.25);
}

/* ============================================================
   ADMIN VERIFIED TICK (blue SVG badge + pop animation)
   ============================================================ */
.admin-tick {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='80%25'%3E%3Cstop offset='0%25' stop-color='%239fe0ff'/%3E%3Cstop offset='55%25' stop-color='%231a9bf0'/%3E%3Cstop offset='100%25' stop-color='%230b6ec1'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.5' fill='url(%23g)'/%3E%3Ccircle cx='12' cy='12' r='11.2' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='0.9'/%3E%3Cpath d='M6.8 12.6l3.3 3.3 7.1-7.3' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
    vertical-align: middle;
    margin-left: 6px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(31, 155, 240, 0.55));
    animation: tick-pop 0.5s ease;
}

@keyframes tick-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.25);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .border-gold, .border-diamond, .border-mythic,
    .avatar-frame, .mini-avatar-frame,
    .admin-tick, .profile-name.name-plate { animation: none !important; }
}

/* ============================================================
   TABLES — responsive: horizontal scroll on md+, card on mobile
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
    height: 6px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    min-width: 550px;
}

.table th,
.table td {
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.5vw, 14px);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: clamp(20px, 3vw, 30px) !important;
}

.muted {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: clamp(4px, 0.6vw, 4px) clamp(10px, 1.2vw, 12px);
    border-radius: 50px;
    font-size: var(--fs-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.status-pending { background: rgba(255, 205, 80, 0.15); color: var(--gold); }
.status-paid { background: rgba(80, 235, 155, 0.15); color: var(--green); }
.status-expired { background: rgba(161, 161, 161, 0.15); color: var(--text-muted); }
.status-failed { background: rgba(255, 85, 105, 0.15); color: var(--red); }
.status-active { background: rgba(80, 235, 155, 0.15); color: var(--green); }

/* ============================================================
   AVATAR FRAMES
   ============================================================ */
.avatar-frame {
    width: clamp(96px, 12vw, 120px);
    height: clamp(96px, 12vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    background: #22242f;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mini-avatar-frame {
    width: clamp(36px, 4vw, 42px);
    height: clamp(36px, 4vw, 42px);
    border-radius: 50%;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    background: #22242f;
    flex-shrink: 0;
}

.mini-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: clamp(14px, 2vw, 18px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: clamp(14px, 2vw, 16px);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-wrap input,
.select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: clamp(10px, 1.2vw, 12px) clamp(14px, 1.8vw, 16px) clamp(10px, 1.2vw, 12px) clamp(40px, 5vw, 44px);
    color: var(--text-white);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color 0.2s;
    min-height: var(--touch-target);
}

.input-wrap input:focus,
.select:focus {
    border-color: var(--orange-primary);
}

.select {
    padding-left: clamp(14px, 1.8vw, 16px);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1a1' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(12px, 1.8vw, 14px) center;
    padding-right: clamp(28px, 4vw, 36px);
}

.select option {
    background: #22242f;
    color: #fff;
}

.form-error {
    color: var(--red);
    font-size: var(--fs-sm);
    min-height: 20px;
    margin-bottom: 10px;
    text-align: center;
    word-break: break-word;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: var(--fs-sm);
    flex-wrap: wrap;
    gap: 8px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange-primary);
}

.forget {
    color: var(--cyan);
}
/* ============================================================
   MODAL — desktop centered, mobile bottom-sheet
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: clamp(12px, 3vw, 20px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    background: #1d1f29;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: clamp(20px, 3vw, 28px);
    position: relative;
    box-shadow: var(--shadow);
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: clamp(12px, 2vw, 16px);
    right: clamp(12px, 2vw, 16px);
    width: clamp(34px, 4vw, 36px);
    height: clamp(34px, 4vw, 36px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-white);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.modal-body h2 {
    font-size: var(--fs-xl);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 30px;
}

.modal-body h2 i {
    color: var(--orange-primary);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: clamp(16px, 4vw, 30px);
    left: 50%;
    transform: translate(-50%, 20px);
    background: #22242f;
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5000;
    pointer-events: none;
    max-width: min(480px, 92vw);
    text-align: center;
    overflow-wrap: anywhere;
}

.toast-success {
    border-color: rgba(80, 235, 155, 0.6);
}

.toast-error {
    border-color: rgba(255, 85, 105, 0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 24px) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(24px, 5vw, 40px);
    padding-bottom: clamp(24px, 4vw, 40px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: var(--fs-lg);
    color: var(--text-white);
}

.footer-logo-img {
    width: clamp(34px, 4vw, 40px);
    height: clamp(34px, 4vw, 40px);
    object-fit: cover;
    object-position: left center;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.35));
}

.footer-logo strong {
    color: var(--orange-primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: clamp(38px, 4.5vw, 40px);
    height: clamp(38px, 4.5vw, 40px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s;
}

.footer-social-btn:hover {
    background: var(--orange-primary);
    color: #fff;
    border-color: var(--orange-primary);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: var(--fs-md);
    margin-bottom: 16px;
    color: var(--text-white);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    min-height: 24px;
}

.footer-col ul li a:hover {
    color: var(--orange-primary);
}

.footer-col ul li a i {
    font-size: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: clamp(16px, 3vw, 20px) 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
/* ---------- Mobile small (<=360px) ---------- */
@media (max-width: 360px) {
    :root {
        --touch-target: 42px;
    }

    .brand-name {
        display: none;
    }

    .nav-brand {
        gap: 4px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .download-group {
        flex-direction: column;
    }
}

/* ---------- Mobile (361px - 480px) ---------- */
@media (max-width: 480px) {
    .hero-badge {
        font-size: var(--fs-xs);
    }

    .border-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
        gap: 10px;
    }

    .border-card {
        padding: clamp(18px, 4vw, 22px) clamp(10px, 2vw, 12px);
        font-size: var(--fs-sm);
    }

    .section-head h2 {
        font-size: var(--fs-xl);
    }

    .section-card {
        padding: clamp(16px, 4vw, 18px) clamp(12px, 3vw, 14px);
    }

    .btn {
        font-size: var(--fs-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* ---------- Mobile large / phablet (481px - 600px) ---------- */
@media (max-width: 600px) {
    .hero-features {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: clamp(18px, 4vw, 24px);
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col ul {
        align-items: center;
    }
}

/* ---------- Tablet (601px - 768px) ---------- */
@media (max-width: 768px) {
    .header {
        top: clamp(8px, 2vw, 12px);
        padding: 0 clamp(8px, 2vw, 12px);
    }

    .navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px clamp(12px, 3vw, 14px);
        border-radius: 24px;
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* Collapsible nav menu */
    .nav-menu {
        order: initial;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .navbar.nav-open .nav-menu {
        max-height: 460px;
        opacity: 1;
        padding: clamp(8px, 2vw, 12px) 0 4px;
        pointer-events: auto;
    }

    .nav-menu .navLinks {
        justify-content: flex-start;
        padding: clamp(11px, 2vw, 13px) 1rem;
        border-radius: 14px;
        font-size: var(--fs-md);
        min-height: var(--touch-target);
    }

    .nav-brand {
        order: initial;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .nav-toggle {
        order: initial;
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }

    .nav-auth {
        order: initial;
        grid-column: 2;
        grid-row: 1;
        width: auto;
        justify-content: flex-end;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
        flex-wrap: nowrap;
    }

    .nav-auth .nav-cta {
        padding: clamp(9px, 2vw, 11px) clamp(12px, 2vw, 16px);
        font-size: var(--fs-sm);
    }

    .nav-avatar-link {
        padding: 2px;
    }

    /* Layout adjustments */
    .hero {
        padding: clamp(140px, 20vh, 180px) clamp(12px, 3vw, 16px) 40px;
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .hero-subtitle {
        font-size: var(--fs-base);
        padding: 0 clamp(8px, 2vw, 12px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: clamp(92px, 13vh, 112px) clamp(12px, 3vw, 16px) 40px;
    }

    .section-head h2 {
        font-size: var(--fs-xl);
    }

    /* Tables → cards (opt out with .keep-table on the wrapper) */
    .table-wrap:not(.keep-table) {
        overflow-x: hidden;
        border: 1px solid transparent;
    }

    .table-wrap:not(.keep-table) .table {
        min-width: 0;
        display: block;
        border: none;
        font-size: var(--fs-sm);
    }

    .table-wrap:not(.keep-table) .table thead {
        display: none;
    }

    .table-wrap:not(.keep-table) .table tbody {
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 2.5vw, 14px);
    }

    .table-wrap:not(.keep-table) .table tbody tr {
        display: block;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius);
        padding: clamp(14px, 3vw, 18px);
        margin-bottom: 0;
        position: relative;
        transition: border-color 0.2s;
    }

    .table-wrap:not(.keep-table) .table tbody tr:hover {
        background: var(--glass-bg);
        border-color: rgba(255, 107, 53, 0.3);
    }

    .table-wrap:not(.keep-table) .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 8px 0;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        text-align: right;
        word-break: break-word;
    }

    .table-wrap:not(.keep-table) .table tbody td:last-child {
        border-bottom: none;
    }

    .table-wrap:not(.keep-table) .table tbody td::before {
        content: attr(data-label);
        font-size: var(--fs-micro);
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        text-align: left;
        flex-shrink: 0;
    }

    .table-wrap:not(.keep-table) .table tbody td.empty-row {
        display: block;
        text-align: center;
        border: none;
        padding: clamp(20px, 3vw, 30px) !important;
    }

    .table-wrap:not(.keep-table) .table tbody td.empty-row::before {
        display: none;
    }

    /* Avatar grid */
    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        gap: 10px;
    }

    .avatar-option {
        width: 76px;
        height: 76px;
    }

    /* Modal bottom-sheet */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        width: 100%;
        max-height: min(88dvh, 760px);
        overflow-y: auto;
        overscroll-behavior: contain;
        animation: sheet-in 0.3s ease;
        padding-bottom: max(clamp(20px, 4vw, 28px), env(safe-area-inset-bottom));
    }

    @keyframes sheet-in {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .modal-body h2 {
        font-size: var(--fs-lg);
    }
}
.hero-logo,.admin-header-logo,.footer-logo-img { object-fit: contain; object-position: center; }

.access-check {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff4b61, #d91533);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255,45,73,.16), 0 3px 10px rgba(217,21,51,.35);
    font-size: .5rem;
    line-height: 1;
}

.access-check-chat {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
    font-size: .42rem;
    vertical-align: -1px;
}

@media (max-width: 600px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    .header {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }

    .navbar.nav-open {
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-auth .nav-cta {
        min-height: 40px;
        padding: 8px 11px;
    }

    .nav-auth .nav-cta i {
        margin: 0;
    }

    .nav-action-group {
        gap: 2px;
        padding: 3px;
        border-radius: 13px;
    }

    .nav-action {
        width: auto;
        min-height: 34px;
        padding: 0 8px;
        border-radius: 10px;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    .btn,
    .navLinks,
    .btn-icon,
    button,
    [role="button"] {
        touch-action: manipulation;
    }

    .section-card {
        border-radius: 16px;
    }

    .table-wrap.keep-table {
        margin-inline: -12px;
        padding-inline: 12px;
        scroll-snap-type: x proximity;
    }

    .table-wrap.keep-table .table {
        min-width: 720px;
    }

    .toast {
        width: calc(100% - 24px);
        max-width: 420px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
        border-radius: 20px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-auth .nav-cta {
        font-size: var(--fs-xs);
    }

    .nav-action-label {
        display: inline;
        font-size: .66rem;
        letter-spacing: -.15px;
    }

    .nav-chat-action .nav-action-label {
        display: none;
    }

    .nav-checker-action {
        min-width: 76px;
        gap: 5px;
    }

    .nav-auth .nav-cta i + * {
        display: none;
    }

    .modal-body {
        padding-inline: 2px;
    }

    .modal-close {
        width: 42px;
        height: 42px;
    }
}

/* ---------- Tablet landscape / small desktop (769px - 1024px) ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 0 clamp(12px, 3vw, 16px);
    }

    .navbar {
        padding: 10px clamp(14px, 2vw, 18px);
    }

    .navLinks {
        padding: 0.6rem clamp(8px, 1.2vw, 0.9rem);
    }

    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .action-grid {
        grid-template-columns: 1fr 1fr;
    }

    .border-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ---------- Laptop (1025px - 1280px) ---------- */
@media (min-width: 1025px) and (max-width: 1280px) {
    .section {
        padding-left: clamp(20px, 4vw, 24px);
        padding-right: clamp(20px, 4vw, 24px);
    }

    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Large desktop (>=1441px) ---------- */
@media (min-width: 1441px) {
    :root {
        --container-max: 1200px;
        --container-wide: 1400px;
    }

    .border-preview-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .hero-features {
        max-width: 1100px;
    }
}
/* ============================================================
   SCROLL REVEAL — safe: only animates when JS is enabled.
   Without JS (no .js-anim on <html>) everything stays visible.
   ============================================================ */
html.js-anim .reveal-element,
html.js-anim .section-head,
html.js-anim .feature-card,
html.js-anim .step-card,
html.js-anim .border-card,
html.js-anim .stat-tile,
html.js-anim .cta-banner {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html.js-anim .reveal-element.revealed,
html.js-anim .section-head.revealed,
html.js-anim .feature-card.revealed,
html.js-anim .step-card.revealed,
html.js-anim .border-card.revealed,
html.js-anim .stat-tile.revealed,
html.js-anim .cta-banner.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Slight stagger for grids */
html.js-anim .feature-grid .feature-card,
html.js-anim .steps-grid .step-card,
html.js-anim .border-preview-grid .border-card {
    transition-delay: calc(var(--reveal-index, 0) * 55ms);
}

@media (prefers-reduced-motion: reduce) {
    html.js-anim .reveal-element,
    html.js-anim .section-head,
    html.js-anim .feature-card,
    html.js-anim .step-card,
    html.js-anim .border-card,
    html.js-anim .stat-tile,
    html.js-anim .cta-banner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
