:root {
    --bg: #040308;
    --bg-soft: #090713;
    --card: rgba(13, 11, 26, 0.65);
    --card-2: rgba(23, 20, 42, 0.8);
    --border: rgba(139, 92, 246, 0.15);
    --border-hover: rgba(139, 92, 246, 0.45);
    --text: #f3f4f6;
    --dim: #9ca3af;
    --primary: #8b5cf6;
    --primary-2: #d946ef;
    --accent: #06b6d4;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --purple: #a855f7;
    --blue: #3b82f6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
    --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.25);
    --shadow-glow-red: 0 0 25px rgba(239, 68, 68, 0.25);
}

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    color: #22d3ee;
    opacity: 1;
}

b, strong {
    font-weight: 700;
}

.mono, code {
    font-family: 'Consolas', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ============ DYNAMIC BACKGROUNDS ============ */
.cyber-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cyber-orb {
    position: fixed;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
    pointer-events: none;
    z-index: -2;
    animation: drift 25s infinite alternate ease-in-out;
}

.cyber-orb-1 {
    background: radial-gradient(circle, var(--primary) 0%, rgba(139, 92, 246, 0) 70%);
    top: -250px;
    left: -200px;
}

.cyber-orb-2 {
    background: radial-gradient(circle, var(--accent) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -250px;
    right: -200px;
    animation-delay: -7s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.25); }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text);
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.55), 0 0 10px rgba(217, 70, 239, 0.3);
    background: linear-gradient(135deg, #9b6bf7, #e05ff2);
}

.btn-green {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    color: #ffffff;
}

.btn-green:hover {
    box-shadow: var(--shadow-glow-green);
}

.btn-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: none;
    color: #ffffff;
}

.btn-red:hover {
    box-shadow: var(--shadow-glow-red);
}

.btn-orange {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border: none;
    color: #ffffff;
}

.btn-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    color: #ffffff;
}

