/* 527 Holdings Design System */
:root {
  --blue: #1a3673;
  --blue-light: #2a4d9c;
  --blue-dark: #0f2249;
  --red: #8b1a1a;
  --red-light: #a82828;
  --gray: #b8b8b8;
  --gray-light: #e8e8ea;
  --gray-dark: #5a5a62;
  --black: #1a1a1f;
  --white: #ffffff;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #d4d6dc;
  --success: #1a7a4c;
  --warning: #b8860b;
  --danger: #c0392b;
  --color-primary: var(--blue);
  --color-secondary: var(--blue-dark);
  --color-accent: var(--red);
  --shadow: 0 2px 8px rgba(26, 54, 115, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 54, 115, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', monospace;
  --sidebar-w: 260px;
  --header-h: 64px;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--blue-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.sidebar-brand h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-brand span {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 400;
}

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-left: 3px solid var(--red-light);
  padding-left: calc(1.25rem - 3px);
}

.nav-icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  opacity: 0.6;
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.top-bar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar h2 { font-size: 1.25rem; color: var(--blue-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue);
}

.page-content { padding: 1.5rem; max-width: 1400px; }

/* Cards & Grid */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-light);
}

.card-header h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  font-weight: 600;
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Dashboard */
.dashboard-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dashboard-hero img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.3);
}

.dashboard-hero h2 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.dashboard-hero p { opacity: 0.85; max-width: 600px; }

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.quick-link-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quick-link h4 { color: var(--blue-dark); margin-bottom: 0.25rem; }
.quick-link p { font-size: 0.8rem; color: var(--gray-dark); }

.stat-card {
  text-align: center;
  padding: 1.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-top: 0.25rem;
}

.stat-positive { color: var(--success); }
.stat-negative { color: var(--danger); }

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(42, 77, 156, 0.15);
}

input.invalid { border-color: var(--danger); }

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-dark);
  font-size: 0.85rem;
}

.input-prefix input { padding-left: 1.75rem; }

.input-suffix span {
  left: auto;
  right: 0.75rem;
}

.input-suffix input { padding-right: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }

.btn-secondary { background: var(--gray-light); color: var(--black); }
.btn-secondary:hover { background: var(--gray); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--red-light); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue-dark);
}
.btn-outline:hover { background: var(--gray-light); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Tooltip */
.tooltip-wrap { position: relative; display: inline-flex; }

.tooltip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  border: 1px solid var(--border);
}

.tooltip-wrap .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 400;
  width: max-content;
  max-width: 260px;
  z-index: 200;
  transition: opacity var(--transition);
  pointer-events: none;
  line-height: 1.4;
}

.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Tables */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

tr.highlight { background: rgba(26, 54, 115, 0.04); }

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.tab {
  padding: 0.65rem 1.1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition);
}

.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Calculator results */
.results-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-pill {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border-left: 4px solid var(--blue);
}

.result-pill.positive { border-left-color: var(--success); }
.result-pill.negative { border-left-color: var(--danger); }
.result-pill.warning { border-left-color: var(--warning); }

.result-pill .value {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result-pill .label {
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-top: 0.15rem;
}

/* Scenario list */
.scenario-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background var(--transition);
}

.scenario-item:hover { background: var(--bg); }
.scenario-item.active { border-color: var(--blue); background: rgba(26,54,115,0.04); }

/* Zillow */
.zillow-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.zillow-search-bar input { flex: 1; }

.property-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.property-card:hover { box-shadow: var(--shadow-lg); }

.property-card-body { padding: 1rem; }

.property-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin: 0.5rem 0;
}

/* Financial accounts */
.account-card {
  border-left: 4px solid var(--blue);
  padding: 1rem;
}

.account-card.credit { border-left-color: var(--red); }

.account-placeholder {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--gray-dark);
}

.financial-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.financial-intro h3 {
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.financial-intro p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  max-width: 720px;
  line-height: 1.55;
}

.financial-intro-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.financial-section {
  margin-bottom: 2rem;
}

.financial-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.financial-section-header h3 {
  color: var(--blue-dark);
  font-size: 1.1rem;
}

.account-embed-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-embed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--blue);
}

.account-embed-panel--credit { border-left-color: var(--red); }
.account-embed-panel--savings { border-left-color: var(--gray-dark); }

.account-embed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(26, 54, 115, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}

.account-embed-panel--credit .account-embed-header {
  background: linear-gradient(180deg, rgba(139, 26, 26, 0.04) 0%, transparent 100%);
}

.account-embed-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.account-embed-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.account-embed-title h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 0.15rem;
}

