/* Editor Suite - Design System */

/* Cloudflare CDN Fonts */
@import url('https://cdnjs.cloudflare.com/ajax/libs/inter-ui/3.19.3/inter.css');

/* Design Tokens */
:root {
    /* Background */
    --bg-base: #08050f;
    --bg-panel: #0d0918;
    --bg-elevated: #13101f;
    --bg-input: #0a0712;
    --bg-surface: rgba(255, 255, 255, 0.04);

    /* Borders */
    --border: #221b35;
    --border-light: #2d2444;
    --border-glow: rgba(139, 92, 246, 0.3);

    /* Text */
    --text-main: #e6e1f0;
    --text-muted: #8b829f;
    --text-dim: #4f4661;
    --text-white: #ffffff;

    /* Accent - Violet */
    --accent: #8b5cf6;
    --accent-bright: #a78bfa;
    --accent-dim: #6d28d9;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-bg: rgba(139, 92, 246, 0.1);
    --accent-bg-hover: rgba(139, 92, 246, 0.2);

    /* Accent - Secondary */
    --magenta: #f472b6;
    --magenta-glow: rgba(244, 114, 182, 0.3);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.2);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.2);

    /* Accent Gradient */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

    /* Gradients */
    --gradient-primary: var(--accent-gradient);
    --gradient-accent: var(--accent-gradient);
    --gradient-text: var(--accent-gradient);
    --gradient-hero: var(--accent-gradient);
    --gradient-surface: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.10));

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.14);
    --glass-blur: blur(20px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 4px 20px var(--accent-glow);
    --shadow-glow-lg: 0 8px 40px var(--accent-glow);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Z-index */
    --z-bg: 0;
    --z-content: 1;
    --z-nav: 100;
    --z-toast: 1000;
}

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

html {
    font-size: 110%;
}

html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background */
.es-bg-gradient {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    background:
        radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(244, 114, 182, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.es-bg-grid {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.es-bg-orbs {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    overflow: hidden;
}

.es-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: es-floatOrb 14s ease-in-out infinite;
}

.es-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.2);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.es-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(244, 114, 182, 0.15);
    bottom: -120px;
    right: -120px;
    animation-delay: -5s;
}

.es-orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(34, 211, 238, 0.1);
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes es-floatOrb {

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

    33% {
        transform: translate(40px, -40px) scale(1.06);
    }

    66% {
        transform: translate(-25px, 25px) scale(0.94);
    }
}

/* Navigation Bar */
.es-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 64px;
    background: rgba(8, 5, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.es-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.es-nav-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.es-nav-logo svg {
    width: 18px;
    height: 18px;
}

.es-nav-title {
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.es-nav-title span {
    color: var(--accent-bright);
}

.es-nav-title .es-nav-alpha {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    margin-left: 10px;
}

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

.es-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.es-nav-link:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
    border-color: var(--border);
}

.es-nav-link.active {
    background: var(--accent-bg);
    color: var(--accent-bright);
    border-color: var(--border-light);
}

.es-nav-link i {
    font-size: 14px;
}

.es-nav-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    margin-left: 8px;
}

.es-nav-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: es-blink 1.5s ease infinite;
}

@keyframes es-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── Glass Components ── */
.es-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
}

.es-glass-hover {
    transition: all var(--transition-normal);
}

.es-glass-hover:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Button System ── */
.es-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.es-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 3px 14px var(--accent-glow);
}

.es-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.es-btn-secondary {
    background: var(--accent-bg);
    border-color: var(--border-light);
    color: var(--accent-bright);
}

.es-btn-secondary:hover {
    background: var(--accent-bg-hover);
    border-color: var(--accent);
}

.es-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

.es-btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

/* ── Toast Notifications ── */
.es-toast-container {
    position: fixed;
    bottom: 70px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.es-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-size: 13px;
    min-width: 220px;
    animation: es-slideIn 0.3s var(--transition-smooth);
}

.es-toast.success {
    border-left: 3px solid var(--green);
}

.es-toast.success i {
    color: var(--green);
}

.es-toast.error {
    border-left: 3px solid #ef4444;
}

.es-toast.error i {
    color: #ef4444;
}

