/*
 * tools.css — Tool-Specific Visual Component Styles ONLY
 * All global layout (FAQ, steps, breadcrumb, tool-page-header) is in style.css
 * This file contains ONLY per-tool visual widgets (canvas stages, overlays, etc.)
 */

/* ============================================================
   1. Virtual Object Scale
   ============================================================ */
.scale-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 36px;
    width: 100%;
    height: 100%;
    padding: 60px 24px;
    position: relative;
    overflow-y: auto;
    background-size: 24px 24px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}
body.theme-light .scale-stage {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
}
.scale-object {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    transition: all var(--transition-normal);
}
.scale-shape {
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--glass-border);
}
.scale-label {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
}
.scale-dims {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.custom-object-shape {
    background: linear-gradient(135deg, var(--accent-purple-solid), var(--accent-blue-solid));
    box-shadow: 0 0 30px var(--accent-purple-glow), 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}
.ref-object-shape {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
body.theme-light .ref-object-shape {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

/* ============================================================
   2. Social Safe-Zone
   ============================================================ */
.safezone-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.preview-canvas {
    max-width: 100%;
    max-height: 520px;
    display: block;
}
.safezone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    z-index: 10;
}
.safezone-overlay.active {
    display: block;
}

/* ============================================================
   3. TV Wall Mockup
   ============================================================ */
.wall-mockup {
    width: 100%;
    height: 100%;
    min-height: 440px;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    transition: background var(--transition-normal);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}
.tv-frame {
    border: 10px solid #111;
    background: #000;
    border-radius: 6px;
    position: absolute;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all var(--transition-normal);
}
.tv-a {
    border-color: var(--accent-blue-solid);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.25), 0 25px 50px -12px rgba(0,0,0,0.8);
    z-index: 10;
}
.tv-b {
    border-color: var(--accent-purple-solid);
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.3), 0 25px 50px -12px rgba(0,0,0,0.8);
    z-index: 5;
}
.tv-label {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

/* ============================================================
   4. Monitor Calibrator
   ============================================================ */
.calibration-box {
    border: 2px solid var(--accent-blue);
    background: rgba(56, 189, 248, 0.06);
    position: relative;
    box-shadow: 0 0 30px var(--accent-blue-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}
.calibration-card-artwork {
    width: 85%;
    height: 70%;
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    box-sizing: border-box;
}
.chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700, #daa520);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
}
.card-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}
.card-scale-indicator {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   5. Will it Fit Through the Door?
   ============================================================ */
.door-fit-stage {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
    background: #09090b;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
}
.door-fit-svg {
    max-width: 100%;
    max-height: 400px;
}

/* ============================================================
   6. Shipping Box Optimizer 3D
   ============================================================ */
.box-maker-stage {
    width: 100%;
    height: 100%;
    min-height: 480px;
    position: relative;
}
#three-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* ============================================================
   7. PNG Padding Auditor
   ============================================================ */
.png-auditor-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}
@media (min-width: 768px) {
    .png-auditor-comparison {
        grid-template-columns: 1fr 1fr;
    }
}
.auditor-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auditor-canvas-wrapper {
    width: 100%;
    min-height: 340px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================================================
   8. Video Overlay
   ============================================================ */
.video-overlay-stage {
    position: relative;
    max-width: 100%;
    max-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}
#preview-video {
    width: 100%;
    display: block;
}
.crop-overlay {
    position: absolute;
    border: 2px dashed var(--accent-purple);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    transition: all var(--transition-fast);
}

/* ============================================================
   9. CSS Font Scale
   ============================================================ */
.font-scale-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.font-scale-item {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 24px;
}
.font-scale-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.font-scale-text {
    line-height: 1.25;
    font-weight: 600;
}

/* ============================================================
   10. Wallpaper Focus Cropper
   ============================================================ */
