
/* ============================================
   Verbixo — Design System & Global Styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');
@import url('./_part2.css?v=3');

/* ---- CSS Custom Properties (Grammarly/SaaS Style) ---- */
:root {
    --bg: #0B0E14;
    --bg2: #111827;
    --card: #1F2937;
    --card2: #374151;
    --purple: #7C3AED;
    --purple-light: #8B5CF6;
    --yellow: #FACC15;
    --yellow-soft: #FEF08A;
    --white: #F9FAFB;
    --muted: #9CA3AF;
    --green: #10B981;
    --pink: #EC4899;
    --error: #EF4444;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-color: rgba(255, 255, 255, 0.08); /* Sheer, subtle borders */
    --border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(17, 24, 39, 0.7); /* Tailwind Gray-900 /w opacity */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-purple: 0 4px 6px -1px rgba(124, 58, 237, 0.2);
    --shadow-yellow: 0 4px 6px -1px rgba(250, 204, 21, 0.15);

    /* Glow tokens (toned way down for professional look) */
    --glow-purple: 0 0 15px rgba(124, 58, 237, 0.2);
    --glow-gold: 0 0 15px rgba(250, 204, 21, 0.15);
    --glow-green: 0 0 15px rgba(16, 185, 129, 0.15);

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;

    --max-width: 1200px; /* Constrain max width further for focus */
    --header-height: 72px;

    /* Compat aliases */
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg2);
    --bg-tertiary: var(--card);
    --bg-glass: var(--glass-bg);
    --text-primary: var(--white);
    --text-secondary: var(--muted);
    --text-tertiary: #6B7280;
    --accent-primary: var(--purple);
    --accent-secondary: var(--purple-light);
    --accent-gradient: linear-gradient(135deg, var(--purple), var(--purple-light));
    --accent-gradient-hover: linear-gradient(135deg, #6D28D9, #7C3AED);
    --accent-glow: rgba(124, 58, 237, 0.15);
    --accent-text: #ffffff;
    --success: var(--green);
    --warning: var(--yellow);
    --hero-badge-color: var(--purple-light);
}

/* ---- Light Mode ---- */
[data-theme="light"] {
    --bg: #F9FAFB;
    --bg2: #F3F4F6;
    --card: #FFFFFF;
    --card2: #F9FAFB;
    --white: #111827;
    --muted: #4B5563;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --hero-badge-color: var(--purple);
}

/* Light Mode: Fix popular pricing card contrast */
[data-theme="light"] .pricing-card.popular {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
}

