/* claim.css — Modern High-Legibility Cyber Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0f1e;
    --bg-card: #111827;
    --bg-input: #0d1424;
    --bdr: #1e2d45;
    --bdr-light: #2a3c5a;
    --green: #22c55e;
    --gdark: #16a34a;
    --gglow: rgba(34, 197, 94, 0.22);
    --blue: #3b82f6;
    --bdark: #2563eb;
    --bglow: rgba(59, 130, 246, 0.22);
    --amber: #f59e0b;
    --red: #ef4444;
    --purple: #a855f7;
    --txt: #f1f5f9;
    --muted: #94a3b8;
    --dim: #475569;
    --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --fh: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fm: "JetBrains Mono", monospace;
    --fn: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ff);
    background: var(--bg);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(30, 45, 69, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 45, 69, 0.35) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    color: var(--txt);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 13.5px;
}

/* ── Top Navbar ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.6rem;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bdr);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--fh);
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.logo span { color: var(--green); }

.ntabs {
    display: flex;
    background: rgba(13, 20, 36, 0.9);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 2.5px;
    gap: 2px;
}

.ntab {
    padding: 0.3rem 0.95rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ntab.on {
    background: var(--green);
    color: #000;
    font-weight: 750;
    box-shadow: 0 0 10px var(--gglow);
}
.ntab:not(.on):hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.05);
}

.nright {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fh);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.8px;
}

.dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 7px var(--green);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Content Layout ── */
.awrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
    width: 100%;
}

.ahero {
    text-align: center;
    margin-bottom: 1.1rem;
}

.ahero h1 {
    font-family: var(--fh);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 750;
    color: #fff;
    letter-spacing: 0.6px;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.ahero p {
    color: var(--muted);
    font-size: 0.82rem;
    max-width: 480px;
    margin: 0 auto 0.65rem;
    line-height: 1.45;
}

/* Sub-tabs like Reference */
.subtabs {
    display: inline-flex;
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.subtab {
    padding: 0.32rem 0.95rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.subtab.on {
    background: var(--green);
    color: #000;
    font-weight: 750;
    box-shadow: 0 0 10px var(--gglow);
}
.subtab:not(.on):hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Compact & Balanced Card ── */
.card {
    width: 100%;
    max-width: 470px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Steps Indicator */
.steps {
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
    padding: 0 4px;
}
.si {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.sc {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.2px solid var(--bdr);
    background: var(--bg-input);
    color: var(--dim);
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.si.on .sc {
    border-color: var(--green);
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    box-shadow: 0 0 8px var(--gglow);
}
.si.dn .sc {
    border-color: var(--green);
    background: var(--green);
    color: #000;
}
.sl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--dim);
    text-align: center;
    white-space: nowrap;
}
.si.on .sl { color: var(--green); }
.sline {
    flex: 1;
    height: 1.5px;
    background: var(--bdr);
    margin-bottom: 16px;
    transition: background 0.25s;
}
.sline.dn { background: var(--green); }

/* Order / Warranty Mini Bar */
.order-mini-bar {
    background: rgba(13, 20, 36, 0.8);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mini-id {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mini-id .muted-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--dim);
    letter-spacing: 0.5px;
}
.mono-id {
    font-family: var(--fm);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.mini-warranty {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2.5px 7px;
    border-radius: 12px;
}
.dot-sm {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 5px var(--green);
}

.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
    margin-top: -0.45rem;
    margin-bottom: 0.85rem;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--green), #86efac);
    box-shadow: 0 0 5px var(--gglow);
    transition: width 0.6s ease;
}

/* Dual progress bars */
.dual-progress-wrap {
    margin-bottom: 0.85rem;
    margin-top: -0.25rem;
}
.dual-progress-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.dpl-icon { font-size: 0.72rem; }
.dpl-title {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--dim);
    letter-spacing: 0.3px;
    flex: 1;
}
.dpl-time {
    font-family: var(--fm);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.dpl-green { color: var(--green); }
.dpl-purple { color: #a855f7; }

.progress-green {
    background: linear-gradient(90deg, var(--green), #86efac);
    box-shadow: 0 0 5px var(--gglow);
}
.progress-purple {
    background: linear-gradient(90deg, #a855f7, #d8b4fe);
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
}

/* Session badge in mini bar */
.mini-session {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 2.5px 7px;
    border-radius: 12px;
}
.dot-sm-purple {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.7);
}

/* Card Section Header */
.card-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fh);
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.card-section-sub {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

/* Checklist / Warning Box (Exactly like CDK reference) */
.note-box {
    background: rgba(234, 179, 8, 0.04);
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 9px;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1rem;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #fef08a;
    text-align: left;
}
.note-title {
    font-weight: 750;
    font-size: 0.76rem;
    color: #fde047;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.note-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.note-list li {
    margin-bottom: 0.2rem;
    color: #fef9c3;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}
.note-divider {
    height: 1px;
    background: rgba(234, 179, 8, 0.18);
    margin: 0.5rem 0;
}
.note-foot {
    color: #eab308;
    font-size: 0.71rem;
    line-height: 1.4;
}

/* Fields & Inputs */
.f {
    margin-bottom: 0.85rem;
    text-align: left;
}
.f label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.input-copy-group {
    display: flex;
    gap: 7px;
}
.input-copy-group input {
    flex: 1;
    background: var(--bg-input);
    border: 1.2px solid var(--bdr);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: #93c5fd;
    font-size: 0.8rem;
    font-family: var(--fm);
    outline: none;
    transition: border-color 0.2s;
    height: 38px;
}
.input-copy-group input:focus {
    border-color: var(--blue);
}

#manual-token-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-input);
    border: 1.5px solid var(--bdr);
    border-radius: 9px;
    padding: 0.65rem 1rem;
    color: #fff;
    font-family: var(--fm);
    font-size: 0.88rem;
    text-align: center;
    height: 44px;
    outline: none;
    transition: all 0.2s;
}
#manual-token-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 12px var(--bglow);
}

.bg-copy {
    padding: 0 0.95rem;
    height: 38px;
    background: var(--green);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 750;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 10px var(--gglow);
}
.bg-copy:hover {
    background: var(--gdark);
}

/* Status & Countdown Unified Bar */
.link-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 20, 36, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.85rem;
}
.status-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--green);
}
.countdown-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted);
}
.countdown-num {
    font-family: var(--fm);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amber);
    font-variant-numeric: tabular-nums;
}

