/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --max-width: 1200px;
    --spacing-unit: 1rem;
    --neon-color: #00ff00;
    --nav-offset: 160px;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 140px;
    cursor: default;
}

* {
    cursor: inherit;
}

*:not(input):not(textarea):not([contenteditable="true"]) {
    caret-color: transparent;
}

a, button, .provider-btn, .nav-cta, .auth-submit, .color-slider input[type="range"], .auth-close {
    cursor: pointer;
}

input, textarea, [contenteditable="true"] {
    cursor: text;
    caret-color: auto;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background: var(--neon-color);
    top: -200px;
    left: -200px;
    animation: pulse 4s ease-in-out infinite;
}

body::after {
    background: var(--neon-color);
    bottom: -200px;
    right: -200px;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes featuredPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
    position: relative;
    z-index: 1;
}

section {
    padding: calc(var(--spacing-unit) * 3) 0;
}

main.hero,
section[id],
.footer-brand[id] {
    scroll-margin-top: var(--nav-offset);
}

header, main, footer {
    position: relative;
    z-index: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-unit); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 3); }

.mb-1 { margin-bottom: var(--spacing-unit); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 3); }

/* Glass Navbar */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 3rem), var(--max-width));
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 0.85rem 1.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
    z-index: 900;
    animation: slideDown 0.6s cubic-bezier(.22,.61,.36,1) forwards;
}

.glass-nav .logo {
    color: #f5f5f5;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.glass-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.glass-nav .nav-links a {
    color: #e6e6e6;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.glass-nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.glass-nav .nav-links a:hover::after {
    width: 100%;
}

.glass-nav .nav-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.glass-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.glass-nav .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

/* Settings Button */
.nav-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.nav-settings-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.nav-settings-btn[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.6);
}

.nav-settings-btn i {
    font-size: 1rem;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1);
}

.nav-settings-btn:hover i {
    transform: rotate(90deg);
}

/* Settings Popup */
.settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-20px) scale(0.95);
    width: min(calc(100% - 3rem), 420px);
    max-width: 420px;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 
        opacity 300ms cubic-bezier(.22,.61,.36,1),
        transform 300ms cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-popup[aria-hidden="false"] {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
    pointer-events: auto;
}

.settings-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(.22,.61,.36,1);
}

.settings-popup__overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.settings-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.settings-popup__header h3 {
    color: #f8f8f8;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
}

.settings-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: 
        transform 200ms cubic-bezier(.22,.61,.36,1),
        background 200ms cubic-bezier(.22,.61,.36,1),
        color 200ms cubic-bezier(.22,.61,.36,1);
    padding: 0;
    outline: none;
}

.settings-popup__close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 1);
}

.settings-popup__close svg {
    width: 16px;
    height: 16px;
}

.settings-popup__content {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.settings-popup__content::-webkit-scrollbar {
    width: 6px;
}

.settings-popup__content::-webkit-scrollbar-track {
    background: transparent;
}

.settings-popup__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.settings-popup__content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 0;
}

.settings-item label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.settings-select {
    padding: 0.65rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    outline: none;
    transition: 
        background 200ms cubic-bezier(.22,.61,.36,1),
        border-color 200ms cubic-bezier(.22,.61,.36,1),
        transform 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 140px;
}

.settings-select:hover {
    transform: translateY(-1px);
}

.settings-select:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
}

.settings-select:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    transition: 
        background 200ms cubic-bezier(.22,.61,.36,1),
        border-color 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.settings-toggle__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle input:checked + .settings-toggle__slider {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.settings-toggle input:checked + .settings-toggle__slider:before {
    transform: translateX(22px);
}

.settings-toggle:hover .settings-toggle__slider {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Settings Glow Control */
.settings-item--glow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.settings-item--glow label {
    margin-bottom: 0;
    width: 100%;
}

.settings-glow-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.settings-glow-slider {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        hsl(0, 100%, 50%) 0%,
        hsl(60, 100%, 50%) 16.67%,
        hsl(120, 100%, 50%) 33.33%,
        hsl(180, 100%, 50%) 50%,
        hsl(240, 100%, 50%) 66.67%,
        hsl(300, 100%, 50%) 83.33%,
        hsl(360, 100%, 50%) 100%);
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: box-shadow 200ms cubic-bezier(.22,.61,.36,1);
}

.settings-glow-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1);
    cursor: pointer;
}

