/* =============================================
   drag-your-project-smart.css
   Full UI — RTL, responsive, multi-step wizard
   ============================================= */

/* --- Tokens --- */
:root {
    --font: "Tajawal", sans-serif;
    --indigo: #4F46E5;
    --indigo-light: #eef2ff;
    --violet: #7C3AED;
    --violet-light: #f5f3ff;
    --teal: #0D9488;
    --teal-light: #f0fdfa;
    --coral: #F43F5E;
    --coral-light: #fff1f2;
    --gray-50: #f8f8fb;
    --gray-100: #f1f1f5;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #1e1b4b;
    --white: #ffffff;
    --surface: var(--white);
    --bg: var(--gray-50);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
    --shadow-xl: 0 12px 40px rgba(0,0,0,.12);
    --transition: .25s ease;
    --max-w: 900px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ========================
   LAB TOPBAR
   ======================== */
.lab-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .7rem 2rem;
}
.lab-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-500);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all .2s;
}
.lab-topbar__back:hover { color: var(--indigo); border-color: var(--indigo); }
.lab-topbar__share {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lab-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font);
    font-size: .75rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.lab-topbar__btn:hover { border-color: var(--indigo); color: var(--indigo); }
.lab-topbar__btn svg { width: 14px; height: 14px; }
.lab-topbar__btn--copied { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }

@media (max-width: 480px) {
    .lab-topbar { padding: .5rem 1.2rem; }
}

/* ========================
   HERO
   ======================== */
.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 35%, #6d28d9 65%, #0f766e 100%);
    color: var(--white);
    padding: 2rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero-bg-orb--1 { width: 400px; height: 400px; top: -120px; right: -100px; background: rgba(255,255,255,.06); }
.hero-bg-orb--2 { width: 320px; height: 320px; bottom: -80px; left: -60px; background: rgba(20,184,166,.12); }

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto 3rem;
}
.hero-logo {
    font-size: 1.3rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hero-logo__badge {
    background: var(--white);
    color: var(--indigo);
    font-size: .65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
}
.hero-logo__dot { color: #5eead4; }
.hero-back {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}
.hero-back:hover { color: var(--white); }

.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
}
.hero-tag {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: .8rem;
}
.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-desc {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 520px;
}

/* ========================
   PROGRESS BAR
   ======================== */
.progress-bar-wrap {
    max-width: var(--max-w);
    margin: -1.5rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}
.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.progress-bar__fill {
    height: 100%;
    width: 12.5%;
    background: linear-gradient(90deg, var(--indigo), var(--violet), var(--teal));
    border-radius: var(--radius-full);
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: .6rem;
    padding: 0 .2rem;
}
.progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 900;
    color: var(--gray-400);
    transition: all var(--transition);
    position: relative;
}
.progress-dot--active {
    border-color: var(--indigo);
    color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(79,70,229,.15);
}
.progress-dot--done {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}
.progress-dot--done::after {
    content: "✓";
    font-size: .7rem;
}

/* ========================
   WIZARD
   ======================== */
.wizard {
    max-width: var(--max-w);
    margin: 2.5rem auto 0;
    padding: 0 2rem 6rem;
}
.step {
    display: none;
    animation: fadeUp .4s ease both;
}
.step.active { display: block; }

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

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: .2rem;
}
.step-desc {
    font-size: .95rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* --- Empty state --- */
.step-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
    color: var(--gray-400);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.7;
    transition: opacity var(--transition);
}
.step-empty.hidden { display: none; }

/* ========================
   CHIPS
   ======================== */
.chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}
.chips-grid--lg {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.chips-grid.hidden { display: none; }

.chip {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    user-select: none;
}
.chip:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.chip.selected {
    border-color: var(--indigo);
    background: var(--indigo-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    transform: translateY(-2px);
}
.chip__label {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.3;
}
.chip__sub {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1.4;
}
.chip__check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--indigo);
    color: var(--white);
    font-size: .6rem;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
}
.chip.selected .chip__check { display: flex; }

