/* ══════════════════════════════════════════════
   KOHLAS CustomerWeb — Premium Design System v3
   ══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #06080b;
  --bg-sidebar: #090c11;
  --bg-surface: #0e1117;
  --bg-card: #13161d;
  --bg-raised: #181c25;
  --bg-input: #0b0e14;
  --bg-hover: rgba(255,255,255,0.035);
  --accent: #34d399;
  --accent-soft: #10b981;
  --accent-muted: rgba(52,211,153,0.12);
  --accent-glow: rgba(52,211,153,0.25);
  --accent-border: rgba(52,211,153,0.3);
  --accent-gradient: linear-gradient(135deg, #34d399, #06b6d4);
  --accent-gradient-soft: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(6,182,212,0.08));
  --text: #f0f2f5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --border: rgba(148,163,184,0.08);
  --border-subtle: rgba(148,163,184,0.05);
  --border-hover: rgba(148,163,184,0.16);
  --border-accent: rgba(52,211,153,0.2);
  --success: #4ade80; --warning: #fbbf24; --danger: #f87171; --info: #60a5fa;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --sidebar-w: 250px;
  --topbar-h: 54px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 24px rgba(52,211,153,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--bg); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: all var(--duration) var(--ease); }
a:hover { color: #5eead4; }

/* ═══ Sidebar ═══ */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); background: linear-gradient(180deg, var(--bg-sidebar), #070a0f); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 100; transition: transform 0.3s var(--ease); overflow-y: auto; overflow-x: hidden; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.sidebar-brand-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-gradient); display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #060a0e; flex-shrink: 0; box-shadow: 0 0 16px rgba(52,211,153,0.18); }
.sidebar-brand-text { font-weight: 800; font-size: 13.5px; letter-spacing: -0.01em; }
.sidebar-brand-sub { font-size: 10px; color: var(--text-dim); font-weight: 500; display: block; margin-top: 1px; }
.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-group { margin-bottom: 16px; }
.nav-group-label { padding: 0 10px 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: all var(--duration) var(--ease); position: relative; }
.nav-item:hover { color: var(--text-secondary); background: var(--bg-hover); }
.nav-item.active { color: var(--accent); background: var(--accent-muted); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.5; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-item:hover .nav-icon { opacity: 0.7; }
.sidebar-footer { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 10px; color: var(--text-dim); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 99; }
.sidebar-overlay.visible { display: block; }

/* ═══ Main Wrapper ═══ */
.main-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 0.3s var(--ease); }
.topbar { position: sticky; top: 0; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(6,8,11,0.82); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--border); z-index: 50; }
.topbar-title { font-size: 14px; font-weight: 700; color: var(--text); }
.topbar-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-dim); font-weight: 600; }
.topbar-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }
.sidebar-toggle { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 16px; min-height: auto; padding: 0; }

/* ═══ Content — FULL WIDTH ═══ */
.content { flex: 1; padding: 28px 32px 48px; width: 100%; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-dim); margin-top: auto; }

/* ═══ Auth Layout ═══ */
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(ellipse at 30% 0%,rgba(52,211,153,0.05),transparent 50%), radial-gradient(ellipse at 70% 100%,rgba(6,182,212,0.03),transparent 50%), var(--bg); }
.ui-auth-panel { width: min(100%, 440px); padding: 40px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg,rgba(255,255,255,0.025),rgba(255,255,255,0.008)), var(--bg-card); box-shadow: var(--shadow-lg), var(--shadow-glow); position: relative; overflow: hidden; }
.ui-auth-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,rgba(52,211,153,0.3),transparent); }
.ui-auth-panel .eyebrow { display: block; margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ui-auth-panel h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.ui-auth-panel > p { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 4px; }
.auth-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-brand-icon { width: 22px; height: 22px; flex-shrink: 0; }
.auth-brand-row span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-dim); text-transform: uppercase; }
.auth-support { margin-top: 16px; color: var(--text-muted); font-size: 12px; text-align: center; }
.auth-support a { color: var(--accent); text-decoration: none; }

/* ═══ Page Header ═══ */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.page-header p { margin-top: 5px; color: var(--text-muted); font-size: 13.5px; }

/* ═══ Hero Identity Card ═══ */
.hero-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg,rgba(52,211,153,0.06),rgba(6,182,212,0.03)), var(--bg-card); padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent 10%,rgba(52,211,153,0.35),transparent 90%); }
.hero-card::after { content: ''; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(52,211,153,0.06),transparent 70%); pointer-events: none; }
.hero-identity { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-gradient); display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #060a0e; flex-shrink: 0; box-shadow: 0 0 24px rgba(52,211,153,0.15); }
.hero-info { flex: 1; min-width: 0; }
.hero-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.hero-email { font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══ Metric Grid ═══ */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.metric-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(180deg,var(--bg-card),var(--bg-surface)); transition: all 0.25s var(--ease); position: relative; overflow: hidden; }
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent-gradient); opacity: 0; transition: opacity 0.25s var(--ease); }
.metric-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card:hover::before { opacity: 1; }
.metric-label { display: block; font-size: 11px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-value { display: block; font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.metric-card.neutral .metric-value { background: none; -webkit-text-fill-color: var(--text); color: var(--text); }

/* ═══ Quick Links ═══ */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.quick-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-secondary); font-size: 14px; font-weight: 600; transition: all 0.25s var(--ease); text-decoration: none; }
.quick-link:hover { color: var(--text); border-color: var(--accent-border); background: var(--bg-raised); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-link svg { width: 20px; height: 20px; opacity: 0.45; flex-shrink: 0; transition: opacity 0.25s var(--ease); }
.quick-link:hover svg { opacity: 0.9; color: var(--accent); }

/* ═══ Two-Column Layout ═══ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.span-full { grid-column: 1 / -1; }

/* ═══ Section Cards ═══ */
.section-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 24px; transition: border-color var(--duration) var(--ease); }
.section-card h3 { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }

