:root {
    --bg-primary: #06080f;
    --bg-secondary: #0b0f19;
    --bg-tertiary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(26, 35, 50, 0.8);
    --bg-elevated: rgba(17, 24, 39, 0.9);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-display: 3.5rem;
    --text-h1: 2.75rem;
    --text-h2: 2.25rem;
    --text-h3: 1.75rem;
    --text-body: 1.125rem;
    --text-small: 0.95rem;
    --text-caption: 0.8rem;

    --pn-primary: #0C233D;
    --pn-primary-soft: rgba(12, 35, 61, 0.6);
    --pn-indigo: #4f46e5;
    --pn-violet: #7c3aed;
    --pn-cyan: #06b6d4;
    --pn-success: #10b981;
    --pn-warning: #f59e0b;
    --pn-danger: #ef4444;
    --pn-surface: rgba(17, 24, 39, 0.6);
    --pn-surface-raised: rgba(30, 41, 59, 0.8);
    --pn-border: rgba(255, 255, 255, 0.08);
    --pn-text: #f8fafc;
    --pn-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.landing-zoom {
    font-size: 125%;
}

.dashboard-zoom {
    font-size: 110%;
}

.starter-dashboard .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.agency-dashboard .sidebar-footer {
    border-top-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.scale-dashboard .sidebar-footer {
    border-top-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-secondary);
}

.starter-dashboard .stat-card::before {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.agency-dashboard .stat-card::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.scale-dashboard .stat-card::before {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.starter-dashboard .planUsageCard {
    border-left: 3px solid var(--accent-primary);
}

.agency-dashboard .planUsageCard {
    border-left: 3px solid var(--accent-secondary);
}

.scale-dashboard .planUsageCard {
    border-left: 3px solid var(--pn-indigo);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: var(--font);
    outline: none;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    animation: float 20s infinite ease-in-out;
}

.bg-gradient::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: -250px;
    left: -150px;
    animation-delay: 0s;
}

.bg-gradient::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -10s;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: -12s;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation-delay: -18s;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.08); }
    50% { transform: translate(-30px, 30px) scale(0.94); }
    75% { transform: translate(25px, 15px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-gradient::before,
    .bg-gradient::after,
    .bg-orb {
        animation: none;
    }
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 50px;
    background: #f4f6f8;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand svg {
    width: 160px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0C233D;
}

.nav-cta {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-small);
    transition: all 0.2s;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Hero */
.hero {
    padding: 14rem 2rem 10rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 60%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.25);
}

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

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

/* Sections */
.section {
    padding: 8rem 2rem;
}

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

.section-header h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features */
.features {
    background: transparent;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: var(--text-body);
    line-height: 1.7;
}

/* How it works */
.steps {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* CTA */
.cta-section {
    background: var(--accent-gradient);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-section .btn {
    background: var(--white);
    color: var(--accent-primary);
}

.cta-section .btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    background: transparent;
}

/* Dashboard Layout */
.dashboard {
    display: none;
    min-height: 100vh;
}

.dashboard.active {
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    z-index: 50;
    backdrop-filter: blur(12px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.sidebar-brand svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: var(--text-body);
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

.sidebar-nav svg {
    width: 22px;
    height: 22px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: var(--text-caption);
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.top-bar h1 {
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.top-bar .subtitle {
    color: var(--text-muted);
    font-size: var(--text-body);
    margin-top: 0.25rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-info {
    text-align: right;
}

.user-info .name {
    font-weight: 600;
    font-size: var(--text-body);
}

.user-info .email {
    font-size: var(--text-small);
    color: var(--text-muted);
}

.btn-logout {
    padding: 0.6rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-size: var(--text-small);
    font-weight: 600;
    border: 1px solid var(--border);
}

.btn-logout:hover {
    background: var(--border);
}

.btn-leave-now {
    display: none;
    padding: 0.6rem 1.25rem;
    background: var(--accent-secondary);
    color: #fff;
    border-radius: var(--radius);
    font-size: var(--text-small);
    font-weight: 600;
    border: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-leave-now.visible {
    display: flex;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.card-title {
    font-size: var(--text-h3);
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--pn-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--pn-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0.9;
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-small);
    color: var(--pn-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: var(--text-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.1rem 1.25rem;
    font-size: var(--text-body);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

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

tr:hover td {
    background: var(--bg-card-hover);
}

/* Forms */
.form-container {
    max-width: 460px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.form-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: all 0.2s;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Auth page */
.auth-page {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-page.active {
    display: flex;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Dashboard tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Audit specific */
.audit-progress {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
}

.audit-progress h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.audit-steps {
    max-width: 450px;
    margin: 1.5rem auto 0;
    text-align: left;
}

.audit-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.audit-step.active {
    color: var(--accent-primary);
    font-weight: 600;
}

.audit-step.done {
    color: var(--success);
}

.audit-step .step-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid currentColor;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.audit-step.done .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.audit-step.active .step-icon {
    border-color: var(--accent-primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.audit-friendly-msg {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    min-height: 1.5rem;
}

/* Plan Usage */
#planUsageCard {
    background: var(--pn-surface);
    border: 1px solid var(--pn-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

#planUsageCard .card-title {
    margin: 0;
}

#planUsageCard .subtitle {
    margin: 0.25rem 0 0;
    color: var(--pn-muted);
    font-size: var(--text-small);
}

/* Upgrade Modal */
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--pn-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--pn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Score ring */
.score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--score-color, var(--accent-primary)) var(--score), var(--bg-tertiary) var(--score));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--bg-card);
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 800;
}

/* Report */
.report-header {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.report-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.report-meta {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.report-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.2s;
}

.report-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.report-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.report-card .label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Issues */
.issue-severity {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.severity-critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.severity-notice {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

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

.issue-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    transition: all 0.2s;
}

.issue-card:hover {
    border-color: var(--border-light);
}

.issue-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.issue-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.issue-card .affected-pages {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    border: 1px solid var(--border);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Loading spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

/* Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 110;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 8rem 1rem 4rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 105;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

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

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .website-cards {
        grid-template-columns: 1fr;
    }

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

/* Partner Page */
.partner-hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
}

.partner-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-hero p {
    font-size: var(--text-body);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.partner-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-model {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.partner-model:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.partner-model h3 {
    font-size: var(--text-h3);
    margin-bottom: 1rem;
    font-weight: 700;
}

.partner-model p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: var(--text-body);
}

.partner-apply {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partner-apply .form-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.partner-apply select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.25rem;
    font-size: var(--text-body);
    width: 100%;
}

/* Premium Dashboard */
.dashboard {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.top-bar h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
    margin-right: 0.5rem;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.stat-card:hover {
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #facc15, #f59e0b);
    border-radius: 1.25rem 1.25rem 0 0;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.website-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.website-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.website-card:hover {
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.website-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.website-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

.website-status {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
}

.website-score {
    text-align: center;
    margin: 1.5rem 0;
}

.score-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.website-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.website-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.website-actions .btn {
    flex: 1;
    justify-content: center;
}

.audit-progress-container {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.audit-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.audit-progress-header span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.audit-progress-header span:last-child {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
}

.audit-progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.audit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
}

.table-container td {
    padding: 1.1rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.table-container tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

.sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.sidebar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.main-content {
    background: transparent;
}

.priority-issues {
    display: grid;
    gap: 1rem;
}

.priority-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.priority-item:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.priority-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.priority-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
