/* /code — activation code page. Shared look in ../pages.css. */

/* The 4 steps of the card, as a progress row */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; position: relative; }
.steps::before { content: ''; position: absolute; top: 19px; right: 12.5%; left: 12.5%; height: 4px; border-radius: 4px; background: rgba(31,58,95,0.12); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.steps .n {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font: 800 19px/1 var(--title-font); padding-top: 3px; color: rgba(31,58,95,0.5);
    background: var(--paper); border: 3px solid rgba(31,58,95,0.12); position: relative; z-index: 1;
}
.steps .t { font-size: 12px; font-weight: 800; line-height: 1.35; color: rgba(31,58,95,0.55); }
.steps li.done .n { background: var(--blue); border-color: var(--blue); color: transparent; }
.steps li.done .n::after { content: ''; position: absolute; width: 13px; height: 7px; border: solid #FFFFFF; border-width: 0 0 3.5px 3.5px; transform: rotate(-45deg) translate(1px, -2px); }
.steps li.done .t { color: var(--blue-700); }
.steps li.now .n { background: radial-gradient(circle at 35% 30%, #FFE88F, #F9C53A 55%, #E0A81E); border-color: var(--paper); color: var(--ink); box-shadow: 0 0 0 4px rgba(249,197,58,0.45), 0 6px 12px rgba(120,80,0,0.25); }
.steps li.now .t { color: var(--ink); }

/* Sign-in extras */
.forgot { text-align: center; margin-top: 8px; }
.forgot #forgotBox { text-align: right; margin-top: 8px; padding: 14px; border-radius: 18px; background: var(--cream); }
.forgot .card-sub { margin-bottom: 10px; }
#forgotMsg.ok { background: var(--blue-soft); color: var(--blue-700); }
#forgotMsg.bad { background: var(--red-soft); color: var(--red); }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.or::before, .or::after { content: ''; flex: 1; height: 1.5px; background: rgba(31,58,95,0.12); }
.social-note { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-bottom: 10px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#googleBtnHost { min-height: 0; display: flex; justify-content: center; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; min-height: 44px;
    padding: 10px 14px; border-radius: 40px; border: 0; cursor: pointer; font: 700 15px 'Almarai', sans-serif;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn.apple { background: #000000; color: #FFFFFF; }
.no-account { margin-top: 20px; padding: 16px; border-radius: 20px; background: var(--yellow-soft); text-align: center; }
.no-account p { font-size: 14.5px; color: var(--ink); margin-bottom: 12px; }
.stores { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.store { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 40px; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 14px; text-decoration: none; direction: ltr; }

/* Signed-in account line */
.account { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px; margin-bottom: 18px; border-radius: 18px; background: var(--blue-soft); }
.account-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.account-ico svg { width: 22px; height: 22px; fill: #FFFFFF; }
.account-txt { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; flex: 1; }
.account-txt .muted { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.account-email { font-weight: 800; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.account .link-btn { flex-basis: 100%; text-align: start; font-size: 13px; min-height: 36px; padding: 0 48px 0 0; }
.btn-big { min-height: 64px; font-size: 19px; }
.btn-big svg { width: 26px; height: 26px; }

/* Where the code is on the card */
.card-pic { margin: 6px 0 16px; text-align: center; }
.card-pic-frame { position: relative; max-width: 380px; margin: 0 auto; transform: rotate(-1.5deg); }
.card-pic img { display: block; width: 100%; height: auto; border-radius: 3.3% / 5.5%; box-shadow: 0 14px 28px rgba(60,40,0,0.22); }
/* The code box (no scratch panel since 2026-10-25): x 28.7-86.6 mm, y 32.9-42.3 mm of the 90 x 55 mm card. */
.scratch-ring {
    position: absolute; left: 30.7%; top: 57.4%; width: 66.7%; height: 21.9%; border-radius: 12px;
    border: 3px solid var(--blue); box-shadow: 0 0 0 4px rgba(249,197,58,0.7); animation: ring 1.8s ease-in-out infinite;
}
@keyframes ring { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.04); } }
.card-pic figcaption { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 12px; }

/* The code box: 12 digits shown as 0000 0000 0000 */
.code-field label { text-align: center; font-size: 16px; }
.code-field input[type="text"] {
    min-height: 66px; text-align: center; font: 800 30px/1 var(--title-font); letter-spacing: 3px; padding: 14px 8px 8px;
    border-width: 3px; border-style: dashed; border-color: rgba(42,111,176,0.45); background: #FFFFFF; font-variant-numeric: tabular-nums;
}
.code-field input[type="text"]::placeholder { color: rgba(31,58,95,0.2); font-weight: 800; }
.code-field input[type="text"]:focus { border-style: solid; }
.code-field.full input[type="text"] { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }
.code-count { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--muted); margin-top: 8px; }
.code-field.full .code-count { color: var(--blue-700); }
.safe-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.msg .wa-btn { display: inline-flex; margin-top: 10px; }
.msg-body { flex: 1; }
.msg-body .btn { min-height: 46px; font-size: 15px; margin-top: 10px; }

/* Activated */
.done-card { text-align: center; overflow: hidden; padding-top: 30px; }
.done-badge {
    width: 86px; height: 86px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--blue-grad); color: #FFFFFF; box-shadow: 0 0 0 8px rgba(249,197,58,0.45), 0 14px 28px rgba(31,90,149,0.3);
    animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.done-badge svg { width: 48px; height: 48px; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-title { font: 800 34px/1.25 var(--title-font); color: var(--ink); margin-bottom: 10px; outline: none; }
.done-plan { display: inline-block; padding: 6px 20px 4px; border-radius: 40px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 17px; box-shadow: 0 4px 0 var(--yellow-deep); margin-bottom: 12px; }
.done-date { font-size: 17px; font-weight: 800; color: var(--ink-2); margin-bottom: 8px; }
.done-date bdi { color: var(--blue-700); font-family: var(--title-font); font-size: 22px; }
.done-next { margin-bottom: 18px; }
#codeTitle { outline: none; }

@media (min-width: 760px) {
    .steps .t { font-size: 13.5px; }
    .code-field input[type="text"] { font-size: 36px; letter-spacing: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .scratch-ring, .done-badge { animation: none; }
}
