/* ========================================
   AI Tools Hub - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #8251EE;
    --primary-dark: #5B34B0;
    --primary-light: #A37EF5;
    --secondary: #00E5FF;
    --accent: #f43f5e;
    --background: #000000;
    --surface: #0a0a0a;
    --surface-light: #121212;
    --text: #ffffff;
    --text-muted: #8E8E93;
    --text-dim: #636366;
    --border: rgba(255, 255, 255, 0.04);
    --gradient-1: linear-gradient(135deg, #ffffff 0%, #ebebeb 100%);
    --shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 48px -3px rgba(0, 0, 0, 0.7);
    --radius: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.005) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    background-color: #000000;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar .logo-wordmark {
    height: 24px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: 8px;
}

.navbar .logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    border-radius: 10px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-cards {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.5rem;
}

.floating-card .card-text {
    font-weight: 600;
    white-space: nowrap;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: 5%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* tools Hero Section */
.tools-hero {
    padding: 10rem 4rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tools-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tools-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.tools-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* Apps Section */
.apps-section {
    padding: 4rem 4rem 6rem;
    max-width: 1500px;
    margin: 0 auto;
}

.apps-container {
    width: 100%;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(145deg, var(--surface) 0%, rgba(26, 26, 46, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 280px;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.25),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.app-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(-3deg);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.app-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 12px;
    color: var(--text-dim);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.app-card:hover .app-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
    border-color: var(--primary);
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.app-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.app-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.app-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.empty-state code {
    background: var(--surface-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-light);
}

.setup-guide {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--surface-light);
    border-radius: var(--radius);
}

.setup-guide h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.setup-guide ol {
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.setup-guide li {
    margin-bottom: 0.5rem;
}

/* Features Section */
.features-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* About Section */
.about-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.contact-form button {
    align-self: center;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.footer-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-wordmark {
    height: 18px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: 6px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

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

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 7rem 2rem 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .floating-cards {
        width: 300px;
        height: 300px;
    }
}

/* Hamburger Menu Button (hidden on desktop, visible on mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 1rem;
    }

    .navbar .logo-wordmark {
        height: 42px;
    }

    .navbar .logo-icon {
        width: 30px;
        height: 30px;
        margin-top: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 15, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1050;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--text-muted);
        transition: color 0.2s ease;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--text);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .tools-hero {
        padding: 8rem 1.5rem 2rem;
    }

    .tools-hero .hero-title {
        font-size: 2.25rem;
    }

    .tools-hero .hero-subtitle {
        font-size: 1rem;
    }

    .apps-section,
    .features-section,
    .about-section {
        padding: 2rem 1.5rem 4rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-card {
        min-height: 240px;
        padding: 1.5rem;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .app-name {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-cards {
        display: none;
    }
}

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

    .hero-actions {
        flex-direction: column;
    }

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

/* ========================================
   Authentication Styles
   ======================================== */

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

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

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.65rem 0.4rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.4;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 12px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
    letter-spacing: -0.01em;
}

.dropdown-email {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    margin: 4px 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-item svg {
    opacity: 0.6;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-item.logout {
    color: #fca5a5;
    background: transparent;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--surface-light);
}

.dropdown-item.logout:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
}

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    padding-top: 80px;
}

.auth-container {
    flex: 1;
    max-width: 480px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual {
    flex: 1;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-left: 1px solid var(--border);
}

.visual-content {
    text-align: center;
    max-width: 400px;
}

.visual-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.visual-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.visual-content>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.visual-features {
    list-style: none;
    text-align: left;
}

.visual-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

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

/* Auth Form */
.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group label .optional {
    color: var(--text-dim);
    font-weight: 400;
}

.form-group input {
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary-light);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

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

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Google Sign In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
    background: #eee;
}

.btn-google .google-icon {
    flex-shrink: 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-icon {
    font-size: 1.25rem;
}

/* Profile Page */
.profile-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.profile-avatar-large {
    font-size: 5rem;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: var(--radius-lg);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.premium-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option input {
    display: none;
}

.avatar-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.avatar-option:hover span,
.avatar-option.selected span {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
}

.upgrade-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary);
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.upgrade-icon {
    font-size: 3rem;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text h3 {
    margin-bottom: 0.25rem;
}

.upgrade-text p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth Responsive */
@media (max-width: 1024px) {
    .auth-visual {
        display: none;
    }

    .auth-container {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.5rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-name {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

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

    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Pricing Page */
.pricing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem;
    text-align: center;
}

.pricing-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.85rem;
}

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

.pricing-hero h1 {
    font-size: 3rem;
    margin: 0.5rem 0 0.75rem;
}

.pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-header {
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 60%, var(--plan-color) 40%) 100%);
    color: #fff;
}

.plan-label {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 700;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 1rem 0 0.35rem;
    font-weight: 800;
}

.plan-price .currency {
    font-size: 1.25rem;
    opacity: 0.9;
}

.plan-price .amount {
    font-size: 2.8rem;
}

.plan-price .per {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.plan-note {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.plan-features {
    list-style: none;
    padding: 1.5rem 1.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-muted);
    flex: 1;
}

.plan-features li {
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

.plan-cta {
    margin: 0 1.75rem 1.75rem;
    justify-content: center;
    border: 1px solid var(--border);
    background: transparent;
    color: #fff;
}

.pricing-card:hover .plan-cta {
    border-color: var(--primary);
    color: #fff;
}

.pricing-card.featured {
    border: 1px solid color-mix(in srgb, var(--plan-color) 70%, #ffffff 30%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured .plan-cta {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}

.billing-toggle {
    display: inline-flex;
    padding: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.toggle-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.toggle-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.guarantee-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.guarantee-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.guarantee-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gradient-2);
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 7rem 1.5rem 1.5rem;
    }

    .pricing-hero h1 {
        font-size: 2.4rem;
    }

    .pricing-section {
        padding: 2.5rem 1.5rem 1rem;
    }
}