   PRESCRIPTION MODAL
   ========================================================================= */
.rx-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.rx-modal-backdrop.open { opacity: 1; }
@media (min-width: 640px) { .rx-modal-backdrop { align-items: center; } }

.rx-modal { background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 24px 32px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(40px); transition: transform .3s ease; }
.rx-modal-backdrop.open .rx-modal { transform: translateY(0); }
@media (min-width: 640px) { .rx-modal { border-radius: var(--radius-xl); } }

.rx-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--bg-elevated); border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer; color: var(--text-muted); }
.rx-close:hover { background: var(--surface); color: var(--text); }

.rx-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-right: 40px; }
.rx-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-tint-teal); display: grid; place-items: center; flex-shrink: 0; }
.rx-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.rx-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-top: 2px; }

.rx-form { display: flex; flex-direction: column; gap: 14px; }
.rx-eye-section { display: flex; align-items: center; gap: 10px; }
.rx-eye-badge { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 0.82rem; font-weight: 800; color: white; flex-shrink: 0; }
.rx-eye-badge.od { background: var(--accent-od); }
.rx-eye-badge.og { background: var(--accent-og); }
.rx-eye-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }

.rx-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rx-field { display: flex; flex-direction: column; gap: 4px; }
.rx-field.full { grid-column: 1 / -1; }
.rx-field label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rx-field input, .rx-field textarea { background: var(--bg-elevated); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.95rem; font-weight: 600; color: var(--text); font-family: var(--font-body); transition: border-color .2s; }
.rx-field input:focus, .rx-field textarea:focus { outline: none; border-color: var(--grad-blue); }
.rx-field textarea { resize: vertical; min-height: 52px; }

.rx-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 12px 14px; background: var(--surface-tint-green); border-radius: 12px; border: 1px solid rgba(16, 185, 129, 0.15); }
.rx-check input { display: none; }
.rx-checkmark { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; margin-top: 1px; transition: all .2s; }
.rx-check input:checked + .rx-checkmark { background: #10B981; border-color: #10B981; }
.rx-check input:checked + .rx-checkmark::after { content: "✓"; color: white; font-size: 0.7rem; font-weight: 800; }
.rx-check-label { font-size: 0.88rem; color: var(--text-soft); line-height: 1.4; }

.rx-insurance-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface-tint-teal); border-radius: 12px; border: 1px solid rgba(45, 212, 191, 0.15); }
.rx-insurance-note span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.rx-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; margin-top: 8px; background: #25D366; color: white; font-size: 1rem; font-weight: 800; border-radius: 14px; border: none; cursor: pointer; transition: background .2s, transform .2s; }
.rx-submit:hover { background: #1FB955; transform: translateY(-1px); }

.rx-footer { text-align: center; font-size: 0.78rem; color: var(--text-faint); margin-top: 10px; line-height: 1.4; }

/* =========================================================================
   TINT CUSTOMIZATION PAGE
   ========================================================================= */
.tint-container { min-height: 100vh; }

.tint-preview { position: relative; aspect-ratio: 16/9; max-height: 400px; background: var(--bg-elevated); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tint-preview svg { max-width: 80%; max-height: 75%; }

.tint-section { margin-top: 24px; }
.tint-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }

/* Color swatches */
.tint-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.tint-swatch { width: 44px; height: 44px; border-radius: 12px; cursor: pointer; border: 3px solid transparent; transition: all .2s; position: relative; }
.tint-swatch:hover { transform: scale(1.1); }
.tint-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.tint-swatch-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* Style chips */
.tint-styles { display: flex; gap: 8px; flex-wrap: wrap; }
.tint-style-chip { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-full); cursor: pointer; transition: all .2s; }
.tint-style-chip:hover { border-color: var(--grad-blue); }
.tint-style-chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
[data-theme="dark"] .tint-style-chip.active { background: var(--grad-blue); color: white; border-color: var(--grad-blue); }
.tint-style-icon { font-size: 1.1rem; }
.tint-style-name { font-size: 0.88rem; font-weight: 700; }