[data-theme="light"] .pricing-card.popular .pricing-features li {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .pricing-card.popular .pricing-features li::before {
    color: #10E8A0;
}

/* ---- Light Mode Overrides ---- */
[data-theme="light"] .pricing-card.popular .pricing-name,
[data-theme="light"] .pricing-card.popular .pricing-price {
    color: #FFFFFF;
}

[data-theme="light"] .pricing-card.popular .pricing-desc,
[data-theme="light"] .pricing-card.popular .pricing-features li,
[data-theme="light"] .pricing-card.popular .period {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .tool-card-link {
    color: #7C3AED;
}

[data-theme="light"] .tool-card:hover .tool-card-link {
    color: #9b59b6;
}

/* Refined branding for Light Mode */
[data-theme="light"] .trust-badge {
    background: rgba(124, 58, 237, 0.05) !important;
    border: 1px solid rgba(124, 58, 237, 0.12) !important;
    color: #5A4A7A !important;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .trust-badge i {
    color: #10B981 !important;
    /* Premium Emerald 500 */
}

/* Unified premium logo for light mode */
[data-theme="light"] .logo svg rect:nth-of-type(1) {
    fill: #8B5CF6 !important;
    /* Soft Violet 500 */
}

/* Light mode: glassmorphic elements */
[data-theme="light"] .tool-card,
[data-theme="light"] .step-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .pricing-card:not(.popular) {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(124, 58, 237, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-stat {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .tool-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .footer {
    background: #EDE5FF;
}

[data-theme="light"] .uni-logo {
    color: #1A0B35;
    opacity: 0.25;
}

[data-theme="light"] .uni-logo:hover {
    opacity: 0.5;
}

[data-theme="light"] .tool-card-link {
    color: #7C3AED;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .tool-card:hover .tool-card-link {
    color: #5B21B6;
    background: rgba(124, 58, 237, 0.12);
}

/* Light mode: step cards */
[data-theme="light"] .step-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .step-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Light mode: hero stats */
[data-theme="light"] .hero-stat {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(124, 58, 237, 0.1);
}

/* Light mode: testimonials */
[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Light mode: pricing cards */
[data-theme="light"] .pricing-card:not(.popular):hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Light mode: email input */
[data-theme="light"] .email-input {
    background: rgba(255, 255, 255, 0.8);
    color: #1A0B35;
}

/* Light mode: activity bar */
[data-theme="light"] .activity-bar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Light mode: ad slots */
[data-theme="light"] .ad-slot {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(124, 58, 237, 0.08);
}

/* Light mode: body mesh gradient */
[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
}

[data-theme="light"] body::after {
    opacity: 0.08;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    transition: background var(--transition-base), color var(--transition-base);
}

/* Background mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
}

h3 {
    font-size: clamp(18px, 2vw, 24px);
}

p {
    color: var(--muted);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

/* ---- Header / Nav ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo .logo-yellow {
    color: var(--yellow);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
    position: relative;
    height: 100%;
}

.nav a:hover,
.nav a.active {
    color: var(--white);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-light);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--purple);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-purple);
    transition: all var(--transition-base);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
    background: #6D28D9;
    color: #ffffff;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    transition: all var(--transition-fast), transform 0.5s ease;
}

.theme-toggle:hover {
    border-color: var(--purple);
    transform: scale(1.2);
}

.theme-toggle.rotating {
    transform: scale(1.2) rotate(360deg);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav a {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-sm) 0;
}

.mobile-nav a:hover {
    color: var(--purple-light);
}

.mobile-nav a.nav-cta-mobile {
    margin-top: var(--space-md);
    padding: 12px 24px;
    background: var(--bg2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-align: center;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.mobile-nav a.nav-cta-mobile:hover {
    background: var(--purple-light);
    color: var(--bg1);
    border-color: var(--purple-light);
}

.mobile-nav a i {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    vertical-align: middle;
}

/* ---- Phosphor Icon Alignment (Global) ---- */
i[class*="ph-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: -0.125em !important;
    line-height: inherit !important;
    font-style: normal !important;
    transform: translateY(0.04em) !important;
}

/* Specific icon sizing fixes */
h1 i[class*="ph-"] {
    font-size: 1em !important;
    /* All h1 header icons match heading text size */
}

.textarea-label i[class*="ph-"],
.textarea-label span i[class*="ph-"] {
    font-size: 1em !important;
    /* Match label text size exactly */
}

/* Inside flex containers that are already perfectly centered, reset top */
.btn i[class*="ph-"],
.theme-toggle i[class*="ph-"],
.hero-badge i[class*="ph-"],
.pricing-badge i[class*="ph-"],
.next-step-icon i[class*="ph-"],
.tool-card-icon i[class*="ph-"],
.testimonial-stars i[class*="ph-"],
.hook-card-type i[class*="ph-"],
.workflow-step-icon i[class*="ph-"],
.textarea-label i[class*="ph-"],
.textarea-label span i[class*="ph-"] {
    transform: none !important;
    vertical-align: middle !important;
}

/* Theme toggle */
.theme-toggle i[class*="ph-"] {
    font-size: 1.1rem;
}

/* Sidebar info-card headers */
.info-card h3 i[class*="ph-"] {
    font-size: 1.1em;
}

/* Rate notice */
.rate-notice i[class*="ph-"] {
    font-size: 1em;
}

/* Activity bar */
.activity-bar i[class*="ph-"] {
    font-size: 0.95rem;
}

/* Mobile nav */
.mobile-nav a i[class*="ph-"] {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* ---- Buttons (Unified Professional System) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-primary {
    background: var(--purple);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-color);
}

[data-theme='light'] .btn-secondary {
    background: #ffffff;
    border-color: #E5E7EB;
    color: #111827;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    color: var(--white);
    transform: translateY(-1px);
}

[data-theme='light'] .btn-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

[data-theme='light'] .btn-ghost:hover {
    background: #F3F4F6;
    color: #111827;
}

/* Legacy mapped classes */
.btn-purple {
    background: var(--purple);
    color: #ffffff;
}

.btn-purple:hover {
    background: #6D28D9;
    color: #ffffff;
}

/* Pro gold button with shimmer */
.btn-pro-gold {
    position: relative;
    overflow: hidden;
}

.btn-pro-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ---- Hero Section ---- */
.hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%,
            rgba(124, 58, 237, 0.45) 0%,
            transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 80%,
            rgba(255, 215, 0, 0.12) 0%,
            transparent 50%),
        #0E0520;
}

[data-theme="light"] .hero {
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hero-badge-color);
    margin-bottom: var(--space-md);
}

.trust-badge {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.hero h1 {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

.hero h1 .yellow-underline {
    position: relative;
}

.hero h1 .yellow-underline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--purple-light) 20%, var(--purple-light) 80%, transparent 100%);
    border-radius: 2px;
    opacity: 0.9;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}


.hero-stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.hero-stat-value .yellow {
    color: var(--purple-light);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Hero stat clean cards */
.hero-stat {
    text-align: center;
    padding: 24px 28px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--shadow-md);
    transition: all var(--transition-base);
}

.hero-stat:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Trusted By Bar */
.trusted-by-bar {
    margin-top: 3.5rem;
    text-align: center;
}

.trusted-by-label {
    font-size: 0.8rem;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.trusted-by-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.uni-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    opacity: 0.3;
    letter-spacing: 0.5px;
    transition: opacity var(--transition-base);
    user-select: none;
}

.uni-logo:hover {
    opacity: 0.6;
}

/* Step number with icon */
.step-number i {
    font-size: 1.5rem;
    color: white;
}

/* Tool card badge */
.tool-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: #ffffff;
    letter-spacing: 0.03em;
    z-index: 2;
}

/* Hero inline tool */
.hero-tool {
    max-width: 640px;
    margin: var(--space-xl) auto 0;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(16px);
    text-align: left;
}

.hero-tool textarea {
    width: 100%;
    min-height: 80px;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}

.hero-tool textarea:focus {
    border-color: var(--purple);
}

.hero-tool-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
    gap: var(--space-sm);
}

/* ---- Advanced Controls Form Styling ---- */
.advanced-options {
    margin: 0;
    background: transparent;
    border: none;
    border-top: 1px solid #27272A; /* Matches editor-footer border */
    border-radius: 0;
    padding: 24px 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

html[data-theme='light'] .advanced-options {
    border-top-color: #E5E7EB;
}

.options-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-header i {
    color: var(--purple-light);
    font-size: 1.1rem;
}

.toggles-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.toggle-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    transition: color var(--transition-base);
    user-select: none;
}

