/* =========================================================
   DARK TOOL TEXTAREA
========================================================= */

.tool-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    box-sizing: border-box;
    resize: vertical;
    appearance: none;
    -webkit-appearance: none;
    background: #0a1116;
    border: 1px solid rgba(167,139,250,.28);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    box-shadow: inset 0 0 18px rgba(0,0,0,.25);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.tool-textarea::placeholder {
    color: #737b82;
    opacity: 1;
}

.tool-textarea:hover {
    border-color: rgba(52,211,153,.42);
}

.tool-textarea:focus {
    background: #080e13;
    border-color: var(--green-1);
    box-shadow: 0 0 0 2px rgba(52,211,153,.08), inset 0 0 18px rgba(0,0,0,.3);
}


/* =========================================================
   STAGE 1 - FRICTION CARDS 
========================================================= */

.friction-cards {
    display: flex;
    flex-direction: row;          
    flex-wrap: wrap;               
    width: 100%;
    max-width: 620px;
    column-gap: 5px;      
    row-gap: 2px important!; 
    margin: 7px auto 0;
}

.friction-cards .tool-card {
    flex: 0 0 calc(33.333% - 7px);   
    width: auto;                     
    min-height: 45px;
    padding: 7px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .88rem;
    font-weight: 300;
    line-height: 1.2;
    border-radius: var(--radius-md);
    background: #070d12;
}

.friction-cards .tool-card:hover {
    transform: translateY(-1px);
    background: #091219;
}

.friction-cards .tool-card.selected {
    transform: none;
    background: rgba(52,211,153,.10);
}

/* Mobile: 2 per row */
@media (max-width: 600px) {
    .friction-cards {
    column-gap: 5px;      
    row-gap: 2px important!; 
    }
    .friction-cards .tool-card {
        flex: 0 0 calc(50% - 4px);
        min-height: 40px;
        padding: 5px 7px;
        font-size: .82rem;
    }
}

/* =========================================================
   STAGE 2 — THREE STEPS
========================================================= */

#microActionList {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.micro-action {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    margin-bottom: 10px;
    padding: 12px 18px;
    box-sizing: border-box;
    background: #070d12;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: default;
    user-select: none;
}

.micro-action:last-child {
    margin-bottom: 0;
}

.micro-action-step {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .10em;
    color: var(--green-1);
}

.micro-action-text {
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text);
}



/* =========================================================
   TIMER
========================================================= */

.ct-timer {
    --ct-size: 210px;
    --ct-ring-bg: #022c22;
    --ct-ring-fill: #064e3b;
    --ct-core-bg: #0a1116;
    --ct-text: #eafff7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    text-align: center;
    user-select: none;
    position: relative;
}

.ct-ring {
    width: var(--ct-size);
    height: var(--ct-size);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--ct-ring-fill) var(--progress),
        var(--ct-ring-bg) var(--progress)
    );
    box-shadow:
        0 0 32px rgba(16,185,129,.22),
        0 0 12px rgba(16,185,129,.35) inset;
}

.ct-ring::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--ct-size) - 48px);
    height: calc(var(--ct-size) - 48px);
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: var(--ct-core-bg);
    box-shadow: inset 0 0 22px rgba(0,0,0,.55);
    pointer-events: none;
}

.ct-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: calc(var(--ct-size) * .24);
    font-weight: 600;
    color: var(--ct-text);
    letter-spacing: -.01em;
    pointer-events: none;
}

.ct-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:35px;
    padding:16px 36px;
    min-width:190px;
    font-family:Inter,system-ui,sans-serif;
    font-size:1rem;
    font-weight:500;
    letter-spacing:.03em;
    color:#34d399;
    background:#0b1f17;
    border:1.5px solid #34d399;
    border-radius:var(--radius-sm);
    cursor:pointer;
    box-shadow:0 4px 18px rgba(45,212,191,.18);
    transition:transform .15s ease,box-shadow .2s ease,background .2s ease;
}

.ct-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 22px rgba(45,212,191,.25);
}

.ct-btn:active{
    transform:translateY(0);
}

.ct-btn:disabled{
    cursor:default;
    opacity:.7;
}

.ct-ring.is-complete {
    box-shadow:
        0 0 32px rgba(16,185,129,.22),
        0 0 12px rgba(16,185,129,.35) inset;
}

/* =========================================================
   STAGE 4 — DECISION CARDS
========================================================= */
#stage4 > .tool-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 20px auto 0;
}

#stage4 .decision-btn {
    flex: 1 1 0;
    width: auto;
    max-width: 360px;
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    justify-content: center;
    text-align: center;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
}

/* =========================================================
   HIDDEN
========================================================= */

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .stage-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }
}