/* Density slider */
.tint-density-wrap { margin-top: 8px; }
.tint-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(0,0,0,0.05), rgba(0,0,0,0.8)); outline: none; cursor: pointer; }
[data-theme="dark"] .tint-slider { background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.8)); }
.tint-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--grad-blue); box-shadow: var(--shadow-md); cursor: pointer; }
.tint-density-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; }
.tint-density-value { text-align: center; font-size: 1.5rem; font-weight: 900; font-family: var(--font-display); color: var(--text); margin-top: 4px; }

/* Tint summary */
.tint-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding: 16px; background: var(--bg-elevated); border-radius: var(--radius-md); border: 1px solid var(--border); }
.tint-summary-item { flex: 1; min-width: 80px; }
.tint-summary-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.tint-summary-value { font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* ── NAV (copied from design system for WordPress) ── */
.nav{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--border);}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:16px var(--gutter);max-width:var(--container);margin:0 auto;gap:24px;}
.nav-logo{height:36px;flex-shrink:0;}
.nav-logo svg{height:100%;width:auto;}
.nav-links{display:flex;gap:28px;list-style:none;align-items:center;}
.nav-links a{font-size:0.92rem;font-weight:500;color:var(--text-soft);padding:8px 0;position:relative;transition:color .2s;}
.nav-links a:hover{color:var(--text);}
.nav-links .current-menu-item a,.nav-links a[aria-current="page"]{color:var(--text);font-weight:700;}
.nav-links .current-menu-item a::after,.nav-links a[aria-current="page"]::after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:2px;background:var(--brand-gradient);border-radius:2px;}
.nav-actions{display:flex;align-items:center;gap:12px;}
.theme-toggle{width:40px;height:40px;border-radius:var(--radius-full);background:var(--surface);border:1px solid var(--border);display:grid;place-items:center;transition:background .2s;}
.theme-toggle:hover{background:var(--bg-elevated);}
.theme-toggle svg{width:18px;height:18px;stroke:var(--text-soft);}
.theme-toggle .icon-sun{display:none;}
[data-theme="dark"] .theme-toggle .icon-sun{display:block;}
[data-theme="dark"] .theme-toggle .icon-moon{display:none;}
.nav-burger{display:none;}
@media(max-width:900px){
  .nav-links{display:none;position:absolute;top:100%;left:0;right:0;background:var(--surface);flex-direction:column;padding:24px var(--gutter);gap:18px;align-items:flex-start;border-bottom:1px solid var(--border);box-shadow:var(--shadow-lg);}
  .nav-links.open{display:flex;}
  .nav-burger{display:grid;width:40px;height:40px;place-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-full);}
  .nav-burger svg{width:18px;height:18px;stroke:var(--text);}
  .nav-actions .btn{display:none;}
}

/* ── FOOTER ── */
.footer{background:#07101F;color:#94A3B8;padding:64px 0 32px;margin-top:80px;}
.footer-inner{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:48px;margin-bottom:48px;}
@media(max-width:800px){.footer-inner{grid-template-columns:1fr 1fr;gap:32px;}}
.footer-brand p{color:#94A3B8;margin-top:12px;font-size:0.92rem;max-width:320px;}
.footer-logo{height:48px;margin-bottom:8px;}
.footer-logo svg{height:100%;width:auto;}
.footer-col h5{font-size:0.78rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:#F1F5F9;margin-bottom:18px;}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px;}
.footer-col a{color:#94A3B8;font-size:0.92rem;transition:color .15s;}
.footer-col a:hover{color:#F1F5F9;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;border-top:1px solid rgba(241,245,249,0.08);font-size:0.82rem;flex-wrap:wrap;gap:16px;}

/* WordPress menu fix */
.nav-links li{list-style:none;}
.nav-links .sub-menu{display:none;}
