/* ============================================
   ApexSubs.org — Stylesheet
   ============================================ */

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

:root {
    /* Brand */
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --indigo-light: #818cf8;
    --violet: #7c3aed;

    /* Neutrals */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #3b82f6;

    /* Gradient */
    --grad-brand: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Sidebar (for dashboard pages) */
    --sidebar-width: 260px;

    /* Spacing */
    --spacing-xs:  0.5rem;
    --spacing-sm:  0.75rem;
    --spacing-md:  1rem;
    --spacing-lg:  1.5rem;
    --spacing-xl:  2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;

    /* Radius */
    --radius-sm:  0.375rem;
    --radius-md:  0.5rem;
    --radius-lg:  0.75rem;
    --radius-xl:  1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--slate-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.navbar-scrolled {
    border-bottom-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-mark-sm {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

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

.nav-link {
    color: var(--slate-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.nav-cta {
    margin-left: 0.5rem;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.15), inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.btn-primary:hover {
    background: var(--indigo-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(79 70 229 / 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-hero-primary {
    background: transparent;
    color: #fff;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    border: 2px solid #fff;
    box-shadow: none;
}

.btn-hero-primary {
    background: transparent !important;
    color: #fff;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    border: 2px solid #fff;
    box-shadow: none !important;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: rgba(0,0,0,0) !important;
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--slate-300);
    color: var(--slate-700);
}

.btn-outline:hover {
    border-color: var(--indigo);
    color: var(--indigo);
    background: rgb(79 70 229 / 0.04);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: var(--slate-900);
    color: #fff;
    padding: 5rem 0 0;
    overflow: hidden;
    position: relative;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgb(99 102 241 / 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    padding-bottom: 5rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--indigo-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--indigo-light);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-title-accent {
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-400);
    max-width: 480px;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.trust-icon {
    width: 14px;
    height: 14px;
    color: var(--slate-500);
    flex-shrink: 0;
}

/* Hero Visual — Dashboard Preview */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 2rem;
}

.dashboard-preview {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 -4px 32px rgb(0 0 0 / 0.4),
        0 0 0 1px rgb(255 255 255 / 0.04) inset;
    overflow: hidden;
    animation: slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--slate-700);
    background: var(--slate-900);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-600);
}

.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }

.preview-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-400);
}

.preview-body {
    padding: 1.25rem;
}

.preview-total {
    background: var(--grad-brand);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.preview-total-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.25rem;
}

.preview-total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.preview-subs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-sub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--slate-700);
    border-radius: var(--radius-md);
    animation: fade-in 0.4s ease both;
}

.preview-sub:nth-child(1) { animation-delay: 0.4s; }
.preview-sub:nth-child(2) { animation-delay: 0.55s; }
.preview-sub:nth-child(3) { animation-delay: 0.7s; }
.preview-sub:nth-child(4) { animation-delay: 0.85s; }

@keyframes fade-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.preview-sub-muted {
    opacity: 0.55;
}

.preview-sub-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}

.preview-sub-info {
    flex: 1;
    min-width: 0;
}

.preview-sub-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-sub-cat {
    font-size: 0.6875rem;
    color: var(--slate-400);
}

.preview-sub-cost {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--indigo-light);
    flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ============================================
   FEATURES
   ============================================ */

.features-section {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
}

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

.feature-icon-indigo { background: rgb(79 70 229 / 0.1); color: var(--indigo); }
.feature-icon-violet { background: rgb(124 58 237 / 0.1); color: var(--violet); }
.feature-icon-blue   { background: rgb(59 130 246 / 0.1); color: var(--info); }
.feature-icon-emerald{ background: rgb(16 185 129 / 0.1); color: var(--success); }
.feature-icon-amber  { background: rgb(245 158 11 / 0.1); color: var(--warning); }
.feature-icon-rose   { background: rgb(239 68 68 / 0.1);  color: var(--danger); }

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works-section {
    background: #fff;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.125rem;
    padding: 2rem 1.5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.step-item:hover {
    border-color: var(--indigo-light);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgb(79 70 229 / 0.35);
}

.step-number span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--slate-900);
}

.step-description {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.65;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2.5rem;
    gap: 0.25rem;
    color: var(--slate-300);
}

.step-connector svg {
    width: 20px;
    height: 20px;
    color: var(--slate-300);
}

.step-connector-line {
    display: none;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-section {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pricing-card-featured {
    border-color: var(--indigo);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgb(79 70 229 / 0.08);
}

.pricing-card-featured:hover {
    box-shadow: 0 0 0 4px rgb(79 70 229 / 0.1), var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.pricing-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-plan {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.04em;
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 400;
}

.pricing-tagline {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--slate-700);
}

.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.feature-yes {
    color: var(--slate-700);
}

.feature-yes::before {
    background-color: rgb(16 185 129 / 0.12);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature-no {
    color: var(--slate-400);
}

.feature-no::before {
    background-color: var(--slate-100);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--slate-900);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgb(99 102 241 / 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-400);
    max-width: 520px;
    line-height: 1.65;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    border-top: 1px solid var(--slate-800);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
    max-width: 280px;
}

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

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--slate-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--slate-500);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--slate-200);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--slate-600);
}

/* ============================================
   DASHBOARD LAYOUT (preserved for dashboard pages)
   ============================================ */

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

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--slate-200);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.sidebar-nav {
    padding: 1rem;
}

