/* Soken Wrapped — Styles (matches soken.io design system) */

:root {
    --bg-primary: #0c1525;
    --bg-card: #0a1628;
    --bg-surface: rgba(255,255,255,0.05);
    --border-color: rgba(255,255,255,0.1);
    --border-hover: rgba(107,185,236,0.3);
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,0.8);
    --text-muted: rgba(255,255,255,0.6);
    --text-dim: rgba(255,255,255,0.5);
    --accent: #7ac4f4;
    --gradient: linear-gradient(326.32deg, #273dd2 0%, #6bb9ec 77.5%, #7ac4f4 100%);
    --green: #4cd964;
    --yellow: #ffcc00;
    --red: #ff453a;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999rem;
}

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

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 100vh;
}

/* Gilroy font (soken.io brand) — fallback to system fonts */
@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy'), local('Gilroy-Regular');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: local('Gilroy-Bold');
    font-weight: 700;
    font-display: swap;
}

.container {
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto;
}

/* ── Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
    /* Remove white bg — icon is blue on white PNG */
    filter: brightness(1.1);
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    border-color: var(--border-color);
}

.nav-links a.active {
    border-color: var(--border-color);
    background: var(--bg-surface);
    background-image: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Section ── */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero h1 {
    font-size: 3.125rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ── Input Section ── */
.input-section {
    max-width: 700px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.input-group input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: rgba(255,255,255,0.6);
}

.input-group input::placeholder {
    color: var(--text-dim);
}

.btn-gradient {
    background: var(--gradient);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-gradient:hover { opacity: 0.9; }
.btn-gradient:disabled { opacity: 0.5; cursor: not-allowed; }

.chain-detect {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.chain-badge {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.chain-badge:hover { border-color: var(--border-hover); }
.chain-badge.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(122,196,244,0.1);
}

.chain-badge.auto {
    color: var(--text-dim);
    font-style: italic;
}

/* ── Progress Bar ── */
.progress-container {
    display: none;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.progress-container.active { display: block; }

/* Steps indicator */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: rgba(255,255,255,0.08);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.progress-step.active { opacity: 1; }
.progress-step.done { opacity: 0.7; }

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.progress-step.active .step-icon {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 16px rgba(39, 61, 210, 0.4);
}

.progress-step.done .step-icon {
    background: rgba(39, 61, 210, 0.3);
    border-color: rgba(107, 185, 236, 0.3);
    color: #7ac4f4;
}

.progress-step.done .step-icon::after {
    content: '\2713';
    font-size: 0.85rem;
}

.progress-step span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.progress-step.active span {
    color: var(--text-primary);
}

/* Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.progress-pct {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .progress-step span { font-size: 0.6rem; }
    .step-icon { width: 26px; height: 26px; font-size: 0.65rem; }
}

/* ── Cards / Results ── */
.results-container {
    display: none;
    max-width: 900px;
    margin: 40px auto;
}

.results-container.active { display: block; }

.card {
    background: linear-gradient(to right, var(--bg-surface), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: cardFadeIn 0.4s ease-out;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 30px rgba(39, 61, 210, 0.08), 0 0 60px rgba(122, 196, 244, 0.04);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-value.green {
    background: var(--green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-value.red {
    background: var(--red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metric-row:last-child { border-bottom: none; }

.metric-label { color: var(--text-muted); }
.metric-value { font-weight: 600; }
.metric-value.green { color: var(--green); }
.metric-value.red { color: var(--red); }
.metric-value.yellow { color: var(--yellow); }

/* ── Personality Card ── */
.personality-card {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(39,61,210,0.18), rgba(122,196,244,0.08), rgba(39,61,210,0.05));
    border-color: rgba(107, 185, 236, 0.2);
    position: relative;
    overflow: hidden;
}
.personality-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(122,196,244,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.personality-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    line-height: 1;
}

.personality-type-icon {
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(122,196,244,0.3));
}

.personality-type-icon-inline {
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(0 0 4px rgba(122,196,244,0.25));
}

.personality-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personality-desc {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.personality-tier {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-1 { background: rgba(255,215,0,0.2); color: gold; border: 1px solid rgba(255,215,0,0.3); }
.tier-2 { background: rgba(122,196,244,0.2); color: var(--accent); border: 1px solid rgba(122,196,244,0.3); }
.tier-3 { background: rgba(255,255,255,0.08); color: var(--text-secondary); border: 1px solid var(--border-color); }
.tier-4 { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.08); }

/* ── Security Score ── */
.score-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.score-ring.green { border: 3px solid var(--green); color: var(--green); box-shadow: 0 0 20px rgba(76, 217, 100, 0.15); }
.score-ring.yellow { border: 3px solid var(--yellow); color: var(--yellow); box-shadow: 0 0 20px rgba(255, 204, 0, 0.15); }
.score-ring.red { border: 3px solid var(--red); color: var(--red); box-shadow: 0 0 20px rgba(255, 69, 58, 0.15); }

/* ── Share Section ── */
.share-section {
    text-align: center;
    padding: 40px 0;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-share {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-share:hover {
    border-color: var(--accent);
    background: rgba(122,196,244,0.08);
    box-shadow: 0 0 16px rgba(122, 196, 244, 0.1);
}

/* ── Blurred Cards (locked) ── */
.card.locked {
    position: relative;
    overflow: hidden;
}

.card.locked .card-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.card-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,22,40,0.6);
    z-index: 2;
}

.card-lock-overlay p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ── X-Ray Dashboard ── */
.xray-verdict {
    text-align: center;
    padding: 20px;
    border: 2px solid;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 700;
}

.xray-verdict.green { border-color: var(--green); color: var(--green); box-shadow: 0 0 24px rgba(76, 217, 100, 0.1); }
.xray-verdict.red { border-color: var(--red); color: var(--red); box-shadow: 0 0 24px rgba(255, 69, 58, 0.1); }
.xray-verdict.yellow { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 24px rgba(255, 204, 0, 0.1); }

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.distribution-bar .bar {
    flex: 0 0 200px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.distribution-bar .bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.distribution-bar .type-name {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.distribution-bar .type-name .personality-type-icon {
    flex-shrink: 0;
}

.distribution-bar .type-pct {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* ── Quiz ── */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-question {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}

.quiz-question h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    width: 100%;
}

.quiz-option:hover { border-color: var(--border-hover); }
.quiz-option.selected {
    border-color: var(--accent);
    background: rgba(122,196,244,0.1);
    color: var(--text-primary);
}

/* ── Footer ── */
.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    text-align: center;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-brand .logo-icon {
    height: 28px;
    width: 28px;
}

.footer-links { margin-bottom: 24px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ── Stories Viewer ── */
.stories-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stories-overlay.active { display: flex; }

/* Auto-play progress bars */
.stories-progress {
    display: flex;
    gap: 3px;
    width: 100%;
    max-width: 420px;
    padding: 12px 16px 0;
    position: absolute;
    top: 0;
    z-index: 1002;
}

.stories-progress .seg {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stories-progress .seg .seg-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}

.stories-progress .seg.done .seg-fill { transform: scaleX(1); }
.stories-progress .seg.active .seg-fill { transition: transform 5s linear; transform: scaleX(1); }

.stories-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1003;
    padding: 8px;
}

.stories-pause {
    position: absolute;
    top: 10px;
    right: 52px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1003;
    padding: 8px;
}

.stories-card-wrapper {
    width: 100%;
    max-width: 420px;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}

.stories-nav {
    position: absolute;
    top: 0;
    bottom: 80px;
    width: 40%;
    cursor: pointer;
    z-index: 1001;
}

.stories-nav.prev { left: 0; }
.stories-nav.next { right: 0; }

.stories-counter {
    color: var(--text-muted);
    font-size: 0.75rem;
    position: absolute;
    bottom: 90px;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

/* ── Share bar at bottom of stories ── */
.stories-share-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 1002;
}

.stories-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.stories-share-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.stories-share-btn.x-twitter:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.15); }
.stories-share-btn.telegram:hover  { color: #26A5E4; border-color: #26A5E4; background: rgba(38,165,228,0.15); }
.stories-share-btn.facebook:hover  { color: #1877F2; border-color: #1877F2; background: rgba(24,119,242,0.15); }
.stories-share-btn.tiktok:hover    { color: #00F2EA; border-color: #00F2EA; background: rgba(0,242,234,0.15); }
.stories-share-btn.instagram:hover { color: #E4405F; border-color: #E4405F; background: rgba(228,64,95,0.15); }

.stories-share-btn.btn-download {
    background: var(--gradient);
    border-color: transparent;
    color: #0a1628;
}
.stories-share-btn.btn-download:hover {
    opacity: 0.9;
    background: var(--gradient);
    border-color: transparent;
    color: #0a1628;
}

/* ── Story Card Base ── */
.story-card {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 32px 100px;
    text-align: center;
    animation: storySlideIn 0.35s ease-out;
}

@keyframes storySlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.story-card__logo {
    position: absolute;
    top: 32px;
    left: 28px;
    z-index: 2;
}

.story-card__logo img {
    height: 28px;
    opacity: 0.9;
}

.story-card__logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

.story-card__decor {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(255,255,255,0.025);
    line-height: 1;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}

.story-card__decor span {
    display: block;
    animation: decorFloat 12s linear infinite;
}

@keyframes decorFloat {
    from { transform: translateX(0); }
    to { transform: translateX(-20px); }
}

.story-card__content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.story-card__hero {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: visible;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-card__hero.large { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.story-card__hero.green { background: linear-gradient(180deg, #4cd964, #2ea043); -webkit-background-clip: text; background-clip: text; }
.story-card__hero.red { background: linear-gradient(180deg, #ff453a, #cc362e); -webkit-background-clip: text; background-clip: text; }

.story-card__subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.story-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.story-card__metric-list {
    text-align: left;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
}

.story-card__metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
}
.story-card__metric-row:last-child { border-bottom: none; }
.story-card__metric-label { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.story-card__metric-value { color: #fff; font-weight: 600; text-align: right; white-space: nowrap; }
.story-card__metric-value.green { color: var(--green); }
.story-card__metric-value.red { color: var(--red); }

.story-card__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
}

.story-card__footer {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    z-index: 1;
}

/* ── 15 Card Gradient Modifiers ── */

/* 1. Intro — Navy + cyan glow */
.story-card--intro {
    background: radial-gradient(ellipse at 50% 40%, rgba(39,61,210,0.4), #0a1628 70%);
}

/* 2. Transactions — Black + blue glow */
.story-card--transactions {
    background: radial-gradient(ellipse at 30% 60%, rgba(39,61,210,0.3), #050d1a 70%);
}

/* 3. Wallet Age — Purple gradient */
.story-card--wallet-age {
    background: linear-gradient(160deg, #1a0a2e 0%, #0d1b3e 50%, #0a1628 100%);
}

/* 4. Top Chain — Blue glow on dark */
.story-card--top-chain {
    background: radial-gradient(ellipse at 60% 30%, rgba(122,196,244,0.15), #0a1628 65%);
}

/* 5. Most Traded — Purple + green */
.story-card--most-traded {
    background: linear-gradient(150deg, #1a0a2e 0%, #0a2818 100%);
}

/* 6. PnL Intro — Dark + glow teaser */
.story-card--pnl-intro {
    background: radial-gradient(ellipse at 50% 50%, rgba(255,204,0,0.08), #0a1628 60%);
}

/* 7. PnL Hero — Green or Red */
.story-card--pnl-hero {
    background: radial-gradient(ellipse at 50% 40%, rgba(76,217,100,0.15), #0a1628 65%);
}
.story-card--pnl-hero.loss {
    background: radial-gradient(ellipse at 50% 40%, rgba(255,69,58,0.15), #0a1628 65%);
}

/* 8. Best Trade — Green gradient */
.story-card--best-trade {
    background: linear-gradient(160deg, #0a2818 0%, #0a1628 60%);
}

/* 9. Worst Trade — Red-dark gradient */
.story-card--worst-trade {
    background: linear-gradient(160deg, #2a0a0a 0%, #0a1628 60%);
}

/* 10. Personality Intro — Dark + accent glow */
.story-card--personality-intro {
    background: radial-gradient(ellipse at 40% 60%, rgba(122,196,244,0.1), #0a1628 60%);
}

/* 11. Personality Type — Cyan-blue gradient */
.story-card--personality {
    background: linear-gradient(135deg, rgba(39,61,210,0.25), rgba(122,196,244,0.1), #0a1628 80%);
}

/* 12. Security Intro — Red-black gradient */
.story-card--security-intro {
    background: radial-gradient(ellipse at 50% 30%, rgba(255,69,58,0.12), #0a1628 60%);
}

/* 13. Security Score — Green-purple gradient */
.story-card--security {
    background: linear-gradient(160deg, #0a2818 0%, #1a0a2e 50%, #0a1628 100%);
}

/* 14. Summary — Dark + blue "2026" */
.story-card--summary {
    background: radial-gradient(ellipse at 50% 80%, rgba(39,61,210,0.2), #0a1628 65%);
}

/* 15. Outro/CTA — Pink-purple gradient */
.story-card--outro {
    background: linear-gradient(135deg, #2a0a2e 0%, #1a0a3e 50%, #0a1628 100%);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.125rem; }
    .hero p { font-size: 1rem; }
    .input-group { flex-direction: column; }
    .card-value { font-size: 1.5rem; }
    .personality-emoji { font-size: 3rem; }
    .site-header { padding: 18px 0; }
    .hero { padding: 40px 0 20px; }
    .stories-card-wrapper { max-width: 100%; }
    .stories-nav { width: 30%; }
    .story-card { padding: 50px 24px 100px; }
    .story-card__hero { font-size: 2.2rem; }
    .story-card__hero.large { font-size: 3.2rem; }
    .story-card__decor { font-size: 3.5rem; }
    .stories-share-bar { gap: 6px; padding: 12px; }
    .stories-share-btn { width: 36px; height: 36px; }
    .stories-share-btn svg { width: 16px; height: 16px; }
    .share-bar { flex-direction: column; align-items: center; }
    .distribution-bar .bar { flex: 0 0 120px; }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 52px; /* sit above fixed social bar (52px desktop) */
    left: 0;
    right: 0;
    background: rgba(12,21,37,0.97);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 900;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cookie-banner p { flex: 1; margin: 0; }

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 44px; /* mobile social bar is 44px */
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }
}

/* ── Info (i) Buttons ── */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--text-muted, #666);
    background: transparent;
    color: var(--text-muted, #666);
    font-size: 10px;
    font-style: italic;
    font-family: serif;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
    transition: all 0.2s;
    flex-shrink: 0;
}
.info-btn:hover {
    border-color: var(--accent, #7ac4f4);
    color: var(--accent, #7ac4f4);
    background: rgba(122, 196, 244, 0.1);
}

.info-tooltip {
    position: absolute;
    z-index: 1000;
    max-width: 260px;
    padding: 10px 14px;
    background: var(--bg-card, #1a1f35);
    border: 1px solid var(--border-color, #2a2f45);
    border-radius: 8px;
    color: var(--text-secondary, #b0b8c8);
    font-size: 0.8rem;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: tooltipIn 0.15s ease-out;
}
@keyframes tooltipIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Security Findings ── */
.security-finding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.security-finding-row:last-child { border-bottom: none; }

.security-finding-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.security-finding-icon {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.security-finding-icon.safe { color: var(--green); }
.security-finding-icon.warning { color: var(--yellow); }
.security-finding-icon.danger { color: var(--red); }

.security-finding-value {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}
.security-finding-value.safe { color: var(--green); }
.security-finding-value.warning { color: var(--yellow); }
.security-finding-value.danger { color: var(--red); }

.security-addresses {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.security-address-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.82rem;
}
.security-address-label {
    color: var(--text-muted);
}
.security-address-value {
    font-family: monospace;
    font-size: 0.8rem;
}

/* ── Share bar ── */
.share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    animation: cardFadeIn 0.5s ease-out;
}
.share-bar .btn-share {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}
.share-bar .btn-share::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
    z-index: -1;
}
.share-bar .btn-share:hover::before {
    opacity: 0.12;
}

/* ── Explorer links ── */
.explorer-link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}
.explorer-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ── Disclaimer ── */
.disclaimer {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    max-width: 600px;
    margin: 16px auto;
    line-height: 1.5;
}

/* ── Share & Export Section ── */
.share-export-section {
    animation: cardFadeIn 0.4s ease-out;
}

.share-row {
    margin-bottom: 20px;
}
.share-row:last-child { margin-bottom: 0; }

.share-row-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.share-row-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.share-icon-btn:hover {
    border-color: var(--border-hover);
    background: rgba(122,196,244,0.05);
}

/* Per-platform hover colors */
.share-icon-btn.telegram:hover  { color: #26A5E4; border-color: #26A5E4; }
.share-icon-btn.instagram:hover { color: #E4405F; border-color: #E4405F; }
.share-icon-btn.facebook:hover  { color: #1877F2; border-color: #1877F2; }
.share-icon-btn.tiktok:hover    { color: #00F2EA; border-color: #00F2EA; }
.share-icon-btn.x-twitter:hover { color: #fff; border-color: #fff; }

.share-icon-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Toast notification */
.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 10000;
    animation: toastSlideUp 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* X Banner inline preview */
.x-banner-preview {
    margin-top: 12px;
    max-width: 100%;
    animation: cardFadeIn 0.3s ease-out;
}

/* TG Gift inline form */
.tg-gift-form {
    margin-top: 12px;
    animation: cardFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .share-row-buttons { gap: 8px; }
    .share-icon-btn { min-width: 56px; padding: 10px 12px; font-size: 0.7rem; }
    .share-icon svg { width: 20px; height: 20px; }
}