.toggle-item:hover {
    color: var(--white);
}

/* Hide default checkbox */
.toggle-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom visual toggle switch */
.toggle-item .toggle-label {
    position: relative;
    padding-left: 44px; /* Space for the pill */
    display: inline-block;
    line-height: 24px;
}

.toggle-item .toggle-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 24px;
    background: var(--bg2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: background var(--transition-base), border-color var(--transition-base);
}

/* The toggle switch circle */
.toggle-item .toggle-label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--muted);
    border-radius: 50%;
    transition: transform var(--transition-base), background var(--transition-base);
}

/* Checked state */
.toggle-item input[type="checkbox"]:checked + .toggle-label::before {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--purple);
}

.toggle-item input[type="checkbox"]:checked + .toggle-label::after {
    background: var(--purple-light);
    transform: translateX(14px);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

/* Add custom focus indicator */
.toggle-item input[type="checkbox"]:focus-visible + .toggle-label::before {
    outline: 2px solid var(--purple-light);
    outline-offset: 2px;
}

.hero-tool-result {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.hero-tool-result.visible {
    display: block;
    animation: fadeInUp 0.4s ease both;
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    letter-spacing: -0.02em;
}

.section-header p {
    max-width: 560px;
    margin: var(--space-md) auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    background: rgba(30, 15, 62, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--glow-purple);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124, 58, 237, 0.3);
    animation: stepPulse 3s ease-in-out infinite;
}

@keyframes stepPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.step-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}



/* ---- Tool Cards Grid ---- */
.tools-section {
    padding: var(--space-4xl) 0;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.tool-card {
    flex: 1 1 calc(33.333% - var(--space-lg));
    min-width: 280px;
    max-width: 400px;
    background: rgba(30, 15, 62, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* Top edge glow bar on hover */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(30, 15, 62, 0.7);
}

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

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Unified monochrome icon styling — premium academic feel */
.tool-card-icon.icon-humanizer,
.tool-card-icon.icon-rewriter,
.tool-card-icon.icon-pattern,
.tool-card-icon.icon-score,
.tool-card-icon.icon-hooks,
.tool-card-icon.icon-script,
.tool-card-icon.icon-paragraph,
.tool-card-icon.icon-style {
    background: rgba(124, 58, 237, 0.10);
    color: var(--purple-light);
}

.tool-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.tool-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--purple-light);
    padding: 8px 18px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    margin-top: auto;
    width: fit-content;
}

.tool-card:hover .tool-card-link {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    gap: 10px;
    color: var(--white);
}

/* ---- Pricing Section ---- */
.pricing-section {
    padding: var(--space-3xl) 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.pricing-toggle span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.pricing-toggle span.active {
    color: var(--purple-light);
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--card2);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--purple);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform var(--transition-fast);
}

.toggle-switch.annual::after {
    transform: translateX(24px);
}

.toggle-switch.annual {
    background: var(--purple);
    border-color: var(--purple);
}

.toggle-switch.annual::after {
    background: white;
}

.save-badge {
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: #ffffff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1140px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: rgba(30, 15, 62, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(124, 58, 237, 0.3);
}

.pricing-card.popular {
    transform: scale(1.04);
    background: linear-gradient(135deg, #2D1069, #1E0B4A);
    border: 2px solid var(--purple);
    box-shadow: var(--glow-purple);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-4px);
}

/* Shimmer on popular card */
.pricing-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.08), transparent);
    animation: pricingShimmer 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

@keyframes pricingShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.pricing-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: var(--space-lg);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--muted);
    padding-left: 24px;
    position: relative;
    white-space: nowrap;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ---- Current Plan Highlight ---- */
.pricing-card.current-plan {
    border-color: var(--green);
    box-shadow: 0 0 24px rgba(16, 232, 160, 0.2);
    position: relative;
}

.pricing-card.current-plan .btn-current-plan {
    background: var(--green);
    color: #0E0520;
    font-weight: 700;
    cursor: default;
    pointer-events: none;
    border: none;
}

.pricing-card.current-plan .btn-current-plan:hover {
    transform: none;
    box-shadow: none;
}

.current-plan-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #0E0520;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    z-index: 3;
}

