/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .sidebar,
    .theme-toggle,
    .scroll-top,
    .show-trending-btn,
    .hamburger-menu,
    .side-menu,
    .side-menu-overlay {
        display: none !important;
    }
    
    .wave {
        break-inside: avoid;
    }
}

/* ============================================
   LEGAL PAGES STYLING
   ============================================ */

.legal-document {
    max-width: 900px;
    line-height: 1.8;
}

.legal-document h1 {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.legal-document h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.legal-document h3 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.legal-notice {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.legal-notice strong {
    color: var(--primary);
    font-weight: 700;
}

.key-points {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.key-point {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--success);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.key-point:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.legal-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    line-height: 1.7;
}

.legal-list li::before {
    content: "→";
    position: absolute;
    left: 10px;
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.legal-list li strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-footer {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    text-align: center;
}

.legal-footer p {
    margin: 10px 0;
    font-size: 15px;
}

.legal-footer strong {
    color: var(--primary);
    font-weight: 700;
}

.legal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-footer a:hover {
    text-decoration: underline;
}

.legal-document a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.legal-document a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.legal-document .content-section {
    scroll-margin-top: 100px;
}

/* Table of Contents for Legal Pages */
.legal-toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    position: sticky;
    top: 90px;
}

.legal-toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 18px;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    padding: 8px 0;
}

.legal-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.legal-toc a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-document {
        padding: 30px 20px;
    }
    
    .legal-document h1 {
        font-size: 28px;
    }
    
    .legal-document h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    
    .legal-document h3 {
        font-size: 16px;
    }
    
    .legal-notice {
        padding: 15px;
        font-size: 14px;
    }
    
    .key-point {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .legal-list li {
        padding-left: 30px;
        font-size: 14px;
    }
    
    .legal-footer {
        padding: 20px;
    }
}

/* ============================================
   CSS VARIABLES & THEME SYSTEM
   ============================================ */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #818CF8;
    --accent: #DC2626;
    --accent-hover: #B91C1C;
    --success: #10B981;
    --warning: #F59E0B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-focus: #818CF8;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: #818CF8;
    --accent: #EF4444;
    --accent-hover: #DC2626;
    --success: #10B981;
    --warning: #F59E0B;
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #374151;
    --border-focus: #6366F1;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ============================================
   PROFESSIONAL WAVE CREATOR
   ============================================ */

.wave-creator-pro {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.wave-creator-pro:hover {
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.wave-creator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.creator-prompt {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.wave-textarea {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-secondary);
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.wave-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wave-textarea::placeholder {
    color: var(--text-muted);
}

.wave-creator-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

.creator-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.creator-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.char-counter {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.btn-wave-pro {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-wave-pro:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-wave-pro:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.wave-icon {
    font-size: 18px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 28px;
    filter: grayscale(0);
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: all 0.3s;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
    transform-origin: center;
}

.hamburger-menu:hover span {
    background: var(--primary);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Side Menu */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--bg-primary);
    box-shadow: -2px 0 12px var(--shadow);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.side-menu-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.side-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.side-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.side-menu-content {
    padding: 10px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
}

.side-menu-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.side-menu-item span {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.side-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.side-menu-item.danger {
    color: var(--accent);
}

.side-menu-item.danger:hover {
    background: rgba(220, 38, 38, 0.1);
}

.side-menu-user {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.side-menu-user-info {
    flex: 1;
}

.side-menu-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.side-menu-user-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.user-menu-trigger:hover {
    background: var(--bg-tertiary);
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.user-menu-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.danger {
    color: var(--accent);
}

.dropdown-item.danger:hover {
    background: rgba(220, 38, 38, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    justify-self: center;
}

.search-bar {
    width: 100%;
    padding: 10px 40px;
    border: 2px solid var(--border);
    border-radius: 25px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.auth-container .btn-full {
    height: 52px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.auth-container .btn-full:active {
    transform: translateY(0);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
}

/* ============================================
   FIXED UI ELEMENTS
   ============================================ */

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 6px 20px var(--shadow);
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 90px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.show-trending-btn {
    position: fixed;
    right: 10px;
    bottom: 100px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 999;
    display: none;
    transition: all 0.3s;
}

.show-trending-btn.visible {
    display: block;
}

.show-trending-btn:hover {
    transform: translateX(-5px);
    background: var(--primary-hover);
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 850px 340px;
    gap: 30px;
    margin-top: 20px;
    max-width: none;
    margin-left: auto;
    margin-right: 20px;
    padding: 0 0 0 20px;
}

/* Don't change grid columns when sidebar is hidden - just hide the sidebar */

.feed {
    max-width: 850px;
    width: 100%;
    grid-column: 2;
    position: relative;
    left: -325px;
}

/* Adjust feed position when sidebar is hidden */
.main-content:has(.sidebar-right.hidden) .feed {
    grid-column: 2;
    left: -325px;
    margin: 0;
}

.sidebar-right {
    position: sticky;
    right: 20px;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    width: 340px;
    grid-column: 3;
    align-self: flex-start;
}

/* Desktop: sidebar can be hidden with the hidden class */
@media (min-width: 1025px) {
    .sidebar-right.hidden {
        display: none !important;
    }
    
    .sidebar-right:not(.hidden) {
        display: block !important;
    }
    
    /* Show the "Show Trending" button when sidebar is hidden */
    .show-trending-btn {
        display: none;
    }
    
    .show-trending-btn.visible {
        display: block !important;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    position: sticky;
    top: 90px;
    border: 1px solid var(--border);
}

.sidebar-right.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.sidebar-item {
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-item strong {
    color: var(--text-primary);
}

.trend-stats {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sidebar-toggle {
    text-align: right;
    margin-bottom: 10px;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */

.auth-container {
    max-width: 480px;
    margin: 60px auto;
    background: var(--bg-primary);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: authSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.form-group:focus-within label {
    color: var(--primary);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

[data-theme="dark"] .form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
    min-height: 18px;
    transition: all 0.2s;
}

.form-link-wrapper {
    text-align: right;
    margin: -10px 0 0 0;
}

.form-link {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-back:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    transform: translateX(-2px);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 16px;
    font-weight: 500;
}

.auth-box {
    margin-top: 24px;
}

.checkbox-group {
    margin: 24px 0 !important;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
}

/* Special styling for human verification */
#verifyHuman:checked + span {
    color: var(--success);
    font-weight: 600;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.checkbox-label a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.password-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Password Match Indicator */
.password-match-indicator {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.password-match-indicator.match {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.password-match-indicator.no-match {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Password Requirements */
.password-strength {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: var(--text-muted);
}

.strength-bar.weak {
    width: 33%;
    background: var(--accent);
}

.strength-bar.medium {
    width: 66%;
    background: var(--warning);
}

.strength-bar.strong {
    width: 100%;
    background: var(--success);
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.requirement.valid {
    color: var(--success);
}

.requirement .req-icon {
    font-size: 14px;
    font-weight: bold;
}

.requirement.valid .req-icon {
    color: var(--success);
}

.requirement.invalid {
    color: var(--accent);
}

/* Error & Success Messages */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠️";
    font-size: 18px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.success-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-banner p {
    color: var(--success);
    margin: 0;
    font-weight: 500;
}

/* Verification Icon */
.verification-icon {
    font-size: 72px;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   FEED & WAVES
   ============================================ */

.wave {
    padding: 24px;
    transition: all 0.3s;
    margin: 0 0 25px 0;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.wave:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow-lg);
    transform: translateY(-2px);
}

.wave-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.wave-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 16px;
    font-size: 22px;
}

.wave-user-info h4 {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.wave-time {
    font-size: 15px;
    color: var(--text-secondary);
}

.wave-content {
    margin-bottom: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 17px;
    margin-top: 14px;
}

.wave-actions {
    display: flex;
    gap: 28px;
    color: var(--text-secondary);
}

.wave-action {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
}

.wave-action:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

/* Wave Variations */
.wave-colorful {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.wave-colorful .wave-user-info h4,
.wave-colorful .wave-time,
.wave-colorful .wave-content {
    color: white;
}

.wave-colorful .wave-actions {
    color: rgba(255, 255, 255, 0.9);
}

.wave-colorful .wave-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wave-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 15px;
    cursor: pointer;
}

.wave-meme {
    background: var(--bg-primary);
}

.wave-meme .wave-content {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin: 15px 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   DEMO SECTION
   ============================================ */

.demo-section {
    margin-bottom: 40px;
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.demo-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.demo-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-header {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px var(--shadow);
}

.profile-name {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-username {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.profile-bio {
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-primary);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.page-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 60px 80px;
    max-width: 1000px;
    margin: 40px auto;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow);
}

.page-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 800;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list strong {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .feed {
        grid-column: 1;
        margin: 0 auto;
        left: 0;
    }
    
    .sidebar-right {
        position: fixed;
        right: -360px;
        top: 70px;
        width: 340px;
        height: calc(100vh - 70px);
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar-right.hidden {
        right: -360px !important;
    }
    
    .sidebar-right:not(.hidden) {
        right: 0 !important;
        display: block !important;
    }
    
    .show-trending-btn {
        display: block;
    }
    
    .show-trending-btn.visible {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    
    .search-container {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    .brand-icon {
        font-size: 24px;
    }
    
    .side-menu {
        width: 280px;
        right: -280px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .wave-creator-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .creator-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-wave-pro {
        flex: 1;
    }
    
    .page-content {
        padding: 40px 30px;
    }
    
    .page-content h1 {
        font-size: 32px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .auth-container {
        margin: 20px;
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .auth-header h2 {
        font-size: 26px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
}

@media (min-width: 1400px) {
    .main-content {
        gap: 35px;
        margin-right: 30px;
    }
    
    .sidebar-right {
        right: 30px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        grid-template-columns: 1fr 900px 340px;
        gap: 40px;
        margin-right: 40px;
    }
    
    .feed {
        max-width: 900px;
    }
    
    .sidebar-right {
        right: 40px;
    }
}

@media (min-width: 1900px) {
    .main-content {
        grid-template-columns: 1fr 1000px 340px;
        gap: 50px;
        margin-right: 50px;
    }
    
    .feed {
        max-width: 1000px;
    }
    
    .sidebar-right {
        right: 50px;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .sidebar,
    .theme-toggle,
    .scroll-top,
    .show-trending-btn,
    .hamburger-menu,
    .side-menu,
    .side-menu-overlay {
        display: none !important;
    }
    
    .wave {
        break-inside: avoid;
    }
}
/* ============================================
   WAITLIST MODAL STYLES
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border);
}

.lock-icon {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 800;
}

.modal-subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 0;
}

/* Modal Body */
.modal-body {
    padding: 30px 40px 40px;
}

.waitlist-description {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: center;
}

/* Waitlist Features Grid */
.waitlist-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.waitlist-feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.waitlist-feature-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon-sm {
    font-size: 1.4em;
}

/* Waitlist Form */
.waitlist-form {
    margin-bottom: 20px;
}

.waitlist-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1em;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    margin-bottom: 12px;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.waitlist-form button {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.waitlist-form button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.waitlist-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Waitlist Status */
.waitlist-status {
    text-align: center;
    font-size: 0.95em;
    margin: 15px 0;
    color: var(--text-secondary);
    font-weight: 500;
    min-height: 24px;
}

.waitlist-status.success {
    color: #10b981;
    font-weight: 600;
}

.waitlist-status.error {
    color: var(--accent);
    font-weight: 600;
}

/* Waitlist Privacy */
.waitlist-privacy {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    line-height: 1.5;
}

/* Waitlist Button in Navigation */
.btn-waitlist-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-waitlist-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    filter: brightness(1.1);
}

/* Hero Note */
.hero-note {
    margin: 25px auto 0;
    padding: 15px 25px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1em;
    color: var(--text-secondary);
    max-width: 600px;
    text-align: center;
}

.hero-note strong {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 700px) {
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        padding: 30px 25px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.6em;
    }
    
    .modal-body {
        padding: 20px 25px 30px;
    }
    
    .waitlist-features-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-waitlist-nav {
        display: none;
    }
    
    .hero-note {
        font-size: 0.9em;
        padding: 12px 18px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 15px;
    }
    
    .lock-icon {
        font-size: 2.5em;
    }
    
    .modal-header h2 {
        font-size: 1.4em;
    }
    
    .modal-subtitle {
        font-size: 1em;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--background, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    font-size: 0.9rem;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-success {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.toast-error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.toast-info {
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

/* Dark theme adjustments for toast */
[data-theme="dark"] .toast {
    background: var(--background, #1f2937);
    border-color: var(--border, #374151);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .toast-success {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .toast-error {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .toast-info {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .toast-warning {
    background: rgba(245, 158, 11, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark theme loading spinner */
[data-theme="dark"] .btn-secondary .loading {
    border-color: rgba(0, 0, 0, 0.3);
    border-top-color: #000;
}

/* ============================================
   CHARACTER COUNTER
   ============================================ */

.character-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 0.25rem;
}

.character-counter.over-limit {
    color: #ef4444;
    font-weight: 600;
}

/* ============================================
   EMPTY STATE IMPROVEMENTS
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #6b7280);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text, #1f2937);
}

.empty-state p {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* ============================================
   TRENDING SIDEBAR TOGGLE
   ============================================ */

#trendingSidebar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile: hidden by default */
@media (max-width: 1024px) {
    #trendingSidebar {
        position: fixed;
        right: 0;
        top: 60px;
        bottom: 0;
        width: 300px;
        background: var(--background, #ffffff);
        border-left: 1px solid var(--border, #e5e7eb);
        transform: translateX(100%);
        opacity: 0;
        z-index: 999;
        overflow-y: auto;
        padding: 1rem;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    #trendingSidebar.visible {
        transform: translateX(0);
        opacity: 1;
    }
    
    .show-trending-btn {
        display: block !important;
    }
}

/* Desktop: always visible */
@media (min-width: 1025px) {
    #trendingSidebar {
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .show-trending-btn {
        display: none !important;
    }
}

/* ============================================
   WAVE INTERACTIONS
   ============================================ */

.wave-actions {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
}

.wave-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wave-action-btn:hover {
    background: var(--hover-bg, #f3f4f6);
    color: var(--text, #1f2937);
}

.wave-action-btn.active {
    color: #3b82f6;
}

.wave-like-btn.active {
    color: #ef4444;
}

.wave-action-btn .action-icon {
    font-size: 1.1rem;
}

.wave-action-btn .action-count {
    font-weight: 500;
}

/* ============================================
   PROFILE STATS IMPROVEMENTS
   ============================================ */

.profile-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #1f2937);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

/* ============================================
   WAVE CREATOR ENHANCEMENTS
   ============================================ */

.wave-input {
    width: 100%;
    min-height: 80px;
    max-height: 300px;
    padding: 1rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    overflow-y: auto;
    transition: border-color 0.2s ease;
}

.wave-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.wave-creator-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border, #e5e7eb);
}

.wave-type-selector {
    display: flex;
    gap: 0.5rem;
}

.wave-type-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 8px;
    background: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wave-type-btn:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.wave-type-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* ============================================
   SUCCESS ICONS
   ============================================ */

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .wave-actions {
        gap: 0.5rem;
    }
    
    .wave-action-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

* {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Prevent transitions on page load */
.preload * {
    transition: none !important;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .toast {
        border-width: 2px;
    }
    
    button,
    .btn {
        border-width: 2px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .theme-toggle,
    .scroll-top,
    .show-trending-btn,
    .side-menu,
    .wave-creator,
    .toast,
    button {
        display: none !important;
    }
}
/* ============================================
   CONTACT PAGE STYLES (MINIMAL ADDITION)
   ============================================ */

.contact-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 40px auto;
}

.contact-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.contact-info-card h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 15px 30px;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.contact-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 35px 0;
    text-align: left;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-feature .feature-icon-sm {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-feature strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.contact-note {
    background: var(--bg-primary);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.single-column {
    max-width: 900px;
    margin: 0 auto;
}

.page-container {
    min-height: 100vh;
    padding: 80px 20px 40px;
}

.page-container.hidden {
    display: none;
}
/* ============================================
   DEMO MODE ENHANCEMENTS
   ============================================ */

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
}

/* Side menu divider */
.side-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}