/* ═══ Status Badges ═══ */
.status-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.03); font-size: 11px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.status-badge.success { color: #86efac; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.06); }
.status-badge.warning { color: #fde68a; border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }
.status-badge.danger { color: #fca5a5; border-color: rgba(248,113,113,0.2); background: rgba(248,113,113,0.06); }

/* ═══ Detail List ═══ */
.detail-list { display: grid; grid-template-columns: clamp(120px, 28%, 200px) 1fr; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.detail-list dt, .detail-list dd { padding: 12px 18px; margin: 0; background: var(--bg-card); font-size: 13.5px; }
.detail-list dt { color: var(--text-dim); font-weight: 600; background: var(--bg-surface); }
.detail-list dd { overflow-wrap: anywhere; }

/* ═══ Tables ═══ */
.ui-table-shell { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; overflow-x: auto; background: var(--bg-card); }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { padding: 11px 16px; background: var(--bg-surface); color: var(--text-dim); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
.ui-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; color: var(--text-secondary); font-size: 13.5px; }
.ui-table tbody tr { transition: background var(--duration) var(--ease); }
.ui-table tbody tr:hover { background: rgba(52,211,153,0.02); }
.ui-table tbody tr:last-child td { border-bottom: none; }
.ui-empty-state { padding: 48px 24px; text-align: center; color: var(--text-dim); font-size: 14px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-surface); }

/* ═══ Forms ═══ */
.form-stack, .form-grid { display: grid; gap: 16px; margin-top: 18px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: end; }
.form-stack.compact { max-width: 480px; }
label { display: grid; gap: 5px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: var(--bg-input); padding: 10px 14px; font: inherit; font-size: 14px; transition: all var(--duration) var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--border-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-muted), 0 0 12px rgba(52,211,153,0.06); outline: none; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: auto; accent-color: var(--accent); cursor: pointer; }
textarea { resize: vertical; min-height: 100px; }
.checkbox-label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }

/* ═══ Buttons ═══ */
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: none; border-radius: 8px; background: var(--accent-gradient); color: #060a0e; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15); }
button:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(52,211,153,0.2), inset 0 1px 0 rgba(255,255,255,0.15); filter: brightness(1.08); }
button:active { transform: translateY(0); }
button.danger { background: linear-gradient(135deg,#ef4444,#dc2626); color: white; }
button.danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.2); }
button.secondary { background: var(--bg-raised); color: var(--text-secondary); border: 1px solid var(--border); box-shadow: none; }
button.secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); color: var(--text); }
button.ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); box-shadow: none; }
button.ghost:hover { background: var(--bg-hover); border-color: var(--border-hover); color: var(--text); }
.inline-form { display: inline; }
.inline-form button { min-height: 30px; padding: 5px 14px; font-size: 12px; }

/* ═══ Action Row ═══ */
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.action-row a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: all var(--duration) var(--ease); }
.action-row a:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg-hover); }

/* ═══ Thread Messages ═══ */
.thread-list { display: flex; flex-direction: column; gap: 6px; }
.thread-msg { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--bg-surface); border: 1px solid var(--border-subtle); transition: border-color var(--duration) var(--ease); }
.thread-msg:hover { border-color: var(--border); }
.thread-msg-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.thread-msg-avatar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.thread-msg-avatar.customer { background: var(--accent-muted); color: var(--accent); }
.thread-msg-avatar.admin { background: rgba(96,165,250,0.12); color: var(--info); }
.thread-msg-author { font-size: 13.5px; font-weight: 700; color: var(--text); }
.thread-msg-time { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.thread-msg-body { font-size: 14px; color: var(--text-secondary); line-height: 1.75; padding-left: 40px; }
.thread-msg-attachments { padding-left: 40px; margin-top: 10px; font-size: 13px; }

/* ═══ Section Titles ═══ */
.section-title { font-size: 15px; font-weight: 700; margin: 28px 0 14px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); flex-shrink: 0; }

/* ═══ Misc ═══ */
.danger-zone { border: 1px solid rgba(248,113,113,0.15); border-radius: var(--radius); background: rgba(248,113,113,0.03); padding: 20px; }
.sensitive-reveal { border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-muted); padding: 16px 20px; }
.sensitive-reveal code { display: block; margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-xs); background: rgba(0,0,0,0.3); font-size: 13px; word-break: break-all; color: var(--accent); }
.status-message { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.provider-handoff { display: inline-flex; margin-top: 12px; padding: 10px 16px; border: 1px solid var(--accent-border); border-radius: 8px; background: var(--accent-muted); }
code { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.hash-preview { display: inline-block; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.dev-link { color: var(--accent); overflow-wrap: anywhere; }

/* ═══ Utilities ═══ */
.mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px} .mt-20{margin-top:20px} .mt-24{margin-top:24px} .mt-28{margin-top:28px}
.mb-12{margin-bottom:12px} .mb-16{margin-bottom:16px} .mb-20{margin-bottom:20px} .mb-24{margin-bottom:24px}
.text-center{text-align:center} .text-secondary{color:var(--text-secondary)} .text-muted{color:var(--text-muted)}

/* ═══ Responsive ═══ */
@media(max-width:1024px){
  .sidebar{transform:translateX(-100%)} .sidebar.open{transform:translateX(0);box-shadow:var(--shadow-lg)} .sidebar-overlay.visible{display:block}
  .main-wrapper{margin-left:0} .sidebar-toggle{display:flex} .content{padding:20px 16px} .topbar{padding:0 16px} .site-footer{padding:14px 16px}
  .two-col,.three-col{grid-template-columns:1fr}
}
@media(max-width:640px){
  .ui-auth-panel{padding:28px 20px} .detail-list{grid-template-columns:1fr} .metric-grid{grid-template-columns:1fr 1fr}
  .quick-links{grid-template-columns:1fr} .form-grid{grid-template-columns:1fr} .hero-identity{flex-direction:column;align-items:flex-start}
}
@media(max-width:420px){.metric-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0.001ms!important;animation-duration:0.001ms!important}}

/* ══════════════════════════════════════════════
   KOHLAS Premium Dashboard Redesign Styles
   ══════════════════════════════════════════════ */
:root {
  --bg: #06070a;
  --bg-sidebar: #06070a;
  --bg-card: #0b0e14;
  --bg-surface: #0b0e14;
  --bg-raised: #0f121b;
  --accent: #14b8a6;
  --border: rgba(255,255,255,0.06);
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.3));
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-brand-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.sidebar-brand-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-group-label {
  padding: 16px 20px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-item {
  margin: 2px 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.02) 100%);
  color: #14b8a6;
  font-weight: 700;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.nav-item.active::before {
  display: none !important;
}

.nav-item .nav-caret {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}