@keyframes es-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* ── Footer ── */
.es-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    gap: 6px;
}

.es-footer a {
    color: var(--accent-bright);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.es-footer a:hover {
    color: var(--text-white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ── Utility: Gradient Text ── */
.es-gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

/* ── Utility: Stat Values ── */
.es-stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Animations ── */
@keyframes es-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes es-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes es-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes es-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .es-nav {
        padding: 0 12px;
    }

    .es-nav-links {
        display: none;
    }

    .es-nav-badge {
        display: none;
    }

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

    .es-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .es-nav-mobile-toggle {
        display: none;
    }
}

/* ── Mobile Nav Drawer ── */
.es-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(8, 5, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    animation: es-slideDown 0.2s ease;
}

.es-mobile-nav.open {
    display: flex;
}

.es-mobile-nav .es-nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

@keyframes es-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ── Nav Mobile Toggle Button ── */
.es-nav-mobile-toggle {
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--glass-bg);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.es-nav-mobile-toggle:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
}

/* Homepage */
html.page-index,
body.page-index {
    overflow-y: auto;
    overflow-x: hidden;
}

.hero-container {
    padding-top: 64px;
    position: relative;
    z-index: var(--z-content);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Hero ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--accent-bg);
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-bright);
    margin-bottom: 28px;
    animation: es-slideUp 0.6s ease both;
}

.hero-eyebrow i {
    font-size: 10px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    color: var(--text-white);
    animation: es-slideUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: es-slideUp 0.6s ease 0.2s both;
}

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    animation: es-slideUp 0.6s ease 0.3s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: all var(--transition-normal);
}

.trust-badge:hover {
    border-color: var(--border-glow);
    background: var(--accent-bg);
}

.trust-badge i {
    font-size: 14px;
}

.trust-badge .fa-check-circle {
    color: var(--green);
}

.trust-badge .fa-shield-halved {
    color: var(--accent-bright);
}

.trust-badge .fa-ban {
    color: var(--magenta);
}

.trust-badge .fa-eye-slash {
    color: var(--cyan);
}

/* ── Scroll CTA ── */
.scroll-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-normal);
    animation: es-slideUp 0.6s ease 0.4s both;
}

.scroll-cta:hover {
    color: var(--accent-bright);
}

.scroll-cta i {
    font-size: 18px;
    animation: es-bounce 2s ease infinite;
}

@keyframes es-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ── Tools Section ── */
.tools-section {
    padding: 60px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Tool Cards Grid ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    position: relative;
    background: rgba(15, 11, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.tool-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.tool-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.tool-card-footer {
    margin-top: 20px;
}

.tool-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    width: 100%;
}

.tool-card-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.tool-card:hover .tool-card-btn i {
    transform: translateX(4px);
}

/* Theme Indigo (HTML Editor) */
.tool-card-indigo:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.btn-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.tool-card-indigo:hover .btn-indigo {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Theme Purple (Markdown Editor) */
.tool-card-purple:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.btn-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.tool-card-purple:hover .btn-purple {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: #ffffff;
    border-color: #c084fc;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* Theme Pink (Text Editor) */
.tool-card-pink:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15);
}

.badge-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.btn-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.tool-card-pink:hover .btn-pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: #ffffff;
    border-color: #f472b6;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

/* ── Features Section ── */
.features-section {
    padding: 60px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    border-color: var(--border-glow);
    background: var(--glass-bg-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-bg);
    color: var(--accent-bright);
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.feature-text small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Homepage Footer ── */
.home-footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    background: rgba(8, 5, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.home-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    gap: 6px;
}

.home-footer-inner a {
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.home-footer-inner a:hover {
    color: var(--text-white);
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }

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

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

    .home-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

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

    .trust-badges {
        gap: 8px;
    }

    .trust-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* HTML Editor */
.app-shell {
    position: relative;
    z-index: var(--z-content);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 64px;
}

.editor-container {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Editor Pane (Left) */
.editor-pane {
    display: flex;
    flex-direction: column;
    width: 25%;
    min-width: 0;
    max-width: 90%;
    border-right: 1px solid var(--border);
    background: var(--bg-base);
}

.editor-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-bottom: 1px solid var(--border);
    min-height: 0;
    transition: flex-grow 0.3s ease;
}

.editor-section:last-of-type {
    border-bottom: none;
}

.editor-header {
    background: var(--bg-panel);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    user-select: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-title .fa-html5 {
    color: #e34c26;
}

.editor-title .fa-css3-alt {
    color: #264de4;
}

.editor-title .fa-js {
    color: #f0db4f;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.expand-btn,
.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-ui);
}

.expand-btn:hover,
.clear-btn:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
}

.editor-section textarea {
    flex: 1;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: none;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    width: 100%;
    caret-color: var(--accent-bright);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0, "dlig" 0;
}

.editor-section textarea::placeholder {
    color: var(--text-dim);
}

/* Resizer */
.resizer {
    width: 5px;
    background: var(--bg-base);
    border-left: 1px solid var(--border);
    cursor: col-resize;
    z-index: 10;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pane-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 10px;
    opacity: 0;
    transition: all 0.2s;
}

.resizer:hover .toggle-pane-btn,
.toggle-pane-btn:hover {
    opacity: 1;
}

.toggle-pane-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.resizer:hover {
    background: var(--accent);
}

/* Preview Pane (Right) */
.preview-pane {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-base);
    min-width: 10%;
}

.preview-header {
    background: var(--bg-panel);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-header i {
    color: var(--accent);
}

.iframe-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #08050f;
}

iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #08050f;
}

#iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 20;
    background: transparent;
}

/* Expansion Classes */
.editor-section.maximized {
    flex: 1;
    height: 100%;
}

.editor-section.hidden {
    display: none;
}

.mobile-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-tab-bar {
        display: flex;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border);
        padding: 6px 10px;
        gap: 6px;
        flex-shrink: 0;
        z-index: 30;
    }

    .mobile-tab-btn {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid var(--border);
        background: var(--bg-elevated);
        color: var(--text-muted);
        border-radius: var(--radius-sm);
        font-size: 0.825rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all var(--transition-fast);
        font-family: var(--font-ui);
    }

    .mobile-tab-btn.active {
        background: var(--accent-bg);
        color: var(--accent-bright);
        border-color: var(--accent);
    }

    .editor-container {
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .editor-pane {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none;
    }

    .preview-pane {
        width: 100% !important;
        border-top: 1px solid var(--border);
    }

    /* View modes on mobile */
    .editor-container.mobile-mode-editor .editor-pane {
        display: flex !important;
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .editor-container.mobile-mode-editor .preview-pane {
        display: none !important;
    }

    .editor-container.mobile-mode-preview .editor-pane {
        display: none !important;
    }

    .editor-container.mobile-mode-preview .preview-pane {
        display: flex !important;
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .editor-header, .preview-header {
        touch-action: pan-y;
        user-select: none;
    }
}

/* Markdown Editor */
.app-container {
    position: relative;
    z-index: var(--z-content);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 64px;
}

/* Toolbar Ribbon */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.wf-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wf-tool-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--text-white);
}

.wf-tool-btn i {
    font-size: 12px;
    color: var(--accent-bright);
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.toolbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    font-family: var(--font-ui);
    white-space: nowrap;
}

.tool-action-btn:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
    border-color: var(--accent);
}

.tool-action-btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tool-action-btn-primary:hover {
    background: var(--accent-dim);
    box-shadow: var(--shadow-glow);
}

/* Main Layout & Resizing */
.md-main {
    flex: 1;
    display: flex;
    min-height: 0;
    width: 100%;
    position: relative;
}

.md-main .editor-pane {
    width: 50%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.md-main .preview-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    border-left: 1px solid var(--border);
}

/* Editor Wrap */
.editor-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#editor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    padding: 24px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 17px;
    line-height: 1.7;
    caret-color: var(--accent-bright);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0, "dlig" 0;
}

#editor::placeholder {
    color: var(--text-dim);
}

/* Preview Wrap */
.preview-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: var(--bg-base);
    font-size: 17px;
}

/* Markdown Preview Styles */
.preview-wrap > *:first-child {
    margin-top: 0;
}