.settings-glow-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.settings-glow-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1);
}

.settings-glow-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.settings-glow-slider::-moz-range-track {
    background: transparent;
}

.settings-glow-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 20px currentColor, inset 0 0 10px currentColor;
    transition: box-shadow 200ms cubic-bezier(.22,.61,.36,1), transform 200ms cubic-bezier(.22,.61,.36,1);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.settings-glow-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px currentColor, inset 0 0 15px currentColor;
}

.color-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #eaeaea;
    font-size: 0.85rem;
}

.color-slider label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.color-slider input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 145px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        hsl(0, 100%, 50%) 0%,
        hsl(60, 100%, 50%) 16.67%,
        hsl(120, 100%, 50%) 33.33%,
        hsl(180, 100%, 50%) 50%,
        hsl(240, 100%, 50%) 66.67%,
        hsl(300, 100%, 50%) 83.33%,
        hsl(360, 100%, 50%) 100%);
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.2s ease;
}

.color-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3);
}

.color-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.color-slider input[type="range"]::-moz-range-track {
    background: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    color: #f8f8f8;
    text-align: center;
    padding: 0.25rem 1.5rem 0;
    transition: margin-top 520ms cubic-bezier(.22,.61,.36,1), padding 520ms cubic-bezier(.22,.61,.36,1);
    animation: fadeInUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}

.hero > h1 {
    animation: fadeInUp 0.8s cubic-bezier(.22,.61,.36,1) 0.1s both;
}

.hero > p {
    animation: fadeInUp 0.8s cubic-bezier(.22,.61,.36,1) 0.2s both;
}

.hero > h1,
.hero > p {
    transition: opacity 520ms cubic-bezier(.22,.61,.36,1), max-height 520ms cubic-bezier(.22,.61,.36,1), margin 520ms cubic-bezier(.22,.61,.36,1), transform 520ms cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
}

.hero.hero--expanded > h1,
.hero.hero--expanded > p {
    opacity: 0;
    max-height: 0;
    margin: 0;
    transform: translateY(-20px);
}

.hero p {
    max-width: 540px;
    margin: 0.75rem auto 0;
    color: rgba(255, 255, 255, 0.75);
}

.hero-panel {
    margin: 2.5rem auto 0;
    width: min(calc(100% - 3rem), var(--max-width));
    border-radius: 36px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2rem;
    transition:
        height 520ms cubic-bezier(.22,.61,.36,1),
        margin-top 520ms cubic-bezier(.22,.61,.36,1),
        border-radius 520ms cubic-bezier(.22,.61,.36,1),
        box-shadow 520ms cubic-bezier(.22,.61,.36,1),
        background 520ms cubic-bezier(.22,.61,.36,1),
        backdrop-filter 520ms cubic-bezier(.22,.61,.36,1),
        -webkit-backdrop-filter 520ms cubic-bezier(.22,.61,.36,1),
        transform 520ms cubic-bezier(.22,.61,.36,1),
        opacity 520ms cubic-bezier(.22,.61,.36,1);
    overflow: hidden;
    position: relative;
    will-change: height, margin-top, transform, backdrop-filter, box-shadow, background, border-radius, opacity;
    animation: fadeInScale 0.9s cubic-bezier(.22,.61,.36,1) 0.3s both;
}