/* ---- Testimonials ---- */
.testimonials-section {
    padding: var(--space-3xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: rgba(30, 15, 62, 0.45);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(124, 58, 237, 0.15);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    color: var(--yellow);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 2px;
}

.testimonial-stars i {
    font-size: 1rem;
    color: var(--yellow);
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

.testimonial-school {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---- FAQ ---- */
.faq-section {
    padding: var(--space-3xl) 0;
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    text-align: left;
    background: none;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--purple-light);
}

.faq-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    color: var(--muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Email Capture ---- */
.email-section {
    padding: var(--space-3xl) 0;
}

.email-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.email-box h2 {
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.email-box p {
    margin-bottom: var(--space-lg);
}

.email-form {
    display: flex;
    gap: var(--space-sm);
}

.email-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.email-input:focus {
    border-color: var(--purple);
}

.email-success {
    color: var(--green);
    font-weight: 500;
    display: none;
    margin-top: var(--space-md);
}

/* ---- Live Activity Bar ---- */
.activity-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 90;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.5s ease;
    transition: opacity 0.3s, transform 0.3s;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* ---- Ad Slots ---- */
.ad-slot {
    width: 100%;
    min-height: 90px;
    background: var(--bg2);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.8rem;
    margin: var(--space-lg) 0;
}

.ad-slot-sidebar {
    /* Remove min-height to prevent blank boxes when no ads are loaded */
    min-height: 0;
    margin: 0;
}

/* ---- Footer ---- */
.footer {
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--purple), var(--purple-light), transparent) 1;
    background: rgba(10, 3, 20, 0.8);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.tool-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Force Desaturated Monochrome Icons for Professional Look */
.tool-header h1 i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important; /* Desaturated Slate-400 */
    font-size: 32px !important;
    margin-right: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Force Desktop Grid Layout */
@media (min-width: 901px) {
    .tool-layout {
        display: grid !important;
        grid-template-columns: 1fr 300px !important;
        gap: var(--space-xl) !important;
        grid-template-areas: "main sidebar" !important;
        align-items: start !important;
        width: 100% !important;
    }
    
    .tool-main {
        grid-area: main !important;
        width: 100% !important;
    }
    
    .tool-sidebar {
        grid-area: sidebar !important;
        width: 300px !important;
        margin-top: 2px;
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

.footer-brand h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand p {
    font-size: 0.85rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-bottom span {
    display: inline-flex;
    align-items: center;
}

/* ============================================
   Start Mobile Responsiveness
   ============================================ */

@media (max-width: 900px) {

    /* Hide Desktop Nav */
    .nav {
        display: none;
    }

    /* Show Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide CTA on smaller screens to prevent overcrowding */
    .nav-cta {
        display: none;
    }

    /* Stack Footer Columns */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-brand h3 {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* Limit container padding */
    .container {
        padding: 0 var(--space-md);
    }

    /* Hero adjustments */
    .hero {
        padding: var(--space-xl) 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Fallback for clamp */
    }

    .hero-stats {
        gap: var(--space-lg);
        margin-top: var(--space-xl);
        justify-content: center;
    }

    .hero-stat {
        width: 45%;
        /* 2 per row */
        margin-bottom: var(--space-md);
    }

    /* Stack Grids */
    .steps-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        gap: var(--space-xl);
    }

    /* Tools Grid: 1 col on small mobile */
    .tools-grid {
        grid-template-columns: 1fr;
    }

    /* Tool Page Layout (from _part2.css) */
    .tool-layout {
        grid-template-columns: 1fr;
        /* Stack sidebar below */
        gap: var(--space-lg);
    }

    .tool-sidebar {
        order: 2;
        /* Sidebar below workspace */
    }

    .tool-workspace {
        order: 1;
        padding: var(--space-lg);
    }

    /* Reduce section padding for tighter layout on small screens */
    .how-it-works,
    .tools-section,
    .pricing-section,
    .testimonials-section,
    .faq-section,
    .email-section,
    .tool-page {
        padding: var(--space-xl) 0;
    }

    /* Activity Bar: responsive width */
    .activity-bar {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: 90%;
        max-width: 340px;
        justify-content: center;
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    /* Ensure modals/toasts are visible on mobile */
    .copy-toast {
        width: 90%;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        text-align: center;
    }

    .copy-toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Style Converter Tabs */
.style-selector .btn-outline {
    background: transparent !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    color: #9B8ABB !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
}

.style-selector .btn-outline:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
}

.style-selector .btn-outline.active-style {
    background: rgba(124, 58, 237, 0.3) !important;
    border: 1px solid #7C3AED !important;
    color: #FFFFFF !important;
}

/* Light Mode Overrides for Better Contrast */
[data-theme="light"] .style-selector .btn-outline.active-style {
    background: rgba(124, 58, 237, 0.2) !important;
    color: #1A0B35 !important;
}

[data-theme="light"] .trust-badge {
    background: rgba(26, 11, 53, 0.05) !important;
    border-color: rgba(26, 11, 53, 0.1) !important;
    color: #1A0B35 !important;
}

[data-theme="light"] .trust-badge i {
    color: #0d9488 !important;
    /* Darker teal for light mode icons */
}

/* ============================================
   PREMIUM RESULTS UI (Human Score & Analysis)
   ============================================ */
.results-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    animation: fadeIn 0.5s ease-out;
}



.score-display-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (max-width: 768px) {
    .score-display-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Gauge Chart */
.score-gauge-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.score-gauge {
    width: 100%;
    height: 100%;
}

.score-gauge-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 12;
}

.score-gauge-circle-fill {
    fill: none;
    stroke: var(--purple);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s;
}

.score-gauge-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#scoreNumber {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    font-family: var(--font-heading);
}

.score-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#scoreMessage {
    margin-top: var(--space-md);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Score Colors */
.score-low {
    color: #f87171 !important;
    stroke: #f87171 !important;
}

.score-mid {
    color: #fbbf24 !important;
    stroke: #fbbf24 !important;
}

.score-high {
    color: #10b981 !important;
    stroke: #10b981 !important;
}

/* Stats Mini Cards */
.score-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

[data-theme="light"] .stat-item {
    background: rgba(0, 0, 0, 0.02);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Breakdown Bars */
.score-breakdown {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px dashed var(--border-color);
}

.score-breakdown-item {
    margin-bottom: var(--space-lg);
}

.textarea-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.score-breakdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.score-breakdown-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[data-theme="light"] .score-breakdown-bar {
    background: rgba(0, 0, 0, 0.05);
}

.score-breakdown-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease-out;
}

.score-breakdown-fill.score-low {
    background: #f87171;
}

.score-breakdown-fill.score-mid {
    background: #fbbf24;
}

.score-breakdown-fill.score-high {
    background: #10b981;
}

.score-breakdown-desc {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
}

.hook-results-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.hook-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.hook-card:hover {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, 0.05);
    transform: translateX(4px);
}

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

.hook-card-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple-light);
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.hook-card-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--muted);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.hook-card-copy:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.hook-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ============================================ */

/* Base reveal — hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Direction variants */
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up reveal for cards */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid children */
.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.1s;
}

.stagger-3 {
    transition-delay: 0.15s;
}

.stagger-4 {
    transition-delay: 0.2s;
}

.stagger-5 {
    transition-delay: 0.25s;
}

.stagger-6 {
    transition-delay: 0.3s;
}

.stagger-7 {
    transition-delay: 0.35s;
}

.stagger-8 {
    transition-delay: 0.4s;
}

/* ---- Gradient Border Glow on Tool Cards ---- */
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--purple) 50%, var(--purple-light) 60%, transparent 70%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ---- Shimmer on Popular Pricing Card ---- */
.pricing-card.popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
    transform: skewX(-20deg);
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

