:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #111827;
    --bg-color: #FAFAF9;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.08);
    --pattern-color: rgba(0, 0, 0, 0.2);
    --text-main: #111827;
    --text-muted: #6B7280;

    --icon-blue: #3B82F6;
    --icon-purple: #8B5CF6;
    --icon-orange: #F97316;
    --icon-green: #10B981;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.04);
    --glass-inset: rgba(255, 255, 255, 1);
}

[data-theme="dark"] {
    --secondary: #F8FAFC;
    --bg-color: #0A0713;
    --surface: #120D21;
    --surface-glass: rgba(18, 13, 33, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --pattern-color: rgba(255, 255, 255, 0.08);
    --text-main: #F8FAFC;
    --text-muted: #A09EB1;

    --glass-bg: rgba(25, 18, 48, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-inset: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

.blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

@keyframes float {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-text {
    color: var(--text-main);
}

.logo-text span {
    color: var(--primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 8px;
    padding: 4px;
}

.logo-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--surface);
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border);
    margin-top: 16px;
}

.btn-outline:hover {
    border-color: var(--secondary);
}

.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(79, 70, 229, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 70, 229, 0.25) 1px, transparent 1px);
    mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
    opacity: 0.4;
    transition: opacity 0.8s ease;
}

.hero:hover .hero-grid::after {
    opacity: 1;
}

.hero.is-idle .hero-grid::after {
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 5;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.announcement-pill:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.pill-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pill-text {
    color: var(--text-muted);
    transition: color 0.2s;
}

.announcement-pill:hover .pill-text {
    color: var(--text-main);
}

.announcement-pill svg {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.announcement-pill:hover svg {
    transform: translateX(4px);
    color: var(--primary);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--icon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.trust-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px var(--glass-shadow),
        inset 0 1px 0 var(--glass-inset);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.upload-widget {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    padding: 40px;
    text-align: center;
    z-index: 2;
}

.upload-area {
    border: 2px dashed rgba(79, 70, 229, 0.3);
    border-radius: 16px;
    padding: 40px 20px;
    background: rgba(79, 70, 229, 0.02);
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.upload-widget p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.floating-1 {
    position: absolute;
    top: 15%;
    right: -5%;
    width: 220px;
    padding: 20px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60A5FA);
    border-radius: 3px;
}

.floating-2 {
    position: absolute;
    bottom: 20%;
    left: -10%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    z-index: 3;
    animation: float 8s ease-in-out infinite 1s;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--icon-green), #059669);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

.viewer-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.viewer-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.features {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 150px, black 100%);
    mask-image: linear-gradient(to bottom, transparent, black 150px, black 100%);
    z-index: -1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 32px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--icon-blue);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--icon-purple);
}

.icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--icon-orange);
}

.icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--icon-green);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .hero-visual {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links,
    .nav-actions .btn-ghost {
        display: none;
    }
}

.footer {
    background-color: var(--surface);
    padding: 40px 0 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.link-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.link-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.how-it-works {
    padding: 100px 0 40px;
    position: relative;
    z-index: 10;
    background-color: transparent;
    background-image:
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(79, 70, 229, 0.04) 0%, transparent 60%);
    background-size: 100% 100%;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.step-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.step-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
}

@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.theme-btn {
    padding: 8px;
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: rgba(128, 128, 128, 0.1);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 32px 32px;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.auth-logo {
    margin-bottom: 32px;
    text-decoration: none;
}

.auth-card {
    width: 100%;
    padding: 40px;
}

.auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-input {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 12px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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


.dashboard-page {
    background-color: var(--bg-color);
    margin: 0;
    overflow-x: auto;
    overflow-y: scroll;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
    left: 0;
    top: 0;
}

.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.04) 0%, transparent 50%),
        radial-gradient(var(--pattern-color) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.topbar h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-title {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-icon {
    margin-bottom: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.stat-trend {
    font-size: 0.85rem;
    font-weight: 500;
}

.trend-up {
    color: var(--icon-green);
}

.trend-down {
    color: #F87171;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.table-container {
    padding: 0;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 16px 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: rgba(128, 128, 128, 0.02);
}

.doc-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--border);
    color: var(--text-main);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    background-color: var(--surface-glass);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.analytics-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-main);
}

.page-stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-stat-bar-bg {
    width: 100%;
    height: 12px;
    background-color: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.page-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--icon-purple));
    border-radius: 6px;
    transition: width 1s ease-out;
}

.settings-section {
    max-width: 600px;
    margin-bottom: 40px;
}

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


.pricing-section {
    padding: 80px 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
    align-items: center;
}

.pricing-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.pricing-card.popular {
    background: linear-gradient(180deg, var(--surface-glass) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}



.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text-main);
}

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

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.pricing-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}


.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse>* {
    direction: ltr;
}

.feature-split h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.feature-split p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.feature-image-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

.pricing-toggle-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.custom-toggle {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px;
    --toggle-width: 160px;
}

.custom-toggle.compact {
    --toggle-width: 140px;
}

[data-theme="dark"] .custom-toggle {
    background: rgba(255, 255, 255, 0.02);
}

.toggle-option {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    width: var(--toggle-width);
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 99px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.toggle-option.active {
    color: var(--text-main);
}

.toggle-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: var(--toggle-width);
    background: var(--surface);
    border-radius: 99px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

[data-theme="dark"] .toggle-slider {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.custom-toggle.is-annual .toggle-slider {
    transform: translateX(var(--toggle-width));
}

.discount-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--icon-green);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.page-selector {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 120px;
}

.page-selector:hover {
    border-color: var(--primary);
    background-color: var(--surface);
}

.page-selector:focus,
.custom-select-container.open .page-selector {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.custom-select-container {
    position: relative;
    display: inline-block;
}

.custom-select-container .page-selector {
    z-index: 101;
    position: relative;
}

.custom-select-container.open .page-selector {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%234F46E5%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2218%2015%2012%209%206%2015%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-sizing: border-box;
}

.custom-select-container.open .custom-select-options {
    display: block;
    animation: dropdownIn 0.2s ease-out;
}

.custom-select-option {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.custom-select-option:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.custom-select-option.selected {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary);
    font-weight: 600;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}