.account-embed-meta {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.account-embed-notes {
  font-size: 0.85rem;
  color: var(--gray-dark);
  padding: 0.75rem 1.25rem 0;
}

.account-embed-body {
  padding: 0 1.25rem 1.25rem;
}

.account-embed-status {
  font-size: 0.75rem;
  color: var(--gray-dark);
  padding: 0.5rem 0;
}

.embed-loading { color: var(--blue-light); }
.embed-active { color: var(--success); }
.embed-blocked { color: var(--warning); }

.account-embed-frame-wrap {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 420px;
  overflow: hidden;
}

.account-embed-iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
  background: var(--white);
}

.account-embed-iframe.hidden { display: none; }

.account-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--gray-light) 100%);
  padding: 2rem;
}

.account-embed-fallback.hidden { display: none; }

.account-embed-fallback-inner {
  text-align: center;
  max-width: 400px;
}

.account-embed-fallback-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.account-embed-fallback h4 {
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.account-embed-fallback p {
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.account-embed-fallback code {
  font-size: 0.75rem;
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.account-embed-fallback .btn { margin: 0.25rem; }

.add-account-card { margin-top: 1rem; }
.add-account-card.hidden { display: none; }

@media (max-width: 768px) {
  .account-embed-iframe,
  .account-embed-frame-wrap { min-height: 300px; height: 300px; }
  .account-embed-iframe { height: 300px; }
}

/* Company info */
.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.info-grid dt { font-weight: 600; color: var(--gray-dark); }
.info-grid dd { color: var(--black); }

/* Sensitivity chart bars */
.bar-chart { margin: 1rem 0; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.bar-label { width: 80px; text-align: right; color: var(--gray-dark); }

.bar-track {
  flex: 1;
  height: 22px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 400ms ease;
  min-width: 2px;
}

.bar-fill.positive { background: var(--success); }
.bar-fill.negative { background: var(--danger); }

.bar-value {
  width: 80px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 300ms ease;
  max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 1rem; color: var(--blue-dark); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* Section visibility */
.page { display: none; }
.page.active { display: block; }

/* Badge */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-blue { background: rgba(26,54,115,0.1); color: var(--blue); }
.badge-green { background: rgba(26,122,76,0.1); color: var(--success); }
.badge-red { background: rgba(139,26,26,0.1); color: var(--red); }

/* Compare table highlight */
.compare-better { background: rgba(26,122,76,0.08); font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-dark);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* Portal cards — no broken iframes */
.portal-card-list { display: flex; flex-direction: column; gap: 1.25rem; }

.portal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portal-card-accent {
  height: 4px;
  background: var(--portal-brand, var(--blue));
}

.portal-card-body { padding: 1.25rem 1.5rem; }

.portal-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.portal-card-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.portal-card-titles h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 0.15rem;
}

.portal-card-subtitle { font-size: 0.85rem; color: var(--gray-dark); }
.portal-card-meta { font-size: 0.8rem; margin-top: 0.25rem; }

.portal-card-desc {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.portal-card-lastvisit {
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.portal-card-note {
  font-size: 0.75rem;
  color: var(--gray-dark);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-light);
}

.portal-card-toolbar {
  padding: 0 1.5rem 1rem;
  margin-top: -0.5rem;
}

.portal-card--credit .portal-card-accent { background: var(--red); }

/* Admin panel */
.admin-login {
  max-width: 420px;
  margin: 2rem auto;
  text-align: center;
  padding: 2rem;
}

.admin-login-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.admin-login-desc { color: var(--gray-dark); margin-bottom: 1.25rem; font-size: 0.9rem; }
.admin-hint { font-size: 0.75rem; color: var(--gray-dark); margin-top: 1rem; }
.admin-hint code { background: var(--bg); padding: 0.1rem 0.35rem; border-radius: 3px; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-form { margin-bottom: 1.25rem; }
.admin-actions { margin-bottom: 2rem; }

.admin-logo-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.admin-logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Website integration */
.sidebar-website {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
  text-decoration: none;
}
.sidebar-website:hover { color: var(--white); text-decoration: underline; }

.sidebar-website-link {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
  text-decoration: none;
}
.sidebar-website-link:hover { color: var(--white); }

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-website {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.top-bar-website:hover { text-decoration: underline; }

.website-dashboard-card { border-left: 4px solid var(--blue); }
.website-dashboard-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.website-preview-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.website-preview-note { font-size: 0.85rem; color: var(--gray-dark); }

.website-coming-soon {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.website-coming-soon-inner { max-width: 520px; }

.website-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,0.3);
  margin: 0 auto 1.25rem;
  object-fit: cover;
}

.website-coming-soon h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.website-domain {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.website-domain a { color: rgba(255,255,255,0.9); }

.website-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.website-divider {
  height: 2px;
  width: 60px;
  background: rgba(255,255,255,0.35);
  margin: 1rem auto;
}

.website-desc {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.website-contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.website-actions { justify-content: center; margin-bottom: 1rem; }
.website-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.website-actions .btn-outline:hover { background: rgba(255,255,255,0.1); }

.website-footer-note {
  font-size: 0.75rem;
  opacity: 0.65;
}