.hero.hero--expanded .hero-panel {
    margin-top: 1rem;
    border-radius: 28px;
    background: rgba(10, 10, 10, 0.55);
    box-shadow: 0 55px 95px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

/* Fullscreen state: hero + panel truly fill the viewport */
.hero.hero--fullscreen {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 940;
}

.hero.hero--fullscreen .hero-panel.hero-panel--fullscreen {
    position: relative;
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow-y: auto; /* allow scrolling full-screen tools */
}

.hero.hero--fullscreen .hero-panel.hero-panel--fullscreen .content-viewer {
    position: relative;
    flex: 1;
    min-height: 100%;
}

.hero.hero--fullscreen .hero-panel.hero-panel--fullscreen .content-frame {
    max-height: none;
    min-height: 100%;
    padding: 0;
    overflow-y: auto; /* ensure inner tool content can scroll */
}

/* In fullscreen, let embedded tools stretch edge-to-edge inside the frame */
.hero.hero--fullscreen .hero-panel.hero-panel--fullscreen .content-frame .tool-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2rem 2.5rem !important;
}

/* Panel resize handle - professional horizontal bar at bottom center */
.panel-resize-handle {
    display: none !important; /* disabled per design: fixed full-screen height */
}

/* When a tool is open, allow scrolling inside the panel without resizing */
.hero-panel.tool-view-active {
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-right: 0.75rem; /* inset scrollbar from the rounded edge */
    padding-bottom: 0.5rem; /* extra space so handle can sit lower */
    scrollbar-gutter: stable both-edges;
    scrollbar-width: none;
}

.hero-panel.tool-view-active .content-viewer {
    min-height: 0;
}

.hero-panel.tool-view-active .content-frame {
    min-height: 0;
    max-height: none;
}

/* Match the previous scrollbar styling inside the scrollable hero panel */
.hero-panel.tool-view-active::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar color in Firefox */
.hero-panel.tool-view-active {
    scrollbar-color: transparent transparent;
}

/* resize handle styles removed (feature disabled) */

/* Minimize button */
.minimize-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(.22,.61,.36,1), box-shadow 300ms cubic-bezier(.22,.61,.36,1), background 300ms cubic-bezier(.22,.61,.36,1), opacity 300ms cubic-bezier(.22,.61,.36,1);
    opacity: 0;
    z-index: 2;
    transform: translateY(-6px);
    will-change: transform, opacity;
}

.minimize-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.minimize-btn.is-visible {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure the button is visible whenever the hero is expanded */
.hero.hero--expanded .minimize-btn {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
}

.category-cards {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.category-card {
    flex: 1 1 0;
    min-width: 0;
    transition:
        flex 460ms cubic-bezier(.22,.61,.36,1),
        box-shadow 460ms cubic-bezier(.22,.61,.36,1),
        opacity 460ms cubic-bezier(.22,.61,.36,1),
        filter 460ms cubic-bezier(.22,.61,.36,1),
        transform 460ms cubic-bezier(.22,.61,.36,1);
    animation: fadeInUp 0.7s cubic-bezier(.22,.61,.36,1) both;
    filter: none;
}

.category-card:nth-child(1) {
    animation-delay: 0.4s;
}

.category-card:nth-child(2) {
    animation-delay: 0.5s;
}

.category-card:nth-child(3) {
    animation-delay: 0.6s;
}

.category-cards:not(.cards--featured):hover .category-card {
    flex: 0.95;
    opacity: 0.75;
    filter: blur(0.03px);
}

.category-cards:not(.cards--featured):hover .category-card:hover {
    flex: 1.2;
    opacity: 1;
    filter: none;
    box-shadow: 0 52px 80px rgba(0, 0, 0, 0.5);
}

/* Expanded layout */
.category-cards.cards--featured {
    gap: 1.75rem;
}

.category-cards.cards--featured .category-card {
    flex: 1;
    opacity: 0.8;
    filter: blur(0.04px);
}

.category-cards.cards--featured .category-card.is-featured {
    flex: 2;
    padding: 2.4rem;
    opacity: 1;
    filter: none;
    box-shadow: 0 60px 100px rgba(0, 0, 0, 0.6);
}

.category-cards.cards--featured:hover .category-card:not(.is-featured) {
    flex: 0.95;
    opacity: 0.75;
    filter: blur(0.03px);
}

.category-cards.cards--featured:hover .category-card:not(.is-featured):hover {
    flex: 1.2;
    opacity: 1;
    filter: none;
    box-shadow: 0 55px 90px rgba(0, 0, 0, 0.55);
}

.category-cards.cards--featured:hover .category-card.is-featured {
    flex: 2;
    opacity: 1;
    filter: none;
}

.category-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 36px;
    padding: 2rem;
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    box-shadow: 0 55px 85px rgba(0, 0, 0, 0.55);
    z-index: 10;
}

.category-card:active {
    transition-duration: 0.15s;
}

.category-card h3 {
    color: #f8f8f8;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    min-height: calc(1.6em * 3);
    transition: color 0.2s ease;
}

.category-card:hover p {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
}

.category-actions {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
    opacity: 0;
    transform: translateY(12px);
    max-height: 0;
    pointer-events: none;
    transition:
        opacity 420ms cubic-bezier(.22,.61,.36,1),
        transform 420ms cubic-bezier(.22,.61,.36,1),
        max-height 420ms cubic-bezier(.22,.61,.36,1);
}

.hero.hero--expanded .category-actions {
    margin-top: 2rem;
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    pointer-events: auto;
}

.category-actions__empty {
    grid-column: 1 / -1;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
}

.category-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1), background 200ms cubic-bezier(.22,.61,.36,1), color 200ms cubic-bezier(.22,.61,.36,1);
}

