/* ==========================================================================
   SUBSCRIPTION INTELLIGENCE (Phase 1 — Visual Foundation & Card Shell)
   Design System: Lumina Network Suite (Photonic Cyber-Glassmorphism)
   Strictly scoped to .si-* components. Zero global CSS pollution.
   ========================================================================== */

/* Main Card Shell */
.si-card {
    position: relative;
    width: 100%;
    background: var(--si-card-bg, linear-gradient(180deg, rgba(17, 26, 46, 0.92) 0%, rgba(13, 19, 34, 0.96) 100%));
    backdrop-filter: var(--si-card-backdrop-blur, blur(20px));
    -webkit-backdrop-filter: var(--si-card-backdrop-blur, blur(20px));
    border-style: var(--si-card-border-style, solid);
    border-width: var(--si-card-border-width, 1px);
    border-color: var(--si-card-border-color, rgba(0, 241, 253, 0.2));
    border-radius: var(--si-card-border-radius, var(--radius-xl, 1rem));
    padding: 1.5rem 1.75rem 1.35rem;
    box-shadow: 0 14px 34px -6px rgba(0, 0, 0, 0.5), 0 0 24px -6px rgba(0, 241, 253, 0.12), inset 0 1px 0 rgba(0, 241, 253, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: visible !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.si-card:hover {
    border-color: rgba(0, 242, 254, 0.22);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 28px -4px rgba(0, 242, 254, 0.12);
}

/* Subtle top glow line accent (disabled for dotted border style) */
.si-card::before {
    display: none !important;
}

/* ==========================================================================
   Header: Title, Subtitle, and Compact State Indicator
   ========================================================================== */
.si-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.si-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.si-title-wrap {
    position: absolute;
    top: var(--si-title-margin-top, -0.6rem);
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    margin-top: 0;
    margin-bottom: var(--si-title-margin-bottom, 0px);
    padding: 0 0.45rem;
    background: var(--si-title-bg, var(--bg-surface, #060a17));
    z-index: 5;
    pointer-events: none;
    border-radius: 4px;
}

.si-title-icon {
    display: none !important;
}

.si-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--si-title-color, var(--si-card-border-color, rgba(124, 119, 255, 0.95)));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.si-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.4;
}

/* Compact State Indicator (Top Right) */
.si-header-right {
    flex-shrink: 0;
}

.si-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 242, 254, 0.07);
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.12);
    margin-top: var(--si-status-badge-margin-top, 0px);
    margin-bottom: var(--si-status-badge-margin-bottom, 1rem);
    align-self: center;
    position: relative;
    z-index: 10;
}

.si-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-primary, #00f2fe);
    box-shadow: 0 0 8px var(--cyan-primary, #00f2fe);
    flex-shrink: 0;
}

.si-status-text {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--cyan-primary, #00f2fe);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   Main Status & Metrics Area
   ========================================================================== */
.si-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0.25rem 0;
}