.sidebar-help-banner {
  margin: auto 12px 16px 12px;
  padding: 16px;
  background: rgba(20, 184, 166, 0.03);
  border: 1px solid rgba(20, 184, 166, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-help-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar-help-icon {
  width: 20px;
  height: 20px;
  color: #14b8a6;
  flex-shrink: 0;
}

.sidebar-help-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sidebar-help-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text);
  font-size: 11.5px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.sidebar-help-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.sidebar-copyright-row {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-left-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-crumb-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.topbar-crumb-trail {
  font-size: 11.5px;
  color: var(--text-muted);
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-bell {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  padding: 0;
  min-height: auto;
  box-shadow: none;
}
.topbar-bell:hover {
  color: var(--text);
  transform: none;
  box-shadow: none;
  filter: none;
}
.topbar-bell::after {
  content: none;
}

.topbar-notifications {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #14b8a6;
  color: #04120f;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.45);
}

.notification-popover {
  position: absolute;
  top: 34px;
  right: 0;
  width: min(320px, 90vw);
  padding: 12px;
  border-radius: 10px;
  background: rgba(9, 13, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  z-index: 90;
}

.notification-popover-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.notification-copy small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.notification-read-form {
  margin: 0;
}

.notification-mark-read {
  min-height: auto;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.notification-empty {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 12px;
}

.topbar-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 8px;
}

.topbar-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #14b8a6;
  color: #06070a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.topbar-profile-info {
  display: flex;
  flex-direction: column;
}

.topbar-profile-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  line-height: 1.2;
}

.topbar-profile-email {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-profile-card {
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.06) 0%, transparent 60%), #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.dashboard-profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dashboard-profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #14b8a6;
  color: #06070a;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 28px;
}

.dashboard-profile-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-profile-verified-badge {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dashboard-profile-email {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.dashboard-profile-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.dashboard-profile-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-profile-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: #14b8a6;
}

.dashboard-profile-row-info {
  display: flex;
  flex-direction: column;
}

.dashboard-profile-row-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-profile-row-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dashboard-sub-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.dashboard-sub-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.dashboard-sub-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.dashboard-sub-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-sub-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-sub-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-sub-value-badge {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.dashboard-sub-desc {
  font-size: 11.5px;
  color: var(--text-dim);
}

.dashboard-sub-action {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  transition: all 0.2s;
}

.dashboard-sub-action:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-metric-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.dashboard-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-metric-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dashboard-metric-icon-box.teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.dashboard-metric-icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.dashboard-metric-icon-box.slate { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.dashboard-metric-icon-box.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

.dashboard-metric-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dashboard-metric-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.dashboard-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.dashboard-metric-change {
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}
.dashboard-metric-change.up { color: #4ade80; }
.dashboard-metric-change.down { color: #f87171; }
.dashboard-metric-change.neutral { color: var(--text-muted); }

.dashboard-metric-sparkline {
  margin-left: auto;
  width: 60px;
  height: 24px;
  opacity: 0.8;
  flex-shrink: 0;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-panel-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.dashboard-panel-header-link {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.dashboard-panel-header-link:hover {
  color: #14b8a6;
}

.dashboard-panel-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-panel-footer-btn {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  min-height: auto;
  box-shadow: none;
}
.dashboard-panel-footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: none;
  box-shadow: none;
  filter: none;
}

.dashboard-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.dashboard-activity-icon.green { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.dashboard-activity-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.dashboard-activity-icon.slate { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }

.dashboard-activity-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.dashboard-activity-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-activity-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-activity-time {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.dashboard-donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-grow: 1;
}

.dashboard-donut-chart-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.dashboard-donut-chart-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.dashboard-donut-chart-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.dashboard-donut-chart-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.dashboard-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  min-width: 100px;
}

.dashboard-donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dashboard-donut-legend-dot.green { background: #4ade80; }
.dashboard-donut-legend-dot.blue { background: #3b82f6; }
.dashboard-donut-legend-dot.slate { background: #64748b; }

.dashboard-donut-legend-name {
  color: var(--text-secondary);
  flex-grow: 1;
}

.dashboard-donut-legend-count {
  font-weight: 700;
  color: var(--text);
  width: 16px;
  text-align: right;
}

.dashboard-donut-legend-pct {
  color: var(--text-muted);
  width: 40px;
  text-align: right;
}

.dashboard-payments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-payment-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-payment-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.dashboard-payment-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-payment-amount {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  margin-left: auto;
  white-space: nowrap;
}

.dashboard-payment-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.dashboard-payment-badge.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.dashboard-actions-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  margin-top: 12px;
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.dashboard-action-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.dashboard-action-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.dashboard-action-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.dashboard-action-card:hover .dashboard-action-icon-box {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.05);
}

.dashboard-action-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.dashboard-action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dashboard-action-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-action-caret {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
}

@media (max-width: 1200px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .dashboard-top-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   KOHLAS Downloads Page Redesign Styles
   ══════════════════════════════════════════════ */
.downloads-header-card {
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 60%), #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.downloads-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.downloads-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.downloads-header-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 480px;
}
.downloads-header-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.downloads-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.downloads-hdr-btn.primary {
  background: #14b8a6;
  color: #060a0e;
  border: none;
}
.downloads-hdr-btn.primary:hover {
  background: #0d9488;
}
.downloads-hdr-btn.outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.downloads-hdr-btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.downloads-header-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.downloads-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 140px;
}
.downloads-status-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.05);
  display: grid;
  place-items: center;
  color: #14b8a6;
  flex-shrink: 0;
}
.downloads-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.downloads-status-lbl {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.downloads-status-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #14b8a6;
  line-height: 1.2;
}
.downloads-status-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.downloads-hero-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.downloads-hero-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}
.downloads-win-badge {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.08);
  display: grid;
  place-items: center;
  color: #3b82f6;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.15));
  flex-shrink: 0;
}
.downloads-hero-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.downloads-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.downloads-hero-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.downloads-hero-badge {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}
.downloads-hero-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.downloads-hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}
.downloads-hash-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 480px;
}
.downloads-hash-label {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 9.5px;
}
.downloads-hash-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.downloads-hash-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: auto;
  box-shadow: none;
}
.downloads-hash-copy:hover {
  color: var(--text-secondary);
  transform: none;
}

.downloads-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.downloads-hero-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.downloads-hero-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}
.downloads-main-btn {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #060a0e;
  border: none;
  border-radius: 10px;
  width: 220px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}
.downloads-main-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
}
.downloads-sub-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  font-weight: 600;
  width: 220px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 8px;
  font-size: 12px;
  box-shadow: none;
}
.downloads-sub-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
  transform: none;
}

.downloads-mid-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.downloads-mid-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.downloads-mid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.downloads-mid-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.downloads-mid-title-link {
  font-size: 11px;
  color: #14b8a6;
  font-weight: 600;
  text-decoration: none;
}
.downloads-mid-title-link:hover {
  color: #0d9488;
}

.downloads-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.downloads-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.downloads-bullet-icon {
  width: 14px;
  height: 14px;
  color: #14b8a6;
  flex-shrink: 0;
  margin-top: 3px;
}

.downloads-install-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
}
.downloads-status-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
  display: grid;
  place-items: center;
  color: #4ade80;
  margin-bottom: 12px;
}
.downloads-status-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.downloads-status-desc-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.downloads-status-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.downloads-status-badge-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}
.downloads-status-badge-icon {
  width: 10px;
  height: 10px;
  color: #4ade80;
}

.downloads-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.downloads-table-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.downloads-prev-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.downloads-prev-table th {
  padding: 10px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.downloads-prev-table td {
  padding: 12px 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.downloads-prev-table tbody tr:last-child td {
  border-bottom: none;
}
.downloads-badge-stable {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}
.downloads-action-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  box-shadow: none;
}
.downloads-action-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transform: none;
  box-shadow: none;
  filter: none;
}