.wallpaper-cropper-stage {
    width: 100%;
    max-height: 520px;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cropper-img-wrapper {
    position: relative;
    display: inline-block;
    cursor: crosshair;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}
.cropper-img {
    max-width: 100%;
    display: block;
}
.cropper-focal-point {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-purple-glow);
}
.cropper-focal-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--accent-purple-solid);
}
.crop-box-outline {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.75);
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.crop-box-phone { border-color: var(--accent-purple); }
.crop-box-tablet { border-color: var(--accent-blue); }
.crop-box-desktop { border-color: var(--accent-green); }

/* ============================================================
   RELATED TOOLS GRID (end of tool pages)
   ============================================================ */
.related-tools-section {
    margin-top: 10px;
    margin-bottom: 60px;
}
.related-tools-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 16px;
}
.related-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.related-tool-card:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px var(--accent-purple-glow);
}
.related-tool-card i {
    width: 18px;
    height: 18px;
    color: var(--accent-purple);
    flex-shrink: 0;
}
/* Carry-On Weight Visualizer */
.weight-gauge-container {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.weight-gauge-fill {
    height: 100%;
    width: 0%;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent-blue-solid), var(--accent-purple-solid));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s ease;
    position: relative;
}
.weight-gauge-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.weight-gauge-fill.danger {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.item-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.item-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}
.verdict-banner {
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}
.verdict-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.verdict-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.verdict-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   SEO ARTICLE CUSTOM STYLES (Premium Layout)
   ============================================================ */
.seo-premium-card {
    padding: 48px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
.seo-title-gradient {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--accent-blue-solid), var(--accent-purple-solid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.seo-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px auto;
    text-align: center;
    line-height: 1.6;
}
.seo-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
    margin-bottom: 48px;
}
.seo-feature-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.seo-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.seo-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.seo-icon-blue { background: rgba(14, 165, 233, 0.2); color: var(--accent-blue-solid); }
.seo-icon-purple { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple-solid); }
.seo-icon-green { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.seo-icon-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.seo-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.seo-feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Table styling */
.seo-table-wrapper {
    background: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    margin-bottom: 48px;
}
.seo-search-bar {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}
.seo-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.9rem;
}
.seo-table-scroll {
    overflow-x: auto;
    max-height: 400px;
}
.seo-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.seo-table th {
    padding: 16px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background: var(--bg-deep);
    position: sticky;
    top: 0;
    z-index: 10;
}
.seo-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}
.seo-table tr:hover td {
    background: rgba(0, 0, 0, 0.2);
}