/* Large chip variant for project types */
.chip--type {
    padding: 1.2rem;
    gap: .5rem;
}
.chip--type .chip__icon {
    font-size: 1.5rem;
    margin-bottom: .2rem;
}
.chip--type .chip__label {
    font-size: 1rem;
}

/* Small inline chip for multi-select */
.chip--sm {
    padding: .7rem 1rem;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}
.chip--sm .chip__label {
    font-size: .85rem;
}

/* ========================
   FEATURES DISPLAY
   ======================== */
.features-section {
    margin-bottom: 1.5rem;
}
.features-section__title {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.features-section__title--core { color: var(--indigo); }
.features-section__title--important { color: var(--teal); }
.features-section__title--nice { color: var(--gray-500); }

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
}
.feature-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: all var(--transition);
}
.feature-item:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow-xs);
}
.feature-item--core { border-right: 3px solid var(--indigo); }
.feature-item--important { border-right: 3px solid var(--teal); }
.feature-item--nice { border-right: 3px solid var(--gray-300); }

.feature-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.feature-item--core .feature-item__icon { background: var(--indigo-light); color: var(--indigo); }
.feature-item--important .feature-item__icon { background: var(--teal-light); color: var(--teal); }
.feature-item--nice .feature-item__icon { background: var(--gray-100); color: var(--gray-500); }

.feature-item__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.feature-item__name {
    font-size: .85rem;
    font-weight: 800;
    color: var(--gray-800);
}
.feature-item__name-en {
    font-size: .7rem;
    font-weight: 500;
    color: var(--gray-400);
}

.features-count {
    text-align: center;
    padding: .8rem;
    background: var(--indigo-light);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 1.5rem;
}

/* ========================
   FINAL CARD
   ======================== */
.final-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
}
.final-card__header {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #0f766e 100%);
    color: var(--white);
    padding: 2rem 2rem 1.5rem;
}
.final-card__type-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: .3rem .9rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: .8rem;
}
.final-card__title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: .3rem;
}
.final-card__subtitle {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
}

