/* SurviveCart Theme Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --black: #1C1C1E;
    --white: #F7F7F5;
    --red: #D63031;
    --red-light: #fff0f0;
    --red-border: #ffb8b8;
    --amber: #E17055;
    --amber-light: #fff8f0;
    --amber-border: #ffd4b8;
    --grey-1: #636E72;
    --grey-2: #B2BEC3;
    --grey-3: #DFE6E9;
    --grey-4: #F0F3F4;
    --green: #00B894;
    --green-light: #f0fff8;
    --font: 'Inter', system-ui, sans-serif;
  }

  html { font-family: var(--font); background: var(--white); color: var(--black); font-size: 16px; }
  body { min-height: 100vh; }

  /* NAV */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
    border-bottom: 1.5px solid var(--black);
    background: var(--white);
    position: sticky; top: 0; z-index: 100;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--black);
    text-decoration: none;
  }
  .nav-logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
  .nav-logo-dot.pulse { animation: pulse 2s infinite; }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  .nav-right { display: flex; align-items: center; gap: 12px; }
  .btn-alert {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 1.5px solid var(--black);
    background: var(--black); color: var(--white);
    font-family: var(--font); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: opacity 0.15s;
    letter-spacing: 0.01em;
  }
  .btn-alert:hover { opacity: 0.8; }
  .btn-about {
    font-size: 13px; font-weight: 500; color: var(--grey-1);
    background: none; border: none; cursor: pointer; font-family: var(--font);
    text-decoration: none;
  }
  .btn-about:hover { color: var(--black); }

  /* ALERT BANNER */
  .alert-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 24px;
    border-bottom: 1.5px solid var(--red-border);
    background: var(--red-light);
    font-size: 13px; font-weight: 500; color: var(--red);
  }
  .alert-banner.amber {
    background: var(--amber-light);
    border-bottom-color: var(--amber-border);
    color: #8B3A00;
  }
  .live-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    padding: 2px 7px; background: var(--red); color: #fff;
    text-transform: uppercase;
  }
  .alert-icon { font-size: 16px; }

  /* COUNTRY TABS */
  .country-tabs {
    display: flex; border-bottom: 1.5px solid var(--black);
    background: var(--white); overflow-x: auto;
  }
  .ctab {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 24px;
    font-size: 14px; font-weight: 600;
    color: var(--grey-1); cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap; flex-shrink: 0;
    transition: color 0.15s;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font);
  }
  .ctab:hover { color: var(--black); }
  .ctab.active { color: var(--black); border-bottom-color: var(--red); }
  .ctab-flag { font-size: 18px; }

  /* MAIN LAYOUT */
  .main { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 120px); }

  /* CRISIS SIDEBAR */
  .crisis-sidebar {
    border-right: 1.5px solid var(--black);
    padding: 0;
  }
  .sidebar-label {
    padding: 16px 20px 10px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--grey-1);
    border-bottom: 1px solid var(--grey-3);
  }
  .crisis-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--grey-3);
    cursor: pointer; transition: background 0.1s;
    position: relative;
  }
  .crisis-item:hover { background: var(--grey-4); }
  .crisis-item.active { background: var(--black); }
  .crisis-item.active .ci-name { color: var(--white); }
  .crisis-item.active .ci-sub { color: var(--grey-2); }
  .crisis-item.active .ci-icon { background: rgba(255,255,255,0.1); color: var(--white); }
  .ci-icon {
    width: 36px; height: 36px; border-radius: 4px;
    background: var(--grey-4); display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
  }
  .ci-text { flex: 1; min-width: 0; }
  .ci-name { font-size: 13px; font-weight: 600; color: var(--black); }
  .ci-sub { font-size: 11px; color: var(--grey-1); margin-top: 1px; }
  .ci-live {
    font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
    padding: 2px 6px; background: var(--red); color: #fff;
    text-transform: uppercase; flex-shrink: 0;
  }

  /* PRODUCT AREA */
  .product-area { padding: 0; }
  .product-header {
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--grey-3);
    display: flex; align-items: baseline; justify-content: space-between;
  }
  .product-header h2 {
    font-size: 20px; font-weight: 800; letter-spacing: -0.4px;
  }
  .product-header p {
    font-size: 13px; color: var(--grey-1); margin-top: 3px;
  }

  .timing-note {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: var(--green);
    margin-top: 4px;
  }
  .timing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
  .product-count {
    font-size: 12px; font-weight: 500; color: var(--grey-1);
    background: var(--grey-4); padding: 4px 10px;
  }
  .product-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .pcard {
    padding: 22px 28px;
    border-bottom: 1px solid var(--grey-3);
    border-right: 1px solid var(--grey-3);
    display: flex; flex-direction: column; gap: 10px;
    transition: background 0.1s;
  }
  .pcard:hover { background: var(--grey-4); }
  .pcard:nth-child(even) { border-right: none; }
  .pcard-top { display: flex; gap: 12px; align-items: stretch; }
  .pcard-thumb {
    width: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .pcard-thumb-circle {
    width: 54px; min-height: 54px; border-radius: 27px;
    background: var(--grey-4); border: 1px solid var(--grey-3);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; line-height: 1; align-self: stretch;
  }
  .pcard-num {
    width: 28px; height: 28px; border: 1.5px solid var(--black);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
  }
  .pcard-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; color: var(--black); margin-bottom: 3px; }
  .pcard-why { font-size: 13px; color: var(--grey-1); line-height: 1.5; }

  .pcard-review {
    padding: 12px 22px 14px;
    border-top: 1px solid var(--grey-3);
    background: var(--grey-4);
  }
  .pcard-review-stars {
    color: #F5A623;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }
  .pcard-review-text {
    font-size: 12px;
    color: var(--grey-1);
    line-height: 1.55;
    font-style: italic;
  }
  .pcard-review-text::before { content: '\201C'; }
  .pcard-review-text::after  { content: '\201D'; }
  .pcard-review-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--black);
    margin-top: 5px;
    font-style: normal;
  }
  .pcard-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--grey-3);
    margin-top: auto;
  }
  .pcard-price { font-size: 14px; font-weight: 700; color: var(--black); }
  .amazon-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--amber); color: var(--white);
    font-family: var(--font); font-size: 12px; font-weight: 700;
    border: none; cursor: pointer;
    text-decoration: none; letter-spacing: 0.01em;
    transition: opacity 0.15s;
  }
  .amazon-btn:hover { opacity: 0.85; }
  .amazon-btn svg { width: 12px; height: 12px; }

  /* EMAIL SIGNUP STRIP */
  .signup-strip {
    border-top: 1.5px solid var(--black);
    padding: 24px 28px;
    background: var(--black);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .signup-text h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
  .signup-text p { font-size: 13px; color: var(--grey-2); }
  .signup-form { display: flex; gap: 0; }
  .signup-input {
    padding: 10px 16px; border: 1.5px solid var(--grey-1);
    background: transparent; color: var(--white);
    font-family: var(--font); font-size: 13px; width: 240px;
    outline: none;
  }
  .signup-input::placeholder { color: var(--grey-1); }
  .signup-input:focus { border-color: var(--white); }
  .signup-submit {
    padding: 10px 20px; background: var(--red);
    color: #fff; font-family: var(--font); font-size: 13px; font-weight: 700;
    border: 1.5px solid var(--red); cursor: pointer;
    transition: opacity 0.15s;
  }
  .signup-submit:hover { opacity: 0.85; }

  /* FOOTER */
  .footer {
    border-top: 1.5px solid var(--black);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
  }
  .footer-disc { font-size: 11px; color: var(--grey-1); }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { font-size: 11px; color: var(--grey-1); text-decoration: none; }
  .footer-links a:hover { color: var(--black); }

  /* ABOUT PANEL */
  .about-panel {
    display: none;
    padding: 40px;
    max-width: 680px;
    margin: 0 auto;
  }
  .about-panel.active { display: block; }
  .about-panel h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
  .about-panel .tagline { font-size: 16px; color: var(--grey-1); margin-bottom: 32px; }
  .about-section { margin-bottom: 28px; }
  .about-section h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
  .about-section p { font-size: 15px; color: #3d3d3d; line-height: 1.7; margin-bottom: 10px; }
  .about-section ul { padding-left: 20px; }
  .about-section li { font-size: 15px; color: #3d3d3d; line-height: 1.7; margin-bottom: 5px; }
  .about-disc { background: var(--grey-4); border-left: 3px solid var(--red); padding: 14px 18px; font-size: 13px; color: var(--grey-1); line-height: 1.6; margin-top: 24px; }

  /* TERMS PANEL */
  .terms-panel {
    display: none;
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
  }
  .terms-panel.active { display: block; }
  .terms-panel h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
  .terms-panel .terms-sub { font-size: 13px; color: var(--grey-1); margin-bottom: 32px; }
  .terms-warning { background: var(--red-light); border-left: 3px solid var(--red); padding: 14px 18px; font-size: 13px; color: #7a0000; line-height: 1.6; margin-bottom: 28px; font-weight: 500; }
  .terms-section { margin-bottom: 28px; }
  .terms-section h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; border-bottom: 1px solid var(--grey-3); padding-bottom: 6px; }
  .terms-section p { font-size: 14px; color: #3d3d3d; line-height: 1.75; margin-bottom: 10px; }
  .terms-section ul { padding-left: 20px; }
  .terms-section li { font-size: 14px; color: #3d3d3d; line-height: 1.75; margin-bottom: 6px; }
  .terms-disc { background: var(--grey-4); border-left: 3px solid var(--red); padding: 14px 18px; font-size: 13px; color: var(--grey-1); line-height: 1.6; margin-top: 24px; }

  /* MODAL */
  .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(28,28,30,0.7); z-index: 200;
    align-items: center; justify-content: center;
  }
  .modal-overlay.active { display: flex; }
  .modal {
    background: var(--white); border: 1.5px solid var(--black);
    padding: 32px; width: 420px; max-width: calc(100vw - 32px);
  }
  .modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
  .modal p { font-size: 14px; color: var(--grey-1); margin-bottom: 20px; line-height: 1.5; }
  .modal-form { display: flex; flex-direction: column; gap: 10px; }
  .modal-country-row { display: flex; gap: 8px; }
  .modal-country-btn {
    flex: 1; padding: 10px 8px;
    border: 1.5px solid var(--grey-3);
    background: var(--white); font-family: var(--font);
    font-size: 13px; font-weight: 500; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    transition: border-color 0.1s;
  }
  .modal-country-btn:hover { border-color: var(--black); }
  .modal-country-btn.active { border-color: var(--black); background: var(--black); color: var(--white); }
  .modal-country-btn .flag { font-size: 20px; }
  .modal-input {
    padding: 12px 14px; border: 1.5px solid var(--black);
    font-family: var(--font); font-size: 14px; color: var(--black); outline: none;
    background: var(--white);
  }
  .modal-input:focus { border-color: var(--red); }
  .modal-submit {
    padding: 13px; background: var(--red); color: #fff;
    font-family: var(--font); font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; transition: opacity 0.15s;
    letter-spacing: 0.01em;
  }
  .modal-submit:hover { opacity: 0.85; }
  .modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: var(--grey-1); font-family: var(--font);
  }
  .modal-wrapper { position: relative; }
  .modal-success { display: none; text-align: center; padding: 16px 0; }
  .modal-success h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
  .modal-success p { font-size: 14px; color: var(--grey-1); }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .main { grid-template-columns: 1fr; }
    .crisis-sidebar { border-right: none; border-bottom: 1.5px solid var(--black); }
    .crisis-sidebar-inner { display: flex; overflow-x: auto; padding: 8px 12px; gap: 8px; border-bottom: none; }
    .sidebar-label { display: none; }
    .crisis-item {
      flex-direction: column; align-items: center; text-align: center;
      border: 1.5px solid var(--grey-3); border-bottom: 1.5px solid var(--grey-3);
      min-width: 70px; padding: 6px 8px; gap: 3px; flex-shrink: 0;
    }
    .crisis-item:hover { background: var(--grey-4); }
    .crisis-item.active { background: var(--black); border-color: var(--black); }
    .ci-sub { display: none; }
    .ci-live { font-size: 8px; }
    .crisis-item .ci-icon { width: 28px; height: 28px; font-size: 14px; }
    .crisis-item .ci-name { font-size: 11px; }
    .product-grid { grid-template-columns: 1fr; }
    .pcard { border-right: none; }
    .pcard:nth-child(even) { border-right: none; }
    .signup-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
    .signup-form { width: 100%; }
    .signup-input { flex: 1; width: auto; }
    .nav-logo span { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-logo-dot { animation: none; }
  }