.preview-wrap h1,
.preview-wrap h2,
.preview-wrap h3,
.preview-wrap h4,
.preview-wrap h5,
.preview-wrap h6 {
    font-weight: 700;
    margin: 1.5em 0 0.8em;
    line-height: 1.3;
    color: #fff;
}

.preview-wrap h1 {
    font-size: 2.2em;
}

.preview-wrap h2 {
    font-size: 1.7em;
}

.preview-wrap h3 {
    font-size: 1.4em;
    color: var(--accent-bright);
}

.preview-wrap h4 {
    font-size: 1.2em;
    color: var(--magenta);
}

.preview-wrap p {
    margin: 1em 0;
    line-height: 1.8;
    color: var(--text-main);
}

.preview-wrap a {
    color: var(--accent-bright);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.preview-wrap a:hover {
    color: #fff;
}

.preview-wrap code {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    color: var(--magenta);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

.preview-wrap pre {
    background: var(--bg-input) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.preview-wrap pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #d4d4d4;
}

.preview-wrap blockquote {
    border-left: 3px solid var(--accent);
    padding: 10px 20px;
    margin: 1.5em 0;
    background: var(--accent-bg);
    color: var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.preview-wrap ul,
.preview-wrap ol {
    padding-left: 2em;
    margin: 1em 0;
}

.preview-wrap li {
    margin: 0.5em 0;
}

.preview-wrap ul li::marker {
    color: var(--accent);
}

.preview-wrap ol li::marker {
    color: var(--magenta);
    font-weight: 700;
}

.preview-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}

.preview-wrap th,
.preview-wrap td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.preview-wrap th {
    background: var(--bg-elevated);
    color: var(--accent-bright);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.preview-wrap hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5));
    margin: 1.8em 0;
    border-radius: 2px;
}

.preview-wrap img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1em 0;
}

/* Footer stats */
.md-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    font-size: 13.5px;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.stat i {
    color: var(--accent);
    font-size: 12px;
}

.stat span {
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-mono);
}

.md-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.md-footer-tip {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}

.md-footer-tip kbd {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 60px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    font-size: 13px;
    min-width: 220px;
    animation: es-slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success {
    border-left: 3px solid var(--green);
}

.toast.success i {
    color: var(--green);
}

.toast.error {
    border-left: 3px solid #ef4444;
}

.toast.error i {
    color: #ef4444;
}

@media (max-width: 768px) {
    html, body {
        height: 100% !important;
        overflow: hidden !important;
    }

    .app-container {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 64px !important;
    }

    .es-mobile-tabs {
        display: none !important;
    }

    .toolbar {
        flex-shrink: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .md-main {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch;
    }

    .md-main .editor-pane {
        width: 100% !important;
        height: 280px !important;
        min-height: 200px !important;
        flex-shrink: 0 !important;
        position: relative;
    }

    .md-main .editor-wrap {
        height: 100%;
        position: relative;
    }

    #editor {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .resizer {
        display: none !important;
    }

    .md-main .preview-pane {
        width: 100% !important;
        flex: 1 !important;
        min-height: 250px !important;
        border-left: none;
        border-top: 1px solid var(--border);
        position: relative;
    }

    .preview-wrap {
        padding: 20px 16px;
    }

    .md-footer {
        flex-shrink: 0 !important;
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
        padding: 10px 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-top: 0;
    }

    .stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px 12px;
        width: 100%;
    }

    .stat {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        font-size: 12px;
    }

    .md-actions-right {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .md-actions-right .es-btn {
        flex: 1;
        max-width: 54px;
        padding: 8px 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .md-actions-right .es-btn span {
        display: none;
    }
}

/* Text Editor */
.wf-app {
    position: relative;
    z-index: var(--z-content);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
    transition: all var(--transition-normal);
}

/* Zen Focus Mode */
body.wf-focus-mode .es-nav {
    transform: translateY(-100%);
}

body.wf-focus-mode .wf-app {
    padding-top: 0;
}

body.wf-focus-mode .wf-sidebar {
    display: none !important;
}

/* Category Tabs Bar */
.wf-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.wf-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wf-tab-btn:hover {
    background: var(--accent-bg);
    color: var(--accent-bright);
}

.wf-tab-btn.active {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent-bright);
}

.wf-tab-btn i {
    font-size: 12px;
    color: var(--accent-bright);
}

/* Tool Ribbon Panel */
.wf-ribbon {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    flex-shrink: 0;
}

.wf-panel {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-panel.active {
    display: flex;
}

/* Inputs & Controls inside Ribbon */
.wf-field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition-fast);
    min-width: 130px;
}