.si-primary-status {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.si-status-kicker {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.si-status-heading {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white, #ffffff);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.si-plan-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

.si-plan-icon {
    font-size: 1rem;
    color: var(--cyan-primary, #00f2fe);
}

.si-plan-name {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cyan-secondary, #4cd7f6);
}

/* Days Left Metric Block (Opposite Side) */
.si-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.si-days-count-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.si-days-number {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-white, #ffffff);
    line-height: 1;
    letter-spacing: -0.02em;
}

.si-days-label {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cyan-secondary, #4cd7f6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.si-until-expiry {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Timeline Foundation & Today Marker
   ========================================================================== */
.si-timeline-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.si-timeline-section:not(:has(> :not([style*="display: none"]))) {
    display: none;
}

/* Main Subscription Timeline Container (Positioned above Header) */
.si-main-timeline,
#si-main-timeline {
    position: relative;
    width: 100%;
    margin-top: var(--si-main-timeline-margin-top, 0px);
    margin-bottom: var(--si-main-timeline-margin-bottom, 0.25rem);
}

/* Section Header Row directly above Track: Start Date, Center Countdown & End Date */
.si-timeline-endpoints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--si-dates-margin-top, 0px);
    margin-bottom: var(--si-dates-margin-bottom, 0.95rem);
    padding: 0 2px;
    position: relative;
}

.si-timeline-heading {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-timeline-kicker {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-timeline-heading,
.si-timeline-kicker {
    font-family: var(--si-dates-font-family, var(--font-mono, 'JetBrains Mono', monospace));
    font-size: var(--si-dates-font-size, 0.6875rem);
    font-weight: var(--si-dates-font-weight, 700);
    color: var(--si-dates-color, #7b9cb6);
    letter-spacing: var(--si-dates-letter-spacing, 0.12em);
    word-spacing: var(--si-dates-word-spacing, normal);
    opacity: var(--si-dates-opacity, 1.0);
    text-shadow: var(--si-dates-text-shadow, none);
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

/* Middle Timeline Countdown Timer (Matching Expiry Circle with Flashing Triangle) */
.si-timeline-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    margin-top: var(--si-countdown-margin-top, 0px);
    margin-bottom: var(--si-countdown-margin-bottom, 0px);
    color: var(--si-countdown-color, #ff3355);
    line-height: 1;
    user-select: none;
    z-index: 2;
    transition: margin 0.25s ease, color 0.25s ease;
}

.si-countdown-warn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
    animation: si-countdown-flash var(--si-countdown-flash-speed, 1.2s) ease-in-out infinite;
}

.si-countdown-warn-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    filter: var(--si-countdown-drop-shadow, drop-shadow(0 0 4px var(--si-countdown-color, #ff3355)) drop-shadow(0 0 8px rgba(255, 51, 85, 0.45)));
}

@keyframes si-countdown-flash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: var(--si-countdown-drop-shadow, drop-shadow(0 0 4px var(--si-countdown-color, #ff3355)) drop-shadow(0 0 8px rgba(255, 51, 85, 0.45)));
    }
    50% {
        opacity: 0.25;
        transform: scale(0.92);
        filter: drop-shadow(0 0 1px var(--si-countdown-color, #ff3355));
    }
}

.si-countdown-digits {
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: var(--si-countdown-font-size, 0.74rem);
    font-weight: var(--si-countdown-font-weight, 700);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--si-countdown-letter-spacing, 0.05em);
    color: inherit;
    text-shadow: var(--si-countdown-text-shadow, 0 0 8px rgba(255, 51, 85, 0.85), 0 0 16px rgba(255, 51, 85, 0.4));
    line-height: 1.15;
    white-space: nowrap;
}

/* Timeline Track Wrap */
.si-timeline-track-wrap {
    position: relative;
    width: 100%;
    padding: 0.5rem 10px 1.85rem 10px; /* 10px margin on sides for 16px rings, bottom space for labels */
    box-sizing: border-box;
}

/* Horizontal Track (4px height, subtle dark / dimmed spectrum base) */
.si-timeline-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #4a3446;
    border: none;
    border-radius: var(--radius-full, 9999px);
    overflow: visible;
}

/* Active Multi-Stop Luminous Gradient Fill Line (Anchored across 100% of track) */
.si-timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full, 9999px);
    transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1), -webkit-clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    clip-path: inset(-8px calc(100% - var(--si-progress, 0%)) -8px 0 round 9999px);
    -webkit-clip-path: inset(-8px calc(100% - var(--si-progress, 0%)) -8px 0 round 9999px);
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   Timeline Theme Options: color_1 (Photonic) vs color_2 (Thermal)
   ========================================================================== */

/* --- Option: color_1 (Photonic Spectrum - Default) --- */
/* Dimmed background track for remaining days */
.si-card[data-timeline-theme="color_1"] .si-timeline-track,
.si-card:not([data-timeline-theme]) .si-timeline-track,
[data-timeline-theme="color_1"] .si-timeline-track {
    background: linear-gradient(90deg, 
        rgba(0, 229, 255, 0.18) 0%, 
        rgba(23, 192, 250, 0.18) 15%, 
        rgba(53, 142, 243, 0.18) 30%, 
        rgba(97, 103, 244, 0.18) 45%, 
        rgba(129, 86, 242, 0.18) 55%, 
        rgba(171, 90, 233, 0.18) 68%, 
        rgba(205, 119, 155, 0.18) 78%, 
        rgba(239, 153, 64, 0.18) 88%, 
        rgba(251, 90, 75, 0.18) 100%
    );
}

/* Active Luminous Fill for passed days */
.si-card[data-timeline-theme="color_1"] .si-timeline-fill,
.si-card:not([data-timeline-theme]) .si-timeline-fill,
[data-timeline-theme="color_1"] .si-timeline-fill {
    background: linear-gradient(90deg, 
        #00e5ff 0%, 
        #17c0fa 15%, 
        #358ef3 30%, 
        #6167f4 45%, 
        #8156f2 55%, 
        #ab5ae9 68%, 
        #cd779b 78%, 
        #ef9940 88%, 
        #fb5a4b 100%
    );
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.45), 0 0 14px rgba(251, 90, 75, 0.45);
}

.si-card[data-timeline-theme="color_1"] .si-terminal-start .si-terminal-dot,
.si-card:not([data-timeline-theme]) .si-terminal-start .si-terminal-dot,
[data-timeline-theme="color_1"] .si-terminal-start .si-terminal-dot {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 18px rgba(0, 229, 255, 0.35);
}

.si-card[data-timeline-theme="color_1"] .si-terminal-end .si-terminal-dot,
.si-card:not([data-timeline-theme]) .si-terminal-end .si-terminal-dot,
[data-timeline-theme="color_1"] .si-terminal-end .si-terminal-dot {
    border-color: #fb5a4b;
    box-shadow: 0 0 10px rgba(251, 90, 75, 0.8), 0 0 18px rgba(251, 90, 75, 0.35);
}

.si-card[data-timeline-theme="color_1"] .si-today-ring,
.si-card:not([data-timeline-theme]) .si-today-ring,
[data-timeline-theme="color_1"] .si-today-ring {
    border-color: #3989f2;
    box-shadow: 0 0 12px rgba(57, 137, 242, 0.85), 0 0 22px rgba(57, 137, 242, 0.45);
}

/* --- Option: color_2 (Thermal Spectrum - From Screenshot) --- */
/* Dimmed background track for remaining days */
.si-card[data-timeline-theme="color_2"] .si-timeline-track,
[data-timeline-theme="color_2"] .si-timeline-track {
    background: linear-gradient(90deg, 
        rgba(18, 184, 253, 0.20) 0%, 
        rgba(41, 188, 234, 0.20) 5%, 
        rgba(64, 192, 214, 0.20) 10%, 
        rgba(88, 196, 196, 0.20) 15%, 
        rgba(111, 200, 176, 0.20) 20%, 
        rgba(135, 205, 155, 0.20) 25%, 
        rgba(159, 209, 136, 0.20) 30%, 
        rgba(182, 213, 118, 0.20) 35%, 
        rgba(205, 217, 99, 0.20) 40%, 
        rgba(231, 222, 78, 0.20) 45%, 
        rgba(254, 226, 59, 0.20) 50%, 
        rgba(254, 210, 61, 0.20) 55%, 
        rgba(254, 194, 63, 0.20) 60%, 
        rgba(254, 178, 65, 0.20) 65%, 
        rgba(254, 161, 67, 0.20) 70%, 
        rgba(254, 145, 69, 0.20) 75%, 
        rgba(254, 129, 71, 0.20) 80%, 
        rgba(254, 114, 73, 0.20) 85%, 
        rgba(254, 96, 76, 0.20) 90%, 
        rgba(254, 81, 78, 0.20) 95%, 
        rgba(254, 64, 80, 0.20) 100%
    );
}

/* Active Luminous Fill for passed days */
.si-card[data-timeline-theme="color_2"] .si-timeline-fill,
[data-timeline-theme="color_2"] .si-timeline-fill {
    background: linear-gradient(90deg, 
        #12b8fd 0%, 
        #29bcea 5%, 
        #40c0d6 10%, 
        #58c4c4 15%, 
        #6fc8b0 20%, 
        #87cd9b 25%, 
        #9fd188 30%, 
        #b6d576 35%, 
        #cdd963 40%, 
        #e7de4e 45%, 
        #fee23b 50%, 
        #fed23d 55%, 
        #fec23f 60%, 
        #feb241 65%, 
        #fea143 70%, 
        #fe9145 75%, 
        #fe8147 80%, 
        #fe7249 85%, 
        #fe604c 90%, 
        #fe514e 95%, 
        #fe4050 100%
    );
    box-shadow: 0 0 10px rgba(18, 184, 253, 0.5), 0 0 14px rgba(254, 64, 80, 0.5);
}

.si-card[data-timeline-theme="color_2"] .si-terminal-start .si-terminal-dot,
[data-timeline-theme="color_2"] .si-terminal-start .si-terminal-dot {
    border-color: #12b8fd;
    box-shadow: 0 0 10px rgba(18, 184, 253, 0.85), 0 0 18px rgba(18, 184, 253, 0.4);
}

.si-card[data-timeline-theme="color_2"] .si-terminal-end .si-terminal-dot,
[data-timeline-theme="color_2"] .si-terminal-end .si-terminal-dot {
    border-color: #fe4050;
    box-shadow: 0 0 10px rgba(254, 64, 80, 0.85), 0 0 18px rgba(254, 64, 80, 0.4);
}

.si-card[data-timeline-theme="color_2"] .si-today-ring,
[data-timeline-theme="color_2"] .si-today-ring {
    border-color: #fee23b;
    box-shadow: 0 0 12px rgba(254, 226, 59, 0.85), 0 0 22px rgba(254, 226, 59, 0.45);
}

/* ==========================================================================
   Three Node Rings: START, TODAY, EXPIRY (16px Hollow Rings with 3px Borders)
   ========================================================================== */
.si-terminal-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}

/* START Node Ring Base */
.si-terminal-start {
    left: 0;
}

.si-terminal-start .si-terminal-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0b1b2d;
    border-width: 3px;
    border-style: solid;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* EXPIRY Node Ring Base */
.si-terminal-end {
    left: 100%;
}

.si-terminal-end .si-terminal-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0b1b2d;
    border-width: 3px;
    border-style: solid;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.si-terminal-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #7b9cb6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.si-terminal-sublabel {
    display: block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.5625rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 1px;
    white-space: nowrap;
}

/* TODAY Node: Vibrant Position Ring */
.si-today-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.si-today-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0b1b2d;
    border-width: 3px;
    border-style: solid;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.si-today-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #7b9cb6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   Dynamic Month Separators Layer (for > 1 month plans)
   ========================================================================== */
.si-month-separators-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

/* Individual Month Separator Marker */
.si-month-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* Vertical Tick Mark crossing the horizontal line */
.si-sep-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Highlighted state when active progress has reached or passed this month */
.si-month-separator.is-past .si-sep-tick {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

/* Month Name Label directly under the vertical tick */
.si-sep-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #7b9cb6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.si-month-separator.is-past .si-sep-label {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Theme color_2 Month Separators */
[data-timeline-theme="color_2"] .si-month-separator.is-past .si-sep-tick {
    background: #6fc8b0;
    box-shadow: 0 0 8px rgba(111, 200, 176, 0.7);
}

[data-timeline-theme="color_2"] .si-month-separator.is-past .si-sep-label {
    color: #87cd9b;
    text-shadow: 0 0 8px rgba(135, 205, 155, 0.35);
}

@keyframes si-halo-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }
}

/* ==========================================================================
   Phase 2 — Final 7-Day Runway (Filled Gradient Bars)
   ========================================================================== */
.si-runway-container {
    width: 100%;
    margin-top: var(--si-runway-margin-top, 1.35rem);
    margin-bottom: var(--si-runway-margin-bottom, 0px);
    padding-top: 0.25rem;
    box-sizing: border-box;
}

.si-runway-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--si-runway-gap, 3px);
    width: 100%;
}