.downloads-warning-banner {
  background: rgba(251, 191, 36, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: auto;
}
.downloads-warning-icon {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
}
.downloads-warning-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.downloads-help-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.downloads-help-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.downloads-help-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.downloads-help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.downloads-help-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.downloads-help-icon {
  width: 16px;
  height: 16px;
  color: #14b8a6;
  flex-shrink: 0;
}
.downloads-help-btn {
  background: rgba(20, 184, 166, 0.05);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 8px;
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #14b8a6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  min-height: auto;
  box-shadow: none;
  margin-top: auto;
  transition: all 0.2s;
}
.downloads-help-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  color: #0d9488;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .downloads-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .downloads-header-right {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .downloads-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .downloads-hero-right {
    align-items: flex-start;
    width: 100%;
  }
  .downloads-mid-grid {
    grid-template-columns: 1fr;
  }
  .downloads-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .downloads-header-right {
    grid-template-columns: 1fr;
  }
}



/* ══════════════════════════════════════════════
   KOHLAS Licenses Page Redesign Styles
   ══════════════════════════════════════════════ */
.licenses-header-card {
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 60%), #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.licenses-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.licenses-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.licenses-header-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 480px;
}
.licenses-header-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.licenses-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.licenses-hdr-btn.primary {
  background: #14b8a6;
  color: #060a0e;
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}
.licenses-hdr-btn.primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.licenses-header-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.licenses-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 140px;
}
.licenses-status-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.licenses-status-icon-box.teal { background: rgba(20, 184, 166, 0.05); color: #14b8a6; }
.licenses-status-icon-box.blue { background: rgba(59, 130, 246, 0.05); color: #3b82f6; }
.licenses-status-icon-box.orange { background: rgba(249, 115, 22, 0.05); color: #f97316; }

.licenses-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.licenses-status-lbl {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.licenses-status-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.licenses-status-val.teal { color: #14b8a6; }
.licenses-status-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.licenses-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.licenses-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,0.15);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}
.licenses-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: auto;
  box-shadow: none;
}
.licenses-tab-btn:hover {
  color: var(--text);
}
.licenses-tab-btn.active {
  background: #14b8a6;
  color: #060a0e;
}
.licenses-search-wrapper {
  position: relative;
  width: 240px;
}
.licenses-search-input {
  width: 100%;
  background: #0b0e14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px 8px 32px;
  color: var(--text);
  font-size: 12px;
}
.licenses-search-input::placeholder {
  color: var(--text-muted);
}
.licenses-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.licenses-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.license-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.license-card:hover {
  border-color: rgba(20, 184, 166, 0.2);
}
.license-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.license-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.license-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #14b8a6;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.08);
}
.license-card-icon.blue {
  color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 82, 246, 0.08);
}
.license-card-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.license-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.license-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.license-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.license-card-badge.active {
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.15);
}
.license-card-badge.pro {
  background: rgba(168, 85, 247, 0.08);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.license-card-badge.std {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.license-key-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.license-key-lbl {
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-family);
  font-weight: 500;
}
.license-key-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  min-height: auto;
  box-shadow: none;
}
.license-key-copy-btn:hover {
  color: var(--text);
}

.license-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.license-detail-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.license-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.license-detail-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.license-detail-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.license-detail-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.license-detail-val.yellow { color: #f59e0b; }
.license-detail-val.green { color: #4ade80; }

.license-usage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.license-usage-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  overflow: hidden;
}
.license-usage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #14b8a6);
  border-radius: 3px;
}

.license-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 14px;
  margin-top: 4px;
}
.license-footer-left {
  display: flex;
  gap: 8px;
}
.license-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.license-action-btn.outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.license-action-btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}
.license-action-btn.solid-green {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}
.license-action-btn.solid-green:hover {
  background: rgba(20, 184, 166, 0.15);
  color: #0d9488;
}
.license-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 650;
}

.license-more-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  min-height: auto;
  box-shadow: none;
}
.license-more-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.licenses-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.licenses-history-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.licenses-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.licenses-history-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.licenses-history-link {
  font-size: 11px;
  color: #14b8a6;
  font-weight: 600;
  text-decoration: none;
}
.licenses-history-link:hover {
  color: #0d9488;
}

.licenses-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.licenses-sidebar-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.licenses-sidebar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.licenses-sidebar-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.licenses-sidebar-card-link {
  font-size: 11px;
  color: #14b8a6;
  font-weight: 600;
  text-decoration: none;
}
.licenses-sidebar-card-link:hover {
  color: #0d9488;
}

.device-assignment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.device-assignment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
}
.device-assignment-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-dim);
  display: grid;
  place-items: center;
}
.device-assignment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}
.device-assignment-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.device-assignment-meta {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-assignment-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
}
.device-assignment-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.device-assignment-status-dot.green { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.4); }
.device-assignment-status-dot.orange { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.4); }
.device-assignment-status.green { color: #4ade80; }
.device-assignment-status.orange { color: #fbbf24; }

.device-assignment-add-btn {
  width: 100%;
  height: 36px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: auto;
  box-shadow: none;
}
.device-assignment-add-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
}

.license-rights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.license-rights-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}
.license-rights-icon {
  width: 14px;
  height: 14px;
  color: #14b8a6;
  flex-shrink: 0;
  margin-top: 1px;
}
.license-rights-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.license-rights-title {
  font-weight: 700;
  color: var(--text);
}
.license-rights-desc {
  color: var(--text-muted);
  font-size: 10.5px;
}

