/* CSS Variables for Themes */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e8ecf1;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #d1d5db;
    --shadow: rgba(0, 0, 0, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --premium: #fbbf24;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
}

[data-theme="black"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.8);
    --shadow-lg: rgba(0, 0, 0, 0.9);
}

[data-theme="white"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.5s ease, background-color 0.5s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grainy Gradient Blob Effect - Optimized */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform, border-radius;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.blob-1 {
    width: 650px;
    height: 650px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    background: radial-gradient(circle at 30% 40%, 
        rgba(255, 107, 180, 0.6) 0%,
        rgba(138, 43, 226, 0.4) 30%,
        rgba(75, 0, 130, 0.2) 60%,
        transparent 100%);
    border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    animation: morphBlob1 30s ease-in-out infinite, floatBlob1 40s ease-in-out infinite;
}

.blob-2 {
    width: 600px;
    height: 600px;
    top: 20%;
    right: -150px;
    background: radial-gradient(circle at 60% 50%, 
        rgba(135, 206, 250, 0.5) 0%,
        rgba(100, 149, 237, 0.3) 35%,
        rgba(65, 105, 225, 0.2) 70%,
        transparent 100%);
    border-radius: 60% 40% 50% 50% / 55% 45% 55% 45%;
    animation: morphBlob2 35s ease-in-out infinite, floatBlob2 45s ease-in-out infinite;
}

.blob-3 {
    width: 550px;
    height: 550px;
    bottom: 10%;
    left: -110px;
    background: radial-gradient(circle at 40% 60%, 
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 165, 0, 0.3) 30%,
        rgba(255, 99, 71, 0.2) 65%,
        transparent 100%);
    border-radius: 50% 50% 40% 60% / 45% 55% 45% 55%;
    animation: morphBlob3 40s ease-in-out infinite, floatBlob3 50s ease-in-out infinite;
}

@keyframes morphBlob1 {
    0%, 100% {
        border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
    }
    25% {
        border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%;
    }
    50% {
        border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    }
    75% {
        border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
    }
}

@keyframes morphBlob2 {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 55% 45% 55% 45%;
    }
    33% {
        border-radius: 50% 50% 60% 40% / 45% 55% 45% 55%;
    }
    66% {
        border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%;
    }
}

@keyframes morphBlob3 {
    0%, 100% {
        border-radius: 50% 50% 40% 60% / 45% 55% 45% 55%;
    }
    30% {
        border-radius: 55% 45% 60% 40% / 50% 50% 50% 50%;
    }
    60% {
        border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    }
}

@keyframes floatBlob1 {
    0%, 100% {
        transform: translateX(-50%) translateY(0) translateZ(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px) translateZ(0);
    }
}

@keyframes floatBlob2 {
    0%, 100% {
        transform: translateY(0) translateX(0) translateZ(0);
    }
    50% {
        transform: translateY(-25px) translateX(-15px) translateZ(0);
    }
}

@keyframes floatBlob3 {
    0%, 100% {
        transform: translateY(0) translateX(0) translateZ(0);
    }
    50% {
        transform: translateY(20px) translateX(10px) translateZ(0);
    }
}

/* Ensure content is above blobs */
.navbar,
.main-content,
.footer {
    position: relative;
    z-index: 1;
}

[data-theme="black"] body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-attachment: fixed;
    transition: background 0.5s ease;
}

[data-theme="white"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    background-attachment: fixed;
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transform: scaleY(0.7);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: var(--text-primary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.burger-menu {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.burger-menu svg {
    width: 24px;
    height: 24px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    transform: scaleY(0.7);
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(59, 130, 246, 0.8);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-icon.rotating {
    animation: iconRotate 0.5s ease;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Action Cards */
.main-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.main-action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.main-action-card:hover::before {
    opacity: 1;
}

.main-action-card:active {
    transform: translateY(-4px) scale(1.01);
}

.main-action-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.main-action-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.main-action-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.main-action-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.action-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.action-features span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.main-action-card:hover .action-features span {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Landing Services */
.landing-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.service-card-soon {
    opacity: 0.7;
    cursor: default;
}

.service-card-soon:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-icon-dimmed {
    opacity: 0.5;
}

.service-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.service-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.service-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-feature svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.service-btn {
    width: 100%;
    margin-top: auto;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Legacy action cards (for backward compatibility) */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.action-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.9;
}

.action-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

.action-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    opacity: 0.8;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card p, .card .subtitle {
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.form-input-large {
    font-size: 1.25rem;
    padding: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-icon:hover {
    background-color: var(--bg-tertiary);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.badge-premium {
    background-color: var(--premium);
    color: #000;
}

/* Code Display */
.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code {
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Recent Lines */
.recent-lines {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.recent-lines h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.recent-lines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recent-line-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.recent-line-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 1rem;
}

.success-message h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

/* QR Container */
.qr-container {
    text-align: center;
    margin: 2rem 0;
}

.qr-container img {
    max-width: 300px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.actions button {
    flex: 1;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Auth */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.auth-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price .amount {
    color: var(--primary);
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    text-align: center;
    max-width: 250px;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Profile Info */
.profile-info {
    margin: 1.5rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
}

/* Theme Preview */
.theme-preview {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.theme-option {
    text-align: center;
}

.theme-sample {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border-color);
}

.theme-sample-light {
    background: linear-gradient(135deg, #ffffff 50%, #f5f7fa 50%);
}

.theme-sample-dark {
    background: linear-gradient(135deg, #1a1a1a 50%, #2d2d2d 50%);
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.toast.toast-success {
    border-color: var(--success);
}

.toast.toast-error {
    border-color: var(--error);
}

.toast.toast-info {
    border-color: var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* Main Content Fade-in Animation */
.main-content {
    animation: fadeInContent 0.4s ease-in;
}

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

/* Loading Spinners */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-auth {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loader-chat {
    width: 28px;
    height: 28px;
    border: 4px solid var(--border-color);
    border-top-color: var(--success);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.loader-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    min-width: 200px;
}

.loader-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    color: var(--text-primary);
    margin-top: 1rem;
    font-size: 1rem;
}

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

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

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Footer */
.footer {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    transform: scaleY(0.7);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
    display: inline-block;
    transform: scaleY(0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Page Container */
.page-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 16px 16px;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
        z-index: 99;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    [data-theme="black"] .nav-links {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    [data-theme="white"] .nav-links {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-links.mobile-open {
        display: flex;
        transform: translateY(0);
        visibility: visible;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        text-align: left;
        transform: none; /* Отключаем сплющивание в мобильной версии */
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links .theme-toggle {
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .burger-menu.menu-open svg use {
        display: none;
    }
    
    .burger-menu.menu-open::after {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
        background-size: contain;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .main-action-card {
        padding: 2rem 1.5rem;
    }
    
    .main-action-card h2 {
        font-size: 1.5rem;
    }
    
    .main-action-card p {
        font-size: 1rem;
    }
    
    .action-features {
        gap: 0.75rem;
    }
    
    .action-features span {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    #toast-container {
        right: 1rem;
        left: 1rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Info Box */
.info-box {
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-box p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.info-box strong {
    color: var(--text-primary);
}

/* Legal Pages */
.legal-page {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.legal-page h1 {
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

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

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: #60a5fa;
}

/* Small utility classes */
.small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

