/* ChatFly.app - Badass Dark Theme + Hot Pink */

:root {
    /* Core Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #16161f;
    --bg-hover: #1e1e2a;

    /* Hot Pink Accent */
    --pink: #ff006e;
    --pink-light: #ff3d8f;
    --pink-dark: #cc0058;
    --pink-glow: rgba(255, 0, 110, 0.4);
    --pink-subtle: rgba(255, 0, 110, 0.1);

    /* Secondary Colors */
    --cyan: #00f5ff;
    --cyan-glow: rgba(0, 245, 255, 0.3);
    --green: #00ff88;
    --yellow: #ffea00;
    --purple: #bf00ff;

    /* Text */
    --text: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-pink: rgba(255, 0, 110, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-pink: 0 0 30px var(--pink-glow);
    --shadow-cyan: 0 0 20px var(--cyan-glow);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-med: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, var(--pink-subtle) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--pink-light);
}

/* Header */
.header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-pink);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--pink-glow); }
    50% { box-shadow: 0 0 40px var(--pink-glow), 0 0 60px var(--pink-glow); }
}

.logo-text {
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: white;
    box-shadow: 0 4px 15px var(--pink-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--pink-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--pink);
    box-shadow: 0 0 15px var(--pink-subtle);
}

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.btn-outline:hover {
    background: var(--pink);
    color: white;
    box-shadow: var(--shadow-pink);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Main Layout */
.main-container {
    display: flex;
    height: calc(100vh - 67px);
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Room List */
.room-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.room-list::-webkit-scrollbar {
    width: 6px;
}

.room-list::-webkit-scrollbar-track {
    background: transparent;
}

.room-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.room-item {
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-med);
    margin-bottom: 6px;
    border: 1px solid transparent;
    position: relative;
}

.room-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--pink);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-med);
}

.room-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-pink);
}

.room-item:hover::before {
    height: 60%;
}

.room-item.active {
    background: var(--pink-subtle);
    border-color: var(--pink);
}

.room-item.active::before {
    height: 80%;
}

.room-item.pinned {
    border-color: var(--pink);
    background: var(--pink-subtle);
}

.room-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    min-height: 0; /* Allow flex item to shrink */
    overflow: hidden; /* Prevent overflow */
}

.chat-header {
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0; /* Allow flex item to shrink */
    max-height: 100%; /* Contain within parent */
}

.message {
    max-width: 70%;
    animation: message-in 0.3s ease;
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.message-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cyan);
}

.message.own .message-author {
    color: var(--pink);
}

.message-author.admin {
    color: var(--yellow);
}

.message-author.moderator {
    color: var(--green);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-content {
    background: var(--bg-elevated);
    padding: 12px 16px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.own .message-content {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.message-system {
    align-self: center;
    max-width: 90%;
}

.message-system .message-content {
    background: var(--bg-hover);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.95rem;
    resize: none;
    min-height: 52px;
    max-height: 120px;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-subtle);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Muted State */
.muted-notice {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6666;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* Hero Landing */
.hero-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink-subtle);
    border: 1px solid var(--border-pink);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px var(--pink-glow));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pink);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Waiting Overlay */
.waiting-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.waiting-overlay.active {
    display: flex;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 32px;
    box-shadow: 0 0 30px var(--pink-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waiting-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.waiting-subtext {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md), 0 0 60px var(--pink-subtle);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-subtle);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-wrapper, .settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-med);
}

.toggle-switch .toggle-slider,
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-med);
}

.toggle-switch.active {
    background: var(--pink);
    border-color: var(--pink);
}

.toggle-switch.active .toggle-slider,
.toggle-switch.active::after {
    left: 26px;
    background: white;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Google Button */
.google-btn {
    width: 100%;
    background: white;
    color: #333;
    border: none;
    padding: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-med);
}

.google-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

/* Games Panel */
.games-panel {
    position: fixed;
    right: -360px;
    top: 67px;
    bottom: 0;
    width: 360px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    transition: right var(--transition-med);
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.games-panel.open {
    right: 0;
}

.games-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.games-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.games-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.game-btn {
    aspect-ratio: 1;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-med);
    color: var(--text);
}

.game-btn:hover {
    background: var(--bg-hover);
    border-color: var(--pink);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--pink-subtle);
}

.game-btn-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.game-btn-name {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer Text */
.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--pink);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin {
    background: rgba(255, 234, 0, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(255, 234, 0, 0.3);
}

.badge-mod {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-pro {
    background: var(--pink-subtle);
    color: var(--pink);
    border: 1px solid var(--border-pink);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 67px;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        z-index: 50;
        transition: left var(--transition-med);
    }

    .sidebar.open {
        left: 0;
    }

    .main-container {
        height: calc(100vh - 67px);
        overflow: hidden;
    }

    .chat-area {
        width: 100%;
    }

    .chat-header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .chat-actions {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .messages-container {
        padding: 16px;
    }

    .chat-input-area {
        padding: 12px 16px;
    }

    .chat-input-wrapper {
        gap: 8px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .message {
        max-width: 85%;
    }

    .message-content {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .games-panel {
        width: 100%;
        right: -100%;
    }

    .modal {
        margin: 20px;
        padding: 24px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--pink);
    color: white;
}

/* ==========================================
   NEW COMPONENTS - Redesigned Index Page
   ========================================== */

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pink);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width var(--transition-med);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 67px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-med);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
}

.mobile-nav-link {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--pink);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* Hero Icon Wrapper */
.hero-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.hero-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
    animation: hero-glow 3s ease-in-out infinite;
}

@keyframes hero-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-icon-main {
    position: relative;
    z-index: 1;
}

.hero-icon-main svg {
    filter: drop-shadow(0 0 20px var(--pink-glow));
}

/* Hero Title Gradient */
.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Badge Dot (for hero badge) */
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pink);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--pink-glow); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px transparent; }
}

/* Hero Share Section */
.hero-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.share-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-med);
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-reddit:hover {
    background: #ff4500;
    border-color: #ff4500;
    color: white;
}

/* Stat Divider */
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Chat Interface */
.chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-med);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--pink-subtle);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--pink-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--pink);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: all var(--transition-med);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card-featured {
    border-color: var(--pink);
    background: linear-gradient(180deg, var(--pink-subtle) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text);
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-feature svg {
    color: var(--green);
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--pink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-copyright,
.footer-made {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-exit {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text);
}

.toast-success .toast-icon {
    color: var(--green);
}

.toast-error .toast-icon {
    color: #ff4444;
}

.toast-warning .toast-icon {
    color: var(--yellow);
}

.toast-info .toast-icon {
    color: var(--cyan);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card-featured {
        transform: none;
    }

    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-content {
        padding: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-share {
        flex-direction: column;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 24px;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}