/* Individual Runway Segment: Exact Velocity LED Meter appearance */
.si-runway-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--si-runway-height, 24px);
    border-radius: var(--si-runway-radius, 2px);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none !important;
    outline: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    user-select: none;
    box-sizing: border-box;
    position: relative;
}

/* Unlit State (Future warning days / initial runway state) — Exact Velocity LED meter unlit bar */
.si-runway-seg.is-dimmed {
    background: rgba(255, 255, 255, var(--si-runway-unlit-opacity, 0.08)) !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(148, 163, 184, 0.45);
}

/* Lit Segments: Solid spectrum colors + Velocity LED neon glow */
.si-runway-seg.is-passed {
    border: none !important;
    opacity: var(--si-runway-lit-opacity, 1.0);
}

/* Segment 0: Cyan */
.si-runway-seg.is-passed.seg-0 {
    background-color: #00f2fe;
    color: #04101e;
    font-weight: 800;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #00f2fe;
}

/* Segment 1: Blue */
.si-runway-seg.is-passed.seg-1 {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #3b82f6;
}

/* Segment 2: Indigo */
.si-runway-seg.is-passed.seg-2 {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #6366f1;
}

/* Segment 3: Violet */
.si-runway-seg.is-passed.seg-3 {
    background-color: #a855f7;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #a855f7;
}