.final-card__body {
    padding: 1.8rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.final-section {
    padding-bottom: .5rem;
}
.final-section__title {
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.final-section__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Names */
.name-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.name-pill {
    background: var(--violet-light);
    color: var(--violet);
    padding: .4rem 1rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 800;
    transition: all var(--transition);
    cursor: default;
}
.name-pill:hover {
    background: var(--violet);
    color: var(--white);
}

/* Stack table */
.stack-table {
    width: 100%;
    border-collapse: collapse;
}
.stack-table th {
    text-align: right;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: .6rem .8rem;
    border-bottom: 1.5px solid var(--gray-200);
}
.stack-table td {
    padding: .6rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
.stack-table tr:last-child td { border-bottom: none; }
.stack-notes {
    margin-top: .6rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1.6;
}
.stack-table__label {
    font-weight: 800;
    color: var(--gray-800);
    white-space: nowrap;
}

/* Stack toggle */
.stack-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: 1rem;
}
.stack-toggle__btn {
    flex: 1;
    padding: .55rem 1rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 800;
    color: var(--gray-500);
    transition: all var(--transition);
    text-align: center;
}
.stack-toggle__btn.active {
    background: var(--white);
    color: var(--indigo);
    box-shadow: var(--shadow-sm);
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .6rem;
}
.tool-card {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: .9rem 1rem;
    transition: all var(--transition);
}
.tool-card:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow-xs);
}
.tool-card__cat {
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: .3rem;
}
.tool-card__name {
    font-size: .9rem;
    font-weight: 900;
    color: var(--gray-800);
    margin-bottom: .2rem;
}
.tool-card__note {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Overview grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.overview-item {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.overview-item__label {
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.overview-item__value {
    font-size: .82rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Strongest name */
.strongest-name {
    background: linear-gradient(135deg, var(--violet-light), var(--indigo-light));
    border: 1.5px solid rgba(124,58,237,.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.strongest-name__badge {
    display: inline-block;
    background: var(--violet);
    color: var(--white);
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .2rem .7rem;
    border-radius: var(--radius-full);
    margin-bottom: .5rem;
}
.strongest-name__value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: .2rem;
}
.strongest-name__tone {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-500);
}

.name-pill--strong {
    background: var(--violet);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(124,58,237,.25);
}
.name-pill--strong:hover {
    background: var(--indigo);
}

/* MVP badge & groups */
.mvp-badge {
    display: inline-block;
    background: var(--indigo-light);
    color: var(--indigo);
    padding: .4rem 1rem;
    border-radius: var(--radius-full);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.mvp-group {
    margin-bottom: 1rem;
}
.mvp-group:last-child { margin-bottom: 0; }
.mvp-group__title {
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: .5rem;
}
.mvp-group__title--core { color: var(--indigo); }
.mvp-group__title--teal { color: var(--teal); }
.mvp-group__title--gray { color: var(--gray-500); }

/* First screen card */
.first-screen-card {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
}
.first-screen-card__name {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: .4rem;
}
.first-screen-card__why {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
}

/* Workflow grid */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}
.workflow-card {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition);
}
.workflow-card:hover {
    border-color: var(--indigo);
    box-shadow: var(--shadow-xs);
}
.workflow-card__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
}
.workflow-card__icon {
    font-size: 1.2rem;
}
.workflow-card__label {
    font-size: .8rem;
    font-weight: 900;
    color: var(--gray-800);
}
.workflow-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.workflow-card__list li {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.5;
    padding-right: .8rem;
    position: relative;
}
.workflow-card__list li::before {
    content: "›";
    position: absolute;
    right: 0;
    color: var(--indigo);
    font-weight: 900;
}
.workflow-card__list li strong {
    font-weight: 800;
    color: var(--gray-800);
}

/* Multi-select counter */
.multi-counter {
    text-align: center;
    padding: .5rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: .5rem;
    margin-bottom: .3rem;
    transition: all var(--transition);
}
.multi-counter__hint {
    color: var(--gray-400);
}
.multi-counter__count {
    color: var(--indigo);
    font-weight: 800;
}
.multi-counter--active {
    background: var(--indigo-light);
}
.multi-counter--full {
    background: var(--teal-light);
}
.multi-counter--full .multi-counter__count {
    color: var(--teal);
}
.multi-counter__limit {
    color: var(--coral);
    font-weight: 800;
}
.multi-counter--warn {
    background: var(--coral-light);
    animation: shake .4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Feature pick state */
.feature-item {
    cursor: pointer;
}
.feature-item__pick {
    margin-right: auto;
    margin-left: 0;
    font-size: 1rem;
    color: var(--gray-300);
    transition: all var(--transition);
    flex-shrink: 0;
}
.feature-item--picked {
    border-color: var(--violet) !important;
    background: var(--violet-light);
    box-shadow: 0 0 0 2px rgba(124,58,237,.10);
}
.feature-item--picked .feature-item__pick {
    color: var(--violet);
}

/* Picked feature tag in final card */
.final-feature-tag--picked {
    background: var(--violet);
    color: var(--white);
    font-weight: 800;
}

/* Features compact in final card */
.final-features {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.final-feature-tag {
    background: var(--indigo-light);
    color: var(--indigo);
    padding: .35rem .8rem;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
}
.final-feature-tag--teal {
    background: var(--teal-light);
    color: var(--teal);
}
.final-feature-tag--gray {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Copy button */
.copy-wrap {
    display: flex;
    gap: .6rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gray-900);
    color: var(--white);
    padding: .65rem 1.3rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 800;
    transition: all var(--transition);
}
.btn-copy:hover {
    background: var(--indigo);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-copy.copied {
    background: var(--teal);
}
.btn-copy__icon { font-size: 1rem; }

/* ========================
   SUMMARY DRAWER
   ======================== */
.summary-drawer {
    position: fixed;
    bottom: 80px;
    left: 1.5rem;
    z-index: 100;
    width: 300px;
}
.summary-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--gray-900);
    color: var(--white);
    padding: .6rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}
.summary-toggle:hover {
    background: var(--indigo);
}
.summary-toggle__icon { font-size: 1rem; }

.summary-body {
    display: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1.5px solid var(--gray-200);
    padding: 1.2rem;
    margin-top: .6rem;
    max-height: 360px;
    overflow-y: auto;
}
.summary-body.open { display: block; animation: fadeUp .25s ease both; }

.summary-heading {
    font-size: .85rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: .8rem;
}
.summary-placeholder {
    font-size: .85rem;
    color: var(--gray-400);
    font-weight: 500;
}

.summary-item {
    margin-bottom: .8rem;
}
.summary-item:last-child { margin-bottom: 0; }
.summary-item__label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: .3rem;
}
.summary-item__value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.5;
}
.summary-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.summary-tag {
    background: var(--indigo-light);
    color: var(--indigo);
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    font-size: .7rem;
    font-weight: 700;
}

/* ========================
   WIZARD NAV
   ======================== */
.wizard-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--white);
    border-top: 1.5px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
    padding: .8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.wizard-nav__step {
    font-size: .8rem;
    font-weight: 800;
    color: var(--gray-400);
    min-width: 100px;
    text-align: center;
}

