/* ==========================================================================
   Next Block Blast Move - Global Stylesheet
   Modern Clean App Aesthetic with Neon Gem Accents & Dual-Tab Solver
   ========================================================================== */

:root {
    --bg-main: #f4f6fe;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8fafc;
    --bg-board-inner: #090d16;
    --bg-cell-empty: #172033;
    --bg-cell-empty-hover: #222f4c;
    
    --primary-purple: #6748ff;
    --primary-purple-hover: #5835fb;
    --primary-indigo: #4f2bfe;
    --border-subtle: #e2e8f0;
    --border-focus: #7c3aed;

    --text-main: #1c1a25;
    --text-muted: #605f66;
    --text-light: #94a3b8;

    /* Gem Colors for Placed Blocks */
    --gem-purple: #8b5cf6;
    --gem-cyan: #06b6d4;
    --gem-amber: #f59e0b;
    --gem-yellow: #eab308;
    --gem-emerald: #10b981;
    --gem-pink: #ec4899;
    --gem-blue: #3b82f6;
    --gem-orange: #f97316;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-card: 0 10px 25px -5px rgba(103, 72, 255, 0.08), 0 8px 10px -6px rgba(103, 72, 255, 0.04);
    --shadow-hover: 0 20px 30px -10px rgba(103, 72, 255, 0.15);
    --shadow-gem: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf4ff 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.6rem;
}

.nav-brand span span {
    color: var(--primary-purple);
}

/* Tab Switcher in Navbar */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.nav-tab-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s ease;
}

.nav-tab-btn:hover {
    color: var(--primary-purple);
    background: rgba(103, 72, 255, 0.05);
}

.nav-tab-btn.active {
    color: var(--primary-indigo);
}

.nav-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 15%;
    width: 70%;
    height: 4px;
    background: var(--primary-purple);
    border-radius: 4px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-btn-highlight {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-indigo));
    color: #fff !important;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

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

.hamburger-bar {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Mobile Sub-Navbar for Tabs */
.mobile-tabs-bar {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.4rem 1rem;
    justify-content: space-around;
}

.mobile-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    text-align: center;
}

.mobile-tab-btn.active {
    color: var(--primary-purple);
}

.mobile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px;
}

/* ==========================================================================
   Hero Title
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 2.2rem 1.5rem 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--primary-indigo);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 500;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    width: 100%;
}

.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

/* ==========================================================================
   View 1: Screenshot Solver Card
   ========================================================================== */
.screenshot-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.screenshot-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.card-h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.card-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.screenshot-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    margin: 0 auto;
}

/* Dropzone (Left Column) */
.screenshot-dropzone {
    flex: 1;
    max-width: 330px;
    min-width: 280px;
    height: 440px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f4f6fe;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.screenshot-dropzone:hover, .screenshot-dropzone.drag-over {
    border-color: var(--primary-purple);
    background: #ede9fe;
}

.dropzone-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.dropzone-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.select-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 0.2s ease;
}