@media (max-width: 1200px) {
  .licenses-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .licenses-header-right {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .licenses-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .licenses-header-right {
    grid-template-columns: 1fr;
  }
  .licenses-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .licenses-search-wrapper {
    width: 100%;
  }
  .license-card-details {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   KOHLAS Devices Page Redesign Styles
   ══════════════════════════════════════════════ */
.devices-header-card {
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 60%), #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.devices-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.devices-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.devices-header-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 480px;
}
.devices-header-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.devices-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.devices-hdr-btn.primary {
  background: #14b8a6;
  color: #060a0e;
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}
.devices-hdr-btn.primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.devices-header-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.devices-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 140px;
}
.devices-status-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.devices-status-icon-box.teal { background: rgba(20, 184, 166, 0.05); color: #14b8a6; }
.devices-status-icon-box.blue { background: rgba(59, 130, 246, 0.05); color: #3b82f6; }
.devices-status-icon-box.orange { background: rgba(251, 191, 36, 0.05); color: #fbbf24; }

.devices-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.devices-status-lbl {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.devices-status-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}
.devices-status-val.teal { color: #14b8a6; }
.devices-status-desc {
  font-size: 9.5px;
  color: var(--text-muted);
}

.devices-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.devices-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 8px;
  gap: 2px;
}
.devices-tab-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: auto;
  box-shadow: none;
}
.devices-tab-btn:hover {
  color: var(--text);
}
.devices-tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.devices-search-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}
.devices-search-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px 8px 32px;
  font-size: 12.5px;
  color: var(--text);
  width: 200px;
  transition: all 0.2s;
}
.devices-search-input:focus {
  border-color: rgba(20, 184, 166, 0.3);
  outline: none;
  width: 240px;
}
.devices-search-input::placeholder {
  color: var(--text-muted);
}
.devices-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}
.devices-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}
.devices-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.devices-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.device-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.device-card:hover {
  border-color: rgba(20, 184, 166, 0.2);
}
.device-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.device-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.device-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #14b8a6;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.08);
}
.device-card-icon.blue {
  color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.08);
}
.device-card-icon.orange {
  color: #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.08);
}
.device-card-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.device-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.device-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.device-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.device-card-badge.active {
  background: rgba(74, 222, 128, 0.08);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.15);
}
.device-card-badge.pending {
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.device-license-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.device-license-lbl {
  color: var(--text-dim);
  font-size: 11px;
}
.device-license-link-icon {
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.device-license-link-icon:hover {
  color: var(--text);
}

.device-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.device-detail-col {
  display: flex;
  flex-direction: column;
}
.device-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-detail-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.device-detail-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}
.device-detail-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.4;
}
.device-detail-val.yellow { color: #fbbf24; }
.device-detail-val.orange { color: #f97316; }

.device-usage-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.device-usage-bar-bg {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  max-width: 100px;
}
.device-usage-bar-fill {
  height: 100%;
  background: #14b8a6;
  border-radius: 3px;
}

.device-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.device-footer-left {
  display: flex;
  gap: 8px;
}
.device-action-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  box-shadow: none;
}
.device-action-btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
}
.device-action-btn.outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.device-action-btn.outline-red {
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.02);
}
.device-action-btn.outline-red:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.device-more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  min-height: auto;
  box-shadow: none;
}
.device-more-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.devices-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.devices-history-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.devices-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.devices-history-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.devices-history-link {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.devices-history-link:hover {
  color: #14b8a6;
}

.devices-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.devices-sidebar-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.devices-sidebar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.devices-sidebar-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.devices-sidebar-card-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.devices-sidebar-card-link:hover {
  color: #14b8a6;
}

.devices-donut-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.devices-donut-chart-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}
.devices-donut-chart-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.devices-donut-chart-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.devices-donut-chart-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.devices-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.devices-donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.devices-donut-legend-dot-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.devices-donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.devices-donut-legend-dot.green { background: #4ade80; }
.devices-donut-legend-dot.orange { background: #fbbf24; }
.devices-donut-legend-dot.slate { background: #64748b; }
.devices-donut-legend-count {
  font-weight: 700;
  color: var(--text);
  margin-left: auto;
  margin-right: 8px;
}
.devices-donut-legend-pct {
  color: var(--text-muted);
  width: 32px;
  text-align: right;
}

.device-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.device-rules-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}
.device-rules-icon {
  width: 14px;
  height: 14px;
  color: #14b8a6;
  flex-shrink: 0;
  margin-top: 1px;
}
.device-rules-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.device-rules-title {
  font-weight: 700;
  color: var(--text);
}
.device-rules-desc {
  color: var(--text-muted);
  font-size: 10.5px;
}

@media (max-width: 1200px) {
  .devices-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .devices-header-right {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .devices-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .devices-header-right {
    grid-template-columns: 1fr;
  }
  .devices-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .devices-search-wrapper {
    width: 100%;
  }
  .device-card-details {
    grid-template-columns: 1fr;
  }
}

}

/* ══════════════════════════════════════════════
   KOHLAS Billing Page Redesign Styles
   ══════════════════════════════════════════════ */
.billing-header-card {
  background: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.04) 0%, transparent 60%), #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.billing-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billing-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.billing-header-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}
.billing-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.billing-header-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.billing-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.billing-hdr-btn.primary {
  background: #14b8a6;
  color: #060a0e;
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}
.billing-hdr-btn.primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
}
.billing-hdr-btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
}
.billing-hdr-btn.outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.billing-header-actions-caption {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-header-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.billing-status-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 140px;
}
.billing-status-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.billing-status-icon-box.teal { background: rgba(20, 184, 166, 0.05); color: #14b8a6; }
.billing-status-icon-box.blue { background: rgba(59, 130, 246, 0.05); color: #3b82f6; }
.billing-status-icon-box.orange { background: rgba(251, 191, 36, 0.05); color: #fbbf24; }

.billing-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.billing-status-lbl {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.billing-status-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}
.billing-status-val.teal { color: #14b8a6; }
.billing-status-desc {
  font-size: 9.5px;
  color: var(--text-muted);
}

.billing-mid-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-bottom: 20px;
}
.billing-plans-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.billing-plans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.billing-plans-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.billing-plan-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}
.billing-plan-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.billing-plan-card.popular {
  border: 2.5px solid #14b8a6;
  background: radial-gradient(circle at top, rgba(20, 184, 166, 0.05) 0%, transparent 80%), rgba(255, 255, 255, 0.015);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.08);
}
.billing-plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #14b8a6;
  color: #060a0e;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.billing-plan-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.billing-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.billing-plan-period {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.billing-plan-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 24px;
  min-height: 32px;
}
.billing-plan-select-btn {
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  min-height: auto;
  box-shadow: none;
}
.billing-plan-select-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.billing-plan-card.popular .billing-plan-select-btn {
  background: #14b8a6;
  color: #060a0e;
  border: none;
  box-shadow: 0 4px 10px rgba(20, 184, 166, 0.15);
}
.billing-plan-card.popular .billing-plan-select-btn:hover {
  background: #0d9488;
  transform: translateY(-1px);
}
.billing-plans-footer-note {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.billing-flow-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.billing-flow-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 12px;
}
.billing-flow-timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.billing-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.billing-flow-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #060a0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.billing-flow-step.active .billing-flow-step-num {
  border-color: #14b8a6;
  color: #14b8a6;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.2);
}
.billing-flow-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.billing-flow-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.billing-flow-step-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}
.billing-flow-footer-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
  border-top: 1px dashed rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.billing-bottom-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.billing-subscription-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.billing-sub-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.billing-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
  padding-bottom: 8px;
}
.billing-sub-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.billing-sub-label {
  color: var(--text-dim);
}
.billing-sub-val {
  font-weight: 700;
  color: var(--text-secondary);
}
.billing-sub-val.green {
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.billing-sub-actions {
  display: flex;
  gap: 8px;
}
.billing-sub-actions .billing-action-btn {
  flex-grow: 1;
  text-align: center;
  justify-content: center;
}
.billing-renew-form {
  flex-grow: 1;
}
.billing-renew-skip {
  cursor: default;
  pointer-events: none;
}
.billing-action-btn.solid-green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.billing-action-btn.solid-green:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
}