.btn {
    padding: .7rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 800;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none !important;
}
.btn--primary {
    background: var(--indigo);
    color: var(--white);
}
.btn--primary:hover:not(:disabled) {
    background: var(--violet);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn--ghost {
    background: transparent;
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
}
.btn--ghost:hover:not(:disabled) {
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: #0f0f14;
    color: var(--white);
    padding-bottom: 80px;
}
.footer-line {
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--violet), var(--teal));
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo {
    font-size: 1.1rem;
    font-weight: 900;
}
.footer-logo__badge {
    background: var(--indigo);
    color: var(--white);
    font-size: .6rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 5px;
}
.footer-logo__dot { color: #5eead4; }
.footer-copy {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    font-weight: 500;
    margin-top: .4rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.45);
}
.footer-links a:hover { color: var(--white); transition: color var(--transition); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    .hero { padding: 1.5rem 1.2rem 4rem; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: .95rem; }
    .hero-nav { margin-bottom: 2rem; }

    .progress-bar-wrap { padding: 0 1.2rem; }
    .wizard { padding: 0 1.2rem 2rem; }

    .chips-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
    .chips-grid--lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .chip { padding: .8rem; }
    .chip--type { padding: .9rem; }

    .feature-list { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; }
    .strongest-name__value { font-size: 1.3rem; }

    .final-card__header { padding: 1.5rem; }
    .final-card__body { padding: 1.3rem 1.5rem 1.5rem; }
    .final-card__title { font-size: 1.3rem; }

    .summary-drawer { left: 1rem; right: 1rem; width: auto; }

    .wizard-nav { padding: .7rem 1rem; gap: .5rem; }
    .btn { padding: .6rem 1.1rem; font-size: .8rem; }
    .wizard-nav__step { font-size: .7rem; min-width: auto; }

    .stack-table th, .stack-table td { padding: .5rem .5rem; font-size: .78rem; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .chips-grid { grid-template-columns: 1fr 1fr; }
    .chips-grid--lg { grid-template-columns: 1fr 1fr; }
    .step-header { gap: .7rem; }
    .step-number { width: 36px; height: 36px; font-size: .9rem; }
    .step-title { font-size: 1.3rem; }
    .progress-dot { width: 24px; height: 24px; font-size: .55rem; }
    .name-suggestions { gap: .4rem; }
    .name-pill { font-size: .78rem; padding: .35rem .8rem; }
}
