/* AIBIZNESLAB v2 — warsztaty (shared)
 * Strony przedwarsztatowe: warsztaty-aibl-wb.html + warsztaty-aiupg.html
 * DNA v2: Geist, #FF5630, radius 14px, border-based depth, zero gradient blobs.
 * Zakłada: v2/tokens.css + core.css + components.css + legacy.css załadowane wcześniej.
 */

/* Aliasy legacy warmth-* (aiupg.js używa inline styles z tymi zmiennymi) */
:root {
    --warmth-charcoal: #0A0A0A;
    --warmth-cream: #F5F5F5;
    --warmth-primary: #FF5630;
    --warmth-secondary: #F5F5F5;
    --warmth-accent: #FF5630;
    --warmth-gold: #FF5630;
}

/* ==========================================================================
   STEPS SECTION (hero lista kroków)
   ========================================================================== */
.steps-section {
    padding: 6rem 0 4rem;
    background: var(--bg);
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}

.steps-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.steps-header h1 {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 1rem 0;
    text-wrap: balance;
}

.steps-header p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.65;
    text-wrap: balance;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

/* ==========================================================================
   STEP TILE (kafelek kroku)
   ========================================================================== */
.step-tile {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 240px;
    justify-content: space-between;
}

.step-tile:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.step-tile.completed {
    border-color: var(--ok);
    background: rgba(22, 163, 74, 0.03);
}

.step-tile.optional-step {
    border-style: dashed;
    border-color: var(--border-strong);
}

.step-tile.optional-step.completed {
    border-style: solid;
    border-color: var(--accent);
}

/* Step number (badge z numerem kroku) */
.step-tile .step-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
    margin-bottom: 1.25rem;
}

.step-tile .step-number.optional {
    border-style: dashed;
    background: transparent;
    color: var(--text-faint);
}

.step-status {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--ok);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.step-tile.completed .step-status {
    opacity: 1;
    transform: scale(1);
}

.check-icon {
    width: 0.85rem;
    height: 0.85rem;
    stroke-width: 3;
    color: #FFFFFF;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    flex: 1;
    text-wrap: balance;
}

.step-arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.15s ease;
    align-self: flex-end;
}

.step-tile:hover .step-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.optional-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   STEP MODAL
   ========================================================================== */
.step-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.step-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-elev-1);
    max-width: 740px;
    margin: 2rem auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.modal-close svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.modal-body {
    padding: 1.25rem 1.75rem;
    flex: 1;
    overflow-y: auto;
    color: var(--text);
}

.modal-body p {
    color: var(--text-dim);
    line-height: 1.65;
    max-width: none;
    margin-bottom: 1rem;
}

.modal-body h3, .modal-body h4, .modal-body h5, .modal-body h6 {
    color: var(--text);
    margin: 1.25rem 0 0.6rem;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.modal-body h3 { font-size: 1.4rem; }
.modal-body h4 { font-size: 1.2rem; }
.modal-body h5 { font-size: 1.08rem; }
.modal-body h6 { font-size: 1rem; }

.domain-step-content h6,
.step-block strong {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.modal-body ul, .modal-body ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.modal-body li { margin-bottom: 0.4rem; }

.modal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.modal-body a:hover { color: var(--text); }

.modal-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-elev-2);
    color: var(--text);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.modal-footer {
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS (modal + legacy fallback)
   ========================================================================== */
/* .btn-primary - usunięte, konsolidacja do .btn.btn-accent.btn-lg (core.css) */

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--text);
}

/* ==========================================================================
   PROFILE PATHS (Krok 1 - Profil)
   ========================================================================== */