.billing-history-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.billing-history-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-history-table-wrapper {
  overflow-x: auto;
  flex-grow: 1;
}
.billing-license-key-card {
  min-width: 0;
}
.billing-license-key-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.billing-license-key-desc,
.billing-license-key-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.billing-license-key-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billing-license-key-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.billing-license-key-plan {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}
.billing-license-key-plan input {
  margin-top: 3px;
  accent-color: #14b8a6;
}
.billing-license-key-plan span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.billing-license-key-plan strong {
  color: var(--text);
  font-size: 12px;
}
.billing-license-key-plan small {
  color: var(--text-muted);
  font-size: 11px;
}
.billing-license-key-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.billing-license-key-quantity-row input {
  width: 92px;
  height: 34px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  padding: 0 10px;
}
.billing-license-key-submit {
  margin-top: 2px;
}
.billing-license-key-ready-link {
  color: #14b8a6;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.license-copy-key-btn {
  border: 1px solid rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.08);
  color: #14b8a6;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.license-copy-key-btn:hover,
.license-copy-key-btn.copied {
  background: rgba(20, 184, 166, 0.14);
}

.billing-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 320px;
  gap: 16px;
}
.billing-rules-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.billing-rules-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billing-rules-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}
.billing-rules-icon {
  width: 14px;
  height: 14px;
  color: #14b8a6;
  flex-shrink: 0;
  margin-top: 1px;
}
.billing-rules-desc {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.billing-help-card {
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.billing-help-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.billing-help-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.billing-help-btn {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: auto;
  box-shadow: none;
}
.billing-help-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1200px) {
  .billing-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .billing-header-right {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .billing-mid-grid {
    grid-template-columns: 1fr;
  }
  .billing-bottom-grid {
    grid-template-columns: 1fr;
  }
  .billing-rules-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .billing-plans-grid {
    grid-template-columns: 1fr;
  }
  .billing-license-key-plan-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .billing-header-right {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   Support Dashboard & Chat Redesign
   ══════════════════════════════════════════════ */
.support-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-banner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(52, 211, 153, 0.02)), var(--bg-card);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.support-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(52, 211, 153, 0.35), transparent 90%);
}

.support-banner-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.05), transparent 70%);
  pointer-events: none;
}

.support-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.support-banner-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.1);
}

.support-banner-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.support-banner-info h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.support-banner-info p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin-bottom: 8px;
}

.support-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.support-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.support-banner-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 50%;
  flex-shrink: 0;
}

.support-metric-box {
  background: rgba(14, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.2s;
}

.support-metric-box:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 23, 0.6);
  transform: translateY(-1px);
}

.support-metric-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.support-metric-header svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.support-metric-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.support-metric-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.support-warning-alert {
  background: rgba(251, 191, 36, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.support-warning-icon {
  width: 16px;
  height: 16px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.support-warning-text {
  font-size: 11.5px;
  color: rgba(251, 191, 36, 0.85);
  line-height: 1.5;
  flex: 1;
  padding-right: 20px;
}

.support-warning-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(251, 191, 36, 0.5);
  cursor: pointer;
  padding: 0;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  box-shadow: none !important;
}

.support-warning-close:hover {
  color: var(--warning);
  background: transparent !important;
  transform: none !important;
}

.support-warning-close svg {
  width: 14px;
  height: 14px;
}

.category-pills-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.category-pills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.category-pills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.category-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.category-pill {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-pill.active {
  background: var(--accent-muted);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.05);
}

.category-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.category-pill.active svg {
  opacity: 1;
}

.priority-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 140px;
}

.priority-select-wrapper select {
  height: 38px;
  min-height: auto;
  font-size: 12.5px;
  background-position: right 10px center;
  padding-right: 28px;
}

.priority-dot-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.priority-dot-indicator.normal { background: var(--warning); }
.priority-dot-indicator.high { background: #ef4444; }
.priority-dot-indicator.urgent { background: #b91c1c; }

.textarea-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
}

.textarea-cols-grid textarea {
  min-height: 110px;
}

.support-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(11, 14, 20, 0.4);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.support-dropzone:hover, .support-dropzone.dragover {
  border-color: var(--accent-border);
  background: rgba(52, 211, 153, 0.01);
}

.support-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.support-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.support-dropzone-icon {
  width: 32px;
  height: 32px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.support-dropzone:hover .support-dropzone-icon {
  color: var(--accent);
}

.support-dropzone-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.support-dropzone-btn {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-left: 6px;
}

.support-dropzone-subtext {
  font-size: 10px;
  color: var(--text-muted);
}

.support-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.support-form-grid-3 select {
  height: 38px;
  min-height: auto;
  font-size: 12.5px;
}

.support-form-card button[type="submit"] {
  margin-top: 8px;
  background: var(--accent-gradient);
  color: #060a0e;
  font-size: 13.5px;
  font-weight: 800;
  height: 40px;
  min-height: auto;
}

/* History List Redesign */
.support-tickets-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.support-tickets-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.support-tickets-header-row h3 {
  margin-bottom: 0 !important;
}

.support-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-ticket-row {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
  text-decoration: none !important;
}

.support-ticket-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.support-ticket-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.support-ticket-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.support-ticket-row:hover .support-ticket-row-icon {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.support-ticket-row-icon svg {
  width: 15px;
  height: 15px;
}

.support-ticket-row-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.support-ticket-row-ref {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.support-ticket-row:hover .support-ticket-row-ref {
  color: var(--text-muted);
}

.support-ticket-row-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.support-ticket-row-title-category {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
}

.support-ticket-row-title-sep {
  color: var(--text-dim);
  font-size: 12px;
}

.support-ticket-row-title-subject {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-row:hover .support-ticket-row-title-subject {
  color: var(--text);
}

.support-ticket-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.status-badge-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-secondary);
}

.status-badge-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-badge-dot.open {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.15);
  background: rgba(251, 191, 36, 0.02);
}
.status-badge-dot.open::before {
  background: var(--warning);
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

.status-badge-dot.replied, .status-badge-dot.waitingforsupport {
  color: var(--info);
  border-color: rgba(96, 165, 250, 0.15);
  background: rgba(96, 165, 250, 0.02);
}
.status-badge-dot.replied::before, .status-badge-dot.waitingforsupport::before {
  background: var(--info);
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
}

.status-badge-dot.investigating {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.15);
  background: rgba(167, 139, 250, 0.02);
}
.status-badge-dot.investigating::before {
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.5);
}

.status-badge-dot.resolved, .status-badge-dot.closed {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.15);
  background: rgba(74, 222, 128, 0.02);
}
.status-badge-dot.resolved::before, .status-badge-dot.closed::before {
  background: var(--success);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.support-ticket-row-time {
  font-size: 11px;
  color: var(--text-dim);
  width: 90px;
  text-align: right;
}

.support-ticket-row-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: all 0.2s;
}

.support-ticket-row:hover .support-ticket-row-chevron {
  color: var(--accent);
  transform: translateX(1px);
}

.daha-fazla-goster-btn {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: none;
  min-height: auto;
}

.daha-fazla-goster-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.05);
}