/* Segment 4: Magenta */
.si-runway-seg.is-passed.seg-4 {
    background-color: #ec4899;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #ec4899;
}

/* Segment 5: Orange */
.si-runway-seg.is-passed.seg-5 {
    background-color: #f97316;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #f97316;
}

/* Segment 6: Red (Original Expiry Day) */
.si-runway-seg.is-passed.seg-6 {
    background-color: #ef4444;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 calc(var(--si-runway-glow-mult, 1) * 8px) #ef4444;
}

/* ==========================================================================
   Bottom Information Strip (3-Column Desktop, Stacked Mobile)
   ========================================================================== */
.si-footer-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.si-strip-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.si-strip-start {
    align-items: flex-start;
    text-align: left;
}

.si-strip-coverage {
    align-items: center;
    text-align: center;
}

.si-strip-expiry {
    align-items: flex-end;
    text-align: right;
}

.si-strip-label {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.si-strip-val {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-white, #ffffff);
    letter-spacing: 0.02em;
}

.si-strip-val-accent {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cyan-primary, #00f2fe);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
    .si-card {
        padding: 1.25rem 1rem 1.15rem;
        gap: 1rem;
    }

    .si-header {
        align-items: flex-start;
    }

    .si-title {
        font-size: 0.75rem;
    }

    .si-subtitle {
        font-size: 0.6875rem;
    }

    .si-status-badge {
        padding: 0.25rem 0.6rem;
    }

    .si-status-text {
        font-size: 0.625rem;
    }

    .si-main {
        align-items: flex-start;
        gap: 1rem;
    }

    .si-status-heading {
        font-size: 1.25rem;
    }

    .si-plan-name {
        font-size: 0.8125rem;
    }

    .si-days-number {
        font-size: 1.75rem;
    }

    .si-days-label {
        font-size: 0.75rem;
    }

    .si-until-expiry {
        font-size: 0.625rem;
    }

    .si-endpoint-date {
        font-size: 0.75rem;
    }

    /* Stack bottom strip cleanly on mobile */
    .si-footer-strip {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding-top: 0.85rem;
    }

    .si-strip-col {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .si-strip-expiry,
    .si-strip-coverage {
        align-items: center;
        text-align: right;
    }

    .si-strip-label {
        margin-bottom: 0;
    }

    /* Phase 2 Runway mobile compactness: keep 7 segments on 1 single row */
    .si-runway-container {
        margin-top: var(--si-runway-margin-top, 1.15rem);
        margin-bottom: var(--si-runway-margin-bottom, 0px);
    }

    .si-runway-grid {
        gap: var(--si-runway-gap, 3px);
    }

    .si-runway-seg {
        height: var(--si-runway-height, 20px);
        font-size: 0.5625rem;
        border-radius: var(--si-runway-radius, 2px);
        letter-spacing: 0.02em;
    }

    /* Phase 4.1 Temporary Access mobile adjustments */
    .si-ta-card,
    .si-grace-card {
        padding: 0.95rem 1.05rem;
        gap: 0.65rem;
    }

    .si-ta-countdown {
        font-size: 1.65rem;
    }

    .si-ta-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .si-ta-deducts {
        font-size: 0.625rem;
        text-align: right;
    }

    /* Separated Timelines mobile adjustments */
    .si-terminal-label {
        font-size: 0.5625rem;
    }
    .si-terminal-sublabel {
        font-size: 0.5rem;
    }
    .si-ta-terminal-label,
    .si-ta-marker-label {
        font-size: 0.5625rem;
    }
    .si-ta-countdown-digits {
        font-size: var(--si-ta-countdown-font-size, 0.68rem);
    }
    .si-ta-analog-clock {
        width: 13px;
        height: 13px;
    }
    .si-ta-now-label,
    .si-ta-now-badge {
        font-size: 0.5rem;
        padding: 1px 4.5px;
        bottom: 18px;
    }
    .si-timeline-track-wrap,
    .si-ta-timeline-track-wrap {
        padding-bottom: 2.25rem;
    }
    .si-temporary-access-timeline,
    .si-ta-timeline {
        margin-top: var(--si-ta-timeline-margin-top, 1rem);
    }
}

@media (max-width: 380px) {
    .si-ta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .si-ta-deducts {
        text-align: left;
    }
}

/* ==========================================================================
   Phase 4.1: Temporary Access Control Card & Timeline Bridge
   Visual Reference: Dark Amber Glass, Large Countdown, Urgency Gradient Progress
   ========================================================================== */

/* Main Card Header Status Badge — Temporary Access State */
.si-status-badge.si-status-ta {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

.si-status-badge.si-status-ta .si-status-dot {
    background: #f59e0b !important;
    box-shadow: 0 0 8px #f59e0b !important;
    animation: si-amber-pulse 1.8s ease-in-out infinite;
}

.si-status-badge.si-status-ta .si-status-text {
    color: #fbbf24 !important;
}

.si-status-heading.si-ta-amber-heading {
    color: #fbbf24 !important;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.si-days-number.si-ta-amber-days {
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.si-days-label.si-ta-amber-label {
    color: #fbbf24 !important;
}

/* Strict suppression of middle countdown & today pin during Temporary Access */
.si-card.is-ta-active .si-timeline-countdown,
.si-card[data-ta-active="true"] .si-timeline-countdown,
.is-ta-active .si-timeline-countdown {
    display: none !important;
}

.si-card.is-ta-active .si-today-pin,
.is-ta-active .si-today-pin {
    display: none !important;
}

/* Timeline Terminal End (Original Paid Expiry) in Red at 100% of Main Timeline */
.si-card.is-ta-active .si-terminal-point.si-terminal-end.is-ta-original-expiry {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.si-terminal-point.si-terminal-end.is-ta-original-expiry .si-terminal-dot {
    background: #0f172a !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9), 0 0 18px rgba(239, 68, 68, 0.45) !important;
}

.si-terminal-point.si-terminal-end.is-ta-original-expiry .si-terminal-label {
    color: #ef4444 !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.si-terminal-point.si-terminal-end.is-ta-original-expiry .si-terminal-sublabel {
    color: #94a3b8;
}

/* ==========================================================================
   Phase 4.2: Split Independent Temporary Access Timeline (Track #2)
   Rendered directly underneath the main subscription timeline with clean visual separation
   ========================================================================== */
.si-temporary-access-timeline,
.si-ta-timeline,
#si-ta-timeline {
    position: relative;
    width: 100%;
    margin-top: var(--si-ta-timeline-margin-top, 1.25rem);
    margin-bottom: var(--si-ta-timeline-margin-bottom, 0px);
    padding-top: 0.25rem;
}

/* Endpoint Dates for Temporary Access: Start (Original Expiry) & End */
.si-ta-timeline-endpoints {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 4px;
}

.si-ta-endpoint-date {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.si-ta-endpoint-kicker {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.si-ta-endpoint-date,
.si-ta-endpoint-kicker {
    font-family: var(--si-dates-font-family, var(--font-mono, 'JetBrains Mono', monospace));
    font-size: var(--si-dates-font-size, 0.6875rem);
    font-weight: var(--si-dates-font-weight, 700);
    letter-spacing: var(--si-dates-letter-spacing, 0.12em);
    word-spacing: var(--si-dates-word-spacing, normal);
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

/* ==========================================================================
   Temporary Access Countdown & Animated Analog Clock
   Glowing yellow countdown with milliseconds placed below the track
   ========================================================================== */
.si-ta-timeline-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: var(--si-ta-countdown-margin-top, 0.25rem);
    margin-bottom: var(--si-ta-countdown-margin-bottom, 0.5rem);
    color: #fbbf24;
    line-height: 1;
    user-select: none;
    position: relative;
    z-index: 10;
}

.si-ta-countdown-clock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
    animation: si-clock-glow-pulse 2s ease-in-out infinite;
}

.si-ta-analog-clock {
    width: 15px;
    height: 15px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.si-clock-face {
    stroke: #fbbf24;
    stroke-width: 1.8;
}

.si-clock-tick {
    stroke: #fbbf24;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.si-clock-pivot {
    fill: #fbbf24;
}

.si-clock-hour-hand {
    transform-box: view-box;
    transform-origin: 12px 12px;
    animation: si-analog-clock-spin 12s linear infinite;
    stroke: #fbbf24;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.si-clock-sweep-hand {
    transform-box: view-box;
    transform-origin: 12px 12px;
    animation: si-analog-clock-spin 2s linear infinite;
    stroke: #fef08a;
    stroke-width: 1.4;
    stroke-linecap: round;
}

@keyframes si-analog-clock-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes si-clock-glow-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.96);
    }
}

.si-ta-countdown-digits {
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: var(--si-ta-countdown-font-size, 0.74rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.95), 0 0 16px rgba(251, 191, 36, 0.55), 0 0 24px rgba(245, 158, 11, 0.35);
    line-height: 1.15;
    white-space: nowrap;
}

/* Track Wrap: identical padding (10px horizontal) keeps nodes aligned */
.si-ta-timeline-track-wrap {
    position: relative;
    width: 100%;
    padding: 0.5rem 10px 1.85rem 10px;
    box-sizing: border-box;
}

/* Horizontal Track: Warm Amber Base with subtle dash */
.si-ta-timeline-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px dashed rgba(245, 158, 11, 0.42);
    border-radius: var(--radius-full, 9999px);
    box-sizing: border-box;
    overflow: visible;
}

/* Luminous Amber Progress Fill */
.si-ta-timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.7), 0 0 18px rgba(251, 191, 36, 0.4);
    transition: width 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   Intermediate 48h Markers on Temporary Access Timeline
   Displayed when user has more than one "48h" (e.g. 96h, 144h)
   ========================================================================== */
.si-ta-markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.si-ta-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Vertical tick mark crossing the horizontal line */
.si-ta-marker-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    border-radius: 1px;
    background: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Precision node dot at center of tick */
.si-ta-marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f172a;
    border: 1.5px solid rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
    box-sizing: border-box;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Marker Label (e.g. 48h, 96h) directly below the track */
.si-ta-marker-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Passed State: when active progress has reached or passed this 48h milestone */
.si-ta-marker.is-past .si-ta-marker-tick {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.85);
}

