/* ============================================================
   AdrianGPT ContentIQ™ — Stylesheet
   Version: 2.0
   Brand: AdrianGPT Business & Technology Solutions
   Colors: Red #CC0000 | Charcoal #3D3D3D | Blue #2196d3
   Fonts: Montserrat, Open Sans, Roboto Mono
   ============================================================ */

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

  :root {
    /* AdrianGPT Brand Colors */
    --red: #CC0000;
    --red-dark: #aa0000;
    --red-light: rgba(204,0,0,0.12);
    --charcoal: #3D3D3D;
    --charcoal-light: #555555;
    --blue: #2196d3;
    --blue-light: rgba(33,150,211,0.12);
    --blue-mid: #1a7ab8;

    /* UI colors */
    --bg: #f5f6f8;
    --white: #ffffff;
    --surface: #ffffff;
    --surface2: #f0f2f5;
    --border: #e2e6ea;
    --border-dark: #d0d5dd;
    --text: #3D3D3D;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-red: 0 4px 14px rgba(204,0,0,0.25);
    --shadow-blue: 0 4px 14px rgba(33,150,211,0.25);
  }

  body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
  }

  /* ===== HEADER ===== */
  header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow);
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .logo-img {
    height: 38px;
    width: auto;
  }

  .logo-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
  }

  .product-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .product-name-top {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--charcoal);
    letter-spacing: -0.3px;
  }

  .product-name-top span {
    color: var(--red);
  }

  .product-name-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .header-badge {
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid rgba(33,150,211,0.25);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
  }

  .header-client-select {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    outline: none;
    cursor: pointer;
  }

  /* ===== LAYOUT ===== */
  .app-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 68px);
  }

  /* ===== SIDEBAR ===== */
  aside {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .nav-section {
    margin-bottom: 1.75rem;
  }

  .nav-section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
    text-decoration: none;
  }

  .nav-item:hover {
    background: var(--surface2);
    color: var(--charcoal);
  }

  .nav-item.active {
    background: var(--red-light);
    color: var(--red);
    border-color: rgba(204,0,0,0.15);
    font-weight: 600;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .nav-phase-badge {
    margin-left: auto;
    font-size: 9px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: var(--surface2);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .nav-item.active .nav-phase-badge {
    background: rgba(204,0,0,0.1);
    color: var(--red);
  }

  .nav-item.done .nav-phase-badge {
    background: rgba(33,150,211,0.1);
    color: var(--blue);
  }

  .sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .sidebar-footer-text {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
  }

  /* ===== MAIN ===== */
  main {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    background: var(--bg);
  }

  /* ===== PAGE HEADER ===== */
  .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    line-height: 1.2;
  }

  .page-title .accent {
    color: var(--red);
  }

  .page-title .accent-blue {
    color: var(--blue);
  }

  .page-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 0.3rem;
    font-weight: 400;
  }

  .phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--red);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--shadow-red);
  }

  /* ===== METRIC CARDS ===== */
  .metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
  }

  .metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
  }

  .metric-card:nth-child(2)::before { background: var(--blue); }
  .metric-card:nth-child(3)::before { background: var(--charcoal); }
  .metric-card:nth-child(4)::before { background: var(--red); }

  .metric-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 0.25rem;
  }

  .metric-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  /* ===== CARDS ===== */
  .card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    transition: box-shadow 0.2s;
  }

  .card:hover { box-shadow: var(--shadow); }

  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
  }

  .card-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.35rem;
  }

  .card-label.blue { color: var(--blue); }

  .card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
  }

  .card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  /* ===== PIPELINE ===== */
  .pipeline { display: flex; flex-direction: column; }

  .pipeline-step {
    display: flex;
    gap: 1.25rem;
    position: relative;
  }

  .pipeline-step:not(:last-child) .step-line {
    position: absolute;
    left: 18px;
    top: 38px;
    width: 2px;
    height: calc(100% - 18px);
    background: var(--border);
    z-index: 0;
  }

  .step-indicator {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--white);
    z-index: 1;
    transition: all 0.25s;
  }

  .pipeline-step.done .step-indicator {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
  }

  .pipeline-step.active .step-indicator {
    border-color: var(--red);
    color: white;
    background: var(--red);
    box-shadow: var(--shadow-red);
  }

  .step-body { flex: 1; padding-bottom: 1.75rem; }

  .step-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 0.2rem;
  }

  .step-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 0.85rem;
  }

  .step-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 12px;
    color: var(--text-light);
  }

  .pipeline-step.active .step-card {
    background: var(--red-light);
    border-color: rgba(204,0,0,0.2);
    color: var(--charcoal);
  }

  /* ===== BUTTONS ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    text-decoration: none;
  }

  .btn-red {
    background: var(--red);
    color: white;
    box-shadow: var(--shadow-red);
  }
  .btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(204,0,0,0.3); }

  .btn-blue {
    background: var(--blue);
    color: white;
    box-shadow: var(--shadow-blue);
  }
  .btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); }

  .btn-outline-red {
    background: transparent;
    border: 1.5px solid var(--red);
    color: var(--red);
  }
  .btn-outline-red:hover { background: var(--red-light); }

  .btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-dark);
    color: var(--text-light);
  }
  .btn-outline:hover { border-color: var(--blue); color: var(--blue); }

  .btn-ghost {
    background: var(--surface2);
    color: var(--charcoal);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { background: var(--border); }

  /* ===== FORM ELEMENTS ===== */
  .form-group { margin-bottom: 1.1rem; }

  label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.4rem;
  }

  input[type="text"],
  input[type="url"],
  input[type="number"],
  input[type="email"],
  textarea,
  select {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s;
    resize: vertical;
  }

  input:focus, textarea:focus, select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(33,150,211,0.1);
  }

  select option { background: white; }

  input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: var(--surface2);
    border-radius: 3px;
    outline: none;
    border: none;
    padding: 0;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    background: var(--red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-red);
  }

  /* ===== UPLOAD ZONE ===== */
  .upload-zone {
    border: 2px dashed var(--border-dark);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s;
    color: var(--text-muted);
  }
  .upload-zone:hover {
    border-color: var(--red);
    background: var(--red-light);
    color: var(--red);
  }
  .upload-icon { font-size: 28px; margin-bottom: 0.6rem; display: block; }
  .upload-text { font-size: 12px; line-height: 1.6; }

  /* ===== FILE LIST ===== */
  .file-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.85rem; }
  .file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 12px;
  }
  .file-icon { font-size: 16px; flex-shrink: 0; }
  .file-name { color: var(--charcoal); flex: 1; font-weight: 500; }
  .file-size { color: var(--text-muted); font-size: 11px; }
  .file-status { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; font-family: 'Montserrat', sans-serif; }
  .status-ready { background: var(--blue-light); color: var(--blue); }
  .status-processing { background: var(--red-light); color: var(--red); }

  /* ===== OUTPUT BOX ===== */
  .output-box {
    background: #1e1e2e;
    border: 1px solid #2d2d3d;
    border-radius: 10px;
    padding: 1.25rem;
    font-size: 12px;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.7;
    color: #e2e8f0;
    min-height: 120px;
    white-space: pre-wrap;
    position: relative;
  }
  .output-box .output-label {
    position: absolute;
    top: -10px; left: 12px;
    background: #1e1e2e;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
  }
  .output-box .empty-msg {
    color: #4a5568;
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
  }

  /* ===== TABS ===== */
  .tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
  }
  .tab {
    padding: 0.7rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.18s;
    letter-spacing: 0.3px;
  }
  .tab.active { color: var(--red); border-bottom-color: var(--red); }
  .tab:hover:not(.active) { color: var(--charcoal); }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ===== INSIGHTS ROW ===== */
  .insight-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .insight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
  }
  .insight-icon { font-size: 20px; margin-bottom: 0.5rem; }
  .insight-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }
  .insight-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.3;
  }

  /* ===== CONTENT CARDS ===== */
  .content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
  }
  .content-card:nth-child(even) { border-left-color: var(--blue); }
  .content-card-type {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
  }
  .content-card:nth-child(even) .content-card-type { color: var(--blue); }
  .content-card-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 0.85rem;
  }
  .content-card-actions { display: flex; gap: 0.5rem; }

  /* ===== VOICE TAGS ===== */
  .voice-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
  .voice-tag {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.18s;
  }
  .voice-tag.selected {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue-mid);
    font-weight: 600;
  }
  .voice-tag:hover { border-color: var(--blue); }

  /* ===== CALENDAR ===== */
  .cal-grid-container {
    overflow-x: auto;
  }
  .cal-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
  }
  .cal-day-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    padding: 0.4rem;
  }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .cal-day {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    min-height: 72px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.18s;
  }
  .cal-day:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
  .cal-day.has-content { border-color: rgba(204,0,0,0.2); background: #fff8f8; }
  .cal-day-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
  }
  .cal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin: 1px; }
  .dot-reel { background: var(--red); }
  .dot-carousel { background: var(--blue); }
  .dot-static { background: var(--charcoal); }
  .cal-type-label { font-size: 8px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

  /* ===== SEPARATOR ===== */
  .sep { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

  /* ===== LOADING ===== */
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
  @keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

  .loading-spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
  }
  .ai-typing { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; }
  .ai-typing span {
    width: 5px; height: 5px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 0.9s ease-in-out infinite;
  }
  .ai-typing span:nth-child(2) { animation-delay: 0.2s; }
  .ai-typing span:nth-child(3) { animation-delay: 0.4s; }

  .progress-wrap { background: var(--surface2); border-radius: 4px; height: 5px; overflow: hidden; }
  .progress-bar { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: 4px; transition: width 0.5s ease; }

  .fade-up { animation: fadeUp 0.35s ease forwards; }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar { width: 5px; }
  ::-webkit-scrollbar-track { background: var(--surface2); }
  ::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }

  /* ===== MODAL ===== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,61,61,0.55);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.28s ease;
    border-top: 4px solid var(--red);
  }
  .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .modal-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1;
  }
  .modal-close:hover { color: var(--red); }

  /* ===== DIVIDER LABEL ===== */
  .section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
  }
  .section-divider-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .section-divider-line { flex: 1; height: 1px; background: var(--border); }

  /* ===== HAMBURGER + MOBILE DRAWER ===== */
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 4px;
  }
  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 150;
  }
  body.sidebar-open .sidebar-overlay { display: block; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    header { padding: 0 1rem; }
    .hamburger { display: flex; }
    .logo-divider,
    .product-name-sub,
    .header-badge { display: none; }
    .logo-img { height: 30px; }
    .product-name-top { font-size: 14px; }
    .header-client-select { font-size: 11px; padding: 5px 8px; max-width: 140px; }

    .app-layout { grid-template-columns: 1fr; }

    aside {
      position: fixed;
      top: 68px;
      left: 0;
      width: 260px;
      max-width: 80vw;
      height: calc(100vh - 68px);
      z-index: 160;
      transform: translateX(-100%);
      transition: transform 0.25s ease;
      box-shadow: 4px 0 16px rgba(0,0,0,0.12);
    }
    body.sidebar-open aside { transform: translateX(0); }

    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .insight-row { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 500px) {
    .metrics-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .insight-row { grid-template-columns: 1fr; }
    main { padding: 1rem !important; }
  }

  /* ===== SOCIAL PLATFORMS ===== */
  .platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .platform-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.18s;
  }
  .platform-field:focus-within { border-color: var(--blue); }
  .platform-field.ig:focus-within { border-color: #E1306C; }
  .platform-field.tt:focus-within { border-color: #000000; }
  .platform-field.yt:focus-within { border-color: #FF0000; }
  .platform-field.li:focus-within { border-color: #0077B5; }
  .platform-field.fb:focus-within { border-color: #1877F2; }
  .platform-field.tw:focus-within { border-color: #1DA1F2; }
  .platform-icon { font-size: 18px; flex-shrink: 0; }
  .platform-input {
    flex: 1;
    background: transparent;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text) !important;
    width: 100%;
  }
  .platform-label {
    font-size: 9px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
  }
  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 11px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
  }
  .social-link:hover { text-decoration: underline; }
  .client-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.18s;
  }
  .client-profile-card:hover { box-shadow: var(--shadow); }
  .client-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
  }
  .client-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
  }
  .client-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .client-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
  }
  .client-social-pill:hover { border-color: var(--blue); color: var(--blue); }
