/* ============================================
   TCHIL.APP — Landing Page Styles
   Theme: Black & White, Modern, Minimal
   ============================================ */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #7EB4D2;
    --blue-light: #9dc8e0;
    --blue-dark: #5a96b8;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(126, 180, 210, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--blue);
    color: var(--black);
    border-color: var(--blue);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(126, 180, 210, 0.08);
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.nav-lang:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(126, 180, 210, 0.08);
}

.nav-menu-link {
    color: var(--gray-200);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu-link:hover {
    color: var(--blue);
}

.sun-glyph {
    font-size: 1.1rem;
    line-height: 1;
    color: #ffbe0b;
    text-shadow: 0 0 10px rgba(255, 190, 11, 0.45);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--white);
}

.text-accent {
    color: var(--blue);
}

/* === Hero Logo === */
.hero-logo {
    margin-bottom: 28px;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* === Hero Offer === */
.hero-offer {
    margin-bottom: 24px;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--gray-200);
    line-height: 1.5;
}

.offer-badge i {
    font-size: 1.1rem;
    color: var(--blue);
    flex-shrink: 0;
}

.offer-badge strong {
    color: var(--blue);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--blue);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* === Section Base === */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(126, 180, 210, 0.04);
    border-color: rgba(126, 180, 210, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 180, 210, 0.08);
    border: 1px solid rgba(126, 180, 210, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--blue);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
    background: var(--gray-950);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(126, 180, 210, 0.3);
    line-height: 1;
    min-width: 80px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* === Pro Section === */
.pro-section {
    background: var(--black);
}

.pro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.pro-content .section-tag {
    margin-bottom: 20px;
}

.pro-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.pro-content .section-desc {
    text-align: left;
    margin: 0 0 32px 0;
    max-width: none;
}

.pro-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--gray-300);
}

.pro-benefits li i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(126, 180, 210, 0.12);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--blue);
}

/* === Pro Form === */
.pro-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.pro-form h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.pro-form > p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(126, 180, 210, 0.4);
    background: rgba(126, 180, 210, 0.04);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23737373' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--gray-900);
    color: var(--white);
}

.pro-form .btn {
    margin-top: 8px;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === Notify Section === */
.notify-section {
    background: var(--gray-950);
    text-align: center;
}

.notify-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.notify-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--blue);
    color: var(--black);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.notify-offer-badge i {
    font-size: 1rem;
}

.notify-section .section-desc strong {
    color: var(--blue);
    font-weight: 600;
}

.notify-form {
    margin-top: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.notify-form .form-group {
    text-align: left;
}

.input-group {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition);
}

.input-group input::placeholder {
    color: var(--gray-600);
}

.input-group input:focus {
    border-color: rgba(126, 180, 210, 0.4);
    background: rgba(126, 180, 210, 0.04);
}

.notify-count {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* === Footer === */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-500);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-400);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--blue);
    color: var(--black);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 24px;
}

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