.si-ta-marker.is-past .si-ta-marker-dot {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.95);
}

.si-ta-marker.is-past .si-ta-marker-label {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Terminal Points for Temporary Access: Start (0%) & End (100%) */
.si-ta-terminal-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}

.si-ta-terminal-start {
    left: 0;
}

.si-ta-terminal-end {
    left: 100%;
}

.si-ta-terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0f172a;
    border: 2.5px solid #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.9), 0 0 18px rgba(245, 158, 11, 0.5);
    box-sizing: border-box;
}

.si-ta-terminal-start .si-ta-terminal-dot {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.9), 0 0 18px rgba(245, 158, 11, 0.5);
}

.si-ta-terminal-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.si-ta-terminal-start .si-ta-terminal-label {
    left: 0;
    transform: none;
}

.si-ta-terminal-end .si-ta-terminal-label {
    right: 0;
    transform: none;
    text-align: right;
}

/* NOW Marker: Belongs EXCLUSIVELY to Temporary Access Timeline during TA */
.si-ta-now-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 6;
    transition: left 0.4s ease;
}

.si-ta-now-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f172a;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.95), 0 0 22px rgba(245, 158, 11, 0.6);
    box-sizing: border-box;
}

/* Floating NOW badge above the ring */
.si-ta-now-label,
.si-ta-now-badge {
    position: absolute;
    bottom: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.5625rem;
    font-weight: 800;
    color: #0b1320;
    background: #fbbf24;
    padding: 1.5px 5.5px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

/* Legacy Bridge & Extension suppression */
.si-timeline-ta-bridge,
.si-timeline-grace-bridge,
.si-ta-extension {
    display: none !important;
}

/* ==========================================================================
   Temporary Access Card — Exact Match to Reference Design
   ========================================================================== */
.si-ta-card,
.si-grace-card {
    position: relative;
    width: 100%;
    background: radial-gradient(130% 130% at 50% 0%, rgba(38, 24, 10, 0.88) 0%, rgba(18, 11, 4, 0.94) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 0.875rem;
    padding: 1.15rem 1.35rem 1.15rem;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.6), 0 0 16px -4px rgba(245, 158, 11, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.si-ta-card:hover,
.si-grace-card:hover {
    border-color: rgba(245, 158, 11, 0.52);
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(245, 158, 11, 0.22);
}

/* Top Row: Title & Active Badge */
.si-ta-header,
.si-grace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.si-ta-title-wrap,
.si-grace-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.si-ta-icon,
.si-ta-lightning {
    font-size: 1.15rem;
    color: #f97316;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.si-ta-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.si-ta-badge,
.si-grace-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.si-ta-badge-dot,
.si-grace-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: si-amber-pulse 1.8s ease-in-out infinite;
}

@keyframes si-amber-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px #f59e0b;
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
        box-shadow: 0 0 3px #f59e0b;
    }
}

.si-ta-badge-text,
.si-grace-badge-text {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.625rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.06em;
}

/* Explanatory Subtitle */
.si-ta-subtitle {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.75rem;
    color: #6295b7;
    margin-top: -0.25rem;
    line-height: 1.35;
    font-weight: 400;
}

/* Dominant Countdown (e.g. 0h REMAIN or 5.89h REMAIN) */
.si-ta-countdown-wrap {
    display: flex;
    align-items: baseline;
    margin: 0.25rem 0 0.15rem;
}

.si-ta-countdown {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 2.15rem;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(253, 230, 138, 0.45);
}

/* Horizontal Progress Bar */
.si-ta-progress-wrap,
.si-grace-progress-wrap {
    width: 100%;
}

.si-ta-progress-track,
.si-grace-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.si-ta-progress-fill,
.si-grace-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #fde68a 0%, #facc15 18%, #f8ba3d 35%, #f6a81e 52%, #f49510 68%, #f1692c 84%, #ef4444 100%);
    box-shadow: 0 0 10px rgba(246, 168, 30, 0.45), 0 0 16px rgba(239, 68, 68, 0.35);
    transition: width 0.4s ease, box-shadow 0.4s ease;
}