@keyframes shimmerSweep {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}

/* ---- Typing Cursor on Hero ---- */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--purple-light);
    margin-left: 4px;
    vertical-align: baseline;
    border-radius: 2px;
    animation: cursorBlink 0.8s ease-in-out infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ---- Counter Animation Font ---- */
.hero-stat-value {
    font-variant-numeric: tabular-nums;
}

/* ---- Subtle Float for Step Numbers ---- */
.step-number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .step-number {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

/* ---- Testimonial Card Subtle Lift ---- */
.testimonial-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ---- FAQ Smooth Open ---- */
.faq-item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: var(--purple);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

/* ---- Section Header Underline Animation ---- */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header.visible h2::after,
.reveal.visible .section-header h2::after,
.section-header h2.visible::after {
    width: 60px;
}

/* ---- Pricing Card Hover Glow ---- */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.06);
    box-shadow: 0 24px 70px rgba(124, 58, 237, 0.4);
}

/* ---- Hero Badge Pulse Glow ---- */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .typing-cursor {
        animation: none;
        opacity: 1;
    }

    .pricing-card.popular::after {
        animation: none;
    }

    .hero-badge::after {
        animation: none;
    }

    .tool-card:hover::before {
        animation: none;
    }
}

/* ════════════════════════════════════════════════════════════════════
   LIMIT OVERLAY & BLUR SYSTEM
   ════════════════════════════════════════════════════════════════════ */

/* ── Blurred Text Overlay ─────────────────────────────────────────── */
.output-blur-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.output-blur-visible {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    padding: var(--space-md);
    min-height: 120px;
}

.output-blur-hidden {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    color: var(--text-secondary);
}

.output-blur-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--card) 80%);
    pointer-events: none;
    z-index: 1;
}

.output-blur-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    gap: var(--space-sm);
}

.output-blur-cta .blur-lock-icon {
    font-size: 28px;
    color: var(--purple-light);
    animation: blurLockPulse 2s ease-in-out infinite;
}

.output-blur-cta p {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.output-blur-cta .btn {
    margin-top: 4px;
}

@keyframes blurLockPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* ── Limit Warning Overlay ────────────────────────────────────────── */
.limit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    animation: limitOverlayFadeIn 0.4s ease forwards;
}

@keyframes limitOverlayFadeIn {
    to {
        opacity: 1;
    }
}

.limit-card {
    background: var(--card);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 460px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: limitCardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 107, 0.08);
}

@keyframes limitCardSlideIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Pulsing border glow */
.limit-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #FF6B6B, #FFD700, #FF6B6B);
    background-size: 200% 200%;
    z-index: -1;
    animation: limitBorderGlow 3s linear infinite;
    opacity: 0.4;
}

@keyframes limitBorderGlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Lock Icon */
.limit-lock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.limit-lock-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 215, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FF6B6B;
    animation: lockBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    position: relative;
}

@keyframes lockBounce {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Animated ring around lock */
.limit-lock-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 107, 0.3);
    animation: lockRingPulse 2s ease-in-out infinite;
}

@keyframes lockRingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Particle effects around lock */
.limit-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #FFD700;
    animation: particleFly 2s ease-out infinite;
}

.limit-particle:nth-child(1) {
    animation-delay: 0s;
    top: 50%;
    left: 0;
}

.limit-particle:nth-child(2) {
    animation-delay: 0.4s;
    top: 0;
    left: 50%;
}

.limit-particle:nth-child(3) {
    animation-delay: 0.8s;
    top: 50%;
    right: 0;
}

.limit-particle:nth-child(4) {
    animation-delay: 1.2s;
    bottom: 0;
    left: 50%;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(0);
        opacity: 0;
    }
}

.limit-particle:nth-child(1) {
    --dx: -30px;
    --dy: -15px;
}

.limit-particle:nth-child(2) {
    --dx: 10px;
    --dy: -30px;
}

.limit-particle:nth-child(3) {
    --dx: 30px;
    --dy: 10px;
}

.limit-particle:nth-child(4) {
    --dx: -10px;
    --dy: 30px;
}

/* Heading */
.limit-heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #FF6B6B, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: limitHeadingReveal 0.4s ease 0.4s both;
    opacity: 0;
}

