/**
 * as-musik Partner & Artist Portal Stylesheet
 * Branded in the clean, minimalist Bavarian aesthetic of hochzeitsgesang-bayern.de
 * WCAG 2.1 AA Compliant, Responsive, Editorial Luxury Design
 */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-subtle: #fbfbfd;
  --text-main: #202124;
  --text-muted: #595d62;
  --text-light: #70757a;
  --border-color: #dfe1e5;
  --border-focus: #c5a059;
  --accent-gold: #c5a059;
  --accent-gold-dark: #8c6819;
  --accent-gold-light: #fefbf4;
  --accent-gold-glow: rgba(197, 160, 89, 0.2);
  --success-color: #137333;
  --success-bg: #e6f4ea;
  --blue-color: #1a73e8;
  --blue-bg: #e8f0fe;
  --shadow-sm: 0 1px 2px rgba(32, 33, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(32, 33, 36, 0.08);
  --shadow-lg: 0 8px 24px rgba(32, 33, 36, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

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

body.portal-body {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.portal-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef8eb 0%, #faecd0 100%);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-dark);
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.2);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 600;
}

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

.partner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--success-bg);
  color: var(--success-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.partner-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success-color);
  display: inline-block;
}

.btn-header-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-header-link:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  border-color: #d93025;
  color: #d93025;
  background-color: #fdf7f7;
}

/* Container */
.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  width: 100%;
  flex: 1;
}

/* Hero / Welcome Banner */
.portal-welcome {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(circle at top right, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
}

.welcome-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.welcome-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
}

.territory-pill-main {
  background: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-dark);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

/* Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

/* Dashboard Card with Bespoke Tactile Physics & Editorial Luxury Styling */
.portal-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 1px solid rgba(223, 225, 229, 0.85);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 6px rgba(32, 33, 36, 0.04), 0 1px 2px rgba(197, 160, 89, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(197, 160, 89, 0.16), 0 4px 10px rgba(0, 0, 0, 0.03);
  border-color: rgba(197, 160, 89, 0.4);
}

.portal-card:hover::before {
  opacity: 1;
}

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

.card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 700;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-action-link {
  font-size: 12px;
  color: var(--accent-gold-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-action-link:hover {
  color: #5c4107;
  transform: translateX(2px);
}

/* KPI Metric Tiles with Warm Linen Materiality & Ambient Golden Glow (3-Column Focused Layout) */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 840px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

.metric-tile {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid rgba(223, 225, 229, 0.9);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 2px 4px rgba(32, 33, 36, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  cursor: default;
}

.metric-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.8), rgba(197, 160, 89, 0.2));
  opacity: 0.4;
  transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.metric-tile:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 16px 30px -8px rgba(197, 160, 89, 0.22), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(197, 160, 89, 0.5);
}

.metric-tile:hover::before {
  opacity: 1;
  left: 0;
  right: 0;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.metric-badge-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trend-up {
  background-color: var(--success-bg);
  color: var(--success-color);
  box-shadow: 0 1px 3px rgba(19, 115, 51, 0.12);
}

.trend-blue {
  background-color: var(--blue-bg);
  color: var(--blue-color);
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.12);
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  line-height: 1.15;
}

.metric-footnote {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Universal Info Tooltip for Non-Tech Users */
.info-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.info-tooltip-trigger:hover,
.info-tooltip-trigger:focus {
  background: #c5a059;
  color: #ffffff;
  outline: none;
}

.info-tooltip-trigger .tooltip-popup {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #202124;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  width: 250px;
  max-width: 85vw;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1000;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.info-tooltip-trigger .tooltip-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #202124 transparent transparent transparent;
}

.info-tooltip-trigger:hover .tooltip-popup,
.info-tooltip-trigger:focus .tooltip-popup {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.partner-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-color);
  display: inline-block;
  position: relative;
}

