/* ── UDS Subscription Dashboard ── */
.uds-dashboard { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1e293b; }

/* Header */
.uds-dash-header { margin-bottom: 1.5rem; }
.uds-dash-header h2 { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.uds-dash-sub { color: #64748b; font-size: 14px; margin: 0; }

/* Stat row */
.uds-stat-row { display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap; }
.uds-stat-card { flex: 1; min-width: 120px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.25rem; }
.uds-stat-card.uds-stat-green { border-color: #00d9a640; background: #f0fdf9; }
.uds-stat-num { display: block; font-size: 24px; font-weight: 700; color: #0f172a; }
.uds-stat-card.uds-stat-green .uds-stat-num { color: #059669; }
.uds-stat-lbl { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }

/* Section title */
.uds-section-title { font-size: 15px; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e2e8f0; }

/* Plan cards grid */
.uds-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.uds-plan-card { background: #fff; border: 1.5px solid var(--plan-color, #00d9a6); border-radius: 12px; padding: 1.25rem; position: relative; overflow: hidden; }
.uds-plan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--plan-color, #00d9a6); }

.uds-plan-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.uds-plan-service { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 3px; }
.uds-plan-name { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }

/* Badges */
.uds-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.uds-badge-active    { background: #dcfce7; color: #166534; }
.uds-badge-paused    { background: #fef9c3; color: #854d0e; }
.uds-badge-cancelled { background: #fee2e2; color: #991b1b; }
.uds-badge-expired   { background: #f1f5f9; color: #475569; }

/* Meta grid */
.uds-plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.uds-meta-item { background: #f8fafc; border-radius: 6px; padding: 8px 10px; }
.uds-meta-lbl { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.uds-meta-val { font-size: 13px; font-weight: 600; color: #1e293b; }
.uds-days-left { color: #059669; }

/* Progress */
.uds-progress-wrap { margin-bottom: 1rem; }
.uds-progress-bar { background: #f1f5f9; border-radius: 99px; height: 6px; overflow: hidden; margin-bottom: 4px; }
.uds-progress-fill { height: 100%; background: var(--plan-color, #00d9a6); border-radius: 99px; transition: width .4s ease; }
.uds-progress-lbl { font-size: 11px; color: #94a3b8; }

/* Features */
.uds-features-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.uds-feature-tag { font-size: 11px; background: #f0fdf9; color: #065f46; border: 1px solid #a7f3d0; border-radius: 4px; padding: 2px 8px; }

/* Plan footer */
.uds-plan-footer { border-top: 1px solid #f1f5f9; padding-top: .75rem; }
.uds-link { font-size: 13px; color: #00875a; font-weight: 500; text-decoration: none; }
.uds-link:hover { text-decoration: underline; }

/* Table */
.uds-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e2e8f0; }
.uds-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uds-table thead tr { background: #f8fafc; }
.uds-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #e2e8f0; }
.uds-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
.uds-table tbody tr:last-child td { border-bottom: none; }
.uds-table tbody tr:hover td { background: #fafbff; }

/* Upgrade CTA */
.uds-upgrade-cta { margin-top: 2rem; background: linear-gradient(135deg, #0a0e14 0%, #0f2030 100%); border-radius: 12px; padding: 1.5rem; text-align: center; color: #e2e8f0; }
.uds-upgrade-cta p { margin: 0 0 1rem; font-size: 15px; color: #cbd5e1; }

/* Buttons */
.uds-btn-primary { display: inline-block; background: #00d9a6; color: #000 !important; font-weight: 600; font-size: 13px; padding: 8px 20px; border-radius: 6px; text-decoration: none; margin: 4px; }
.uds-btn-primary:hover { background: #00bfa0; text-decoration: none; }
.uds-btn-secondary { display: inline-block; border: 1px solid #334155; color: #94a3b8 !important; font-size: 13px; padding: 8px 20px; border-radius: 6px; text-decoration: none; margin: 4px; }
.uds-btn-secondary:hover { border-color: #00d9a6; color: #00d9a6 !important; text-decoration: none; }

/* Expired card */
.uds-card-expired {
  opacity: 0.65;
  filter: grayscale(40%);
}
.uds-card-expired::before {
  background: #64748b !important;
}

/* Empty state */
.uds-empty { text-align: center; padding: 3rem 1rem; background: #f8fafc; border-radius: 12px; border: 1px dashed #e2e8f0; }
.uds-empty-icon { font-size: 36px; display: block; margin-bottom: 1rem; }
.uds-empty p { color: #64748b; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .uds-stat-row { flex-direction: column; }
  .uds-plan-meta { grid-template-columns: 1fr; }
}