@keyframes limitHeadingReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.limit-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    animation: limitHeadingReveal 0.4s ease 0.5s both;
    opacity: 0;
}

/* ── Countdown Timer ──────────────────────────────────────────────── */
.limit-countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-xl);
    animation: limitHeadingReveal 0.4s ease 0.6s both;
    opacity: 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-digit {
    background: var(--bg2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-width: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    opacity: 0.3;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}

.countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--muted);
    padding-top: 8px;
    animation: colonBlink 1s step-end infinite;
}

@keyframes colonBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Upgrade Buttons ──────────────────────────────────────────────── */
.limit-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: limitHeadingReveal 0.4s ease 0.7s both;
    opacity: 0;
}

.limit-actions .btn-upgrade-student {
    background: var(--purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.limit-actions .btn-upgrade-student:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.limit-actions .btn-upgrade-pro {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.limit-actions .btn-upgrade-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

/* Shimmer on upgrade buttons */
.limit-actions .btn-upgrade-pro::after,
.limit-actions .btn-upgrade-student::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: upgradeShimmer 3s ease-in-out infinite;
}

@keyframes upgradeShimmer {
    0% {
        left: -100%;
    }

    40%,
    100% {
        left: 150%;
    }
}

.limit-close {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.limit-close:hover {
    color: var(--text-primary);
}

/* ── Approaching Limit Toast ──────────────────────────────────────── */
.limit-approaching-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 360px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateX(120%);
}

@keyframes toastSlideIn {
    to {
        transform: translateX(0);
    }
}

.limit-approaching-toast.toast-out {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.limit-toast-icon {
    font-size: 22px;
    color: #FFD700;
    flex-shrink: 0;
    animation: blurLockPulse 2s ease-in-out infinite;
}

.limit-toast-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.limit-toast-text strong {
    color: var(--text-primary);
}
/* ==========================================================================
   MILLION-DOLLAR UI REDESIGN - TOOL WORKSPACE
   ========================================================================== */

/* Side-by-Side Premium Grid */
/* Side-by-Side Premium Grid */
.premium-workspace {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .premium-workspace {
        grid-template-columns: 1fr;
    }
}

.workspace-col {
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Textarea Containers */
.premium-textarea {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 25, 0.4); /* Subtly darker base */
    backdrop-filter: blur(24px); /* Heavy glass blur */
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very sheer border */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Highlight edge */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 450px; /* Expansive canvas feel */
}

.premium-textarea:focus-within {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Premium Typography for Textareas */
html[data-theme='dark'] .premium-textarea textarea.tool-textarea,
html[data-theme='dark'] .premium-textarea textarea.output-area,
.premium-textarea textarea.tool-textarea,
.premium-textarea textarea.output-area {
    width: 100%;
    flex-grow: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px;
    font-size: 16px; /* Larger, readable type */
    line-height: 1.7; /* Breathing room */
    color: var(--text-primary);
    resize: none;
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.premium-textarea textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

html[data-theme='light'] .premium-textarea textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
}

/* Editor Footer (Toolbar inside textarea) */
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #27272A;
    background: transparent;
    min-height: 56px;
    flex-wrap: nowrap;
    margin-top: auto;
}

html[data-theme='light'] .editor-footer {
    background: transparent;
    border-top: 1px solid #E5E7EB;
}

/* ── Powered-by Trust Badge ── */
.powered-by-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(18, 18, 25, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: default;
    margin-top: 14px;
}
.powered-by-badge:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 25, 0.65);
    color: rgba(255, 255, 255, 0.75);
}
.powered-by-badge .badge-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.powered-by-badge:hover .badge-logo {
    opacity: 1;
}
.powered-by-badge .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.powered-by-badge .badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}
.powered-by-badge .badge-model {
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
html[data-theme='light'] .powered-by-badge {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.45);
}
html[data-theme='light'] .powered-by-badge:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.65);
}
html[data-theme='light'] .powered-by-badge .badge-model {
    color: rgba(0, 0, 0, 0.75);
}
html[data-theme='light'] .powered-by-badge .badge-logo {
    filter: invert(1);
}

/* ── Animation Parent Positioning ── */
.output-section {
    position: relative;
}
.results-area {
    position: relative;
}

/* ══════════════════════════════════════════════════════════════════
   PROCESSING ANIMATION — Futuristic Neural Network Theme
   ══════════════════════════════════════════════════════════════════ */

.processing-anim {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: #0b0b12; /* Solid fallback */
    background-image: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, rgba(11, 11, 18, 1) 75%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    animation: animOverlayIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

/* Scanline overlay for futuristic depth */
.processing-anim::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(124, 58, 237, 0.015) 3px,
        rgba(124, 58, 237, 0.015) 4px
    );
    pointer-events: none;
    animation: scanlineScroll 8s linear infinite;
}

/* ── Orb Container ── */
.anim-orb-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

/* ── Glowing Core ── */
.anim-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 32px; height: 32px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #c084fc 0%, #7c3aed 50%, #5b21b6 100%);
    box-shadow:
        0 0 20px rgba(124, 58, 237, 0.6),
        0 0 40px rgba(124, 58, 237, 0.3),
        0 0 80px rgba(124, 58, 237, 0.15),
        inset 0 0 12px rgba(255, 255, 255, 0.2);
    animation: corePulse 2s ease-in-out infinite;
}

/* ── Tool Icon (emoji) ── */
.anim-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