.wf-input:focus {
    border-color: var(--accent);
}

.wf-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.wf-check input[type="checkbox"] {
    accent-color: var(--accent);
}

.wf-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

/* Split Workspace Area */
.wf-workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Textarea Editor Canvas */
.wf-editor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-base);
}

.wf-textarea {
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    border: none;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 1.75;
    padding: 20px;
    resize: none;
    outline: none;
    caret-color: var(--accent-bright);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0, "dlig" 0;
}

.wf-textarea::placeholder {
    color: var(--text-dim);
    font-size: 14px;
}

/* Sidebar Analytics */
.wf-sidebar {
    width: 300px;
    border-left: 1px solid var(--border);
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.wf-side-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.wf-side-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-side-title i {
    color: var(--accent);
}

/* Keyword Tags */
.wf-keywords-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wf-kw-tag {
    background: var(--accent-bg);
    border: 1px solid var(--border-light);
    color: var(--accent-bright);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wf-kw-tag b {
    opacity: 0.6;
    font-weight: 400;
    font-size: 11.5px;
    font-family: var(--font-mono);
}

/* Bar List */
.wf-bar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-bar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wf-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-white);
}

.wf-bar-meta span:last-child {
    font-family: var(--font-mono);
    color: var(--accent-bright);
}

.wf-bar-track {
    height: 5px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.wf-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width var(--transition-normal);
}

.wf-empty-hint {
    font-size: 13.5px;
    color: var(--text-main);
    font-style: italic;
}

/* Bottom Status & Action Bar */
.wf-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.wf-status-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wf-status-item {
    font-size: 13.5px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wf-status-item i {
    color: var(--accent);
    font-size: 12px;
}

.wf-status-item b {
    color: var(--text-white);
    font-weight: 600;
    font-family: var(--font-mono);
}

.wf-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-actions-right .es-btn {
    font-size: 12px;
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .wf-app {
        height: auto;
        min-height: 100vh;
        padding-top: 64px;
    }

    .wf-workspace {
        flex-direction: column;
        flex: 1;
    }

    .wf-editor-pane {
        width: 100% !important;
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    .wf-textarea {
        font-size: 16px !important;
        line-height: 1.7;
        padding: 14px 16px;
    }

    .wf-textarea::placeholder {
        font-size: 15px;
    }

    .wf-tab-btn {
        font-size: 13px;
        padding: 7px 12px;
    }

    .wf-tool-btn {
        font-size: 13px;
        padding: 7px 12px;
    }

    .wf-input {
        font-size: 14px;
        padding: 6px 10px;
    }

    .wf-sidebar {
        display: none !important;
    }

    .wf-status-bar {
        flex-direction: column;
        align-items: center;
        padding: 12px 14px;
        gap: 12px;
        background: var(--bg-panel);
        border-top: 1px solid var(--border);
    }

    .wf-status-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 14px;
        width: 100%;
    }

    .wf-status-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    .wf-status-item b {
        font-size: 13px;
    }

    .wf-actions-right {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .wf-actions-right .es-btn {
        flex: 1;
        max-width: 54px;
        padding: 8px 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    .wf-actions-right .es-btn span {
        display: none;
    }
}

/* Alpha Modal */
.es-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 5, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.es-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.es-modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.es-modal-backdrop.open .es-modal {
    transform: scale(1);
}

.es-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.es-modal-close:hover {
    color: var(--text-white);
}

.es-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.es-modal-icon {
    font-size: 28px;
}

.es-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.es-modal-body p {
    color: var(--text-main);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.es-modal-tip {
    background: var(--accent-bg);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.es-modal-tip i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
}

.es-modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.es-modal-btn {
    padding: 12px 36px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px var(--accent-glow) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.es-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow) !important;
    filter: brightness(1.1);
}