/* List Items */
.seo-list-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.seo-list-item-title {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.seo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.seo-dot-green { background: var(--accent-green); }
.seo-dot-blue { background: var(--accent-blue-solid); }
.seo-dot-yellow { background: #facc15; }
.seo-dot-red { background: #ef4444; }
.seo-list-value {
    font-family: monospace;
    font-weight: 700;
}

.seo-culprit-item {
    background: var(--bg-deep);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    transition: border-color var(--transition-fast);
}
.seo-culprit-item:hover {
    border-color: #ef4444;
}
.form-control option { background: #1e293b; color: #fff; }

/* ── Related Calculators Grid (Global) ── */
.related-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-top: 16px;
}
.related-calc-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    text-decoration: none !important;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-primary);
}
.related-calc-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--accent-purple-solid, #a855f7);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.related-calc-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168,85,247,0.1);
    color: var(--accent-purple, #a855f7);
}
.related-calc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.related-calc-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Metric Grid Layout - Added for Phase 2 Calculators */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.metric-card {
    background: rgba(30, 41, 59, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}
.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8; /* text-muted */
    margin-bottom: 8px;
}
.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc; /* text-primary */
}
/* Fix for invisible text in <select> dropdown menus (Dark Mode / Light Mode) */
.modern-select option, select.modern-input option, .select-input option {
    background-color: #0f172a; /* Solid dark background */
    color: #f1f5f9; /* Light text */
}
body.theme-light .modern-select option, body.theme-light select.modern-input option, body.theme-light .select-input option {
    background-color: #ffffff; /* Solid light background */
    color: #0f172a; /* Dark text */
}
/* â”€â”€â”€ Premium Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.studio-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-bottom: 32px; align-items: start; }
.studio-controls { background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(0,0,0,.25)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; position: sticky; top: 90px; }
.studio-controls::-webkit-scrollbar { width: 4px; }
.studio-controls::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.4); border-radius: 2px; }

.workspace-block { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* â”€â”€â”€ Presets Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.presets-wrapper { background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(0,0,0,.15)); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.presets-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 16px 16px 0 0; }
.preset-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.preset-label { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; min-width: 140px; }
.btn-preset { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-primary); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.8rem; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-preset:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

/* â”€â”€â”€ Workspace Canvas â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.canvas-wrapper { width: 100%; height: 500px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); background-color: #0f172a; background-size: cover; background-position: center; transition: background-image 0.3s ease; }

.mesh-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%); filter: blur(40px); animation: moveMesh 10s ease-in-out infinite alternate; transition: opacity 0.3s; }
@keyframes moveMesh { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.2) translate(-20px, 20px); } }

.glass-target { border-radius: 24px; z-index: 10; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; text-align: center; transition: all 0.1s ease; max-width: 90%; }
.glass-target h3 { margin: 0 0 12px 0; font-size: 1.8rem; color: #fff; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.4); letter-spacing: -0.5px; }
.glass-target p { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,0.9); line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* â”€â”€â”€ Controls Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel-title { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #a855f7; margin: 24px 0 12px 0; border-bottom: 1px solid rgba(168, 85, 247, 0.3); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.panel-title:first-child { margin-top: 0; }

.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.input-group label { font-size: 0.82rem; font-weight: 700; color: #e2e8f0; display: flex; justify-content: space-between; align-items: center;}
.input-group label span.val { color: #a855f7; font-family: 'Fira Code', monospace; font-size: 0.9rem; font-weight: 800; }
.input-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

/* Range Slider */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: #a855f7; cursor: pointer; margin-top: -6px; box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 2px; }
input[type=range]:focus { outline: none; }

input[type=color] { -webkit-appearance: none; border: none; width: 100%; height: 36px; border-radius: 6px; cursor: pointer; padding: 0; background: transparent; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; }

