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

:root {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #22263a;
  --border: #2e3250;
  --text: #e8eaf6;
  --text-muted: #7b82a8;
  --primary: #E2231A;
  --primary-hover: #c41e16;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

.screen { width: 100%; height: 100vh; }
.hidden { display: none !important; }

/* ── LOGIN ─────────────────────────────────── */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, #1f1025 0%, var(--bg) 70%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-subtitle { color: var(--text-muted); margin-bottom: 28px; }

.login-help {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── FORMS ─────────────────────────────────── */
.form-group { text-align: left; margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.form-group small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus { border-color: var(--primary); }
select option { background: var(--bg3); }

.error-msg {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 8px;
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: #2a3050; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-full { width: 100%; justify-content: center; padding: 11px 16px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ── APP LAYOUT ────────────────────────────── */
#app-screen {
  display: flex;
  height: 100vh;
}

/* ── SIDEBAR ───────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.account-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sidebar-nav { flex: 1; padding: 12px 8px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  text-align: left;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(226,35,26,0.15); color: var(--primary); }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: background 0.12s, color 0.12s;
}
.btn-logout:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ── MAIN CONTENT ──────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  background: var(--bg);
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.view-header h2 { font-size: 20px; font-weight: 700; }
.view-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font);
  padding: 0;
  margin-bottom: 4px;
}
.back-btn:hover { color: var(--text); }

.header-actions { display: flex; gap: 8px; }

/* ── SEARCH ────────────────────────────────── */
.search-bar-wrap { margin-bottom: 16px; }
.search-bar-inline { margin-bottom: 0; }
.search-input {
  width: 260px;
  padding: 8px 12px 8px 34px;
  background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237b82a8' width='16' height='16'%3E%3Cpath fill-rule='evenodd' d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat 10px center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--primary); }

/* ── COPY BUTTON ───────────────────────────── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--bg3); color: var(--text); }
.copy-btn.copied { color: var(--success); }

/* ── VIEW TOGGLE ───────────────────────────── */
.view-toggle {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.view-toggle-btn:hover { background: var(--bg3); color: var(--text); }
.view-toggle-btn.active { background: var(--bg3); color: var(--text); }

/* ── BUCKET GRID ───────────────────────────── */
.buckets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bucket-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
}
.bucket-card:hover { border-color: #4a5080; transform: translateY(-1px); }

.bucket-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bucket-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(226,35,26,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.bucket-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  font-size: 18px;
}
.bucket-menu-btn:hover { background: var(--bg3); color: var(--text); }

.bucket-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  word-break: break-all;
}

.bucket-id {
  color: var(--text-muted);
  font-size: 11px;
  font-family: monospace;
  margin-bottom: 6px;
}

.bucket-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 18px;
}

.size-loading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.6;
}

.size-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.bucket-endpoint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  min-width: 0;
}
.endpoint-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.endpoint-url {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.bucket-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.badge-private { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-public { background: rgba(34,197,94,0.15); color: #4ade80; }

/* ── BUCKET LIST VIEW ──────────────────────── */
.buckets-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.bucket-list-row {
  display: grid;
  grid-template-columns: 36px 1fr 90px 150px minmax(0,220px) 100px 70px 36px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg2);
  border-bottom: 1px solid rgba(46,50,80,0.5);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.bucket-list-row:last-child { border-bottom: none; }
.bucket-list-row:hover { background: var(--bg3); }

.bucket-list-header {
  display: grid;
  grid-template-columns: 36px 1fr 90px 150px minmax(0,220px) 100px 70px 36px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bucket-list-header span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bucket-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(226,35,26,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.bucket-list-name  { font-weight: 600; font-size: 13px; word-break: break-all; }
.bucket-list-id    { font-family: monospace; font-size: 11px; color: var(--text-muted); }
.bucket-list-size  { font-size: 12px; color: var(--text-muted); }
.bucket-list-files { font-size: 12px; color: var(--text-muted); }

.endpoint-url-list {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  display: block;
}

.bucket-actions {
  display: none;
  position: absolute;
  top: 48px;
  right: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 10;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.bucket-actions.open { display: block; }
.bucket-action-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  text-align: left;
}
.bucket-action-item:hover { background: var(--bg3); }
.bucket-action-item.danger { color: var(--danger); }
.bucket-action-item.danger:hover { background: rgba(239,68,68,0.1); }

/* ── FILES TABLE ───────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 4px;
}
.breadcrumb-item { cursor: pointer; }
.breadcrumb-item:hover { color: var(--text); text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

.files-table {
  width: 100%;
  border-collapse: collapse;
}
.files-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.files-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(46,50,80,0.5);
  vertical-align: middle;
}
.files-table tr:hover td { background: var(--bg2); }
.files-table tr:last-child td { border-bottom: none; }

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.file-name-cell:hover .file-name-text { text-decoration: underline; }
.file-icon { flex-shrink: 0; color: var(--text-muted); }
.file-name-text { word-break: break-all; }
.folder-row { color: #93c5fd; }

.file-size { color: var(--text-muted); white-space: nowrap; }
.file-date { color: var(--text-muted); white-space: nowrap; font-size: 12px; }

.file-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ── APP KEYS ──────────────────────────────── */
.keys-table {
  width: 100%;
  border-collapse: collapse;
}
.keys-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.keys-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(46,50,80,0.5);
  vertical-align: middle;
}
.keys-table tr:last-child td { border-bottom: none; }
.key-name { font-weight: 600; }
.key-id { font-family: monospace; font-size: 12px; color: var(--text-muted); }
.capability-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cap-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── CREATE KEY MODAL ──────────────────────── */
.modal-lg { width: 620px; }
.modal-lg .modal-body { max-height: 70vh; overflow-y: auto; }

.caps-toolbar { display: flex; gap: 6px; margin-bottom: 10px; }

.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.caps-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cap-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  padding: 2px 0;
}
.cap-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.cap-disabled { opacity: 0.35; cursor: not-allowed; }
.cap-disabled input { cursor: not-allowed; }

/* ── KEY REVEAL MODAL ──────────────────────── */
.key-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: #fbbf24;
  margin-bottom: 18px;
  line-height: 1.5;
}
.key-warning svg { flex-shrink: 0; margin-top: 1px; }

.key-reveal-grid { display: flex; flex-direction: column; gap: 10px; }

.key-reveal-row { display: flex; flex-direction: column; gap: 4px; }
.key-reveal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.key-reveal-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.key-reveal-value {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
  min-width: 0;
}
.key-reveal-value.mono { font-family: monospace; font-size: 12px; }

/* ── UPLOAD PROGRESS ───────────────────────── */
.upload-progress {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.2s;
  width: 0%;
}

/* ── MODALS ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-sm { width: 360px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }

.modal-body { padding: 20px; }
.modal-body p { color: var(--text-muted); line-height: 1.6; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ── FILE INFO ─────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
}
.info-label { color: var(--text-muted); font-size: 12px; font-weight: 500; padding-top: 2px; }
.info-value { font-size: 13px; word-break: break-all; }
.info-value.mono { font-family: monospace; font-size: 12px; }

/* ── STATES ────────────────────────────────── */
.loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 48px;
  color: var(--text-muted);
}
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; margin-top: 12px; }
.empty-state p { font-size: 13px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ─────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: slideIn 0.2s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid #60a5fa; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── BILLING ───────────────────────────────── */
.billing-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.billing-notice svg { flex-shrink: 0; margin-top: 1px; color: #60a5fa; }
.billing-notice a { color: #60a5fa; }
.billing-notice a:hover { text-decoration: underline; }

.billing-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.stat-value.highlight { color: var(--primary); }
.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.billing-section { margin-bottom: 32px; }
.billing-section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-bucket-table {
  width: 100%;
  border-collapse: collapse;
}
.billing-bucket-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.billing-bucket-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(46,50,80,0.5);
  vertical-align: middle;
  font-size: 13px;
}
.billing-bucket-table tr:last-child td { border-bottom: none; }
.billing-bucket-table tr:hover td { background: var(--bg2); }

.bar-cell { width: 180px; }
.usage-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(46,50,80,0.5);
  font-size: 13px;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { font-weight: 500; }