.category-action:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
}

/* Tools Search */
.tools-search-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.tools-search-input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 2rem;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: 
        transform 460ms cubic-bezier(.22,.61,.36,1),
        box-shadow 460ms cubic-bezier(.22,.61,.36,1),
        background 460ms cubic-bezier(.22,.61,.36,1),
        border-color 460ms cubic-bezier(.22,.61,.36,1);
    outline: none;
}

.tools-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tools-search-input:focus {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 55px 85px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
}

.tools-search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.tools-search-clear:hover {
    transform: translateY(-50%) scale(1.05);
    opacity: 0.85;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
    animation: fadeInUp 0.7s cubic-bezier(.22,.61,.36,1) both;
}

.search-results__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8f8f8;
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
}

.search-results__empty {
    padding: 2rem;
    border-radius: 36px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-align: center;
}

.search-results__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1rem;
}

.search-result-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: 
        transform 200ms cubic-bezier(.22,.61,.36,1),
        box-shadow 200ms cubic-bezier(.22,.61,.36,1),
        background 200ms cubic-bezier(.22,.61,.36,1),
        color 200ms cubic-bezier(.22,.61,.36,1);
    cursor: pointer;
    flex-direction: column;
    text-align: center;
}

.search-result-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
}

.search-result-item__label {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.search-result-item__category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.search-result-item__description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Content Viewer */
.category-view {
    width: 100%;
}

.content-viewer {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

.hero-panel.tool-view-active .content-split-btn {
    display: inline-flex;
}

.content-viewer__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.content-viewer__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-split-btn {
    position: absolute;
    top: 1rem;
    left: calc(1rem + 5.5rem);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: 
        background 200ms cubic-bezier(.22,.61,.36,1),
        box-shadow 200ms cubic-bezier(.22,.61,.36,1),
        border-color 200ms cubic-bezier(.22,.61,.36,1),
        color 200ms cubic-bezier(.22,.61,.36,1),
        transform 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.content-close-second-btn {
    position: absolute;
    top: 1rem;
    left: calc(1rem + 5.5rem + 3.25rem);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: 
        background 200ms cubic-bezier(.22,.61,.36,1),
        box-shadow 200ms cubic-bezier(.22,.61,.36,1),
        border-color 200ms cubic-bezier(.22,.61,.36,1),
        color 200ms cubic-bezier(.22,.61,.36,1),
        transform 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.content-close-second-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.content-close-second-btn svg {
    width: 14px;
    height: 14px;
}

.content-split-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.content-split-btn.active {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 1);
}

.content-split-btn svg {
    width: 16px;
    height: 16px;
}

.content-frames-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.content-frames-container.split-view {
    gap: 0;
}

.content-frame {
    width: 100%;
    min-height: 500px;
    max-height: calc(100vh - 120px);
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 2.35rem 2rem;
    color: rgba(255, 255, 255, 0.85);
    scrollbar-gutter: stable both-edges;
    scrollbar-width: none;
    background-clip: padding-box;
    scrollbar-color: transparent transparent;
    position: relative;
}

.content-frames-container.split-view .content-frame {
    width: 50%;
    flex: 0 0 50%;
}

.content-frames-container.split-view .content-frame--secondary {
    display: block !important;
}

.content-frame--secondary {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.content-frame__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem;
}

.content-frame__empty p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.content-frame__select-tool {
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1), background 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
}

.content-frame__select-tool:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 1);
}