.btn-purple:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-gray {
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.btn-red.ghost {
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    background: rgba(239, 68, 68, 0.05);
}

.btn-red.ghost:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ============ LANDING ============ */
.landing-body {
    background: var(--bg);
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 3, 8, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.l-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.l-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.l-brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.l-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.l-links a {
    color: var(--dim);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

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

.l-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.25s ease;
}

.l-links a:hover::after {
    width: 100%;
}

.l-auth {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(650px 320px at 15% 20%, rgba(139, 92, 246, 0.18), transparent 70%),
        radial-gradient(750px 380px at 85% 80%, rgba(6, 182, 212, 0.1), transparent 70%),
        linear-gradient(180deg, #040308, #070512);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(700px 450px at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(700px 450px at 50% 40%, black, transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-inner.center .hero-text {
    margin: 0 auto;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 26px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
}

.hero h1 {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.grad-anim {
    background: linear-gradient(90deg, #d946ef, #8b5cf6, #06b6d4, #d946ef);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 8s linear infinite;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

@keyframes gradShift {
    to { background-position: 300% 0; }
}

.hero p {
    color: var(--dim);
    font-size: 17.5px;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stats b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    background: linear-gradient(135deg, #ffffff 40%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats span {
    color: var(--dim);
    font-size: 13px;
}

.hero-shot {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.hero-shot img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 
        0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 70px rgba(139, 92, 246, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-shot:hover img {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 0 1px rgba(255, 255, 255, 0.15),
        0 30px 80px rgba(139, 92, 246, 0.28),
        0 0 15px rgba(6, 182, 212, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Features Section */
.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-head h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 50%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p {
    color: var(--dim);
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(139, 92, 246, 0.15);
}

.f-icon {
    font-size: 32px;
    margin-bottom: 18px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--dim);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Showcase Section */
.showcase {
    padding: 50px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-inner {
    position: relative;
}

.showcase-inner img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 25px 65px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(139, 92, 246, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-inner:hover img {
    transform: scale(1.008);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(139, 92, 246, 0.18);
}

/* Pricing Section */
.pricing {
    padding: 100px 24px;
    background: rgba(10, 8, 22, 0.6);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.plan-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.plan-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 26px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.1);
}

.plan-popular {
    border: 2px solid var(--primary-2);
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.08), var(--card));
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.05);
}

.plan-popular:hover {
    border-color: #f472b6;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(217, 70, 239, 0.2);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    padding: 4px 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
    color: #ffffff;
}

.plan-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.plan-popular .plan-price {
    background: linear-gradient(90deg, var(--primary-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pricing-contact {
    text-align: center;
    margin-top: 40px;
}

.pricing-contact a {
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.pricing-contact a:hover {
    background: rgba(139, 92, 246, 0.08);
}

/* Call to Action */
.cta {
    padding: 90px 24px;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 24px;
    padding: 60px 45px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.cta-inner h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.cta-inner p {
    color: var(--dim);
    margin-bottom: 30px;
    font-size: 16px;
}

.cta-note {
    display: block;
    margin-top: 20px;
    color: var(--dim);
    font-size: 13px;
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--border);
    background: rgba(5, 4, 10, 0.9);
}

.l-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.f-brand {
    flex: 2;
    min-width: 250px;
}

.f-brand p {
    color: var(--dim);
    font-size: 13.5px;
    margin-top: 14px;
    line-height: 1.6;
}

.f-col {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.f-col h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dim);
    margin-bottom: 10px;
    font-weight: 800;
}

.f-col a {
    color: var(--dim);
    font-size: 14px;
}

.f-col a:hover {
    color: #ffffff;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

/* ============ AUTH PAGES ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(800px 450px at 20% 20%, rgba(139, 92, 246, 0.16), transparent 70%),
        radial-gradient(700px 450px at 80% 80%, rgba(6, 182, 212, 0.1), transparent 70%);
    z-index: -1;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    max-width: 980px;
    width: 92%;
    background: rgba(13, 11, 26, 0.65);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 
        0 25px 75px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.auth-side {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.03) 100%);
    padding: 60px 45px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border);
}

.auth-side-inner {
    width: 100%;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.auth-brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 40%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-tagline {
    color: var(--dim);
    margin-bottom: 35px;
    font-size: 14.5px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
}

.feature-list span {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.auth-foot {
    color: var(--dim);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.auth-card {
    padding: 60px 50px;
    position: relative;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-sub {
    color: var(--dim);
    font-size: 14.5px;
    margin-top: -8px;
    margin-bottom: 10px;
}

.auth-switch {
    font-size: 13.5px;
    color: var(--dim);
    text-align: center;
    margin-top: 10px;
}

.auth-switch a {
    font-weight: 700;
}

.auth-support {
    font-size: 13.5px;
    color: var(--dim);
    text-align: center;
    margin-top: 10px;
}

.auth-support a {
    font-weight: 700;
}

.auth-back {
    font-size: 13px;
    text-align: center;
    color: var(--dim);
    margin-top: 10px;
}

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

.lang-btn-float {
    position: absolute;
    top: 20px;
    right: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field input, .input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font: 500 14px 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
}

.field input:focus, .input:focus {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 15px rgba(139, 92, 246, 0.1);
}

.field-hint {
    color: var(--dim);
    font-size: 12px;
    margin-top: 2px;
}

.select {
    appearance: auto;
    background-color: var(--bg-soft);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    box-shadow: var(--shadow-glow-red);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    box-shadow: var(--shadow-glow-green);
    margin-bottom: 20px;
}

.mt { margin-top: 16px; }
.mb { margin-bottom: 20px; }

/* ============ PANEL LAYOUT (DASHBOARD) ============ */
.panel-body {
    min-height: 100vh;
    background: var(--bg);
}

.panel-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: rgba(6, 4, 12, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.brand-name {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

.brand-sub {
    font-size: 11px;
    color: var(--dim);
    font-weight: 500;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    padding: 16px 12px 6px;
    opacity: 0.6;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--dim);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.04) 100%);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.ni {
    font-size: 17px;
    width: 20px;
    text-align: center;
}

.nav-divider {
    border-top: 1px solid var(--border);
    margin: 10px 8px;
}

.discord-link {
    color: #818cf8;
}

.discord-link:hover {
    color: #93c5fd;
    background: rgba(129, 140, 248, 0.08) !important;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.uc-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.uc-role {
    font-size: 11.5px;
    color: var(--dim);
}

.logout {
    color: #f87171;
}

.logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.15) !important;
}

/* Main Area */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 4, 12, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.badge-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
}

.content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 1400px;
    width: 100%;
}

/* Panels Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.1);
}

.card.narrow {
    max-width: 600px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 14px;
}

.card-head h3 {
    font-size: 17px;
    font-weight: 800;
}

.card-head .link {
    font-size: 13px;
    font-weight: 700;
}

.cards-sub {
    color: var(--dim);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width: 950px) {
    .panel-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-meta span {
    display: block;
    color: var(--dim);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-meta b {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
}

.s-blue .stat-icon { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25); color: #3b82f6; }
.s-green .stat-icon { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); color: #10b981; }
.s-purple .stat-icon { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); color: #a855f7; }
.s-orange .stat-icon { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); color: #f59e0b; }
.s-red .stat-icon { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); color: #ef4444; }
.s-gray .stat-icon { background: rgba(156, 163, 175, 0.12); border: 1px solid rgba(156, 163, 175, 0.25); color: #9ca3af; }
.s-cyan .stat-icon { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.25); color: #06b6d4; }

/* Tables System */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.table th {
    padding: 14px 16px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.row-warn td {
    background: rgba(245, 158, 11, 0.03);
}

.empty {
    text-align: center;
    color: var(--dim);
    padding: 40px 16px !important;
    font-size: 14px;
}

.empty.small {
    padding: 24px 16px !important;
}

.dim {
    color: var(--dim);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-green { background: rgba(16, 185, 129, 0.08); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.pill-red { background: rgba(239, 68, 68, 0.08); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.pill-orange { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.pill-purple { background: rgba(168, 85, 247, 0.08); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.pill-blue { background: rgba(59, 130, 246, 0.08); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.pill-gray { background: rgba(156, 163, 175, 0.08); color: var(--dim); border: 1px solid rgba(156, 163, 175, 0.25); }

/* Toolbar / Filters */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filters .input {
    width: auto;
    padding: 10px 14px;
}

.filters .select {
    min-width: 160px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
}

.filters .select:focus {
    border-color: var(--primary);
}

.count-chip {
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--card-2);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
}

.page-ind {
    font-size: 13px;
    color: var(--dim);
    font-weight: 700;
}

/* Forms System */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

.inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form .input {
    max-width: 360px;
}

.field.tiny input {
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    cursor: pointer;
}

.check input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Detail Box */
.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.key-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14.5px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    user-select: all;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.detail-sub {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-list > div:last-child {
    border-bottom: none;
}

.detail-list dt {
    color: var(--dim);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-list dd {
    font-size: 14px;
    word-break: break-all;
    color: #ffffff;
}

.hwid-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 16px;
    color: #ffffff;
}

.hw-factors {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 13px;
    line-height: 2;
    color: var(--text);
}

/* Expiry Bars */
.expiry-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-bar {
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.eb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-weight: 600;
}

.eb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.eb-dot.r { background: var(--red); box-shadow: 0 0 8px var(--red); }
.eb-dot.o { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.eb-dot.y { background: #eab308; box-shadow: 0 0 8px #eab308; }

.eb-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.eb-fill {
    height: 100%;
    border-radius: 99px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.e24 { background: linear-gradient(90deg, #dc2626, #ef4444); }
.e7 { background: linear-gradient(90deg, #d97706, #f59e0b); }
.e30 { background: linear-gradient(90deg, #a16207, #eab308); }

.eb-val {
    text-align: right;
    font-weight: 800;
    color: #ffffff;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.qa-green {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.qa-green:hover {
    border-color: #10b981;
    box-shadow: var(--shadow-glow-green);
}

.qa-blue {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.qa-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.qa-red {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.qa-red:hover {
    border-color: #ef4444;
    box-shadow: var(--shadow-glow-red);
}

.qa-purple {
    background: rgba(168, 85, 247, 0.06);
    border-color: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

.qa-purple:hover {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.qa-orange {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.qa-orange:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.qa:hover {
    transform: translateX(5px);
    opacity: 1;
}

/* Blacklist / Invites */
.bl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
}

.bl-item code {
    font-size: 13px;
    word-break: break-all;
}

.invite-code {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c4b5fd;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #040308;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* User Hero + Quick Actions */
.user-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.03) 100%), var(--card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.user-hero h2 {
    font-size: 26px;
    font-weight: 900;
}

.user-hero p {
    color: var(--dim);
    font-size: 14.5px;
    margin-top: 6px;
}

.user-hero .hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: flex-start;
}

/* Copy Button */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    margin-left: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--dim);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: rgba(139, 92, 246, 0.1);
}

.key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.key-row .key-box {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.key-row .copy-btn {
    width: auto;
    height: auto;
    padding: 10px 18px;
    margin-left: 0;
}

/* Admin panel user lists action */
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.input-tiny {
    width: 130px;
    padding: 7px 11px;
    font-size: 12px;
}

/* Invite Card on User Dashboard */
.invite-card {
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%), var(--card);
}

.invite-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.invite-row .cards-sub {
    margin-bottom: 0;
}

/* Mini Stats in Admin Quick Card */
.mini-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.mini-stats > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.mini-stats span {
    color: var(--dim);
    font-size: 13px;
    font-weight: 700;
}

.mini-stats b {
    font-size: 19px;
    color: #ffffff;
}

/* ============ SCROLL ANIMATIONS ============ */
.landing-body .hero-text, .landing-body .hero-shot,
.landing-body .feature-card, .landing-body .plan-card,
.landing-body .section-head, .landing-body .cta-inner, .landing-body .showcase-inner {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-body .feature-card:nth-child(2) { animation-delay: 0.06s; }
.landing-body .feature-card:nth-child(3) { animation-delay: 0.12s; }
.landing-body .feature-card:nth-child(4) { animation-delay: 0.18s; }
.landing-body .feature-card:nth-child(5) { animation-delay: 0.24s; }
.landing-body .feature-card:nth-child(6) { animation-delay: 0.30s; }

.landing-body .plan-card:nth-child(2) { animation-delay: 0.07s; }
.landing-body .plan-card:nth-child(3) { animation-delay: 0.14s; }
.landing-body .plan-card:nth-child(4) { animation-delay: 0.21s; }

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

.panel-body .card, .panel-body .stat-card, .panel-body .user-hero {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.panel-body .stat-card:nth-child(2) { animation-delay: 0.04s; }
.panel-body .stat-card:nth-child(3) { animation-delay: 0.08s; }
.panel-body .stat-card:nth-child(4) { animation-delay: 0.12s; }
.panel-body .stat-card:nth-child(5) { animation-delay: 0.16s; }
.panel-body .stat-card:nth-child(6) { animation-delay: 0.20s; }
.panel-body .stat-card:nth-child(7) { animation-delay: 0.24s; }
.panel-body .stat-card:nth-child(8) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
    .landing-body .hero-text, .landing-body .hero-shot,
    .landing-body .feature-card, .landing-body .plan-card,
    .landing-body .section-head, .landing-body .cta-inner, .landing-body .showcase-inner,
    .panel-body .card, .panel-body .stat-card, .panel-body .user-hero {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ============ MEDIA RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .l-links { display: none; }
    .hero-stats { gap: 30px; }
}

@media (max-width: 760px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-card { padding: 40px 24px; }
}

@media (max-width: 600px) {
    .feature-grid, .plan-grid { grid-template-columns: 1fr; }
    .l-auth .btn-ghost { display: none; }
    .l-nav-inner { justify-content: space-between; }
    .topbar { padding: 16px 20px; }
    .content { padding: 20px 16px; }
    .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
    .exp-bar { grid-template-columns: 1fr 30px; gap: 8px; }
    .eb-label { grid-row: 1; grid-column: 1; }
    .eb-track { grid-row: 2; grid-column: 1; }
    .eb-val { grid-row: 2; grid-column: 2; }
}

/* ============ HWID RESET & LIVE TICKET CHAT STYLES ============ */

.nav-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.glass-card {
    background: rgba(15, 20, 35, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.15);
}

.glow-box {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    margin-right: 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.section-desc {
    color: var(--dim);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.form-section {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cmd-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.cmd-card {
    background: rgba(10, 13, 24, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.2s ease;
}

.cmd-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.cmd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.copy-cmd-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--primary-2);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-cmd-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.cmd-box {
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 12.5px;
    color: #38bdf8;
    word-break: break-all;
}

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

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

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 26, 45, 0.7);
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-box:hover .file-label {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.upload-icon {
    font-size: 22px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-info-panel, .ticket-chat-panel {
    display: flex;
    flex-direction: column;
}

.ticket-chat-panel {
    height: 620px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.live-indicator {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.green-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.chat-messages-box {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages-box::-webkit-scrollbar {
    width: 5px;
}

.chat-messages-box::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    animation: fadeInMsg 0.25s ease-out;
}

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

.user-bubble {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.35));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-bottom-right-radius: 3px;
    color: #ffffff;
}

.admin-bubble {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-bottom-left-radius: 3px;
    color: #ffffff;
}

.bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 4px;
    opacity: 0.85;
}

.bubble-time {
    font-size: 10.5px;
    font-weight: 400;
}

.chat-input-form {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input {
    flex: 1;
    background: #090d18;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
}

.chat-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.send-btn {
    white-space: nowrap;
    padding: 0 20px;
    border-radius: 10px;
}

.status-banner {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
}

.status-banner.pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.status-banner.approved {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.status-banner.rejected {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.pulse-ring {
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: ringPulse 1.8s infinite;
}

@keyframes ringPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.cmd-result-item {
    margin-bottom: 10px;
}

.cmd-result-item .lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dim);
    margin-bottom: 3px;
}

.cmd-result-item .val-box {
    background: #070a14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #38bdf8;
    word-break: break-all;
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.filter-tab.warning-tab.active {
    background: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.filter-tab.success-tab.active {
    background: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.filter-tab.danger-tab.active {
    background: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* ========== HWID RESET PAGE — DARK FORM STYLES ========== */

/* Base dark card */
.dark-card {
    background: rgba(10, 13, 24, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

.dark-card-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dark-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 6px;
}

.subtitle-text {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Dark form fields */
.field-dark {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.field-lbl.mt-3 {
    margin-top: 14px;
}

.input-dark {
    background: rgba(5, 8, 18, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    color: #f3f4f6 !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    width: 100% !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.input-dark:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 12px rgba(139, 92, 246, 0.15) !important;
}

.input-dark::placeholder {
    color: #374151 !important;
}

.input-code {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 12.5px !important;
    color: #38bdf8 !important;
}

.input-code::placeholder {
    color: #2d3748 !important;
    font-family: 'Inter', sans-serif !important;
}

.textarea-dark {
    resize: vertical;
    min-height: 80px;
}

.select-dark {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px !important;
    cursor: pointer;
}

.select-dark option {
    background: #0c0f1d;
    color: #f3f4f6;
}

.field-hint {
    font-size: 12px;
    color: #4b5563;
    margin-top: 2px;
}

.field-hint-warn {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 4px;
}

/* Form steps */
.hwid-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-step {
    display: flex;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.07);
}

.form-step:last-of-type {
    border-bottom: none;
}

.step-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    margin-top: 2px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* CMD blocks */
.cmd-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}

.cmd-block {
    background: rgba(4, 7, 16, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cmd-block:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.12);
}

.cmd-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
}

.cmd-block-header .cmd-icon {
    font-size: 16px;
}

.cmd-block-header .copy-btn {
    margin-left: auto;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cmd-block-header .copy-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.cmd-terminal {
    background: #020408;
    border-left: 3px solid #22d3ee;
    border-radius: 6px;
    padding: 7px 12px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #38bdf8;
}

/* File drop zone */
.file-drop-zone {
    position: relative;
}

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

.file-drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(5, 8, 18, 0.9);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-drop-zone:hover .file-drop-label {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.06);
}

.fdz-icon { font-size: 28px; }
.fdz-text { font-size: 13.5px; color: #9ca3af; font-weight: 600; }
.fdz-hint { font-size: 11.5px; color: #4b5563; }

/* Grid 2 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 700px) {
    .grid-2 { grid-template-columns: 1fr; }
    .cmd-blocks-grid { grid-template-columns: 1fr; }
}

/* Submit row */
.form-submit-row {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.glow-submit {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.45);
    font-size: 15px;
    padding: 14px 32px;
}

/* Alert warning box */
.alert-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.aw-icon { font-size: 28px; flex-shrink: 0; }
.aw-text { flex: 1; }
.aw-text strong { display: block; font-size: 15px; font-weight: 700; color: #fbbf24; margin-bottom: 4px; }
.aw-text p { font-size: 13px; color: #9ca3af; line-height: 1.5; }

/* License history cards */
.licenses-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.license-history-card {
    background: rgba(6, 9, 20, 0.9);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.2s;
}

.license-history-card.has-hwid {
    border-color: rgba(245, 158, 11, 0.25);
}

.license-history-card.no-hwid {
    border-color: rgba(16, 185, 129, 0.2);
}

.lhc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.lhc-key {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-icon { font-size: 16px; }

.key-code {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
}

.lhc-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hwid-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.hwid-label { font-weight: 700; white-space: nowrap; }

.hwid-val {
    font-family: 'Consolas', monospace;
    font-size: 11.5px;
    color: #f59e0b;
    word-break: break-all;
}

.hwid-history-section { margin-top: 8px; }

.hh-title {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}

.hh-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hh-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.hh-item.action-hwid_bound { border-color: rgba(245, 158, 11, 0.2); }
.hh-item.action-hwid_login { border-color: rgba(16, 185, 129, 0.2); }
.hh-item.action-hwid_reset, .hh-item.action-hwid_reset_approved { border-color: rgba(139, 92, 246, 0.2); }

.hh-action { font-weight: 700; color: #d1d5db; white-space: nowrap; min-width: 160px; }
.hh-hwid { font-family: 'Consolas', monospace; color: #38bdf8; font-size: 11px; flex: 1; }
.hh-ts { color: #4b5563; font-size: 11px; margin-left: auto; white-space: nowrap; }

.hh-empty {
    font-size: 12.5px;
    color: #374151;
    padding: 8px 0;
    font-style: italic;
}

/* Status pills for hwid page */
.status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}

.pill-bound { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.pill-free { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.pill-active { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.pill-inactive { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.pill-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.pill-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.pill-danger { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.pill-blue { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.pill-gray { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.25); }
.pill-orange { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* Requests list */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.025);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

.req-id code { font-size: 12px; color: #7c3aed; }
.req-key code { font-size: 12px; color: #a78bfa; }
.req-date { font-size: 12px; color: #4b5563; }
.req-status { }
.req-action { margin-left: auto; }

/* mt utils */
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 12px; }

/* ============ MOBILE RESPONSIVE ============ */

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

/* Panel: sidebar -> yatay top bar */
@media (max-width: 900px) {
    .panel-shell { flex-direction: column; }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: 0;
        position: sticky;
        top: 0;
        z-index: 60;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar .brand { flex-shrink: 0; padding: 6px 10px; }

    .side-nav {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: none;
    }

    .nav-group-title, .nav-divider { display: none; }

    .nav-item { white-space: nowrap; padding: 9px 13px; }

    .sidebar-footer {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: none;
        border-top: none;
        padding-top: 0;
        border-left: 1px solid var(--border);
        padding-left: 14px;
    }

    .user-chip { padding: 6px 10px; }
    .uc-info { display: none; }
    .avatar { width: 34px; height: 34px; font-size: 14px; }

    .topbar { position: static; }

    .hero { padding: 90px 20px 50px; }
    .hero h1 { font-size: 40px; }
    .hero-stats { gap: 36px; }
    .features { padding: 80px 20px; }
    .pricing { padding: 80px 20px; }
    .cta { padding: 70px 20px; }
    .auth-side { padding: 50px 32px; }
    .auth-card { padding: 50px 32px; }
    .content { padding: 24px; }
}

@media (max-width: 600px) {
    .l-nav-inner { padding: 12px 16px; gap: 12px; }
    .l-brand-name { font-size: 18px; }
    .l-logo { width: 32px; height: 32px; }

    .hero { padding: 70px 16px 40px; }
    .hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .hero p { font-size: 15px; }
    .hero-badge { font-size: 11.5px; padding: 6px 14px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn-lg { padding: 12px 22px; font-size: 14px; }
    .hero-stats { gap: 24px; padding-top: 22px; }
    .hero-stats b { font-size: 22px; }
    .hero-stats span { font-size: 12px; }
    .hero-shot { margin-top: 28px; padding: 0 14px; }
    .hero-shot img { border-radius: 14px; }

    .features { padding: 60px 16px; }
    .section-head { margin-bottom: 36px; }
    .section-head h2 { font-size: 26px; }
    .section-head p { font-size: 14px; }
    .feature-card { padding: 22px 18px; }
    .f-icon { width: 52px; height: 52px; font-size: 26px; }

    .showcase { padding: 40px 16px; }
    .showcase-inner img { border-radius: 14px; }

    .pricing { padding: 60px 16px; }
    .plan-card { padding: 28px 20px; }
    .plan-price { font-size: 32px; }

    .cta { padding: 50px 16px; }
    .cta-inner { padding: 36px 20px; border-radius: 18px; }
    .cta-inner h2 { font-size: 26px; }

    .l-footer-inner { padding: 44px 20px; gap: 36px; }

    .topbar { padding: 14px 16px; flex-wrap: wrap; }
    .page-title { font-size: 16px; }
    .topbar-right { gap: 10px; }
    .badge-live { padding: 5px 10px; font-size: 11px; }
    .lang-btn { padding: 5px 10px; font-size: 11px; }

    .content { padding: 16px; gap: 20px; }
    .card { padding: 20px 16px; }
    .stat-card { padding: 16px 18px; gap: 12px; }
    .stat-icon { width: 42px; height: 42px; font-size: 19px; }
    .stat-meta b { font-size: 22px; }
    .card-head { margin-bottom: 16px; }
    .table th, .table td { padding: 11px 12px; }

    .user-hero { padding: 22px 18px; }
    .user-hero h2 { font-size: 20px; }

    .detail-actions, .detail-sub { gap: 8px; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .filters { width: 100%; }
    .filters .input, .filters .select { width: 100%; min-width: 0; }
    .inline-form .input { width: 100%; max-width: none; }

    .key-box { font-size: 12.5px; padding: 12px 14px; word-break: break-all; }
    .key-row .key-box { max-width: 100%; }

    .mini-stats { flex-direction: column; gap: 10px; }
    .pagination { flex-wrap: wrap; gap: 10px; }

    .ticket-chat-panel { height: 72vh; }
    .chat-input-form { flex-direction: column; }
    .send-btn { width: 100%; padding: 12px; }

    .bl-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .req-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .req-action { margin-left: 0; }
    .hwid-display { flex-direction: column; align-items: flex-start; gap: 4px; }

    .grid-2 { grid-template-columns: 1fr; }
    .cmd-blocks-grid { grid-template-columns: 1fr; }

    .form-submit-row { align-items: stretch; }
    .form-submit-row .btn { width: 100%; }
    .glow-submit { padding: 14px 20px; }

    .alert-warning-box { padding: 14px 16px; gap: 12px; }
    .form-step { flex-direction: column; gap: 10px; }
    .field-row { grid-template-columns: 1fr; }
    .dark-card { padding: 20px 16px; }

    .auth-wrap { width: 96%; }
    .auth-card { padding: 36px 20px; }
    .auth-title { font-size: 26px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 25px; }
    .hero-stats { gap: 16px; }
    .hero-stats b { font-size: 19px; }
    .l-brand-name { font-size: 16px; }
    .l-auth .btn { padding: 8px 12px; font-size: 12px; }
    .badge-live { display: none; }
    .user-hero .hero-cta .btn { padding: 8px 14px; font-size: 12px; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