.sidebar-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.15s;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.nav-item.active {
    background: rgb(79 70 229 / 0.08);
    color: var(--indigo);
}

.nav-item-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--slate-50);
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    padding: var(--spacing-xl);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.summary-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--spacing-md);
    color: #fff;
}

.summary-card.gradient-purple { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.summary-card.gradient-blue   { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.summary-card.gradient-green  { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.summary-card.gradient-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.summary-icon  { font-size: 2.5rem; }
.summary-label { font-size: 0.875rem; opacity: 0.9; margin-bottom: 0.25rem; }
.summary-value { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; font-family: 'Outfit', sans-serif; }
.summary-change { font-size: 0.875rem; opacity: 0.9; }

/* Section Card */
.section-card {
    background: #fff;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    margin-bottom: var(--spacing-lg);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-card-title  { font-family: 'Outfit', sans-serif; font-size: 1.125rem; font-weight: 700; }
.section-card-link   { color: var(--indigo); text-decoration: none; font-weight: 500; font-size: 0.875rem; }
.section-card-link:hover { text-decoration: underline; }

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.quick-action-btn {
    background: var(--slate-50);
    border: 1.5px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.quick-action-btn:hover {
    background: var(--slate-100);
    border-color: var(--indigo);
    transform: translateY(-2px);
}

.quick-action-icon { font-size: 2rem; }
.quick-action-text { font-weight: 500; color: var(--slate-700); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Subscription List */
.subscription-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.subscription-item-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.subscription-item-compact:hover {
    background: var(--slate-100);
    transform: translateX(5px);
}

.subscription-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.subscription-icon.gradient-red    { background: linear-gradient(135deg, #e53e3e, #fc8181); }
.subscription-icon.gradient-green  { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.subscription-icon.gradient-orange { background: linear-gradient(135deg, #fa709a, #fee140); }
.subscription-icon.gradient-blue   { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.subscription-icon.gradient-purple { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.subscription-info { flex: 1; }
.subscription-name { font-weight: 600; margin-bottom: 0.25rem; }
.subscription-meta { font-size: 0.875rem; color: var(--slate-500); }
.subscription-cost { font-weight: 700; color: var(--indigo); font-size: 1.125rem; font-family: 'Outfit', sans-serif; }

/* Category Chart */
.category-chart { display: flex; flex-direction: column; gap: var(--spacing-md); }
.category-item  { display: grid; grid-template-columns: 1fr auto; gap: var(--spacing-md); align-items: center; }
.category-info  { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: var(--spacing-xs); }
.category-name  { font-weight: 500; font-size: 0.875rem; }
.category-amount { font-weight: 600; color: var(--indigo); }
.category-bar-wrapper { grid-column: 1; height: 8px; background: var(--slate-200); border-radius: var(--radius-sm); overflow: hidden; }
.category-bar   { height: 100%; border-radius: var(--radius-sm); transition: width 0.3s; }
.category-percent { grid-column: 2; font-size: 0.875rem; color: var(--slate-500); font-weight: 500; }

/* Insights */
.insights-grid  { display: grid; gap: var(--spacing-md); }
.insight-card   { display: flex; gap: var(--spacing-md); padding: var(--spacing-md); border-radius: var(--radius-lg); border-left: 4px solid; }
.insight-card.warning { background: #fef3c7; border-color: var(--warning); }
.insight-card.info    { background: #dbeafe; border-color: var(--info); }
.insight-card.success { background: #d1fae5; border-color: var(--success); }
.insight-icon   { font-size: 1.5rem; }
.insight-title  { font-weight: 600; margin-bottom: 0.25rem; }
.insight-description { font-size: 0.875rem; color: var(--slate-700); }

/* Renewals */
.renewals-list  { display: flex; flex-direction: column; gap: var(--spacing-md); }
.renewal-item   { display: flex; gap: var(--spacing-md); align-items: center; padding: var(--spacing-md); background: var(--slate-50); border-radius: var(--radius-lg); }
.renewal-date   { text-align: center; padding: var(--spacing-sm); background: #fff; border-radius: var(--radius-md); min-width: 60px; }
.renewal-day    { font-size: 0.75rem; color: var(--slate-500); font-weight: 600; text-transform: uppercase; }
.renewal-number { font-size: 1.5rem; font-weight: 700; color: var(--indigo); font-family: 'Outfit', sans-serif; }
.renewal-info   { flex: 1; }
.renewal-name   { font-weight: 600; margin-bottom: 0.25rem; }
.renewal-cost   { font-size: 0.875rem; color: var(--slate-500); }
.renewal-status { padding: 0.25rem 0.75rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; }
.renewal-status.status-upcoming { background: #fef3c7; color: #92400e; }
.renewal-status.status-soon     { background: #dbeafe; color: #1e40af; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .dashboard-preview {
        border-radius: 16px;
        max-width: 420px;
    }

    .hero-content {
        padding-bottom: 0;
    }

    .hero {
        padding-bottom: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-connector {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--slate-200);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-md);
    }

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

    .nav-mobile-toggle {
        display: flex;
    }

    .navbar {
        position: relative;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .sidebar {
        width: 70px;
    }

    .sidebar-text,
    .nav-item span:not(.nav-item-icon) {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

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