/*
    Veralia Premium Design System v5.0
    Theme: Fluid Organic Glassmorphism
    "Here Today. Gone Tomorrow."
    100% Vanilla CSS — Zero Tailwind Dependencies
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand Colors */
    --primary:        #6366f1;
    --primary-light:  #818cf8;
    --primary-dark:   #4f46e5;
    --primary-glow:   rgba(99, 102, 241, 0.15);

    --accent:         #f43f5e;
    --accent-glow:    rgba(244, 63, 94, 0.10);

    /* Semantic */
    --success:        #10b981;
    --success-bg:     rgba(16, 185, 129, 0.08);
    --success-border: rgba(16, 185, 129, 0.20);

    --warning:        #f59e0b;
    --warning-bg:     rgba(245, 158, 11, 0.08);
    --warning-border: rgba(245, 158, 11, 0.20);

    --error:          #ef4444;
    --error-bg:       rgba(239, 68, 68, 0.08);
    --error-border:   rgba(239, 68, 68, 0.20);

    /* Backgrounds */
    --bg:             #030712;
    --bg-alt:         #080d1a;

    /* Cards */
    --card:           rgba(10, 15, 28, 0.80);
    --card-hover:     rgba(14, 21, 40, 0.90);
    --card-border:    rgba(255, 255, 255, 0.045);
    --card-border-hover: rgba(99, 102, 241, 0.30);

    /* Text */
    --text-main:      #f8fafc;
    --text-muted:     #94a3b8;
    --text-dim:       #64748b;

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.18);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.28);
    --shadow-lg:   0 24px 48px rgba(0,0,0,0.50);
    --shadow-indigo: 0 12px 30px -8px rgba(99,102,241,0.32);

    /* Border Radii */
    --radius-sm:   10px;
    --radius-md:   18px;
    --radius-lg:   28px;
    --radius-xl:   32px;
    --radius-full: 9999px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(99,102,241,0.07) 0%, transparent 50%),
        radial-gradient(circle at 88% 90%, rgba(244,63,94,0.05) 0%, transparent 50%),
        linear-gradient(180deg, #030712 0%, #06090f 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.2;
}

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

a { color: inherit; }

button { font-family: inherit; }

textarea, input, select {
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   AMBIENT BACKGROUND BLOBS
   ============================================================ */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.06;
    pointer-events: none;
    animation: floatBlob 28s infinite alternate ease-in-out;
}

.blob-1 {
    background: var(--primary);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.blob-2 {
    background: var(--accent);
    bottom: -15%;
    left: -10%;
    animation-delay: -8s;
}

@keyframes floatBlob {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(4%, 6%) scale(1.06); }
    100% { transform: translate(-4%, -4%) scale(0.94); }
}

/* ============================================================
   BRAND
   ============================================================ */