/* Select Input */
.modern-select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; font-family: inherit; outline: none; }
.modern-select:focus { border-color: #a855f7; }
.modern-select option { background: #0f172a; color: #fff; }

/* â”€â”€â”€ Code Output â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.workspace-panels { display: flex; flex-direction: column; gap: 24px; }
.tool-panel { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.panel-header { padding: 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.panel-header { font-weight: 800; color: #fff; margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px;}
.btn-copy { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); color: #fff; border: 1px solid rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.btn-copy:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

.code-area { flex: 1; width: 100%; padding: 20px; background: transparent; border: none; color: #cbd5e1; font-family: 'Fira Code', ui-monospace, SFMono-Regular, monospace; font-size: 0.85rem; line-height: 1.6; resize: none; outline: none; white-space: pre-wrap; overflow-y: auto; max-height: 400px; }


/* â”€â”€â”€ ROCK-SOLID MOBILE CSS FIX V4 â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
    .studio-layout {
        display: block !important;
        width: 100% !important;
    }
    .workspace-block, .studio-controls {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 0 24px 0 !important;
    }
    .workspace-panels {
        display: block !important;
        width: 100% !important;
    }
    .tool-panel {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 0 24px 0 !important;
    }
    .workspace-area {
        width: 100% !important;
    }
    .workspace-area.active {
        display: flex !important;
    }
    .editor-textarea, .input-textarea, .code-area {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
}

/* â”€â”€â”€ UNIVERSAL SEO LAYOUT â”€â”€â”€ */
.seo-layout-grid { display:grid; grid-template-columns:250px 1fr; gap:24px; margin-top:32px; align-items:start; }
@media(max-width:1000px) { .seo-layout-grid { grid-template-columns:1fr; } .sticky-toc { display:none; } }
.sticky-toc { background:linear-gradient(145deg,rgba(255,255,255,.03),rgba(0,0,0,.3)); border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:18px; position:sticky; top:90px; max-height:calc(100vh - 120px); overflow-y:auto; box-shadow:0 8px 24px rgba(0,0,0,0.3); scrollbar-width:thin; }
.sticky-toc::-webkit-scrollbar { width:4px; }
.sticky-toc::-webkit-scrollbar-thumb { background:rgba(59,130,246,.4); border-radius:2px; }
.seo-article-body { min-width: 0; display: block; }
.seo-article-body > * { margin-bottom: 28px; }
.seo-article-body > *:last-child { margin-bottom: 0; }
.tool-guide { padding: 32px; background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; margin-bottom: 32px; position: relative; overflow: hidden; }
.tool-guide::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, rgba(59, 130, 246,0), rgba(59, 130, 246,0.5), rgba(59, 130, 246,0)); }
.tool-guide h2 { font-size:1.4rem; font-weight:800; color:#fff; margin:0 0 18px 0; display:flex; align-items:center; gap:10px; line-height:1.25; letter-spacing:-0.01em; }
.tool-guide h2 i { width:22px; height:22px; flex-shrink:0; color:#3b82f6; }
.tool-guide h2 .h2-num { font-size:0.75rem; font-weight:900; color:#3b82f6; background:rgba(59, 130, 246, 0.15); padding:2px 7px; border-radius:4px; letter-spacing:0.03em; flex-shrink:0; font-variant-numeric:tabular-nums; }
.tool-guide p { color:#cbd5e1; line-height:1.78; margin-bottom:16px; font-size:0.95rem; }
.toc-header { display:flex; align-items:center; gap:8px; font-size:0.78rem; font-weight:800; color:#3b82f6; text-transform:uppercase; letter-spacing:0.07em; margin:0 0 14px 0; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,0.07); }
.toc-header i { width:15px; height:15px; color:#3b82f6; }
.sticky-toc ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:2px; }
.sticky-toc ul li a { display:block; padding:7px 10px; font-size:0.82rem; color:#94a3b8; text-decoration:none; border-radius:7px; line-height:1.4; transition:all 0.18s; border-left:2px solid transparent; }
.sticky-toc ul li a:hover { background:rgba(59, 130, 246, 0.1); color:#60a5fa; border-left-color:#3b82f6; transform:translateX(3px); }
.sticky-toc ul li a span.toc-num { display:inline-block; font-size:0.7rem; font-weight:800; color:#1e40af; background:rgba(59, 130, 246, 0.15); padding:0 5px; border-radius:3px; margin-right:6px; font-variant-numeric:tabular-nums; }

/* Related Tools Grid */
.related-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:24px; }
@media (max-width: 900px) { .related-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns:1fr; } }
.related-card { background:linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); border:1px solid rgba(255,255,255,0.05); border-radius:12px; padding:20px; text-decoration:none; display:flex; flex-direction:column; gap:12px; transition:all 0.2s cubic-bezier(0.4,0,0.2,1); position:relative; overflow:hidden; }
.related-card:hover { transform:translateY(-4px); background:linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border-color:rgba(255,255,255,0.1); box-shadow:0 12px 24px -8px rgba(0,0,0,0.5); }
.related-card-icon { width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,0.05); display:flex; align-items:center; justify-content:center; color:#94a3b8; margin-bottom:4px; }
.related-card:hover .related-card-icon { color:#fff; background:rgba(255,255,255,0.1); }
.related-card-title { font-weight:800; color:#e2e8f0; font-size:1.05rem; line-height:1.3; }
.related-card-desc { font-size:0.85rem; color:#94a3b8; line-height:1.5; margin:0; }

.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}.related-card{background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;text-decoration:none;transition:all .2s}.related-card:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1);transform:translateY(-2px)}.related-card-icon{width:32px;height:32px;border-radius:8px;background:rgba(99,102,241,.1);display:flex;align-items:center;justify-content:center;color:#818cf8;margin-bottom:4px}.related-card-title{font-weight:800;font-size:.9rem;color:#fff;line-height:1.3}.related-card-desc{font-size:.75rem;color:#64748b;line-height:1.5}@media(max-width:1100px){.related-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.related-grid{grid-template-columns:1fr}}
