/* ============================================================
   CoinGrader AI — Premium Dark Theme
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');


/* ── Custom properties ──────────────────────────────────── */
:root {
    /* Color palette */
    --bg-base:        #0a0b0f;
    --bg-surface:     #12151c;
    --bg-card:        #161b27;
    --bg-card-hover:  #1c2235;
    --bg-input:       #1a1f2e;

    --border:         rgba(255,255,255,0.07);
    --border-accent:  rgba(245,200,66,0.3);

    --text-primary:   #f0f2f8;
    --text-secondary: #8892a4;
    --text-muted:     #4e5870;

    --gold:           #f5c842;
    --gold-soft:      #e8a82a;
    --gold-glow:      rgba(245,200,66,0.15);
    --orange:         #e87c1e;
    --green:          #3dd68c;
    --green-soft:     rgba(61,214,140,0.12);
    --red:            #f56565;
    --red-soft:       rgba(245,101,101,0.12);
    --blue:           #63b3ed;
    --blue-soft:      rgba(99,179,237,0.12);
    --purple:         #9f7aea;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #f5c842 0%, #e87c1e 100%);
    --grad-card: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    --grad-hero: linear-gradient(135deg, rgba(245,200,66,0.06) 0%, rgba(232,124,30,0.04) 100%);

    /* Spacing */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   18px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ── Ambient background orbs ────────────────────────────── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,200,66,0.06) 0%, transparent 70%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232,124,30,0.05) 0%, transparent 70%);
    bottom: 100px;
    right: -100px;
    animation-delay: -4s;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,179,237,0.04) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

.bg-orb-3 {
    animation-name: orbFloat3;
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%,-50%) scale(1); }
    50%       { transform: translate(-50%,-55%) scale(1.08); }
}


/* ── App wrapper ────────────────────────────────────────── */
.app-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ── Header ─────────────────────────────────────────────── */
.site-header {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    background: rgba(10,11,15,0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-primary {
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.logo-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    letter-spacing: 0.5px;
}

.header-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}


/* ── Main content ───────────────────────────────────────── */
.main-content {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 80px;
}


/* ── Section label ──────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.step-badge {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}


/* ── Upload section ─────────────────────────────────────── */
.upload-section {
    margin-bottom: 24px;
}

.drop-zone {
    position: relative;
    border: 1.5px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    background: var(--bg-card);
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--gold-soft);
    background: rgba(22,27,39,0.9);
    box-shadow:
        0 0 0 1px rgba(245,200,66,0.12),
        0 8px 40px rgba(245,200,66,0.06),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.drop-zone-glow {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.drop-zone:hover .drop-zone-glow,
.drop-zone.dragover .drop-zone-glow {
    opacity: 1;
}

.drop-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: var(--gold);
    opacity: 0.7;
    animation: coinPulse 3s ease-in-out infinite;
}

@keyframes coinPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%       { transform: scale(1.06); opacity: 0.9; }
}

.drop-text {
    margin-bottom: 24px;
}

.drop-primary {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.drop-secondary {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--grad-gold);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}

.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(245,200,66,0.45);
}

.upload-btn:active {
    transform: translateY(0);
}

.drop-formats {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.3px;
}


/* ── Status bar ─────────────────────────────────────────── */
.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.status-bar.is-error {
    background: var(--red-soft);
    border-color: rgba(245,101,101,0.25);
    color: #fc8181;
}

.status-bar.is-success {
    background: var(--green-soft);
    border-color: rgba(61,214,140,0.2);
    color: var(--green);
}

.status-spinner {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.spinner-ring {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245,200,66,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-bar.is-error .spinner-ring,
.status-bar.is-success .spinner-ring {
    display: none;
}


/* ── Pipeline tracker ───────────────────────────────────── */
.pipeline-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    margin-bottom: 24px;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    transition: opacity 0.4s var(--ease-out);
}

.pipeline-stage.active {
    opacity: 1;
}

.pipeline-stage.done {
    opacity: 0.85;
}

.stage-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.pipeline-stage.active .stage-dot {
    border-color: var(--gold);
    background: rgba(245,200,66,0.1);
    box-shadow: 0 0 12px rgba(245,200,66,0.35);
}

.pipeline-stage.active .stage-dot::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.8); }
}

.pipeline-stage.done .stage-dot {
    border-color: var(--green);
    background: var(--green-soft);
}

.pipeline-stage.done .stage-dot::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.stage-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pipeline-stage.active .stage-label,
.pipeline-stage.done .stage-label {
    color: var(--text-secondary);
}

.pipeline-connector {
    height: 2px;
    width: 60px;
    background: var(--border);
    margin-bottom: 22px;
    flex-shrink: 0;
}


/* ── Results section ────────────────────────────────────── */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeUp 0.5s var(--ease-out) both;
}

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


/* ── Grade verdict card ─────────────────────────────────── */
.grade-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    background: var(--bg-card);
    padding: 36px;
    animation: fadeUp 0.45s var(--ease-out) 0.1s both;
}

.grade-card-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    pointer-events: none;
}