/* Urgency States: Preserve signature screenshot gradient while tuning glow intensity */
.si-ta-progress-fill.urgency-low,
.si-grace-progress-fill.urgency-low,
.si-ta-progress-fill.urgency-medium,
.si-grace-progress-fill.urgency-medium,
.si-ta-progress-fill.urgency-high,
.si-grace-progress-fill.urgency-high,
.si-ta-progress-fill.urgency-critical,
.si-grace-progress-fill.urgency-critical {
    background: linear-gradient(90deg, #fde68a 0%, #facc15 18%, #f8ba3d 35%, #f6a81e 52%, #f49510 68%, #f1692c 84%, #ef4444 100%);
}

.si-ta-progress-fill.urgency-low,
.si-grace-progress-fill.urgency-low {
    box-shadow: 0 0 10px rgba(253, 230, 138, 0.45);
}

.si-ta-progress-fill.urgency-medium,
.si-grace-progress-fill.urgency-medium {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.si-ta-progress-fill.urgency-high,
.si-grace-progress-fill.urgency-high {
    box-shadow: 0 0 12px rgba(246, 168, 30, 0.6), 0 0 18px rgba(239, 68, 68, 0.3);
}

.si-ta-progress-fill.urgency-critical,
.si-grace-progress-fill.urgency-critical {
    box-shadow: 0 0 14px rgba(246, 168, 30, 0.65), 0 0 22px rgba(239, 68, 68, 0.55);
}

/* Footer Row Under Progress Bar */
.si-ta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.15rem;
}

.si-ta-used {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
}

.si-ta-deducts {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.06em;
    opacity: 0.92;
    text-transform: uppercase;
}