/* Buttons */
.bg {
    width: 100%;
    height: 42px;
    background: var(--green);
    border: none;
    border-radius: 9px;
    color: #000;
    font-weight: 800;
    font-size: 0.84rem;
    font-family: var(--ff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    box-shadow: 0 3px 14px var(--gglow);
    letter-spacing: 0.3px;
    text-decoration: none;
}
.bg:hover:not(:disabled) {
    background: var(--gdark);
    box-shadow: 0 3px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}
.bg:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bb {
    width: 100%;
    height: 42px;
    background: var(--blue);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    font-family: var(--ff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    box-shadow: 0 3px 14px var(--bglow);
    letter-spacing: 0.3px;
    text-decoration: none;
}
.bb:hover:not(:disabled) {
    background: var(--bdark);
    transform: translateY(-1px);
}

.bk-subtle {
    width: 100%;
    height: 38px;
    background: rgba(245, 158, 11, 0.07);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 9px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: var(--ff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.22s;
    text-decoration: none;
    margin-top: 0.55rem;
    letter-spacing: 0.2px;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
}
.bk-subtle:hover {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.65);
    color: #fbbf24;
    box-shadow: 0 2px 14px rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0.85rem;
}

/* State Containers */
.state-container { text-align: left; }
.state-container.hidden { display: none !important; }

/* Pulse Ring Animation */
.icon-pulse-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    animation: ripple 2s infinite;
}
@keyframes ripple {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.center-gemini-icon {
    font-size: 1.3rem;
    z-index: 2;
}

/* Spinner */
.sp {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
.sp.w {
    border-color: rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Guide Tab View inside card */
.guide-view {
    text-align: left;
}
.guide-view.hidden, .check-link-view.hidden, .card.hidden { display: none !important; }
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.8rem;
}
.g-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(13, 20, 36, 0.6);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--muted);
}
.g-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.g-step strong { color: #fff; }
.g-step em { color: #93c5fd; font-style: normal; }

/* Subtle guide footer link */
.card-guide-toggle {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.73rem;
    color: var(--dim);
}
.card-guide-toggle a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.card-guide-toggle a:hover {
    color: var(--green);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 1rem;
    color: var(--dim);
    font-size: 0.72rem;
    border-top: 1px solid rgba(30, 45, 69, 0.3);
    margin-top: auto;
}

/* ── Multilingual Selector (7 Languages) ── */
.lang-selector {
    position: relative;
    display: inline-block;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 20, 36, 0.9);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 0.32rem 0.7rem;
    color: var(--txt);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--ff);
}
.lang-btn:hover {
    border-color: var(--green);
    background: rgba(255, 255, 255, 0.06);
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #0d1424;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 5px;
    min-width: 175px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
    z-index: 1000;
}
.lang-dropdown.active {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lang-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.45rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: var(--ff);
}
.lang-opt:hover, .lang-opt.active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
}

/* ── RTL Support for Arabic ── */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}
[dir="rtl"] .steps {
    flex-direction: row-reverse;
}
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}
[dir="rtl"] .lang-opt {
    text-align: right;
}
[dir="rtl"] .mini-warranty, [dir="rtl"] .status-tag, [dir="rtl"] .g-step, [dir="rtl"] .card-section-title {
    flex-direction: row-reverse;
}
[dir="rtl"] .note-box, [dir="rtl"] .card-section-title, [dir="rtl"] .card-section-sub, [dir="rtl"] .f {
    text-align: right;
}
[dir="rtl"] .input-copy-group {
    flex-direction: row-reverse;
}
[dir="rtl"] .note-list li {
    flex-direction: row-reverse;
}
