/* ==========================================================================
   TILEHURST DIGITAL — CLIENT PROJECT PORTAL STYLESHEET
   Executive Dark Theme • Glassmorphism • Responsive Layout
   ========================================================================== */

:root {
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Palette */
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.55);

  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.45);
  --cyan: #38bdf8;
  --cyan-subtle: rgba(56, 189, 248, 0.12);
  --emerald: #10b981;
  --emerald-subtle: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.14);
  --rose: #f43f5e;
  --purple: #a855f7;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Lighting */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Base Utilities */
.hidden {
  display: none !important;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Typography */
h1, h2, h3, h4 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #7dd3fc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline-cyan {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.active {
  background: var(--cyan-subtle);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.status-pill.warning {
  background: var(--amber-subtle);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.status-pill.emerald {
  background: var(--emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 11px 14px 11px 42px;
  font-family: var(--font-base);
  font-size: 0.92rem;
  color: #fff;
  transition: all 0.2s ease;
}

.form-textarea {
  padding: 12px 14px;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.password-toggle-btn:hover {
  color: #fff;
}
.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}

.chk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* Alert Boxes */
.alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.alert-box.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.alert-box svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW 1: LOGIN CARD
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.login-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.login-badge-pill svg {
  width: 13px;
  height: 13px;
}

.login-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.support-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  font-weight: 600;
}
.support-link:hover {
  color: var(--cyan);
}
.support-link svg {
  width: 14px;
  height: 14px;
}

.support-divider {
  color: var(--text-muted);
}

/* ==========================================================================
   VIEW 2: PORTAL HEADER & NAVIGATION
   ========================================================================== */
.portal-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-header {
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  height: 40px;
  width: auto;
}

.brand-subtext {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-title-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-name-title {
  font-size: 1.15rem;
  margin: 0;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subnav Tabs */
.portal-subnav {
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid var(--border-color);
}

.portal-subnav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-base);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

.tab-btn:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* ==========================================================================
   PORTAL MAIN CONTENT
   ========================================================================== */
.portal-main {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.portal-tab-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.25s ease-out;
}

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

.portal-card {
  padding: 28px;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon-box svg {
  width: 22px;
  height: 22px;
}

.card-icon-box.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.card-icon-box.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.card-icon-box.blue {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.card-icon-box.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.card-icon-box.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Grid Layouts */
.portal-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .portal-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Hero Welcome Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(15, 23, 42, 0.8));
  border-color: rgba(56, 189, 248, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.hero-badge svg {
  width: 13px;
  height: 13px;
}

.hero-title {
  font-size: 1.85rem;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 0.94rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
}

/* Timeline & Stepper */
.timeline-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.timing-countdown-hero {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.timing-ongoing-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestones-stepper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
}
.step-dot svg {
  width: 14px;
  height: 14px;
}

.step-item.completed .step-dot {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.step-item.active .step-dot {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.step-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 2px;
}
.step-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Staging Box */
.staging-box {
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.staging-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-indicator-dot.online {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.staging-status-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
}

.staging-mode-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-left: auto;
}

.staging-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.staging-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.staging-url-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  word-break: break-all;
}

/* Specs Grid */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-item {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.spec-value {
  font-size: 0.9rem;
  color: #fff;
}
.text-emerald {
  color: #34d399 !important;
}

/* ==========================================================================
   TAB 2: BILLING STYLES
   ========================================================================== */
.billing-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .billing-hero-grid {
    grid-template-columns: 1fr;
  }
}

.billing-stat-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.bstat-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.bstat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.bstat-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.doc-downloads-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.doc-cards-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.doc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg {
  width: 18px;
  height: 18px;
}

.doc-meta {
  flex: 1;
}
.doc-meta strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.doc-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* BACS Payment Box */
.bacs-payment-box {
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
}

.bacs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 800;
}
.bacs-badge svg {
  width: 18px;
  height: 18px;
}

.bacs-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .bacs-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bacs-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.bacs-item.full {
  grid-column: 1 / -1;
}

.bacs-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.bacs-val {
  font-size: 0.95rem;
  color: #fff;
}

/* ==========================================================================
   TAB 3: REVISIONS FORM & DROPZONE
   ========================================================================== */
.revision-intro-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #a7f3d0;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.revision-intro-banner svg {
  width: 18px;
  height: 18px;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropzone-box {
  background: rgba(15, 23, 42, 0.5);
  border: 2px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone-box:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.7);
}

.dropzone-icon {
  width: 32px;
  height: 32px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.dropzone-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.file-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* ==========================================================================
   TAB 4: VAULT
   ========================================================================== */
.vault-clauses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .vault-clauses-grid {
    grid-template-columns: 1fr;
  }
}

.vault-clause-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.vclause-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.vclause-icon svg {
  width: 18px;
  height: 18px;
}

.vault-clause-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.vault-clause-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.contract-download-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.contract-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contract-banner-icon {
  width: 28px;
  height: 28px;
  color: #c084fc;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER & TOASTS
   ========================================================================== */
.portal-footer {
  border-top: 1px solid var(--border-color);
  padding: 22px 24px;
  background: rgba(11, 17, 33, 0.7);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portal-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pfooter-link {
  color: #cbd5e1;
  font-weight: 600;
}
.pfooter-link:hover {
  color: var(--cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  font-size: 0.88rem;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.toast svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}