/* ── Orbiting Rings ── */
.anim-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid transparent;
    will-change: transform;
}

.anim-ring-1 {
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-color: rgba(124, 58, 237, 0.4);
    border-style: dashed;
    border-width: 1.5px;
    animation: ringOrbit1 4s linear infinite;
}

.anim-ring-2 {
    width: 96px; height: 96px;
    margin: -48px 0 0 -48px;
    border-color: rgba(168, 85, 247, 0.25);
    border-style: dotted;
    border-width: 1px;
    animation: ringOrbit2 6s linear infinite reverse;
}

.anim-ring-3 {
    width: 118px; height: 118px;
    margin: -59px 0 0 -59px;
    border-color: rgba(192, 132, 252, 0.15);
    border-style: dashed;
    border-width: 0.5px;
    animation: ringOrbit3 8s linear infinite;
}

/* ── Orbiting Particles ── */
.anim-particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #c084fc;
    top: 50%; left: 50%;
    will-change: transform;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.8), 0 0 12px rgba(124, 58, 237, 0.4);
}

.anim-particle-1 { animation: particlePath1 3s linear infinite; }
.anim-particle-2 { animation: particlePath2 3.5s linear infinite; width: 3px; height: 3px; background: #a78bfa; }
.anim-particle-3 { animation: particlePath3 4s linear infinite; width: 5px; height: 5px; }
.anim-particle-4 { animation: particlePath4 4.5s linear infinite; width: 3px; height: 3px; background: #e9d5ff; }
.anim-particle-5 { animation: particlePath5 3.2s linear infinite; width: 2px; height: 2px; background: #a78bfa; }
.anim-particle-6 { animation: particlePath6 5s linear infinite; width: 3px; height: 3px; }

/* ── Status Text with Shimmer ── */
.anim-status {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    position: relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(192,132,252,1) 50%, rgba(255,255,255,0.9) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s ease-in-out infinite;
}

/* ── Substatus with fade transition ── */
.anim-substatus {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
    min-height: 1.2em;
}

/* ── Progress Track ── */
.anim-track {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.anim-track-fill {
    width: 40%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed);
    background-size: 200% 100%;
    animation: trackPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

/* ══ KEYFRAMES ══ */

@keyframes animOverlayIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scanlineScroll {
    from { transform: translateY(0); }
    to { transform: translateY(40px); }
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(124,58,237,0.6), 0 0 40px rgba(124,58,237,0.3), 0 0 80px rgba(124,58,237,0.15), inset 0 0 12px rgba(255,255,255,0.2); }
    50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 30px rgba(124,58,237,0.8), 0 0 60px rgba(124,58,237,0.4), 0 0 100px rgba(124,58,237,0.2), inset 0 0 16px rgba(255,255,255,0.3); }
}

@keyframes iconFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-3px); }
}

@keyframes ringOrbit1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringOrbit2 {
    from { transform: rotate(0deg) rotateX(60deg); }
    to { transform: rotate(360deg) rotateX(60deg); }
}

@keyframes ringOrbit3 {
    from { transform: rotate(0deg) rotateY(50deg); }
    to { transform: rotate(360deg) rotateY(50deg); }
}

@keyframes particlePath1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(35px) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) rotate(180deg) translateX(35px) scale(0.6); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(35px) scale(1); opacity: 1; }
}
@keyframes particlePath2 {
    0% { transform: translate(-50%, -50%) rotate(60deg) translateX(48px) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) rotate(240deg) translateX(48px) scale(0.5); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) rotate(420deg) translateX(48px) scale(1); opacity: 0.8; }
}
@keyframes particlePath3 {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateX(55px) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) rotate(300deg) translateX(55px) scale(0.7); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) rotate(480deg) translateX(55px) scale(1); opacity: 1; }
}
@keyframes particlePath4 {
    0% { transform: translate(-50%, -50%) rotate(200deg) translateX(40px) scale(0.8); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) rotate(380deg) translateX(40px) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(560deg) translateX(40px) scale(0.8); opacity: 0.7; }
}
@keyframes particlePath5 {
    0% { transform: translate(-50%, -50%) rotate(270deg) translateX(30px) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) rotate(450deg) translateX(30px) scale(0.4); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) rotate(630deg) translateX(30px) scale(1); opacity: 0.6; }
}
@keyframes particlePath6 {
    0% { transform: translate(-50%, -50%) rotate(330deg) translateX(58px) scale(0.6); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) rotate(510deg) translateX(58px) scale(1); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) rotate(690deg) translateX(58px) scale(0.6); opacity: 0.5; }
}

@keyframes textShimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

@keyframes trackPulse {
    0% { background-position: 200% 0; width: 30%; }
    50% { background-position: -200% 0; width: 60%; }
    100% { background-position: 200% 0; width: 30%; }
}