.modal {
    background: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-icon {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.modal h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal p {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal .btn {
    min-width: 160px;
    justify-content: center;
}

/* === Auto Light Mode (device preference) === */
@media (prefers-color-scheme: light) {
    body {
        background-color: #f7f7f7;
        color: #111111;
    }

    .navbar.scrolled {
        background: rgba(247, 247, 247, 0.9);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-cta,
    .nav-toggle,
    .theme-toggle,
    .nav-menu-link,
    .btn-ghost {
        border-color: rgba(0, 0, 0, 0.2);
        color: #111111;
    }

    @media (max-width: 768px) {
        .nav-actions {
            background: rgba(255, 255, 255, 0.96);
            border-color: rgba(0, 0, 0, 0.1);
        }

        .nav-menu-link {
            border-color: rgba(0, 0, 0, 0.15);
        }
    }

    .btn-primary {
        background: #111111;
        color: #ffffff;
    }

    .btn-primary:hover {
        background: #222222;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    }

    .hero,
    .pro-section,
    .footer {
        background: #f7f7f7;
    }

    .how-it-works,
    .notify-section {
        background: #efefef;
    }

    .grid-overlay {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    }

    .badge,
    .section-tag,
    .feature-card,
    .pro-form,
    .offer-badge {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
        color: #222222;
    }

    .hero-subtitle,
    .section-desc,
    .feature-card p,
    .step-content p,
    .notify-count,
    .footer-brand p,
    .footer-col a,
    .nav-menu-link,
    .stat-label,
    .form-note,
    .pro-form > p {
        color: #4a4a4a;
    }

    .text-outline {
        color: transparent;
        -webkit-text-stroke: 1.5px #111111;
    }

    .step {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .mouse {
        border-color: rgba(0, 0, 0, 0.3);
    }

    .form-group label,
    .footer-col h4 {
        color: #303030;
    }

    .form-group input,
    .form-group select,
    .input-group input {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.15);
        color: #111111;
    }

    .form-group select option {
        background: #ffffff;
        color: #111111;
    }

    .input-group input::placeholder,
    .form-group input::placeholder {
        color: #7a7a7a;
    }

    .notify-section .section-desc strong,
    .offer-badge strong,
    .notify-offer-badge,
    .feature-icon,
    .pro-benefits li i {
        color: var(--blue-dark);
    }

    .notify-offer-badge {
        background: rgba(126, 180, 210, 0.2);
    }

    .footer {
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .footer-bottom {
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    .social-icons a {
        border-color: rgba(0, 0, 0, 0.15);
        color: #333333;
    }

    .modal {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.1);
    }

    .modal h3 {
        color: #111111;
    }

    .modal p {
        color: #4a4a4a;
    }
}

/* === Manual Light Mode === */
html[data-theme="light"] body {
    background-color: #f7f7f7;
    color: #111111;
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(247, 247, 247, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .nav-cta,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-lang,
html[data-theme="light"] .btn-ghost {
    border-color: rgba(0, 0, 0, 0.2);
    color: #111111;
}

html[data-theme="light"] .btn-primary {
    background: #111111;
    color: #ffffff;
}

html[data-theme="light"] .btn-primary:hover {
    background: #222222;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .pro-section,
html[data-theme="light"] .footer {
    background: #f7f7f7;
}

html[data-theme="light"] .how-it-works,
html[data-theme="light"] .notify-section {
    background: #efefef;
}

html[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .badge,
html[data-theme="light"] .section-tag,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .pro-form,
html[data-theme="light"] .offer-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #222222;
}

html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .section-desc,
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .step-content p,
html[data-theme="light"] .notify-count,
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-col a,
html[data-theme="light"] .nav-menu-link,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .form-note,
html[data-theme="light"] .pro-form > p {
    color: #4a4a4a;
}

html[data-theme="light"] .text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px #111111;
}

html[data-theme="light"] .step {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .mouse {
    border-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .form-group label,
html[data-theme="light"] .footer-col h4 {
    color: #303030;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .input-group input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

html[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #111111;
}

html[data-theme="light"] .input-group input::placeholder,
html[data-theme="light"] .form-group input::placeholder {
    color: #7a7a7a;
}

html[data-theme="light"] .notify-section .section-desc strong,
html[data-theme="light"] .offer-badge strong,
html[data-theme="light"] .notify-offer-badge,
html[data-theme="light"] .feature-icon,
html[data-theme="light"] .pro-benefits li i {
    color: var(--blue-dark);
}

html[data-theme="light"] .notify-offer-badge {
    background: rgba(126, 180, 210, 0.2);
}

html[data-theme="light"] .footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .social-icons a {
    border-color: rgba(0, 0, 0, 0.15);
    color: #333333;
}

html[data-theme="light"] .modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .modal h3 {
    color: #111111;
}

html[data-theme="light"] .modal p {
    color: #4a4a4a;
}

/* === Manual Dark Mode (override system light) === */
html[data-theme="dark"] body {
    background-color: var(--black);
    color: var(--white);
}

html[data-theme="dark"] .navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-lang,
html[data-theme="dark"] .btn-ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

html[data-theme="dark"] .btn-primary {
    background: var(--white);
    color: var(--black);
}

html[data-theme="dark"] .btn-primary:hover {
    background: var(--gray-200);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .pro-section,
html[data-theme="dark"] .footer {
    background: var(--black);
}

html[data-theme="dark"] .how-it-works,
html[data-theme="dark"] .notify-section {
    background: var(--gray-950);
}

html[data-theme="dark"] .grid-overlay {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .section-tag,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .pro-form,
html[data-theme="dark"] .offer-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .step-content p,
html[data-theme="dark"] .notify-count,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-col a,
html[data-theme="dark"] .nav-menu-link,
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .form-note,
html[data-theme="dark"] .pro-form > p {
    color: var(--gray-400);
}

html[data-theme="dark"] .text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--white);
}

html[data-theme="dark"] .step {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .mouse {
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .footer-col h4 {
    color: var(--gray-300);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .input-group input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

html[data-theme="dark"] .form-group select option {
    background: var(--gray-900);
    color: var(--white);
}

html[data-theme="dark"] .input-group input::placeholder,
html[data-theme="dark"] .form-group input::placeholder {
    color: var(--gray-600);
}

html[data-theme="dark"] .notify-section .section-desc strong,
html[data-theme="dark"] .offer-badge strong,
html[data-theme="dark"] .notify-offer-badge,
html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .pro-benefits li i {
    color: var(--blue);
}

html[data-theme="dark"] .notify-offer-badge {
    background: var(--blue);
}

html[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .social-icons a {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

html[data-theme="dark"] .modal {
    background: var(--gray-900);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .modal h3 {
    color: var(--white);
}

html[data-theme="dark"] .modal p {
    color: var(--gray-400);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        width: 38px;
        height: 38px;
        order: 3;
        margin-left: 12px;
    }

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

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: var(--transition);
    }

    .navbar.menu-open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu .nav-menu-link,
    .nav-menu .nav-cta,
    .nav-menu .btn-ghost,
    .nav-menu .btn-primary {
        width: 100%;
        min-width: 100%;
        height: 42px;
        justify-content: center;
        padding: 0 16px;
        border-radius: 12px;
    }

    .theme-toggle,
    .nav-lang {
        width: 38px;
        min-width: 38px;
        height: 38px;
        border-radius: 999px;
        padding: 0;
    }

    .nav-menu .nav-lang {
        font-size: 0.86rem;
    }

    .nav-menu-link,
    .nav-cta,
    .theme-toggle,
    .nav-lang {
        justify-content: center;
    }

    .nav-menu .nav-menu-link {
        font-size: 0.92rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-menu-link,
    .nav-cta,
    .theme-toggle,
    .nav-lang {
        flex-shrink: 0;
    }

    .navbar {
        overflow: visible;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-logo-img {
        height: 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 48px;
    }

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

    .hero-stats {
        gap: 24px;
    }

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

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

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

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

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

    .pro-form {
        padding: 28px 24px;
    }

    html[data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(0, 0, 0, 0.1);
    }

    html[data-theme="light"] .nav-menu .nav-menu-link {
        border-color: rgba(0, 0, 0, 0.15);
    }

    html[data-theme="dark"] .nav-menu {
        background: rgba(0, 0, 0, 0.94);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* === Auth & Member Pages === */
.auth-page,
.member-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card,
.member-card {
    width: 100%;
    max-width: 980px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
}

.auth-card h1,
.member-header h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.auth-card > p {
    color: var(--gray-400);
    margin-bottom: 4px;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 14px;
}

.auth-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--gray-200);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tabs button.active,
.auth-tabs button:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(126, 180, 210, 0.08);
}

@media (prefers-color-scheme: light) {
    .auth-card,
    .member-card {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.12);
    }

    .auth-card h1,
    .member-header h1 {
        color: #111111;
    }

    .auth-card > p {
        color: #4a4a4a;
    }

    .auth-tabs button {
        color: #111111;
        border-color: rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 0.7);
    }

    .auth-tabs button.active,
    .auth-tabs button:hover {
        color: var(--blue-dark);
        border-color: rgba(90, 150, 184, 0.5);
        background: rgba(126, 180, 210, 0.16);
    }

    .auth-panel label {
        color: #303030;
    }

    .auth-panel input,
    .auth-panel select {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.15);
        color: #111111;
        -webkit-text-fill-color: #111111;
        caret-color: #111111;
    }

    .auth-panel select option {
        background: #ffffff;
        color: #111111;
    }

    .admin-tab {
        color: #111111;
        border-color: rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 0.7);
    }

    .admin-tab.active,
    .admin-tab:hover {
        color: var(--blue-dark);
        border-color: rgba(90, 150, 184, 0.5);
        background: rgba(126, 180, 210, 0.16);
    }

    .admin-kpi,
    .member-panel {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.12);
    }

    .admin-role-fields {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.12);
    }

    .member-photo-item {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.15);
        color: #222222;
    }

    .admin-kpi h3,
    .chart-box h3,
    .admin-subtitle,
    .admin-role-fields h4,
    .admin-table th,
    .admin-table td {
        color: #222222;
    }
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-panel form,
.member-form,
#referralApplyForm {
    display: grid;
    gap: 10px;
}

.auth-panel label {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.auth-panel input,
.auth-panel select,
.member-form input,
#referralApplyForm input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
}

.auth-panel input::placeholder,
.member-form input::placeholder,
#referralApplyForm input::placeholder {
    color: var(--gray-500);
}

html[data-theme="light"] .auth-card,
html[data-theme="light"] .member-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .auth-card h1,
html[data-theme="light"] .member-header h1 {
    color: #111111;
}

html[data-theme="light"] .auth-card > p {
    color: #4a4a4a;
}

html[data-theme="light"] .auth-tabs button {
    color: #111111;
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .auth-tabs button.active,
html[data-theme="light"] .auth-tabs button:hover {
    color: var(--blue-dark);
    border-color: rgba(90, 150, 184, 0.5);
    background: rgba(126, 180, 210, 0.16);
}

html[data-theme="light"] .auth-panel label {
    color: #303030;
}

html[data-theme="light"] .auth-panel input,
html[data-theme="light"] .auth-panel select {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
    -webkit-text-fill-color: #111111;
    caret-color: #111111;
}

html[data-theme="light"] .auth-panel select option {
    background: #ffffff;
    color: #111111;
}

html[data-theme="light"] .admin-tab {
    color: #111111;
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .admin-tab.active,
html[data-theme="light"] .admin-tab:hover {
    color: var(--blue-dark);
    border-color: rgba(90, 150, 184, 0.5);
    background: rgba(126, 180, 210, 0.16);
}

html[data-theme="light"] .admin-kpi,
html[data-theme="light"] .member-panel {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .admin-role-fields {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .member-photo-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #222222;
}

html[data-theme="light"] .member-social-card {
    background: linear-gradient(180deg, rgba(126, 180, 210, 0.24) 0%, rgba(0, 0, 0, 0.03) 45%, rgba(0, 0, 0, 0.03) 100%);
}

html[data-theme="light"] .member-social-hero {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .member-social-points p {
    color: #5a5a5a;
}

html[data-theme="light"] .member-status-line {
    color: #222222;
}

html[data-theme="light"] .member-form textarea,
html[data-theme="light"] .feed-post {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

html[data-theme="light"] .member-form input[type="file"] {
    border-color: rgba(90, 150, 184, 0.5);
    background: rgba(126, 180, 210, 0.16);
}

html[data-theme="light"] .member-form input[type="file"]::file-selector-button {
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
}

html[data-theme="light"] .member-topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .member-topbar-search input {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
    color: #111111;
}

html[data-theme="light"] .search-results-dropdown {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .composer-tool-btn {
    border-color: rgba(90, 150, 184, 0.5);
    background: rgba(126, 180, 210, 0.14);
}

html[data-theme="light"] .feed-post-head p {
    color: #5a5a5a;
}

html[data-theme="light"] .search-result-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .member-search-panel {
    border-color: rgba(90, 150, 184, 0.35);
    background: rgba(126, 180, 210, 0.14);
}

html[data-theme="light"] .public-profile-hero {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .public-profile-avatar {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .public-status-pill {
    border-color: rgba(90, 150, 184, 0.45);
    background: rgba(126, 180, 210, 0.18);
    color: var(--blue-dark);
}

html[data-theme="light"] .public-status-edit-btn {
    border-color: rgba(90, 150, 184, 0.55);
    background: rgba(126, 180, 210, 0.26);
    color: var(--blue-dark);
}

html[data-theme="light"] .search-result-item p {
    color: #5a5a5a;
}

html[data-theme="light"] .btn-like-post.active {
    color: #d83f63;
    border-color: rgba(216, 63, 99, 0.45);
    background: rgba(216, 63, 99, 0.14);
}

html[data-theme="light"] .admin-kpi h3,
html[data-theme="light"] .chart-box h3,
html[data-theme="light"] .admin-subtitle,
html[data-theme="light"] .admin-role-fields h4,
html[data-theme="light"] .admin-table th,
html[data-theme="light"] .admin-table td {
    color: #222222;
}

/* Keep typed text visible with browser autofill */
.auth-panel input:-webkit-autofill,
.auth-panel input:-webkit-autofill:hover,
.auth-panel input:-webkit-autofill:focus,
.member-form input:-webkit-autofill,
.member-form input:-webkit-autofill:hover,
.member-form input:-webkit-autofill:focus,
#referralApplyForm input:-webkit-autofill,
#referralApplyForm input:-webkit-autofill:hover,
#referralApplyForm input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.03) inset;
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
    transition: background-color 9999s ease-out 0s;
}

@media (prefers-color-scheme: light) {
    .auth-panel input:-webkit-autofill,
    .auth-panel input:-webkit-autofill:hover,
    .auth-panel input:-webkit-autofill:focus,
    .member-form input:-webkit-autofill,
    .member-form input:-webkit-autofill:hover,
    .member-form input:-webkit-autofill:focus,
    #referralApplyForm input:-webkit-autofill,
    #referralApplyForm input:-webkit-autofill:hover,
    #referralApplyForm input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.03) inset;
        -webkit-text-fill-color: #111111;
        caret-color: #111111;
    }
}

html[data-theme="light"] .auth-panel input:-webkit-autofill,
html[data-theme="light"] .auth-panel input:-webkit-autofill:hover,
html[data-theme="light"] .auth-panel input:-webkit-autofill:focus,
html[data-theme="light"] .member-form input:-webkit-autofill,
html[data-theme="light"] .member-form input:-webkit-autofill:hover,
html[data-theme="light"] .member-form input:-webkit-autofill:focus,
html[data-theme="light"] #referralApplyForm input:-webkit-autofill,
html[data-theme="light"] #referralApplyForm input:-webkit-autofill:hover,
html[data-theme="light"] #referralApplyForm input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.03) inset;
    -webkit-text-fill-color: #111111;
    caret-color: #111111;
}

.auth-message,
.member-message {
    min-height: 22px;
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: var(--gray-300);
}

.auth-message.success,
.member-message.success {
    color: #62d18b;
}

.auth-message.error,
.member-message.error {
    color: #ff8d8d;
}

.member-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.member-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.member-has-topbar .member-page {
    padding-top: 98px;
}

.member-topbar-logo {
    display: inline-flex;
    align-items: center;
}

.member-topbar .logo-img {
    height: 28px;
}

.member-topbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: none;
}

.member-topbar-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.member-topbar-search .btn {
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    padding: 0;
    justify-content: center;
}

.member-header-search-results {
    margin-bottom: 14px;
}

.search-results-dropdown {
    position: fixed;
    top: 62px;
    left: 92px;
    right: 20px;
    z-index: 1300;
    max-height: 56vh;
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.member-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.member-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
}

.member-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.member-panel h2 i {
    color: var(--blue);
}

.member-inline-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.member-note {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.member-status-line {
    color: var(--gray-200);
    font-size: 0.92rem;
}

.member-photo-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.member-photo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 120px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--gray-200);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    overflow: hidden;
    cursor: pointer;
}

.member-photo-item:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.image-viewer-dialog {
    position: relative;
    width: min(94vw, 880px);
    max-height: 90vh;
    display: grid;
    place-items: center;
    padding-top: 36px;
}

.image-viewer-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.image-viewer-img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 12px;
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-social-page .member-page {
    align-items: flex-start;
    padding-top: 40px;
}

.member-social-card {
    max-width: 1060px;
    background: linear-gradient(180deg, rgba(126, 180, 210, 0.12) 0%, rgba(255, 255, 255, 0.03) 36%, rgba(255, 255, 255, 0.02) 100%);
}

.member-social-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}

.member-social-avatar {
    width: 64px;
    height: 64px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(126, 180, 210, 0.9), rgba(126, 180, 210, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #061018;
    cursor: pointer;
}

.member-social-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-social-meta h2 {
    margin-bottom: 6px;
}

.member-social-points {
    text-align: right;
}

.member-social-points p {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.member-social-points strong {
    font-size: 1.7rem;
    line-height: 1;
}

.member-avatar-edit {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.member-avatar-edit-overlay {
    position: absolute;
    right: -2px;
    bottom: -2px;
    margin-top: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.member-social-avatar:hover .member-avatar-edit-overlay,
.member-social-avatar:focus-within .member-avatar-edit-overlay {
    opacity: 1;
    transform: scale(1);
}

.cropper-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cropper-dialog {
    width: min(92vw, 420px);
    background: rgba(16, 16, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px;
}

.cropper-dialog h3 {
    margin: 0 0 6px;
}

.cropper-dialog p {
    margin: 0 0 10px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.cropper-canvas {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: block;
    margin: 0 auto 12px;
    cursor: grab;
    touch-action: none;
}

.cropper-canvas:active {
    cursor: grabbing;
}

.cropper-zoom-label {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
}

.cropper-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

html[data-theme="light"] .cropper-dialog {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .cropper-dialog p {
    color: #555;
}

.member-social-layout {
    grid-template-columns: 1fr 1fr;
}

.member-social-panel {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
}

.member-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    resize: vertical;
    min-height: 88px;
}

.member-form input[type="file"] {
    border: 1px dashed rgba(126, 180, 210, 0.45);
    background: rgba(126, 180, 210, 0.08);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.member-form input[type="file"]::file-selector-button {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 8px 10px;
    border-radius: 8px;
    margin-right: 10px;
    cursor: pointer;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.composer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
}

.composer-tool-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border-color: rgba(126, 180, 210, 0.35);
    background: rgba(126, 180, 210, 0.08);
}

.composer-tool-btn:hover {
    border-color: var(--blue);
    background: rgba(126, 180, 210, 0.16);
}

.news-feed {
    display: grid;
    gap: 10px;
}

.feed-post {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feed-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-post-actions .btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.feed-post:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 180, 210, 0.35);
}

.feed-post-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.feed-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(126, 180, 210, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.feed-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-post-head h4 {
    margin: 0;
    font-size: 0.95rem;
}

.feed-post-head p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.feed-post-status {
    margin: 0 0 8px;
    font-size: 0.86rem;
    color: var(--blue);
}

.feed-post-content {
    margin: 0 0 10px;
    white-space: pre-wrap;
}

.feed-post-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-post-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.btn-like-post {
    border-radius: 999px;
    gap: 8px;
}

.btn-like-post.active {
    color: #ff5a7a;
    border-color: rgba(255, 90, 122, 0.45);
    background: rgba(255, 90, 122, 0.12);
}

.search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.member-search-panel {
    border-color: rgba(126, 180, 210, 0.25);
    background: rgba(126, 180, 210, 0.06);
}

.search-result-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 180, 210, 0.35);
}

.search-result-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(126, 180, 210, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item h4 {
    margin: 0;
    font-size: 0.95rem;
}

.search-result-item p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray-400);
}

.btn i {
    font-size: 0.9em;
}

.public-profile-card {
    max-width: 980px;
}

.public-profile-hero {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.public-profile-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.public-profile-avatar {
    width: 86px;
    height: 86px;
    border: 3px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.public-profile-meta h2 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.public-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 7px 12px;
    border: 1px solid rgba(126, 180, 210, 0.35);
    border-radius: 999px;
    background: rgba(126, 180, 210, 0.1);
    color: var(--blue);
}

.public-status-editable {
    position: relative;
    padding-right: 36px;
}

.public-status-edit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(126, 180, 210, 0.4);
    background: rgba(126, 180, 210, 0.18);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.public-status-editable:hover .public-status-edit-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.public-status-form {
    margin: 8px 0 6px;
}

.public-profile-since {
    text-align: right;
}

.public-gallery-panel .member-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.public-gallery-panel .member-photo-item {
    min-height: 140px;
}

.public-posts-panel .feed-post {
    border-radius: 14px;
    padding: 14px;
}

.public-posts-panel .feed-post-content {
    font-size: 0.98rem;
    line-height: 1.7;
}

.admin-page {
    width: 100%;
}

.admin-card {
    width: 100%;
    max-width: 1200px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-tab {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gray-200);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab.active,
.admin-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(126, 180, 210, 0.08);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: grid;
    gap: 14px;
}

.admin-moderation-grid {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.admin-moderation-card {
    display: grid;
    grid-template-columns: minmax(0, 140px) 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.admin-moderation-thumb {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    aspect-ratio: 1 / 1;
    max-width: 140px;
    background: rgba(0, 0, 0, 0.35);
}

.admin-moderation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-moderation-body p {
    margin: 0 0 6px;
    font-size: 0.9rem;
}

.admin-moderation-snippet {
    font-size: 0.85rem;
    color: var(--gray-400);
    white-space: pre-wrap;
    max-height: 4.5em;
    overflow: hidden;
}

.admin-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-moderation-body code {
    font-size: 0.75rem;
    word-break: break-all;
}

html[data-theme="light"] .admin-moderation-card {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .admin-moderation-thumb {
    border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .admin-moderation-card {
        grid-template-columns: 1fr;
    }

    .admin-moderation-thumb {
        max-width: 100%;
    }
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-kpi {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-kpi h3 {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.admin-kpi p {
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-subtitle {
    margin: 16px 0 10px;
    font-size: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
    margin-top: 14px;
}

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

.chart-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--white);
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    font-size: 0.9rem;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
    color: var(--gray-300);
    font-weight: 700;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
}

.admin-profile-modal {
    max-width: 640px;
}

.admin-role-fields {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-role-fields h4 {
    margin-bottom: 8px;
    color: var(--gray-300);
    font-size: 0.95rem;
}

#userSearch {
    width: 320px;
    max-width: 100%;
}

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

    .member-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .member-topbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .member-topbar .logo-img {
        height: 24px;
    }

    .member-topbar-search {
        width: 100%;
    }

    .search-results-dropdown {
        top: 58px;
        left: 12px;
        right: 12px;
    }

    .member-has-topbar .member-page {
        padding-top: 86px;
    }

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

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

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-photo-grid {
        grid-template-columns: 1fr;
    }

    .member-social-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .member-social-avatar {
        margin: 0 auto;
    }

    .member-social-points {
        text-align: center;
    }

    .member-social-layout {
        grid-template-columns: 1fr;
    }

    .public-profile-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 14px;
    }

    .public-profile-avatar {
        margin: 0 auto;
    }

    .public-profile-since {
        text-align: center;
    }

    .public-gallery-panel .member-photo-grid {
        grid-template-columns: 1fr 1fr;
    }
}