.partner-status-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--success-color);
  opacity: 0.8;
  animation: liveRadar 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes liveRadar {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Floating Chart Hover Tooltip - Frosted Dark Glass */
.chart-tooltip-box {
  position: absolute;
  pointer-events: none;
  background: rgba(26, 28, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28), 0 0 12px rgba(197, 160, 89, 0.2);
  z-index: 500;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: none;
  transform: translateY(-4px);
}

.chart-tooltip-box.visible {
  display: block;
  transform: translateY(0);
}

/* Plain-German Musician Explainer Cards */
.musician-explainer-card {
  background: #fbfbfd;
  border: 1px solid #e1e4e8;
  border-left: 3.5px solid var(--accent-gold);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b5563;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.musician-explainer-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.chart-bar-hover {
  cursor: pointer;
  transition: fill 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, filter 0.2s ease;
  transform-origin: bottom;
}

.chart-bar-hover:hover {
  fill: #c5a059 !important;
  filter: drop-shadow(0 -3px 6px rgba(197, 160, 89, 0.4));
}

/* Interactive SVG Traffic Chart */
.chart-container {
  width: 100%;
  height: 220px;
  margin: 12px 0 16px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-filter-pills {
  display: flex;
  gap: 8px;
}

.chart-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.chart-filter-btn.active,
.chart-filter-btn:hover {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(32, 33, 36, 0.12);
}

.chart-filter-btn:active {
  transform: scale(0.96);
}

/* Keyword Table - Bespoke Styling */
.kw-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 8px;
}

.kw-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  text-align: left;
}

.kw-table th {
  padding: 10px 14px;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1.5px solid var(--border-color);
  background-color: var(--bg-subtle);
  letter-spacing: 0.02em;
}

.kw-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f3f4;
  color: var(--text-main);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kw-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.kw-table tbody tr:hover td {
  background-color: rgba(197, 160, 89, 0.05);
}

.kw-pos-badge {
  font-weight: 700;
  color: var(--accent-gold-dark);
  background: linear-gradient(135deg, #fef8eb 0%, #faecd0 100%);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(197, 160, 89, 0.1);
}

/* Area & ZIP Code Widget */
.plz-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  max-height: 150px;
  overflow-y: auto;
  padding: 4px 0;
}

.plz-pill {
  background-color: #f1f3f4;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.plz-pill:hover {
  transform: translateY(-1px);
  border-color: #b0b4b9;
}

.plz-pill.featured {
  background-color: var(--accent-gold-light);
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  box-shadow: 0 1px 4px var(--accent-gold-glow);
}

.test-routing-box {
  background: #fdfbf7;
  border: 1px dashed rgba(197, 160, 89, 0.6);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Sleek Collapsible Accordion / Manual Section */
.portal-accordion {
  margin-top: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-accordion[open] {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.08);
}

.portal-accordion-summary {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-accordion-summary:hover {
  background: #f8f9fa;
  color: var(--accent-gold-dark);
}

.portal-accordion-summary::-webkit-details-marker {
  display: none;
}

.portal-accordion-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accordion-chevron {
  font-size: 13px;
  color: var(--accent-gold-dark);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: bold;
}

.portal-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}

.portal-accordion-content {
  padding: 16px 18px;
  border-top: 1px solid rgba(223, 225, 229, 0.7);
  background: #ffffff;
}

.accordion-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold-dark);
  background: var(--accent-gold-light);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-test-route {
  background: linear-gradient(135deg, #dfba73 0%, #c5a059 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.25);
}

.btn-test-route:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
  background: linear-gradient(135deg, #c5a059 0%, #8c6819 100%);
}

.btn-test-route:active {
  transform: scale(0.96);
}

/* Profile Form */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.btn-primary {
  background: linear-gradient(135deg, #dfba73 0%, #c5a059 50%, #9e7d3b 100%);
  color: #ffffff;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.42);
}

.btn-primary:hover::after {
  left: 140%;
}

.btn-primary:active {
  transform: scale(0.975);
}
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  box-shadow: 0 2px 8px var(--accent-gold-glow);
}

/* Subscription ROI Box */
.roi-box {
  background: linear-gradient(135deg, #fef8eb 0%, #fffbf2 100%);
  border: 1px solid #ebd49f;
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 14px;
}

.roi-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.roi-stat-row:last-child {
  border-bottom: none;
  padding-top: 10px;
  font-weight: 700;
  color: var(--accent-gold-dark);
}

/* Legal AGB Box */
.agb-verified-card {
  background: #f8faf9;
  border: 1px solid #cce8d5;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.agb-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Login Card Specific */
.login-card-wrapper {
  max-width: 580px;
  width: 100%;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-hero-visual {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fef8eb;
  border: 2px solid var(--accent-gold);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.25);
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin: 20px 0 24px;
}

.login-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-tab-btn.active {
  color: var(--accent-gold-dark);
  border-bottom-color: var(--accent-gold);
}

.authlion-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.authlion-sso-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 12px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.or-divider span {
  padding: 0 12px;
}

/* Modal Styling */
dialog.legal-modal {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 650px;
  width: 90vw;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

dialog.legal-modal::backdrop {
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(2px);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
  max-height: 65vh;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #3c4043;
}

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

/* Raw Domain Value Package Card */
.domain-package-card {
  background: linear-gradient(135deg, #ffffff 0%, #fefcf7 100%);
  border: 1.5px solid #ebd49f;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.12);
  position: relative;
  overflow: hidden;
}

.domain-package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c5a059 0%, #dfba73 50%, #8c6819 100%);
}

.domain-package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.domain-package-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #202124;
}

.domain-package-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef8eb;
  color: #8c6819;
  border: 1px solid #ebd49f;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.domain-package-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.domain-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.domain-calc-item {
  background: #ffffff;
  border: 1px solid #ebd49f;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.domain-calc-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.domain-calc-val {
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}

.domain-calc-val.highlight-gold {
  color: #8c6819;
}

.domain-bundle-domains {
  background: #fbfbfd;
  border: 1px dashed #d5d9de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: #595d62;
  margin-bottom: 12px;
  line-height: 1.6;
}

.domain-bundle-tag {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  padding: 1px 7px;
  border-radius: 4px;
  margin: 2px 2px 2px 0;
  font-family: monospace;
  font-size: 10.5px;
  color: #202124;
}

/* Queue Status & Live Calculator */
.queue-status-box {
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  transition: all 0.2s ease;
  text-align: left;
}

.queue-status-box.instant-slot {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.queue-status-box.waitlist-slot {
  background: #fefce8;
  border: 1.5px solid #fde047;
}

.queue-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.queue-status-badge.instant {
  color: #166534;
}

.queue-status-badge.waitlist {
  color: #854d0e;
}

.queue-status-desc {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}

/* Form 2-Column Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .domain-calc-grid {
    grid-template-columns: 1fr;
  }
}

/* Success Application Voucher */
.application-voucher {
  background: #ffffff;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.2);
  text-align: center;
  margin-top: 20px;
}

.voucher-check-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fef8eb;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}


/* Responsive */
@media (max-width: 900px) {
  .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 12;
  }
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 550px) {
  .metrics-row {
    grid-template-columns: 1fr;
  }
  .portal-header {
    padding: 12px 16px;
  }
  .portal-container {
    padding: 20px 14px 40px;
  }
}