/* ── Light Theme Overrides ── */
html[data-theme='light'] .processing-anim {
    background-color: #fafafa;
    background-image: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08) 0%, rgba(250, 250, 250, 1) 75%);
}
html[data-theme='light'] .processing-anim::before {
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(124, 58, 237, 0.02) 3px, rgba(124, 58, 237, 0.02) 4px);
}
html[data-theme='light'] .anim-status {
    background: linear-gradient(90deg, rgba(30,30,30,0.9) 0%, rgba(124,58,237,1) 50%, rgba(30,30,30,0.9) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}
html[data-theme='light'] .anim-substatus {
    color: rgba(0, 0, 0, 0.4);
}
html[data-theme='light'] .anim-track {
    background: rgba(0, 0, 0, 0.06);
}

/* Inline Actions */
.inline-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

/* Floating Action Button (Top Right Inside Box) */
.output-envelope {
    position: relative;
}

.floating-action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 8px 16px !important;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.premium-textarea:hover .floating-action {
    opacity: 1;
}

.floating-action:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Premium Primary Button (Hardware Accelerated Scale) */
.premium-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease !important;
    background: var(--purple) !important; /* Flat solid authoritative color */
    border: none !important;
    box-shadow: none !important; /* Strict flat design */
    border-radius: 6px !important; /* Sharper */
}

.premium-btn:hover {
    transform: scale(0.98) translateY(-1px) !important;
    background: #6D28D9 !important; /* Darker state */
}

.premium-btn:active {
    transform: scale(0.95) !important;
}

/* Fix for label overflow and styling (Technical/Academic look) */
.workspace-col .textarea-label {
    min-width: 100%;
    margin-bottom: 12px;
    padding-left: 1px; /* Align precisely with textarea input text */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--muted);
}

.workspace-col .textarea-label i {
    opacity: 0.8;
}

.workspace-col .textarea-label .char-count {
    font-family: 'SF Mono', 'Fira Code', monospace; /* Monospace for technical counters */
    letter-spacing: normal;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

html[data-theme='light'] .workspace-col .textarea-label .char-count {
    background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   ULTRA-PREMIUM GLOBAL OVERRIDES (GRAMMARLY/SAAS REDESIGN)
   ========================================================================== */

/* 1. Clean, Distraction-Free Backgrounds */
.tool-page {
    position: relative;
    background: transparent;
}

html[data-theme='dark'] body {
    background-color: #0B0E14 !important; /* Very dark, slate-blue tinted gray (professional) */
    background-image: none; /* Removed flashy orbs for a clean workspace */
}

html[data-theme='light'] body {
    background-color: #F9FAFB !important; /* Off-white, soft background */
}

/* 2. Premium Typography & Headers (Fixed Icon Bug) */
.tool-header h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Apply gradient only to a span if we want it, but for a Grammarly look, solid text is better. 
   We will keep it solid high-contrast for maximum professional readability. */
.tool-header h1 {
    color: #ffffff;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
}
.tool-header h1 i {
    color: #94A3B8 !important; /* Slate Gray */
    -webkit-text-fill-color: initial;
}

html[data-theme='light'] .tool-header h1 {
    color: #111827;
    background: none;
    -webkit-text-fill-color: initial;
}

/* 3. Sleek, Functional Workspace Panels (Grammarly Style) */
.tool-workspace {
    background: transparent !important; /* Remove box-in-box */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important; /* Let text areas stretch */
    border-radius: 0 !important;
}

html[data-theme='light'] .tool-workspace {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 4. Textarea Refinements */
.premium-textarea {
    background: #09090B; /* Almost pure black for extreme contrast */
    border: 1px solid #27272A; /* Crisp 1px border */
    border-radius: 8px; /* Sharper corners */
    box-shadow: none; /* Flat design */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: border-color 0.2s ease;
}

html[data-theme='light'] .premium-textarea {
    background: #FFFFFF; /* Pure white */
    border: 1px solid #E5E7EB; /* Crisp light gray border */
    box-shadow: none;
}

.premium-textarea:focus-within {
    border-color: #A78BFA; /* Sharp, thin focus ring instead of glow */
    box-shadow: inset 0 0 0 1px #A78BFA !important; /* Inset solid line, no blur */
    background: #09090B;
}

html[data-theme='light'] .premium-textarea:focus-within {
    background: #FFFFFF;
    border-color: #8B5CF6;
    box-shadow: inset 0 0 0 1px #8B5CF6 !important;
}

/* Text inside the editor */
html[data-theme='dark'] .premium-textarea textarea.tool-textarea,
html[data-theme='dark'] .premium-textarea textarea.output-area,
.premium-textarea textarea.tool-textarea,
.premium-textarea textarea.output-area {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8; /* Increased for academic breathing room */
    color: #F8FAFC; /* Slate 50 - extremely high contrast */
    font-weight: 400;
    padding: 32px; /* Huge padding for focus */
}

html[data-theme='light'] .premium-textarea textarea.tool-textarea,
html[data-theme='light'] .premium-textarea textarea.output-area {
    color: #1F2937;
}

/* Keep redundant definitions the same as above or remove entirely - removing redundancy here */

/* 6. Sidebar adjustments for clean look */
.tool-sidebar .info-card {
    background: rgba(17, 24, 39, 0.9) !important;
    border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
    border-right: 1px solid rgba(124, 58, 237, 0.12) !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.12) !important;
    border-left: 3px solid rgba(124, 58, 237, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme='light'] .tool-sidebar .info-card {
    background: #ffffff !important;
    border-top: 1px solid #E5E7EB !important;
    border-right: 1px solid #E5E7EB !important;
    border-bottom: 1px solid #E5E7EB !important;
    border-left: 3px solid rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Sleek Selection Color */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: inherit;
}
html[data-theme='light'] ::selection {
    background: rgba(124, 58, 237, 0.2);
    color: inherit;
}

/* ---- Subtle Scrollbar Styling ---- */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.25) transparent;
}
[data-theme='light'] {
    scrollbar-color: rgba(124, 58, 237, 0.15) transparent;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.45);
}