.daha-fazla-goster-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.quick-help-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.quick-help-card, .principles-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.quick-help-list, .principles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.quick-help-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.quick-help-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.04);
}

.quick-help-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-help-item-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0.8;
}

.quick-help-item-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.quick-help-item:hover .quick-help-item-chevron {
  color: var(--accent);
}

.principles-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}

.principles-item-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.principles-item-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.principles-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 14px;
  transition: color 0.2s;
}

.principles-footer-link:hover {
  color: var(--accent);
}

.principles-footer-link svg {
  width: 12px;
  height: 12px;
}


/* ═══ Premium Split Chat Layout ═══ */
.chat-split-layout {
  display: grid;
  grid-template-columns: clamp(260px, 30%, 340px) 1fr;
  gap: 20px;
  align-items: stretch;
}

.chat-details-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-thread-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 680px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-thread-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 17, 23, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-thread-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-thread-header-ref {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
}

.chat-thread-header-subject {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.chat-thread-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.015), transparent 70%);
}

.chat-message-row {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-message-row.customer {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message-row.support {
  align-self: flex-start;
}

.chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.chat-message-row.customer .chat-message-avatar {
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.chat-message-row.support .chat-message-avatar {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--info);
}

.chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-message-row.customer .chat-message-header {
  flex-direction: row-reverse;
}

.chat-message-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chat-message-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--info);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.chat-message-time {
  font-size: 10px;
  color: var(--text-dim);
}

.chat-message-bubble {
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  border-radius: 12px;
  position: relative;
  word-break: break-word;
}

.chat-message-row.customer .chat-message-bubble {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top-right-radius: 2px;
  color: var(--text);
}

.chat-message-row.support .chat-message-bubble {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top-left-radius: 2px;
  color: var(--text-secondary);
}

.chat-message-attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-attachment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: all 0.2s;
  max-width: 280px;
}

.chat-attachment-btn:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text) !important;
}

.chat-attachment-btn svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-attachment-btn:hover svg {
  color: var(--accent);
}

.chat-attachment-size {
  color: var(--text-dim);
  font-size: 10px;
}

.chat-input-panel {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(14, 17, 23, 0.3);
}

.chat-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-input-textarea-container {
  position: relative;
}

.chat-input-panel textarea {
  min-height: 80px;
  max-height: 150px;
  resize: vertical;
  background: var(--bg-input);
  border-color: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  font-size: 13.5px;
}

.chat-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-input-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-file-upload-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.chat-file-upload-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.chat-file-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.chat-file-upload-btn svg {
  width: 14px;
  height: 14px;
}

.chat-file-upload-info {
  font-size: 10px;
  color: var(--text-dim);
}

.chat-send-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #060a0e;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  box-shadow: none;
}

.chat-send-btn svg {
  width: 12px;
  height: 12px;
}

.chat-closed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  text-align: center;
}

.chat-closed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.chat-closed-desc {
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 1200px) {
  .support-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .support-banner-right {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .textarea-cols-grid {
    grid-template-columns: 1fr;
  }
  .chat-split-layout {
    grid-template-columns: 1fr;
  }
  .chat-thread-panel {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .support-form-grid-3 {
    grid-template-columns: 1fr;
  }
  .quick-help-column-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .support-banner-right {
    grid-template-columns: 1fr;
  }
  .category-pills-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .priority-select-wrapper {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════
   Account Dashboard Redesign
   ══════════════════════════════════════════════ */
.account-hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.04), rgba(52, 211, 153, 0.02)), var(--bg-card);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.account-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(52, 211, 153, 0.3), transparent 90%);
}

.account-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.account-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #060a0e;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.15);
  flex-shrink: 0;
}

.account-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-hero-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.account-hero-email {
  font-size: 13px;
  color: var(--text-secondary);
}

.account-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.05);
  color: var(--accent);
}

.badge-verified svg {
  width: 12px;
  height: 12px;
}

.account-hero-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 8px;
  max-width: 420px;
}

.account-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 55%;
  flex-shrink: 0;
}

.account-profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

.account-profile-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.account-profile-table tr:last-child {
  border-bottom: none;
}

.account-profile-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.account-profile-table td.key {
  width: 30%;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.005);
}

.account-profile-table td.val {
  color: var(--text);
  font-weight: 500;
}

.account-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.account-profile-actions button, .account-profile-actions a {
  height: 38px;
  min-height: auto;
  font-size: 12.5px;
  font-weight: 700;
}

.account-profile-actions .primary {
  background: var(--accent-gradient);
  color: #060a0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
}

.account-profile-actions .secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  transition: all 0.2s;
}

.account-profile-actions .secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.account-bindings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.account-binding-box {
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.account-binding-box:hover {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.06);
}

.account-binding-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.account-binding-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-binding-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.account-binding-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.account-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.account-note-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.account-note-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-links-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.quick-link-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.quick-link-box:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text) !important;
  transform: translateY(-1px);
}

.quick-link-box-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-link-box svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.quick-link-box-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.quick-link-box:hover .quick-link-box-chevron {
  color: var(--accent);
}

.security-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.security-checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
}

.security-checklist-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.security-checklist-left svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.security-checklist-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.security-checklist-right.success {
  color: var(--success);
}

.security-checklist-right.info {
  color: var(--text-secondary);
}

.security-checklist-right svg {
  width: 14px;
  height: 14px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.activity-item-left {
  display: flex;
  gap: 16px;
}

.activity-item-time {
  color: var(--text-dim);
  width: 80px;
  flex-shrink: 0;
}

.activity-item-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.activity-item:hover .activity-item-chevron {
  color: var(--accent);
}

.help-banner-card-row {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03), rgba(52, 211, 153, 0.01)), var(--bg-card);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.help-banner-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-banner-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.help-banner-row-icon svg {
  width: 18px;
  height: 18px;
}

.help-banner-row-info h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.help-banner-row-info p {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.help-banner-row-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: #060a0e;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  box-shadow: none;
  text-decoration: none;
  transition: all 0.2s;
}

.help-banner-row-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
}

.help-banner-row-btn svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1200px) {
  .account-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-hero-metrics {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-links-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .account-bindings-grid {
    grid-template-columns: 1fr;
  }
  .help-banner-card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .help-banner-row-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .account-hero-metrics {
    grid-template-columns: 1fr;
  }
  .quick-links-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   Billing Header Visual Upgrades
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   Billing Header Visual Upgrades
   ══════════════════════════════════════════════ */
.billing-header-card {
  background: #060a0e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.billing-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.35), transparent);
}

.billing-header-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.05), transparent 70%);
  pointer-events: none;
}

.billing-header-waves {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.billing-header-shield {
  position: absolute;
  right: 20px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  color: rgba(20, 184, 166, 0.03);
  filter: drop-shadow(0 0 24px rgba(20, 184, 166, 0.05));
  pointer-events: none;
  z-index: 1;
}

.billing-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  z-index: 2;
  position: relative;
}