.brand-glow {
    background: linear-gradient(135deg, #ffffff 10%, var(--primary-light) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(99,102,241,0.40));
    letter-spacing: -0.04em;
}

.brand-logo-svg {
    display: block;
    filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
}

/* ============================================================
   FLOATING GLASS NAVIGATION
   ============================================================ */
.glass-nav {
    position: sticky;
    top: 1.25rem;
    max-width: 1100px;
    margin: 1.25rem auto;
    z-index: 100;
    background: rgba(8, 12, 24, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.55);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-nav:hover {
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 24px 55px -12px rgba(99,102,241,0.14);
}

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

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-link .brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.nav-link:hover { color: #ffffff; }

.nav-link-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-link-logout:hover { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-indigo);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 10px 30px -5px rgba(99,102,241,0.45);
    border-color: rgba(255,255,255,0.14);
}

.btn-primary:active { opacity: 0.92; }

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-secondary-glass {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary-glass:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border-color: rgba(255,255,255,0.12);
}

/* ============================================================
   CARDS
   ============================================================ */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    background: var(--card-hover);
    box-shadow: 0 28px 56px -12px rgba(0,0,0,0.58), 0 0 40px rgba(99,102,241,0.04);
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.glass-input {
    background: rgba(3,7,18,0.55);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: #ffffff;
    width: 100%;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    outline: none;
}

.glass-input:focus {
    border-color: var(--primary-light);
    background: rgba(3,7,18,0.75);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.16);
}

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

.glass-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-emerald {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-amber {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-red {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.badge-indigo {
    background: rgba(99,102,241,0.08);
    color: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.20);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-fade-in-up {
    animation: fadeInUp 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ping {
    0%       { transform: scale(1); opacity: 1; }
    75%, 100%{ transform: scale(2.2); opacity: 0; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

.animate-spin {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

.animate-shake { animation: shake 0.3s ease-in-out; }

/* Poof dissolve — used by demo chat */
.poof-animation {
    animation: poofOut 1.1s cubic-bezier(0.7,0,0.3,1) forwards;
    transform-origin: center;
}

@keyframes poofOut {
    0%   { transform: scale(1);    filter: blur(0);   opacity: 1; }
    30%  { transform: scale(1.04); filter: blur(2px);  opacity: 0.8; }
    100% { transform: scale(0.75); filter: blur(20px); opacity: 0; }
}

/* ============================================================
   ONLINE DOT
   ============================================================ */
.chat-online-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
    flex-shrink: 0;
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
main.animate-fade-in-up {
    padding-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    text-align: center;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    margin-top: 6rem;
}

.app-footer-text-primary {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.app-footer-text-secondary {
    font-size: 0.75rem;
    color: var(--text-dim);
    max-width: 440px;
    margin: 0 auto 1.25rem auto;
}

.app-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.app-footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}

.app-footer-link:hover { color: var(--primary-light); }

/* ============================================================
   LANDING PAGE — HERO
   ============================================================ */
.hero-section {
    max-width: 1100px;
    margin: 3.5rem auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

@media (min-width: 1024px) {
    .hero-section {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
}

.hero-content {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
}

@media (max-width: 767px) {
    .hero-content {
        align-items: center;
        text-align: center;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.6rem; }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 490px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.hero-action-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-action-secondary {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.hero-action-secondary:hover { color: var(--primary-light); }

.hero-preview {
    flex: 0.9;
    width: 100%;
    max-width: 480px;
}

/* ============================================================
   LANDING PAGE — CHAT DEMO WIDGET
   ============================================================ */
.chat-widget {
    padding: 1.75rem;
}

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

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-room-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.chat-room-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.chat-messages {
    height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.25rem;
}

.chat-message-item {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
}

.chat-message-item.self {
    border-left: 2px solid var(--primary);
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chat-message-author {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
}

.chat-message-text { color: #ffffff; font-size: 0.875rem; }

.chat-message-countdown {
    font-family: monospace;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(99,102,241,0.1);
    color: var(--primary-light);
    flex-shrink: 0;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.chat-input {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.chat-submit {
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ============================================================
   LANDING PAGE — FEATURES
   ============================================================ */
.features-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 3.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.features-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 3.5rem auto;
}

.features-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}

.features-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    color: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    transition: background 0.3s, border-color 0.3s;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.feature-card:nth-child(3) .feature-icon-wrapper {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   AUTH PAGES — LOGIN & VERIFY
   ============================================================ */
.form-container {
    max-width: 440px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58vh;
}

.form-card {
    width: 100%;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Ambient glow inside form card */
.form-card::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.form-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.form-error {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--error);
    text-align: center;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    padding: 0.85rem 1rem;
    border-radius: 14px;
}

.form-footer-tip {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
}

.form-footer-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-footer-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.form-footer-link:hover { color: var(--primary-light); }

.form-footer-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 700;
    transition: color 0.2s;
}

.form-footer-btn:hover { color: #ffffff; }

.form-footer-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ============================================================
   OTP VAULT GRID (verify.html)
   ============================================================ */
.otp-grid {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.otp-vault-input {
    width: 2.2rem;
    height: 3.1rem;
    background: rgba(3,7,18,0.65);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    font-family: 'Outfit', monospace;
}

.otp-vault-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.22);
    background: rgba(3,7,18,0.85);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.dashboard-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-title {
    font-size: 2.25rem;
    color: #ffffff;
}

.dashboard-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.dashboard-action {
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .community-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Community Card */
.community-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.community-card:hover {
    border-color: var(--card-border-hover);
    background: var(--card-hover);
    box-shadow: var(--shadow-lg);
}

.community-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.85rem;
}

.community-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    user-select: none;
}

.community-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-slug {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #ffffff;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.card-actions {
    display: flex;
    gap: 0.65rem;
}

.card-btn-enter {
    flex: 1;
    padding: 0.75rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
}

.card-btn-invite {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 14px;
    padding: 0;
}

/* Skeleton Loading Cards */
.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

.skeleton-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.45;
}

.skeleton-line {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

/* Empty State */
.dashboard-empty-state {
    padding: 5rem 2rem;
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px dashed rgba(255,255,255,0.06);
    background: rgba(10,15,28,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-empty-bubble {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: rgba(99,102,241,0.05);
    border: 1px solid rgba(99,102,241,0.12);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-empty-title {
    font-size: 1.55rem;
    color: #ffffff;
}

.dashboard-empty-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6); /* Plain color, light enough to see background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-content {
    background: rgba(10,15,28,0.97);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.08);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover { color: #ffffff; }

.modal-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.20);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-light);
}

.modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ============================================================
   CHAT ROOM PAGE
   ============================================================ */
/* ============================================================
   CHAT ROOM PAGE
   ============================================================ */
.room-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    height: 100dvh; /* dynamic height to respect keyboard and mobile browser search bars */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile Header (only visible under 768px) */
.mobile-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    background: rgba(6, 10, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

@media (min-width: 768px) {
    .mobile-room-header {
        display: none !important;
    }
}

.mobile-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-room-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-info-btn {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.75rem !important;
    border-radius: 9999px !important;
}

/* Sidebar Backdrop Overlay on Mobile */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
}

/* Expiry Warning Banner */
.room-expiry-banner {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    z-index: 9;
}

.room-expiry-banner.warning {
    background: var(--warning-bg);
    border-top: 1px solid var(--warning-border);
    border-bottom: 1px solid var(--warning-border);
    color: var(--warning);
}

.room-expiry-banner.readonly {
    background: var(--error-bg);
    border-top: 1px solid var(--error-border);
    border-bottom: 1px solid var(--error-border);
    color: var(--error);
}

.room-expiry-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.room-expiry-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

/* Grid layout for sidebar + chat */
.room-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .room-grid {
        display: grid;
        grid-template-columns: 290px 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    }
}

/* Sidebar */
.room-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .room-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        z-index: 1000;
        padding: 2.25rem 1.25rem 1.5rem 1.25rem;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
        max-height: 80vh;
        box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
    }
    
    .room-sidebar.active {
        transform: translateY(0);
        visibility: visible;
    }
}

.sidebar-drag-handle {
    display: none;
}

@media (max-width: 767px) {
    .sidebar-drag-handle {
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 99px;
        background: rgba(255, 255, 255, 0.25);
        position: sticky;
        top: -1.25rem;
        margin: 0 auto 1.5rem auto;
        cursor: pointer;
        z-index: 1010;
        flex-shrink: 0;
    }
}

.room-sidebar-card {
    padding: 1.5rem;
}

.room-sidebar-section-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: rgba(129,140,248,0.65);
    display: block;
    margin-bottom: 0.35rem;
}

.room-space-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-space-slug {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: monospace;
    margin-top: 0.2rem;
    user-select: all;
}

.room-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 0;
}

.room-time-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    display: block;
}

.room-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.room-sidebar-btn-invite {
    width: 100%;
    padding: 0.75rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 700;
}

.room-sidebar-btn-invite img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.room-sidebar-btn-back {
    width: 100%;
    padding: 0.75rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    text-align: center;
}

/* Members List */
.room-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.room-members-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-dim);
}

.room-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.025);
}

.member-avatar-mini {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.member-online-status {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success), 0 0 4px var(--success);
    margin-left: auto;
    flex-shrink: 0;
    animation: pulse 2.2s infinite;
}

.member-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Feed */
.room-chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.room-chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (max-width: 767px) {
    .room-chat-card {
        border-radius: 0;
        border: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.75rem;
        box-shadow: none;
    }
    .chat-messages-spacer {
        flex: 1 1 auto;
        margin-top: auto;
    }
    .message-bubble-wrapper {
        max-width: calc(100% - 3rem) !important;
    }
    .message-body {
        padding: 0.65rem 0.9rem !important;
        font-size: 0.85rem !important;
    }
}

.room-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 0.25rem 1.25rem 0;
    margin-bottom: 1rem;
}

.room-init-label {
    text-align: center;
    padding: 0.75rem 0 0.5rem;
}

.room-init-text {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
}

/* Message Bubbles Layout */
.message-row {
    display: flex;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 0.25rem;
    align-items: flex-start;
}

.message-row.self {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    margin-top: 1.1rem;
    background-size: cover;
    background-position: center;
    user-select: none;
}

.message-bubble-wrapper {
    display: flex;
    flex-direction: column;
    max-width: calc(85% - 3rem);
    animation: fadeInUp 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

.message-bubble-wrapper.self {
    align-items: flex-end;
}

.message-bubble-wrapper.other {
    align-items: flex-start;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
    padding: 0 0.4rem;
}

.message-meta-author {
    font-size: 0.68rem;
    font-weight: 700;
}

.message-meta-author.self  { color: var(--primary-light); }
.message-meta-author.other { color: var(--text-muted); }

.message-meta-time {
    font-size: 0.62rem;
    color: var(--text-dim);
    font-family: monospace;
}

.message-body {
    padding: 0.8rem 1.1rem;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
    font-size: 0.9rem;
}

.message-body p {
    color: inherit !important;
}

.message-body.self {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.message-body.other {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-top-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.message-attachment {
    margin-top: 0.45rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 300px;
    cursor: zoom-in;
}

.message-attachment-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 240px;
    display: block;
    transition: opacity 0.2s;
}

.message-attachment-img:hover { opacity: 0.9; }

/* Chat Input Panel */
.room-input-panel {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.room-input-form {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}

.room-attach-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.room-attach-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    border-color: rgba(255,255,255,0.10);
}

.room-attach-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.room-attach-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.room-attach-btn:hover:not(:disabled) img {
    opacity: 1;
}

.room-textarea-wrap { flex: 1; }

.room-textarea {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    line-height: 1.45;
}

.room-send-btn {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-send-btn img {
    filter: brightness(0) invert(1);
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(3,7,18,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 1024px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close-btn {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lightbox-close-btn:hover { color: #ffffff; }

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   POLICY PAGES (Privacy / Terms)
   ============================================================ */
.policy-section {
    max-width: 860px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.policy-card {
    border-radius: var(--radius-xl);
    padding: 3rem;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.055);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.policy-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.policy-page-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.policy-page-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
}

.policy-page-intro {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-section-block {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 2rem;
}

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

.policy-section-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.policy-section-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.policy-section-num.indigo {
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.22);
    color: #a5b4fc;
}

.policy-section-num.green {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #34d399;
}

.policy-section-num.amber {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: #fbbf24;
}

.policy-section-num.red {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #f87171;
}

.policy-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.policy-body-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-body-text strong { color: #ffffff; }

.policy-cards-grid {
    display: grid;
    gap: 1rem;
}

.policy-sub-card {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    background: rgba(6,9,18,0.40);
}

.policy-sub-card strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.policy-sub-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(245,158,11,0.30);
}

.policy-timeline p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.policy-timeline p strong { color: #ffffff; }

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-list-bullet {
    color: var(--primary-light);
    font-weight: 700;
    line-height: 1.7;
    flex-shrink: 0;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
}

.pricing-card-diamond {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--card), var(--card)), 
                      linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.pricing-card-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-tier-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.pricing-tier-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.75rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features li .feature-check {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.pricing-features li .feature-cross {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.pricing-cta-active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    cursor: default;
}

.pricing-cta-coming-soon {
    background: var(--card);
    color: var(--text-dim);
    border: 1px solid var(--card-border);
    cursor: not-allowed;
    opacity: 0.7;
}

.pricing-cta-coming-soon:hover {
    opacity: 0.85;
}

/* ============================================================
   TIER BADGES
   ============================================================ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    vertical-align: middle;
}

.tier-badge-free {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.20);
}

.tier-badge-standard {
    background: rgba(245, 158, 11, 0.10);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tier-badge-diamond {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    animation: diamondGlow 3s ease-in-out infinite;
}

@keyframes diamondGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.30); }
}

/* ============================================================
   UPGRADE BANNER
   ============================================================ */
.upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(244, 63, 94, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.upgrade-banner span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upgrade-banner-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.upgrade-banner-link:hover {
    color: var(--primary);
}

/* ============================================================
   MEMBER CAPACITY INDICATOR
   ============================================================ */
.capacity-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* Pricing responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
    .pricing-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .pricing-section {
        padding: 2rem 1rem 4rem;
    }
    .upgrade-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
[x-cloak] { display: none !important; }

.hidden { display: none !important; }

.w-full  { width: 100%; }
.text-center { text-align: center; }

/* Icon sizes */
.icon-sm  { width: 1rem;    height: 1rem; }
.icon-md  { width: 1.25rem; height: 1.25rem; }
.icon-lg  { width: 1.5rem;  height: 1.5rem; }
.icon-xl  { width: 2rem;    height: 2rem; }
.icon-2xl { width: 2.5rem;  height: 2.5rem; }