.grade-verdict {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.verdict-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.verdict-grade {
    font-size: 72px;
    font-weight: 800;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 8px;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(245,200,66,0.4));
}

.verdict-numeric {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.grade-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}

.grade-meta-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background 0.2s;
}

.grade-meta-item:hover {
    background: rgba(255,255,255,0.05);
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.meta-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.meta-value.bracket {
    color: var(--gold);
}

.meta-value.series {
    font-size: 13px;
    color: var(--blue);
}

/* ── Identification card ────────────────────────────────── */
.ident-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeUp 0.45s var(--ease-out) 0.15s both;
    padding-bottom: 4px;
}

.ident-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 16px;
    flex-wrap: wrap;
}

.ident-icon {
    color: var(--blue);
    opacity: 0.8;
    flex-shrink: 0;
}

.ident-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.ident-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 24px 16px;
}

.ident-meta-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.ident-type-item {
    grid-column: 1 / -1;
}

.ident-series {
    font-size: 14px !important;
    color: var(--blue) !important;
}


/* ── Top candidates ─────────────────────────────────────── */

.candidates-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeUp 0.45s var(--ease-out) 0.2s both;
}

.card-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 20px 24px 24px;
}

.candidate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    transition: background 0.2s;
    cursor: default;
}

.candidate-item:hover {
    background: rgba(255,255,255,0.03);
}

.candidate-rank {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.candidate-rank.rank-1 {
    color: var(--gold-soft);
}

.candidate-rank.rank-2 {
    color: var(--text-secondary);
}

.candidate-rank.rank-3 {
    color: var(--text-muted);
}

.candidate-grade {
    font-size: 32px;
    font-weight: 800;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.candidate-item:nth-child(2) .candidate-grade,
.candidate-item:nth-child(3) .candidate-grade {
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.candidate-prob {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.candidate-prob-bar {
    width: 64px;
    height: 3px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: 8px;
    overflow: hidden;
}

.candidate-prob-fill {
    height: 100%;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
    transition: width 0.8s var(--ease-out);
}

.candidate-item:nth-child(2) .candidate-prob-fill,
.candidate-item:nth-child(3) .candidate-prob-fill {
    background: rgba(255,255,255,0.2);
}


/* ── Identification candidates list ─────────────────────── */
.ident-candidates-section {
    border-top: 1px solid var(--border);
    margin: 0 24px;
    padding: 14px 0 4px;
}

.ident-candidates-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.ident-candidates-label svg {
    opacity: 0.5;
}

.ident-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.id-candidate-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.025);
    transition: background 0.2s;
}

.id-candidate-row:hover {
    background: rgba(255,255,255,0.05);
}

.id-candidate-row.id-candidate-top {
    background: rgba(245,200,66,0.06);
    border: 1px solid rgba(245,200,66,0.15);
}

.id-cand-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.id-candidate-top .id-cand-rank {
    color: var(--gold-soft);
}

.id-cand-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.id-cand-meta {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Confidence badges ───────────────────────────────────── */
.confidence-high   { color: #4ade80; }
.confidence-medium { color: var(--gold-soft); }
.confidence-low    { color: #f87171; }

/* ── Distribution chart ─────────────────────────────────── */
.distribution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeUp 0.45s var(--ease-out) 0.3s both;
}

.chart-container {
    padding: 20px 24px 24px;
    height: 240px;
    position: relative;
}

#distributionChart {
    width: 100% !important;
    height: 100% !important;
}


/* ── Images row ─────────────────────────────────────────── */
.images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    animation: fadeUp 0.45s var(--ease-out) 0.4s both;
}

.image-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color 0.2s;
}

.image-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.image-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.image-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.original-dot  { background: var(--blue); }
.detected-dot  { background: var(--gold); }

.image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #0a0c12;
    padding: 12px;
}

.image-frame img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    transition: transform 0.3s var(--ease-out);
}

.image-frame img:hover {
    transform: scale(1.02);
}

.detected-frame {
    background: #080a10;
}

.image-card-meta {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-row .mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}


/* ── Detection details ──────────────────────────────────── */
.details-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeUp 0.45s var(--ease-out) 0.5s both;
}

.details-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 16px 24px 20px;
}

.stat-cell {
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.stat-cell:hover {
    background: rgba(255,255,255,0.03);
}

.stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}


/* ── Reset button ───────────────────────────────────────── */
.reset-row {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.reset-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}


/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}


/* ── Utility ─────────────────────────────────────────────── */
.hidden {
    display: none !important;
}


/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {

    .main-content {
        padding: 24px 16px 60px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .drop-icon {
        width: 56px;
        height: 56px;
    }

    .verdict-grade {
        font-size: 54px;
    }

    .grade-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .candidates-grid {
        grid-template-columns: 1fr;
    }

    .images-row {
        grid-template-columns: 1fr;
    }

    .details-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pipeline-connector {
        width: 28px;
    }

    .header-tagline {
        display: none;
    }
}

@media (max-width: 480px) {
    .grade-meta-grid {
        grid-template-columns: 1fr;
    }

    .details-stat-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-tracker {
        gap: 0;
    }
}