/* ═══════════════════════════════════════
   10. STAT ROW
═══════════════════════════════════════ */
.stat-row {
  display: flex;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-item {
  flex: 1;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  margin-right: 16px;
}
.stat-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }

.stat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════
   11. DATA TABLE
═══════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.data-table th {
  text-align: left;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.data-table td {
  padding: 7px 10px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-raised);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s ease;
}
.data-table td.primary         { color: var(--text-primary); }
.data-table tr:last-child td   { border-bottom: none; }
.data-table tr:hover td        { background: var(--bg-raised); }

/* Horizontal scrolling wrapper applied dynamically via JS or HTML wrap */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.data-table-wrapper::-webkit-scrollbar { height: 4px; }
.data-table-wrapper::-webkit-scrollbar-track { background: transparent; }
.data-table-wrapper::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }

/* ═══════════════════════════════════════
   12. PROBABILITY BARS
═══════════════════════════════════════ */
.prob-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  width: 100%;
}
.prob-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  width: 90px;
  flex-shrink: 0;
}
.prob-bar-track {
  flex: 1;
  height: 3px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  min-width: 0;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.prob-bar-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   13. PILLS
═══════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.pill.up      { background: var(--positive-dim); color: var(--positive); border-color: rgba(74,  194, 107, 0.2); }
.pill.down    { background: var(--negative-dim); color: var(--negative); border-color: rgba(255, 107, 107, 0.2); }
.pill.neutral { background: var(--bg-raised);    color: var(--text-secondary); border-color: rgba(255,255,255,0.07); }
.pill.warn    { background: var(--warning-dim);  color: var(--warning);  border-color: rgba(227, 167,  38, 0.2); }
.pill.accent  { background: var(--accent-dim);   color: var(--accent);   border-color: rgba(77,  148, 255, 0.2); }
.pill.success { background: var(--positive-dim); color: var(--positive); border-color: rgba(74,  194, 107, 0.2); }

/* ═══════════════════════════════════════
   14. UTILITY — LABELS, EMPTY STATE
═══════════════════════════════════════ */
.section-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 0 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
  gap: 10px;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  padding: 24px 16px;
}
.empty-state svg { opacity: 0.2; }
.empty-state p   { font-size: 12px; font-family: var(--font-mono); opacity: 0.75; }

/* ═══════════════════════════════════════
   15. BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ui);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(77, 148, 255, 0);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 16px rgba(77, 148, 255, 0.25), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-raised);
  border-color: var(--text-muted);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.btn-ghost  { background: transparent; color: var(--text-secondary); border-color: transparent; border-radius: var(--radius-md); }
.btn-ghost:hover { background: var(--bg-raised); color: var(--text-primary); }


/* ═══════════════════════════════════════
   RESPONSIVE — COMPONENTS
═══════════════════════════════════════ */

/* ── Laptops / 1440px ── */
@media (max-width: 1440px) {
    .data-table th { font-size: 11px; padding: 4px 8px; }
    .data-table td { font-size: 13px; padding: 6px 8px; }
    .stat-value { font-size: 14px; }
    .prob-bar-label { width: 85px; font-size: 10px; }
    .prob-bar-pct { font-size: 10px; }
}

/* ── Tablets / iPads (1100px) ── */
@media (max-width: 1100px) {
    .stat-row { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
    .stat-item {
        flex: 1 1 calc(50% - 4px);
        padding-right: 0;
        border-right: none;
        margin-right: 0;
    }
    .stat-value { font-size: 13px; }
    .stat-label { font-size: 9px; }

    .data-table th { font-size: 10px; padding: 4px 6px; letter-spacing: 0.05em; }
    .data-table td { font-size: 12px; padding: 5px 6px; }

    .prob-bar-label { width: 75px; font-size: 9px; }
    .prob-bar-pct   { width: 32px; font-size: 9px; }
    
    .pill { font-size: 10px; padding: 2px 6px; }
    .btn { padding: 8px 14px; font-size: 12px; }
}

/* ── Mobile / iPhones (768px) ── */
@media (max-width: 768px) {
    .stat-item { flex: 1 1 100%; border-right: none; }
    .stat-value { font-size: 14px; } /* Slightly larger for thumb readability on 1-column stack */
    
    .data-table th { font-size: 9px; padding: 3px 5px; }
    .data-table td { font-size: 11px; padding: 4px 5px; }

    .prob-bar-label { width: 65px; font-size: 9px; }
    .prob-bar-pct   { width: 30px; font-size: 9px; }

    .pill { font-size: 9px; padding: 2px 5px; letter-spacing: 0.01em; }
    .btn { padding: 7px 12px; font-size: 11px; }
    .section-label { font-size: 9px; }
    .empty-state p { font-size: 12px; }
}

/* ── Very Small Mobile (480px) ── */
@media (max-width: 480px) {
    .stat-value { font-size: 13px; }
    .stat-label { font-size: 8px; }
    
    /* Allow text inside buttons to wrap tightly if needed */
    .btn { padding: 6px 10px; font-size: 10px; }
    
    .prob-bar-label { width: 55px; font-size: 8px; }
    .prob-bar-pct   { width: 28px; font-size: 8px; }
    
    .data-table td { font-size: 10px; padding: 3px 4px; }
}

/* ═══════════════════════════════════════
   16. EXPIRED TRIAL MODAL
═══════════════════════════════════════ */
.expired-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-in 0.2s ease;
}
@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.expired-modal {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    /* Layered shadow + inner top highlight */
    box-shadow: 0 4px 6px rgba(0,0,0,0.15),
                0 24px 64px rgba(0,0,0,0.65),
                inset 0 1px 0 rgba(255,255,255,0.06);
    animation: modal-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.expired-modal h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.expired-modal p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}
.expired-dismiss {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 6px 12px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.expired-dismiss:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.07);
}