.content-split-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.15);
    cursor: col-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: background 200ms cubic-bezier(.22,.61,.36,1);
}

.content-split-divider:hover {
    background: rgba(255, 255, 255, 0.3);
}

.content-split-divider.active {
    background: rgba(255, 255, 255, 0.4);
}

/* Tool Selector Hero Panel */
.tool-selector-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0ms;
}

.tool-selector-panel[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.tool-selector-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: none;
}

.tool-selector-panel__content {
    position: relative;
    width: min(calc(100% - 2rem), 480px);
    max-width: 480px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(.22,.61,.36,1);
}

.tool-selector-panel[aria-hidden="false"] .tool-selector-panel__content {
    transform: translateX(0);
}

.tool-selector-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.tool-selector-panel__header h2 {
    color: #f8f8f8;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
}

.tool-selector-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: 
        transform 200ms cubic-bezier(.22,.61,.36,1),
        background 200ms cubic-bezier(.22,.61,.36,1),
        color 200ms cubic-bezier(.22,.61,.36,1);
    padding: 0;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tool-selector-panel__close:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 1);
}

.tool-selector-panel__close svg {
    width: 18px;
    height: 18px;
}

.tool-selector-panel__body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.tool-selector-panel__body::-webkit-scrollbar {
    width: 6px;
}

.tool-selector-panel__body::-webkit-scrollbar-track {
    background: transparent;
}

.tool-selector-panel__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.tool-selector-panel__body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.tool-selector-panel__search {
    width: 100%;
    flex-shrink: 0;
}

.tool-selector-panel__search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: 
        background 250ms cubic-bezier(.22,.61,.36,1),
        border-color 250ms cubic-bezier(.22,.61,.36,1);
    outline: none;
}

.tool-selector-panel__search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tool-selector-panel__search-input:focus {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-selector-panel__tools {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.tool-selector-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 
        transform 200ms cubic-bezier(.22,.61,.36,1),
        background 200ms cubic-bezier(.22,.61,.36,1),
        border-color 200ms cubic-bezier(.22,.61,.36,1);
    cursor: pointer;
}

.tool-selector-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tool-selector-item__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.tool-selector-item__category {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.tool-selector-item__description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.content-back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1), background 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.content-back-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 1);
}

.content-max-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1), background 200ms cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.content-max-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.content-frame::-webkit-scrollbar {
    display: none;
}

/* Fullscreen tool overlay */
.tool-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem;
    background: transparent; /* keep existing neon background visible */
    pointer-events: none; /* don't block clicks when inactive */
}

.tool-fullscreen-overlay .content-viewer {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: auto;
}

.tool-fullscreen-overlay .content-frame {
    max-height: none;
    min-height: calc(100vh - 7rem);
    padding-inline: 1.5rem;
}

.tool-fullscreen-overlay.is-active {
    pointer-events: auto;
}