.billing-header-info {
  flex: 1;
}

.billing-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.02em;
}

.billing-header-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  display: block;
}

.billing-header-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
}

.billing-header-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  position: relative;
  align-items: flex-start;
}

.billing-duration-and-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.billing-duration-buttons {
  display: flex;
  gap: 8px;
}

.billing-duration-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  background: rgba(14, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  box-shadow: none;
}

.billing-duration-btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.billing-duration-btn.static {
  cursor: default;
}

.billing-duration-btn.static:hover {
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  background: rgba(14, 17, 23, 0.6);
}

.billing-duration-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(20, 184, 166, 0.04);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.1);
}

.billing-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-hdr-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.billing-hdr-btn.primary {
  background: var(--accent-gradient) !important;
  color: #060a0e !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15) !important;
}

.billing-hdr-btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25) !important;
}

.billing-hdr-btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  height: 38px !important;
  box-shadow: none !important;
}

.billing-hdr-btn.outline:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text) !important;
}

.billing-secure-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 2px;
}

.billing-secure-caption svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.billing-status-card {
  background: rgba(14, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  transition: all 0.2s;
  z-index: 2;
}

.billing-status-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 23, 0.6);
  transform: translateY(-1px);
}

.billing-status-icon-box {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  color: var(--text-dim);
}

.billing-status-card:hover .billing-status-icon-box {
  color: var(--text-secondary);
}

.billing-status-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.billing-status-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.billing-status-val.teal {
  color: var(--accent);
}

.billing-status-val.yellow {
  color: var(--warning);
}

@media (max-width: 1200px) {
  .billing-header-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .billing-header-status-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .billing-duration-and-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .billing-duration-buttons {
    width: 100%;
  }
  .billing-duration-btn {
    flex: 1;
  }
  .billing-action-buttons {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .billing-action-buttons form, .billing-action-buttons button, .billing-action-buttons a {
    width: 100% !important;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════
   Security Page Visual Upgrades
   ══════════════════════════════════════════════ */
.security-hero-card {
  background: #060a0e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

.security-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.35), transparent);
}

.security-hero-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.05), transparent 70%);
  pointer-events: none;
}

.security-hero-waves {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.security-hero-info {
  flex: 1;
  z-index: 2;
  position: relative;
}

.security-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.02em;
}

.security-hero-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  display: block;
}

.security-hero-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.security-status-box {
  background: rgba(14, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 180px;
  transition: all 0.2s;
}

.security-status-box:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 17, 23, 0.6);
  transform: translateY(-1px);
}

.security-status-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-status-icon-wrapper.mail {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.security-status-icon-wrapper.calendar {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  color: var(--info);
}

.security-status-icon-wrapper.shield {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.security-status-icon-wrapper.lock {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: var(--accent);
}

.security-status-content {
  display: flex;
  flex-direction: column;
}

.security-status-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.security-status-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

.security-status-val.success {
  color: var(--accent);
}

.security-status-val.info {
  color: var(--info);
}

/* Eye toggle password styles */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  box-shadow: none !important;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--text-secondary);
  transform: none !important;
  box-shadow: none !important;
}

/* Password rules card */
.password-rules-box {
  background: rgba(14, 17, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  font-size: 12.5px;
}

.password-rules-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.password-rules-title {
  font-weight: 700;
  color: var(--text-secondary);
}

.password-rules-status {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.password-rules-status.all-valid {
  color: var(--success);
}

.password-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.password-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.password-rule-item.valid {
  color: var(--text-secondary);
}

.password-rule-icon {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.password-rule-item.valid .password-rule-icon {
  color: var(--success);
}

.password-strength-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

.password-strength-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.password-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 180px;
}

.password-strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s;
}

.password-strength-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 45px;
  text-align: right;
}

/* Card titles with icons */
.section-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.section-title-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Koruma Ipuclari list */
.protection-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.protection-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.protection-tip-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Quick links styling for security page */
.security-quick-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.security-quick-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.security-quick-link-box:hover {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.security-quick-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-quick-link-left svg {
  color: var(--text-muted);
  transition: color 0.2s;
}

.security-quick-link-box:hover .security-quick-link-left svg {
  color: var(--accent);
}

.security-quick-link-info {
  display: flex;
  flex-direction: column;
}

.security-quick-link-title {
  font-size: 13.5px;
  font-weight: 700;
}

.security-quick-link-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.security-quick-link-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.security-quick-link-box:hover .security-quick-link-chevron {
  color: var(--accent);
}

/* Responsive updates for security */
@media (max-width: 1200px) {
  .security-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .security-hero-status-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .security-hero-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom activity list for security page */
.security-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.security-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.security-activity-item:hover {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.security-activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-activity-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
}

.security-activity-text {
  display: flex;
  flex-direction: column;
}

.security-activity-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.security-activity-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.security-activity-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-activity-date {
  font-size: 12px;
  color: var(--text-dim);
}

.security-activity-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.security-activity-item:hover .security-activity-chevron {
  color: var(--accent);
}

.kohlas-toast-host {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.kohlas-toast {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(9, 14, 22, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  animation: kohlasToastIn 0.18s ease-out;
}

.kohlas-toast.success {
  border-color: rgba(20, 184, 166, 0.28);
  color: var(--accent);
}

.kohlas-toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.kohlas-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.66);
  backdrop-filter: blur(8px);
}

.kohlas-confirm-overlay[hidden] {
  display: none;
}

.kohlas-confirm-card {
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 23, 31, 0.98), rgba(8, 12, 18, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
  padding: 22px;
}

.kohlas-confirm-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--warning);
  font-weight: 900;
}

.kohlas-confirm-copy h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.kohlas-confirm-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.kohlas-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.kohlas-confirm-actions button {
  min-width: 96px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
}

.kohlas-confirm-cancel {
  background: rgba(255, 255, 255, 0.025);
}

.kohlas-confirm-accept {
  background: linear-gradient(135deg, var(--accent), #0f766e);
  border-color: rgba(20, 184, 166, 0.36) !important;
}

.copied {
  border-color: rgba(20, 184, 166, 0.3) !important;
  color: var(--accent) !important;
}

.support-file-list-title {
  font-weight: 800;
}

.support-file-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

#chatUploadInfo.has-files {
  color: var(--accent) !important;
}

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

/*
   PROMPT24-WEB-UI-SYSTEM
   Tokens alignment for design system validation
*/
:root {
  --ui-canvas: var(--bg);
  --ui-surface: var(--bg-surface);
  --ui-surface-raised: var(--bg-raised);
  --ui-border: var(--border);
  --ui-accent: var(--accent);
  --ui-text: var(--text);
  --ui-muted: var(--text-muted);
}
.ui-page-header {}
.ui-card {}
.ui-table {}
.ui-empty-state {}
@media (prefers-reduced-motion: reduce) {}