.profile-paths {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.profile-paths h5 {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    text-align: center;
    font-weight: 500;
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.path-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-family: inherit;
}

.path-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.path-card.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.path-card h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.selected-path-content {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.prompt-instructions {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.prompt-instructions h5 {
    color: var(--text);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.prompt-instructions ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-dim);
}

.prompt-instructions li {
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.profile-tips,
.style-tips,
.bonus-info {
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.profile-tips h5,
.style-tips h5,
.bonus-info h5,
.bonus-info h6 {
    color: var(--text);
    margin: 0 0 0.6rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.profile-tips p,
.style-tips p,
.bonus-info p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.55;
}

.bonus-info ul {
    margin: 0.5rem 0 0 1.2rem;
    color: var(--text-dim);
}

.bonus-info li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* ==========================================================================
   PROMPT BOX (kopiowalny prompt)
   ========================================================================== */
.prompt-box {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.prompt-header {
    background: var(--bg-elev-3);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.prompt-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.copy-btn {
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #E84A22;
}

.prompt-content {
    background: #0A0A0A;
    color: #F5F5F5;
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    max-height: 420px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.prompt-content:empty {
    display: none;
}

.prompt-box:has(.prompt-content:empty) {
    display: none;
}

/* ==========================================================================
   TOOLS LIST (Krok 2 - Narzędzia)
   ========================================================================== */
.tools-list {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.25rem 0;
}

.tools-list h5 {
    color: var(--text);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tools-list ul {
    margin: 0.75rem 0;
    padding-left: 1.2rem;
    color: var(--text-dim);
}

.tools-list li {
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.tools-list a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.tools-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tools-list p {
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
}

/* ==========================================================================
   STYLE GENERATOR (Krok 3 - Styl wizualny)
   ========================================================================== */
.style-generator {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.style-generator ol {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1rem 1rem 2.25rem;
    margin: 0.75rem 0;
    color: var(--text-dim);
}

.style-generator ol li {
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

/* ==========================================================================
   IDE TOOLS (Krok 4 - Pomocnicy AI)
   ========================================================================== */
.ide-intro {
    margin-bottom: 1.5rem;
}

.ide-warning {
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ide-warning h4 {
    color: var(--text);
    margin: 0 0 0.6rem 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.ide-warning ul {
    margin: 0.5rem 0 0 1.2rem;
    color: var(--text-dim);
}

.ide-warning li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.ide-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tool-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.tool-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.tool-card.active,
.claude-card.active,
.gemini-card.active,
.qwen-card.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tool-card h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.tool-instructions {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 180px;
}

.select-prompt {
    text-align: center;
    color: var(--text-faint);
    font-style: italic;
    margin: 2rem 0;
    font-size: 1rem;
}

.tool-detailed h4 {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.prereq-section {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-sm);
}

.prereq-section h5 {
    margin: 0 0 0.6rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.prereq-section code {
    background: var(--bg-elev-3);
    color: var(--text);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    border: 1px solid var(--border);
}

.install-tabs {
    margin: 1.5rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tab-btn:hover {
    border-color: var(--text);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.tab-content {
    display: none;
}

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

.tab-content h6 {
    color: var(--text);
    font-size: 1.05rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.step-block {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-elev-1);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.step-block .step-num,
.step-num {
    background: var(--bg-elev-3);
    color: var(--text);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    margin-bottom: 0 !important;
    border: 1px solid var(--border);
    gap: 0 !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
}

.step-block .step-num::before,
.step-num::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}

.step-block strong {
    color: var(--text);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.step-block p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.55;
    font-size: 0.95rem;
}

.code-block {
    background: #0A0A0A;
    color: #F5F5F5;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0.75rem 0;
    position: relative;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 0.85rem;
    flex: 1;
    word-break: break-word;
}

.code-block button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F5F5F5;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.code-block button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.troubleshooting-tips {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.troubleshooting-tips h5,
.troubleshooting-tips h6 {
    color: var(--text);
    margin: 0 0 0.6rem;
    font-weight: 500;
}

.ide-help {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.ide-help h4 {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.help-option {
    background: var(--bg-elev-1);
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.help-option strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 500;
}

.help-option p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.55;
    font-size: 0.9rem;
}

/* ==========================================================================
   DOMAIN (Krok 5 - Domena i Hosting, AIBL-WB only)
   ========================================================================== */
.domain-sections {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.domain-section {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.domain-section h4,
.domain-section h5 {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.domain-warning {
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.domain-steps {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.domain-step {
    display: flex;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.domain-step-num {
    background: var(--bg-elev-3);
    color: var(--text);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    border: 1px solid var(--border);
}

.domain-step-content {
    flex: 1;
}

.domain-step-content strong {
    color: var(--text);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.domain-step-content p {
    margin: 0 0 0.5rem;
    color: var(--text-dim);
    line-height: 1.55;
    font-size: 0.95rem;
}

.domain-step-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.domain-step-content a:hover {
    color: var(--text);
}

.domain-tips {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.domain-tips h5,
.domain-tips h6 {
    color: var(--text);
    margin: 0 0 0.6rem;
    font-weight: 500;
}

.domain-tips p,
.domain-tips li {
    color: var(--text-dim);
    line-height: 1.55;
}

/* ==========================================================================
   AI TOOLS GRID (AIUPG - Krok 1)
   ========================================================================== */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin: 1.5rem 0;
}

.tool-card-simple {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
    position: relative;
}

.tool-card-simple:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.tool-card-simple.recommended {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.tool-header h6 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.badge-recommended {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--accent);
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-price {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
}

.btn-tool,
a.btn-tool,
.tool-card-simple a.btn-tool {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--accent) !important;
    color: #FFFFFF !important;
    text-align: center;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
    transition: background 0.15s ease;
}

.btn-tool:hover,
a.btn-tool:hover {
    background: #E84A22 !important;
}

.tools-note {
    margin-top: 1.5rem;
    padding: 1.1rem;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.tools-note p {
    margin: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.tools-note p:first-child { margin-top: 0; }
.tools-note p:last-child { margin-bottom: 0; }

/* ==========================================================================
   TASK INSTRUCTIONS / WHY IMPORTANT (AIUPG)
   ========================================================================== */
.task-instructions {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.25rem 0;
}

.task-instructions h4,
.task-instructions h5,
.task-instructions h6 {
    color: var(--text);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.task-instructions ol,
.task-instructions ul {
    margin: 0.5rem 0 1rem 1.2rem;
    color: var(--text-dim);
}

.task-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.task-instructions p {
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.why-important {
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.why-important h4,
.why-important h5,
.why-important h6 {
    color: var(--text);
    margin: 0 0 0.6rem 0;
    font-weight: 500;
}

.why-important p {
    margin: 0 0 0.5rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.why-important p:last-child { margin-bottom: 0; }

/* ==========================================================================
   HEADER CTA FALLBACK (w razie gdyby legacy nie pokrywało .header-cta hover)
   ========================================================================== */
.header-cta:hover {
    background: var(--accent);
    color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .path-cards,
    .ide-tools {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .steps-section {
        padding: 4rem 0 3rem;
    }

    .steps-header {
        margin-bottom: 2.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-tile {
        padding: 1.5rem 1.25rem;
        min-height: 200px;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn-secondary {
        width: 100%;
    }

    .path-cards,
    .ide-tools {
        grid-template-columns: 1fr;
    }

    .path-card {
        min-height: 64px;
        padding: 0.85rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .step-block {
        flex-direction: column;
        gap: 0.75rem;
    }

    .code-block {
        flex-direction: column;
        align-items: stretch;
    }

    .code-block button {
        align-self: flex-end;
    }

    .help-options {
        grid-template-columns: 1fr;
    }

    .domain-step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .prompt-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .prompt-content {
        font-size: 0.78rem;
        padding: 1rem;
    }

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

@media (max-width: 480px) {
    .steps-header h1 {
        font-size: 2rem;
    }

    .steps-header p {
        font-size: 1rem;
    }

    .step-tile {
        min-height: 180px;
        padding: 1.25rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }
}