/* Hide main shell when a tool is fullscreen */
body.tool-fullscreen-active .glass-nav,
body.tool-fullscreen-active .hero > h1,
body.tool-fullscreen-active .hero > p,
body.tool-fullscreen-active .pricing,
body.tool-fullscreen-active .contact,
body.tool-fullscreen-active .site-footer {
    display: none !important;
}

body.tool-fullscreen-active {
    padding-top: 0;
}

.pricing {
    position: relative;
    z-index: 1;
    margin: 6rem auto 0;
    width: min(calc(100% - 3rem), var(--max-width));
    padding: 3.5rem 2.5rem 4rem;
    border-radius: 36px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #f5f5f5;
    text-align: center;
    overflow: hidden;
}

.pricing-header {
    position: relative;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.pricing-header h2 {
    font-size: 2.25rem;
    color: #fafafa;
}

.pricing-header p {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    z-index: 1;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.25rem;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    text-align: left;
    transition: transform 320ms cubic-bezier(.22,.61,.36,1), box-shadow 320ms cubic-bezier(.22,.61,.36,1), border-color 320ms cubic-bezier(.22,.61,.36,1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 60px 95px rgba(0, 0, 0, 0.6);
}

.pricing-card h3 {
    font-size: 1.6rem;
    color: #f8f8f8;
    margin-bottom: 1rem;
}

.pricing-card .pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 2.4rem;
    font-weight: 600;
    color: rgba(223, 255, 214, 0.95);
    margin-bottom: 0.75rem;
}

.pricing-card .pricing-currency {
    font-size: 1.35rem;
    opacity: 0.8;
}

.pricing-card .pricing-period {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-card .pricing-tagline {
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
}

.pricing-features li::before {
    content: '•';
    margin-right: 0.6rem;
    color: rgba(223, 255, 214, 0.85);
}

.pricing-cta {
    margin-top: 2rem;
    align-self: flex-start;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.pricing-card--featured {
    background: rgba(4, 20, 12, 0.65);
    border: 1px solid rgba(223, 255, 214, 0.45);
    box-shadow: 0 70px 120px rgba(0, 0, 0, 0.6);
}

.pricing-card--featured:hover {
    border-color: rgba(223, 255, 214, 0.65);
    box-shadow: 0 85px 135px rgba(0, 0, 0, 0.65);
}

.pricing-card--featured .pricing-cta {
    background: rgba(223, 255, 214, 0.18);
    color: #f5f5f5;
    border-color: rgba(223, 255, 214, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing-card--featured .pricing-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.42);
    background: rgba(223, 255, 214, 0.26);
}

.pricing-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(223, 255, 214, 0.18);
    color: rgba(223, 255, 214, 0.95);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact {
    position: relative;
    z-index: 1;
    margin: 6rem auto 5rem;
    width: min(calc(100% - 3rem), var(--max-width));
    padding: 3.5rem 2.8rem 4rem;
    border-radius: 36px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #f5f5f5;
    overflow: hidden;
}

.contact-header {
    position: relative;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: #fafafa;
}

.contact-header p {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
}

.contact-body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail {
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 1.35rem 1.6rem;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(223, 255, 214, 0.85);
    margin-bottom: 0.5rem;
}

.detail a,
.detail p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.6;
}

.detail a:hover {
    color: rgba(223, 255, 214, 0.9);
}

.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.contact-social a {
    padding: 0.55rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms cubic-bezier(.22,.61,.36,1), background 200ms cubic-bezier(.22,.61,.36,1);
}

.contact-social a:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.contact-form {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.5rem;
    max-width: 600px;
    width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.field label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.5);
    color: #f6f6f6;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(223, 255, 214, 0.8);
    box-shadow: 0 0 0 3px rgba(223, 255, 214, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.5) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field textarea {
    resize: vertical;
}

.field--full {
    grid-column: 1 / -1;
}

.contact-submit {
    grid-column: 1 / -1;
    justify-self: flex-start;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.form-status {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(223, 255, 214, 0.85);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.form-status.error {
    color: rgba(255, 119, 119, 0.9);
}

.contact-disclaimer {
    grid-column: 1 / -1;
    margin: -0.3rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer {
    width: min(calc(100% - 3rem), var(--max-width));
    margin: 5rem auto 2.5rem;
    padding: 2.8rem 2.5rem 2.2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
}

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

.footer-logo {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #f7f7f7;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    padding: 0.55rem 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.55);
}

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

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

.footer-title {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(223, 255, 214, 0.85);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 0.92);
}

.footer-meta {
    margin-top: 2.4rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-meta-links {
    display: inline-flex;
    gap: 1.2rem;
}

.footer-meta-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-meta-links a:hover {
    color: rgba(255, 255, 255, 0.92);
}

/* Auth Layout */
.auth-page {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .auth-wrapper {
    max-width: 860px;
}

.auth-card {
    width: 100%;
    max-width: none;
    background: rgba(12, 12, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.75rem 3.25rem;
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-close:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.auth-header h1 {
    font-size: 2rem;
    color: #f8f8f8;
    margin-bottom: 0.6rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2.25rem;
}

.provider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.provider-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.provider-icon {
    font-size: 1.2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
}

.auth-divider span {
    white-space: nowrap;
}

.auth-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 1.75rem;
    margin-top: 2rem;
}

.auth-hint {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: -0.3rem;
}

.auth-form label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.45rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
    color: #f6f6f6;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(223, 255, 214, 0.8);
    box-shadow: 0 0 0 3px rgba(223, 255, 214, 0.25);
}

.auth-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--neon-color, #00ff00);
}

.forgot-link {
    color: rgba(223, 255, 214, 0.85);
    font-size: 0.85rem;
}

.auth-submit {
    grid-column: 1 / -1;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.auth-status {
    grid-column: 1 / -1;
    min-height: 1.4rem;
    font-size: 0.85rem;
    color: rgba(223, 255, 214, 0.85);
    margin: -0.3rem 0 0;
    text-align: center;
}

.auth-status.error {
    color: #ff9c9c;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.auth-footer a {
    color: rgba(223, 255, 214, 0.85);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .hero-panel {
        width: min(calc(100% - 3rem), var(--max-width));
        border-radius: 30px;
        padding: 2.5rem;
    }

    .category-cards {
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem;
        border-radius: 30px;
    }

    .pricing {
        padding: 3rem 2rem 3.5rem;
        border-radius: 32px;
    }

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

    .contact {
        margin-top: 5.5rem;
        padding: 3.1rem 2.2rem 3.5rem;
        border-radius: 32px;
    }


    .contact-form {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .site-footer {
        width: min(calc(100% - 2.8rem), var(--max-width));
        padding: 2.6rem 2.2rem 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .hero-panel {
        width: min(calc(100% - 3rem), var(--max-width));
        border-radius: 26px;
        padding: 2rem;
    }

    .category-cards {
        flex-direction: column;
        gap: 1.5rem;
    }

    .category-cards:not(.cards--featured):hover .category-card,
    .category-cards:not(.cards--featured):hover .category-card:hover,
    .category-cards.cards--featured .category-card,
    .category-cards.cards--featured:hover .category-card,
    .category-cards.cards--featured:hover .category-card:hover {
        flex: 1;
        opacity: 1;
        filter: none;
        box-shadow: 0 45px 75px rgba(0, 0, 0, 0.45);
    }

    .category-cards.cards--featured {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .category-card.is-featured {
        padding: 2rem;
        transform: none;
    }

    .category-card {
        padding: 2rem;
        border-radius: 26px;
    }

    .category-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing {
        margin-top: 5rem;
        padding: 2.5rem 1.75rem 3rem;
        border-radius: 28px;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

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

    .contact {
        margin-top: 4.5rem;
        padding: 2.7rem 1.85rem 3rem;
        border-radius: 28px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .site-footer {
        width: min(calc(100% - 2.6rem), var(--max-width));
        padding: 2.4rem 1.9rem 1.9rem;
    }

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

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .glass-nav .nav-links {
        flex-wrap: wrap;
    }

    .nav-settings-btn {
        padding: 0.5rem 0.95rem;
        font-size: 0.85rem;
    }

    .nav-settings-btn span {
        display: none;
    }

    .nav-settings-btn i {
        font-size: 1.1rem;
    }

    .glass-nav .nav-cta {
        width: 100%;
    }

    .settings-popup {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateY(-20px) scale(0.95);
        width: calc(100% - 2rem);
        max-width: none;
    }

    .settings-popup[aria-hidden="false"] {
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }

    .auth-card {
        padding: 2.25rem 1.75rem;
    }

    .auth-form {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .auth-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-submit {
        width: 100%;
    }

    .hero-panel {
        margin-top: 2rem;
        width: min(calc(100% - 3rem), var(--max-width));
        border-radius: 24px;
        padding: 1.5rem;
    }

    .category-cards {
        flex-direction: column;
        gap: 1.25rem;
    }

    .category-card {
        padding: 1.75rem;
        border-radius: 24px;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }

    .category-card p {
        font-size: 0.9rem;
    }

    .category-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing {
        width: min(calc(100% - 2.75rem), var(--max-width));
        padding: 2.5rem 1.5rem 2.75rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .contact {
        width: min(calc(100% - 2.75rem), var(--max-width));
        padding: 2.5rem 1.6rem 2.8rem;
    }

    .detail {
        padding: 1.2rem 1.4rem;
    }

    .contact-form {
        padding: 1.8rem;
    }

    .site-footer {
        width: min(calc(100% - 2.4rem), var(--max-width));
        padding: 2.3rem 1.7rem 1.85rem;
    }
}

@media (max-width: 600px) {
    .hero-panel {
        margin-top: 2.5rem;
        width: min(calc(100% - 3rem), var(--max-width));
        border-radius: 22px;
        padding: 1.5rem;
    }

    .category-cards {
        gap: 1.25rem;
    }

    .category-card {
        padding: 1.75rem;
        border-radius: 22px;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }

    .category-card p {
        font-size: 0.9rem;
    }

    .category-actions {
        grid-template-columns: 1fr;
    }

    .pricing {
        width: min(calc(100% - 2.25rem), var(--max-width));
        padding: 2.25rem 1.35rem 2.5rem;
        border-radius: 24px;
    }

    .pricing-card {
        padding: 1.8rem;
    }

    .pricing-card .pricing-price {
        font-size: 2.1rem;
    }

    .contact {
        width: min(calc(100% - 2.1rem), var(--max-width));
        padding: 2.2rem 1.35rem 2.45rem;
        border-radius: 24px;
    }

    .contact-header h2 {
        font-size: 1.85rem;
    }

    .contact-form {
        padding: 1.6rem;
    }

    .contact-submit {
        width: 100%;
        justify-self: stretch;
    }

    .site-footer {
        width: min(calc(100% - 2rem), var(--max-width));
        padding: 2.1rem 1.35rem 1.75rem;
        border-radius: 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .footer-meta-links {
        gap: 0.9rem;
        flex-wrap: wrap;
    }

    .content-split-btn {
        width: 2.25rem;
        height: 2.25rem;
        left: calc(1rem + 4.5rem);
    }

    .content-split-btn svg {
        width: 14px;
        height: 14px;
    }

    .tool-selector-panel__content {
        width: min(calc(100% - 1rem), 420px);
    }

    .tool-selector-panel__header {
        padding: 1.5rem 1.5rem;
    }

    .tool-selector-panel__header h2 {
        font-size: 1.35rem;
    }

    .tool-selector-panel__body {
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 1.25rem;
    }

    .tool-selector-item {
        padding: 0.9rem 1.1rem;
    }
}