.select-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Example & Alternate Column (Right Column - Exact 440px height alignment) */
.example-col {
    width: 260px;
    flex-shrink: 0;
    height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.example-box {
    background: #f4f6fe;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1rem;
    width: 100%;
    height: 326px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
}

.example-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.example-img-mockup {
    width: 110px;
    height: 210px;
    border-radius: 10px;
    background: #090d16;
    border: 2px solid #334155;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.example-mockup-board {
    flex: 1;
    background: #1e293b;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1.5px;
    padding: 2.5px;
    box-sizing: border-box;
}

.example-mockup-cell {
    border-radius: 1px;
    background: #0b1120;
}
.example-mockup-cell.f1 { background: #3b82f6; }
.example-mockup-cell.f2 { background: #eab308; }
.example-mockup-cell.f3 { background: #ec4899; }
.example-mockup-cell.f4 { background: #10b981; }

.example-mockup-tray {
    height: 36px;
    background: #0f172a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 3px;
    box-sizing: border-box;
}

.example-mockup-piece {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.example-btn-demo {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.15s ease;
    padding: 0;
    margin: 0;
}

.example-btn-demo:hover {
    opacity: 0.8;
}

.or-divider {
    color: #605f66;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    margin: 0;
}

.switch-manual-btn {
    background: var(--primary-purple);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 54px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(103, 72, 255, 0.35);
    transition: all 0.2s ease;
}

.switch-manual-btn:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(103, 72, 255, 0.45);
}

/* AI Scanner Progress Banner */
.scanner-ai-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
    border-radius: 12px;
    color: #5b21b6;
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 1.75rem auto 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.scanner-ai-banner.active {
    display: flex;
}

.scanner-ai-banner.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.scanner-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ddd6fe;
    border-top-color: #6748ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.scanner-ai-banner.success .scanner-spinner {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   View 2: Fill Manually Card
   ========================================================================== */
.manual-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.manual-panel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manual-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.manual-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Interactive 8x8 Board */
.board-grid-wrapper {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    background: var(--bg-board-inner);
    border: 2px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 4px;
    user-select: none;
    position: relative;
}

.board-cell {
    background: var(--bg-cell-empty);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-cell:hover {
    background: var(--bg-cell-empty-hover);
}

.board-cell.filled {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: var(--shadow-gem);
}

/* Solution Overlay on Board */
.board-cell.solution-step {
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    transform: scale(0.96);
    z-index: 2;
}

.board-cell.solution-step-1 { background: linear-gradient(135deg, #06b6d4, #0284c7) !important; }
.board-cell.solution-step-2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
.board-cell.solution-step-3 { background: linear-gradient(135deg, #f97316, #c2410c) !important; }

.step-badge {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes pulseClear {
    0% { box-shadow: inset 0 0 0 2px #facc15, 0 0 8px #facc15; }
    100% { box-shadow: inset 0 0 0 3px #fff, 0 0 18px #facc15; background: #fef08a; }
}

.board-cell.clearing-line {
    animation: pulseClear 0.8s ease-in-out infinite alternate;
}

/* 3 Figures (Rack Pieces) in Manual Mode */
.figures-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.figure-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    transition: all 0.2s ease;
}

.figure-box:hover {
    border-color: var(--primary-purple);
}

.figure-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.figure-grid-5x5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    width: 85px;
    height: 85px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 4px;
    user-select: none;
}

.fig-cell {
    background: #ffffff;
    border-radius: 1px;
    cursor: pointer;
}

.fig-cell:hover {
    background: #cbd5e1;
}

.fig-cell.active {
    background: var(--primary-purple);
}

.figure-change-btn {
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--primary-purple);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.figure-change-btn:hover {
    background: #f1f5f9;
}

/* Manual Bottom Actions (Clear & Solve) */
.manual-actions-bar {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.btn-secondary-action {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    background: #f8fafc;
}

.btn-solve-action {
    background: var(--primary-purple);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(103, 72, 255, 0.4);
    transition: all 0.2s ease;
}

.btn-solve-action:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Solution Result Card (Appears after Solving)
   ========================================================================== */
.solution-result-section {
    display: none;
    max-width: 960px;
    margin: 2rem auto 0;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.solution-result-section.active {
    display: block;
}

.solution-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
}

.step-card:hover {
    border-color: var(--primary-purple);
}

.step-card.active-step {
    border-color: var(--primary-purple);
    background: #f5f3ff;
}

.step-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-nav-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stepper-btn {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.stepper-btn:hover {
    background: #e2e8f0;
}

.stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   SEO & Content Section (Matching blockblastsolver.ai style)
   ========================================================================== */
.seo-section {
    max-width: 1024px;
    margin: 3.5rem auto 2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 3rem;
    line-height: 1.8;
}

.seo-h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.seo-h2:first-of-type {
    margin-top: 0;
}

.seo-p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.strategy-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.strategy-badge {
    display: inline-block;
    background: var(--primary-purple);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.faq-item {
    background: #f8fafc;
    border-left: 4px solid var(--primary-purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem;
}

.faq-q {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: #fff;
}

.network-links-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.network-links-bar a {
    color: #38bdf8;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Modal Overlay & Shape Picker
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modalPop 0.2s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.modal-close-btn:hover {
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.shape-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.75rem;
}

.shape-picker-item {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.shape-picker-item:hover {
    border-color: var(--primary-purple);
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 72, 255, 0.15);
}

/* Responsive */
@media (max-width: 860px) {
    .nav-tabs {
        display: none;
    }
    .mobile-tabs-bar {
        display: flex;
    }
    .screenshot-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .screenshot-dropzone {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }
    .example-col {
        width: 100%;
        max-width: 320px;
        height: auto;
        gap: 1rem;
    }
    .example-box {
        height: auto;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    .or-divider {
        margin: 0.5rem 0;
    }
    .manual-grid-layout {
        grid-template-columns: 1fr;
    }
    .solution-result-grid {
        grid-template-columns: 1fr;
    }
    .seo-section {
        padding: 1.75rem 1.5rem;
    }
    .nav-toggle {
        display: flex;
    }
}
