/* ============================================================
   CUSTOMER PORTAL — top nav + side tabs
   Shared chrome for customer-facing pages (not the public site).
   ============================================================ */

body.cust { background: var(--cream-50); color: var(--ink-900); }

/* Top nav (white) */
.cust-nav { background: white; border-bottom: 1px solid var(--ink-100); position: sticky; top: 0; z-index: 50; }
.cust-nav-inner { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cust-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em; color: var(--ink-900); }
.cust-brand-mark { width: 36px; height: 36px; background: var(--ember-500); border-radius: 8px; display: grid; place-items: center; }
.cust-brand-mark svg { width: 22px; height: 22px; fill: var(--ink-950); }
.cust-brand em { color: var(--ember-500); font-style: normal; }
.cust-nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-700); }
.cust-nav-links a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.cust-nav-links a:hover { color: var(--ink-900); }
.cust-nav-links a.on { color: var(--ink-900); border-bottom-color: var(--ember-500); }
.cust-nav-actions { display: flex; align-items: center; gap: 10px; }
.cust-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-50); border: 1px solid var(--ink-100); display: grid; place-items: center; cursor: pointer; position: relative; }
.cust-icon-btn svg { width: 15px; height: 15px; stroke: var(--ink-700); fill: none; stroke-width: 2; }
.cust-icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; background: var(--ember-500); border-radius: 50%; border: 2px solid var(--cream-50); }
.cust-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ember-400), var(--brass-500)); color: white; display: grid; place-items: center; font-weight: 500; font-size: 13px; cursor: pointer; }

/* Layout shell */
.cust-shell { max-width: 1440px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
/* Mobile: styles/responsive.css */

/* Side tab list */
.cust-side { background: white; border: 1px solid var(--ink-100); border-radius: 20px; padding: 14px; position: sticky; top: 90px; display: flex; flex-direction: column; }
.cust-side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--ink-100); margin-bottom: 8px; }
.cust-side-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--ember-400), var(--brass-500)); color: white; display: grid; place-items: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.cust-side-info .n { font-size: 13px; font-weight: 500; }
.cust-side-info .s { font-size: 10px; color: var(--ink-500); font-family: var(--font-mono); letter-spacing: 0.1em; margin-top: 2px; text-transform: uppercase; }
.cust-side-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.cust-side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--ink-700); transition: all var(--dur-fast); position: relative; }
.cust-side-link svg { width: 15px; height: 15px; opacity: .65; flex-shrink: 0; }
.cust-side-link:hover { background: var(--cream-50); color: var(--ink-900); }
.cust-side-link.active { background: var(--ink-950); color: white; }
.cust-side-link.active svg { opacity: 1; }
.cust-side-badge { margin-left: auto; padding: 1px 7px; background: var(--ember-500); color: white; border-radius: 999px; font-size: 10px; font-family: var(--font-mono); }
[dir="rtl"] .cust-side-badge { margin-left: 0; margin-right: auto; }
.cust-side-logout { margin-top: auto; border-top: 1px solid var(--ink-100); border-radius: 0; color: var(--ink-500); padding-top: 14px; padding-bottom: 6px; }
.cust-side-logout:hover { background: transparent; color: var(--danger); }

/* Main */
.cust-main { min-width: 0; }
.cust-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.cust-head h1 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); line-height: 1; }
.cust-head h1 em { font-style: italic; color: var(--ember-500); }
.cust-head .sub { color: var(--ink-500); font-size: 14px; margin-top: 8px; }

.cust-card { background: white; border: 1px solid var(--ink-100); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.cust-card h3 { font-family: var(--font-display); font-size: 22px; line-height: 1; margin-bottom: 16px; }
.cust-card h3 em { font-style: italic; color: var(--ember-500); }

/* Language menu reuse from admin.css */
.lang-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--ink-100); border-radius: 999px; color: var(--ink-900); font-size: 12px; cursor: pointer; background: var(--cream-50); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: white; border: 1px solid var(--ink-100); border-radius: 12px; padding: 6px; min-width: 130px; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all var(--dur-base) var(--ease-out); box-shadow: var(--shadow-md); z-index: 60; }
.lang-switch.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.lang-option:hover { background: var(--cream-50); }
