/* ==========================================================================
   Skotersverige member portal
   --------------------------------------------------------------------------
   Ported from the portal design. Deliberately a standalone stylesheet rather
   than a SCSS partial: nothing in the csproj or in Jenkins runs gulp, so any
   change under wwwroot/sass would need main.min.css regenerated and committed
   by hand or it silently would not deploy. This file is linked directly by
   _PortalLayout / _PortalAuthLayout and by nothing else, so it cannot regress
   the main site theme.

   Rules for the sections that have no backing data (ride logs, gear,
   insurance, maintenance, notifications, upload modal) were dropped from the
   port along with the markup.
   ========================================================================== */

/* .portal-root is the body element itself, so it needs its own reset — the
   descendant selector below does not match it, and the UA's default body margin
   would otherwise put a 16px scrollbar on the 100vh login screen. */
.portal-root,
.portal-root *,
.portal-root *::before,
.portal-root *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue: #1565C0;
    --blue-dark: #0D47A1;
    --blue-light: #E3F2FD;
    --bg: #F2F2F7;
    --surface: #ffffff;
    --text: #1C1C1E;
    --muted: #8E8E93;
    --sep: rgba(0, 0, 0, 0.08);
    --green: #4ADE80;
    --green-text: #16A34A;
    --orange: #F97316;
    --red: #EF4444;
    --gold: #D4A017;
    --gold-light: #FFF8E1;
    --gold-dark: #8B6914;
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 20px;
}

.portal-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.portal-root a { text-decoration: none; color: inherit; }
.portal-root img { max-width: 100%; }

/* ── LOGIN ────────────────────────────────────────────────────────────── */
#login-page { min-height: 100vh; display: flex; align-items: stretch; }

/* Language picker floated over the sign-in screen. Fixed rather than absolute so it does not
   depend on a positioned ancestor, which the full-bleed 100vh layout does not provide. */
.login-lang { position: fixed; top: 16px; right: 16px; z-index: 20; }
/* Over the dark mobile hero the chevron needs to lift off the photo. */
@media (max-width: 767px) {
    .login-lang .portal-lang__chevron { filter: brightness(0) invert(1); }
}

.login-left { flex: 1; position: relative; overflow: hidden; display: none; }
@media (min-width: 768px) { .login-left { display: block; } }
.login-left img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.login-left-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom right, rgba(13,71,161,0.82), rgba(0,0,0,0.55)); }
.login-left-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; }
.login-left-logo { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.6); overflow: hidden; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; }
.login-left-logo img { width: 100%; height: 100%; object-fit: cover; /*padding: 12px;*/ }
.login-left-title { font-size: 36px; font-weight: 900; color: #fff; text-align: center; letter-spacing: -0.5px; }
.login-left-sub { font-size: 16px; color: rgba(255,255,255,0.72); font-weight: 500; text-align: center; }
.login-left-tagline { margin-top: 24px; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.28); border-radius: var(--radius-md); padding: 16px 20px; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; line-height: 1.6; text-align: center; backdrop-filter: blur(6px); max-width: 340px; }

.login-right { width: 100%; max-width: 480px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; flex-shrink: 0; }
@media (max-width: 767px) { .login-right { max-width: 100%; padding: 32px 20px; } }

.login-mobile-hero { display: none; position: relative; height: 240px; overflow: hidden; margin: -32px -20px 32px; }
@media (max-width: 767px) { .login-mobile-hero { display: block; } }
.login-mobile-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.login-mobile-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.65)); }
.login-mobile-hero-text { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; }
.login-mobile-logo { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.15); }
.login-mobile-logo img { width: 100%; height: 100%; object-fit: cover; /*padding: 6px;*/ }
.login-mobile-brand-name { font-size: 20px; font-weight: 900; color: #fff; }
.login-mobile-brand-sub { font-size: 12px; color: rgba(255,255,255,0.72); font-weight: 500; }

.login-form-title { font-size: 26px; font-weight: 900; letter-spacing: -0.4px; margin-bottom: 4px; }
.login-form-sub { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 28px; }

.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.9px; }
.input-field { background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; font-weight: 500; color: var(--text); font-family: inherit; outline: none; width: 100%; }
.input-field:focus { border-color: var(--blue); background: #fff; }
.input-field.has-error { border-color: var(--red); background: #FEF2F2; }

/* Error treatment; the design has no failure state for the login form. */
.login-error { background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.login-error-icon { flex-shrink: 0; font-size: 16px; line-height: 1.2; }
.login-error-text { font-size: 13px; font-weight: 600; color: #991B1B; line-height: 1.4; }

.login-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }

.btn-primary { background: var(--blue); color: #fff; border: none; border-radius: var(--radius-md); padding: 15px; font-size: 15px; font-weight: 700; width: 100%; cursor: pointer; font-family: inherit; box-shadow: 0 4px 16px rgba(21,101,192,0.35); margin-top: 8px; margin-bottom: 20px; }
.btn-primary:hover { background: var(--blue-dark); }

/* Separates the member form from Google sign-in. The rules come from ::before/::after so the
   label needs no background to sit over. */
.login-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.login-divider::before,
.login-divider::after { content: ""; flex: 1; height: 1px; background: var(--sep); }

/* Google renders its button into an iframe of a fixed pixel width, so this centres it rather
   than trying to stretch it. min-height reserves the space the button will occupy, so the panel
   below does not jump once the GIS library loads. */
.login-google { display: flex; justify-content: center; min-height: 44px; margin-bottom: 20px; }

/* Club / stakeholder route into BackOffice. Bordered rather than filled on purpose — the
   member submit button must stay the unambiguous primary action on this page. */
.login-org { border-top: 1px solid var(--sep); padding-top: 20px; margin-bottom: 20px; }
.login-org__heading { font-size: 14px; font-weight: 800; color: var(--text); }
.login-org__intro { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.login-org__actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 359px) { .login-org__actions { flex-direction: column; } }

.btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--surface);
    color: var(--blue);
    border: 1.5px solid var(--sep);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.btn-secondary:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); }

.login-footer-text { text-align: center; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.7; }
.login-footer-text a { color: var(--blue); font-weight: 600; }

/* ── PORTAL SHELL ─────────────────────────────────────────────────────── */
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--sep); display: flex; align-items: center; gap: 12px; padding: 0 16px; position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
.topbar-hamburger { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text); padding: 4px; }
@media (max-width: 1023px) { .topbar-hamburger { display: flex; } }
.topbar-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-logo-img { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.topbar-logo-img img { width: 100%; height: 100%; object-fit: contain; padding: 1px; }
/* Stacked explicitly: the portal layout does not load Bootstrap, so a utility class
   like d-block would do nothing and these would run together on one line. */
.topbar-logo-name { display: block; font-size: 16px; font-weight: 800; }
.topbar-logo-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
/* On phones the flag picker and avatar take priority; the wordmark truncates rather
   than pushing the bar into overflow. */
@media (max-width: 479px) {
    .topbar-logo { flex-shrink: 1; min-width: 0; }
    .topbar-logo-sub { display: none; }
    .topbar-logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.topbar-divider { width: 1px; height: 28px; background: var(--sep); flex-shrink: 0; }
@media (max-width: 767px) { .topbar-divider { display: none; } }
.topbar-breadcrumb { font-size: 14px; font-weight: 600; color: var(--muted); flex: 1; }
@media (max-width: 767px) { .topbar-breadcrumb { display: none; } }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Flag language picker, matching the one in the main site header. Rebuilt with plain
   CSS/JS rather than reusing _SelectLanguage, which depends on jQuery + bootstrap-select;
   the portal layout loads neither. The flag PNGs are already circular. */
.portal-lang { position: relative; flex-shrink: 0; }
.portal-lang__toggle { display: flex; align-items: center; gap: 4px; background: none; border: none; padding: 2px; cursor: pointer; border-radius: 999px; }
.portal-lang__toggle:hover { opacity: 0.85; }
.portal-lang__chevron { width: 10.5px; height: 5.8px; display: inline-block; background-image: url(../svg/chevrons-up.svg); background-size: cover; transform: rotateZ(180deg); transition: transform 0.15s; }
.portal-lang.open .portal-lang__chevron { transform: rotateZ(0deg); }

.portal-lang__menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.16); padding: 6px; z-index: 260; }
.portal-lang.open .portal-lang__menu { display: block; }
.portal-lang__item { display: block; background: none; border: none; padding: 4px; cursor: pointer; border-radius: 999px; }
.portal-lang__item:hover { opacity: 0.7; }
/* The active language is the trigger, so it is left out of the list. */
.portal-lang__item.active { display: none; }

.portal-flag { width: 28px; height: 28px; display: inline-block; background-size: cover; background-position: center center; background-repeat: no-repeat; }
.portal-flag.swedish { background-image: url(../img/sweden-flag.png); }
.portal-flag.gb { background-image: url(../img/gb-flag.png); }
.portal-flag.de { background-image: url(../img/de-flag.png); }
.portal-flag.no { background-image: url(../img/no-flag.png); }

.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.topbar-user-name { font-size: 14px; font-weight: 700; }
@media (max-width: 479px) { .topbar-user-name { display: none; } }
.topbar-logout-form { margin: 0; display: inline-flex; }
.topbar-logout { background: none; border: 1.5px solid var(--sep); border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; }
.topbar-logout:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 479px) { .topbar-logout-form { display: none; } }

/* ── LAYOUT ───────────────────────────────────────────────────────────── */
.portal-layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--sep); position: fixed; top: var(--topbar-h); bottom: 0; left: 0; overflow-y: auto; z-index: 150; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
@media (max-width: 1023px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.12); }
}
.sidebar-section-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 20px 16px 6px; }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; border: none; background: none; font-family: inherit; width: 100%; text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; }
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { color: var(--blue); background: var(--blue-light); }
.sidebar-item.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--blue); border-radius: 0 3px 3px 0; }
.sidebar-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.sidebar-badge { margin-left: auto; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); }
.sidebar-badge.gold { background: linear-gradient(135deg, #D4A017, #F5C842); color: #1a0e00; }
.sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid var(--sep); }
.sidebar-membership-pill { background: var(--blue-light); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-membership-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,0.8); flex-shrink: 0; }
.sidebar-membership-name { display: block; font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.sidebar-membership-sub { display: block; font-size: 11px; color: var(--blue); font-weight: 500; }
.sidebar-premium-pill { background: var(--gold-light); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(212,160,23,0.30); }
.sidebar-premium-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(212,160,23,0.8); flex-shrink: 0; }
.sidebar-premium-name { display: block; font-size: 12px; font-weight: 700; color: var(--gold-dark); }
.sidebar-premium-sub { display: block; font-size: 11px; color: var(--gold); font-weight: 600; }

.sidebar-item.premium-item { color: var(--gold-dark); }
.sidebar-item.premium-item:hover { background: var(--gold-light); color: #5a4000; }
.sidebar-item.premium-item.active { color: var(--gold-dark); background: var(--gold-light); }
.sidebar-item.premium-item.active::before { background: var(--gold); }

.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); }
.sidebar-overlay.open { display: block; }
.main-content { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
@media (max-width: 1023px) { .main-content { margin-left: 0; } }

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
.section-hero { position: relative; height: 220px; overflow: hidden; }
@media (min-width: 1024px) { .section-hero { height: 280px; } }
.section-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.section-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.70) 100%); }
.premium-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,20,50,0.15) 0%, rgba(10,20,50,0.85) 100%); }
.section-hero-text { position: absolute; bottom: 20px; left: 24px; right: 24px; color: #fff; }
.section-hero-eyebrow { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72); }
.section-hero-title { font-size: 28px; font-weight: 900; letter-spacing: -0.4px; }
@media (min-width: 1024px) { .section-hero-title { font-size: 36px; } }
.section-hero-sub { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72); margin-top: 3px; }
.section-body { padding: 20px 20px 48px; max-width: 1100px; }
@media (min-width: 1024px) { .section-body { padding: 28px 32px 64px; } }
.section-stack { display: flex; flex-direction: column; gap: 20px; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .content-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .content-grid { grid-template-columns: 1fr 1fr 1fr; } }
.content-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .content-grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── SHARED COMPONENTS ────────────────────────────────────────────────── */
.section-label { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; margin-bottom: 12px; }
.detail-list { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.detail-row { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--sep); }
.detail-row:last-child { border-bottom: none; }
.detail-icon { font-size: 18px; width: 30px; flex-shrink: 0; }
.detail-label { font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; }
.detail-value { font-size: 14px; font-weight: 700; color: var(--text); }
.detail-value.blue { color: var(--blue); }
.detail-value.green { color: var(--green-text); }

.info-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.info-pill { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; flex: 1; min-width: 80px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.info-pill-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.info-pill-value { font-size: 16px; font-weight: 800; color: var(--text); }
.info-pill-value.green { color: var(--green-text); }
.premium-info-pill { background: var(--gold-light); border: 1px solid rgba(212,160,23,0.25); }
.premium-info-pill .info-pill-label { color: var(--gold-dark); }
.premium-info-pill .info-pill-value { color: #1a0e00; }

.stat-card { background: var(--surface); border-radius: var(--radius-md); padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.stat-icon { font-size: 26px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.7px; margin-top: 3px; }

.btn-action { background: var(--blue); color: #fff; border: none; border-radius: var(--radius-md); padding: 14px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(21,101,192,0.32); }
.btn-action:hover { background: var(--blue-dark); color: #fff; }

.alert-card { border-radius: var(--radius-md); padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px; }
.alert-card.orange { background: #FFF7ED; border: 1.5px solid #FED7AA; }
.alert-card.red { background: #FEF2F2; border: 1.5px solid #FECACA; }
.alert-card.blue { background: #EFF6FF; border: 1.5px solid #BFDBFE; }
.alert-card.green { background: #F0FDF4; border: 1.5px solid #BBF7D0; }
.alert-card.gold { background: var(--gold-light); border: 1.5px solid rgba(212,160,23,0.35); }
.alert-icon { font-size: 24px; flex-shrink: 0; }
.alert-title { font-size: 14px; font-weight: 700; }
.alert-sub { font-size: 12px; font-weight: 500; margin-top: 3px; }
.alert-card.orange .alert-title { color: #92400E; }
.alert-card.red .alert-title { color: #991B1B; }
.alert-card.blue .alert-title { color: #1E40AF; }
.alert-card.green .alert-title { color: #166534; }
.alert-card.gold .alert-title { color: var(--gold-dark); }
.alert-card.orange .alert-sub { color: #B45309; }
.alert-card.red .alert-sub { color: #DC2626; }
.alert-card.blue .alert-sub { color: #3B82F6; }
.alert-card.green .alert-sub { color: #16A34A; }
.alert-card.gold .alert-sub { color: var(--gold); }

/* Empty states */
.empty-state { background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 32px 24px; text-align: center; }
.empty-state-icon { font-size: 34px; margin-bottom: 10px; }
.empty-state-title { font-size: 16px; font-weight: 800; color: var(--text); }
.empty-state-text { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.empty-state .btn-action { margin-top: 16px; }

/* ── DASHBOARD ────────────────────────────────────────────────────────── */
.dash-status-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 6px 24px rgba(0,0,0,0.16); }
.dash-status-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.dash-status-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,71,161,0.90), rgba(10,56,128,0.72), rgba(0,0,0,0.52)); }
.dash-status-inner { position: relative; z-index: 2; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.dash-status-logo { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.55); overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.15); }
.dash-status-logo img { width: 100%; height: 100%; object-fit: cover; }
.dash-status-club { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.70); }
.dash-status-name { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.dash-status-validity { font-size: 12px; color: rgba(255,255,255,0.62); font-weight: 500; margin-top: 2px; }
.dash-status-badge { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.42); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); backdrop-filter: blur(4px); flex-shrink: 0; }

.dash-premium-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 6px 24px rgba(0,0,0,0.22); }
.dash-premium-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0a1432, #1a2a5e, #0d1a3a); }
.dash-premium-inner { position: relative; z-index: 2; padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.dash-premium-logo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(212,160,23,0.65); overflow: hidden; flex-shrink: 0; background: rgba(212,160,23,0.12); }
.dash-premium-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dash-premium-label { font-size: 11px; font-weight: 600; color: rgba(212,160,23,0.75); }
.dash-premium-name { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.2; }
.dash-premium-validity { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 2px; }
.dash-premium-badge { background: linear-gradient(135deg, #D4A017, #F5C842); color: #1a0e00; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-pill); flex-shrink: 0; }

.activity-list { display: flex; flex-direction: column; gap: 1px; background: var(--sep); border-radius: var(--radius-md); overflow: hidden; }
.activity-row { background: var(--surface); padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.activity-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.activity-text { flex: 1; min-width: 0; }
.activity-title { font-size: 14px; font-weight: 600; color: var(--text); }
.activity-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.activity-right { text-align: right; flex-shrink: 0; }
.activity-value { font-size: 13px; font-weight: 700; color: var(--text); }
.activity-date { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }

/* ── MEMBERSHIP CARD ──────────────────────────────────────────────────── */
.membership-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,71,161,0.90), rgba(10,56,128,0.74), rgba(0,0,0,0.55)); }
.card-inner { position: relative; z-index: 2; padding: 20px 20px 18px; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.club-logo { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.55); overflow: hidden; flex-shrink: 0; backdrop-filter: blur(4px); }
.club-logo img { width: 100%; height: 100%; object-fit: cover; }
.club-name { font-size: 14px; font-weight: 700; color: #fff; }
.club-sub { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 500; }
.tier-badge { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.45); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); letter-spacing: 0.8px; backdrop-filter: blur(4px); flex-shrink: 0; text-transform: uppercase; }
.member-block { margin-bottom: 16px; }
.member-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.58); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 2px; }
.member-name { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.4px; line-height: 1.1; }
.member-id { font-size: 11px; color: rgba(255,255,255,0.52); font-weight: 500; margin-top: 3px; }
.family-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.38); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }
.card-bottom { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.qr-block { background: #fff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.qr-block img { width: 96px; height: 96px; display: block; }
.qr-label { font-size: 9px; font-weight: 700; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.8px; }
.validity-block { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.validity-row { display: flex; gap: 12px; }
.validity-item { flex: 1; }
.validity-label { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.52); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.validity-date { font-size: 14px; font-weight: 700; color: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.32); border-radius: var(--radius-pill); padding: 5px 12px; align-self: flex-start; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 6px rgba(74,222,128,0.85); }
.status-dot.inactive { background: var(--muted); box-shadow: none; }
.status-text { font-size: 11px; font-weight: 700; color: #fff; }

/* ── PREMIUM CARD ─────────────────────────────────────────────────────── */
.premium-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 8px 36px rgba(0,0,0,0.30); }
.premium-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.premium-card-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,20,50,0.95), rgba(20,40,90,0.80), rgba(0,0,0,0.60)); }
.premium-card-inner { position: relative; z-index: 2; padding: 20px 20px 18px; }
.premium-badge { background: linear-gradient(135deg, #D4A017, #F5C842, #B8860B); color: #1a0e00; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: var(--radius-pill); letter-spacing: 1px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(212,160,23,0.55); }
.premium-logo-ring { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(212,160,23,0.75); overflow: hidden; flex-shrink: 0; background: rgba(212,160,23,0.12); backdrop-filter: blur(4px); }
.premium-logo-ring img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.premium-org-name { font-size: 14px; font-weight: 700; color: #fff; }
.premium-org-sub { font-size: 11px; color: rgba(212,160,23,0.85); font-weight: 600; }
.premium-member-label { font-size: 10px; font-weight: 600; color: rgba(212,160,23,0.70); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 2px; }
.premium-member-name { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -0.4px; line-height: 1.1; }
.premium-member-id { font-size: 11px; color: rgba(212,160,23,0.55); font-weight: 500; margin-top: 3px; }
.premium-divider { height: 1px; background: linear-gradient(to right, rgba(212,160,23,0.5), rgba(212,160,23,0.1), transparent); margin: 14px 0; }
.premium-validity-label { font-size: 9px; font-weight: 600; color: rgba(212,160,23,0.60); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.premium-validity-date { font-size: 14px; font-weight: 700; color: #fff; }
.premium-status-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(212,160,23,0.15); border: 1.5px solid rgba(212,160,23,0.45); border-radius: var(--radius-pill); padding: 5px 12px; align-self: flex-start; }
.premium-status-dot { width: 7px; height: 7px; background: #F5C842; border-radius: 50%; box-shadow: 0 0 6px rgba(245,200,66,0.9); }
.premium-status-text { font-size: 11px; font-weight: 700; color: #F5C842; }
.premium-qr-block { background: rgba(255,255,255,0.96); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; border: 2px solid rgba(212,160,23,0.4); }
.premium-qr-block img { width: 96px; height: 96px; display: block; }
.premium-qr-label { font-size: 9px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.8px; }

.premium-section-banner { border-radius: var(--radius-lg); overflow: hidden; position: relative; padding: 22px 20px; box-shadow: 0 6px 24px rgba(0,0,0,0.20); margin-bottom: 20px; }
.premium-section-banner-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0a1432, #1a2a5e, #0d1a3a); }
.premium-section-banner-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; }
.premium-section-banner-logo { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(212,160,23,0.65); overflow: hidden; flex-shrink: 0; background: rgba(212,160,23,0.12); }
.premium-section-banner-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.premium-section-banner-title { font-size: 18px; font-weight: 900; color: #fff; }
.premium-section-banner-sub { font-size: 12px; color: rgba(212,160,23,0.80); font-weight: 600; margin-top: 2px; }
.premium-section-banner-badge { background: linear-gradient(135deg, #D4A017, #F5C842); color: #1a0e00; font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: var(--radius-pill); flex-shrink: 0; box-shadow: 0 2px 10px rgba(212,160,23,0.50); }

/* ── BENEFITS ─────────────────────────────────────────────────────────── */
.ben-header { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 160px; box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.ben-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ben-header-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.72)); }
.ben-header-inner { position: relative; z-index: 2; padding: 20px 18px; }
.ben-count { font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.ben-count-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); margin-top: 2px; }
.ben-pills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ben-pill { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.40); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }

.benefit-list { display: flex; flex-direction: column; gap: 10px; }
.benefit-tile { border-radius: 16px; overflow: hidden; position: relative; min-height: 90px; box-shadow: 0 4px 14px rgba(0,0,0,0.13); display: block; }
.benefit-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.benefit-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,71,161,0.85) 0%, rgba(13,71,161,0.42) 60%, rgba(0,0,0,0.08) 100%); }
.benefit-tile-inner { position: relative; z-index: 2; padding: 16px; min-height: 90px; display: flex; align-items: center; gap: 14px; }
.benefit-icon-circle { width: 44px; height: 44px; background: rgba(255,255,255,0.20); border: 1.5px solid rgba(255,255,255,0.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.benefit-icon-circle img { width: 100%; height: 100%; object-fit: cover; }
.benefit-text { flex: 1; min-width: 0; }
.benefit-title { font-size: 14px; font-weight: 800; color: #fff; }
.benefit-desc { font-size: 11px; color: rgba(255,255,255,0.72); font-weight: 500; margin-top: 2px; }
.benefit-tag { background: rgba(255,255,255,0.92); color: var(--blue-dark); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); letter-spacing: 0.5px; flex-shrink: 0; }
.benefit-arrow { color: rgba(255,255,255,0.65); font-size: 20px; flex-shrink: 0; }

.global-ben-tile { border-radius: 16px; overflow: hidden; position: relative; min-height: 90px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); margin-bottom: 10px; display: block; }
.global-ben-tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.global-ben-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,20,50,0.90) 0%, rgba(10,20,50,0.55) 55%, rgba(0,0,0,0.10) 100%); }
.global-ben-tile-inner { position: relative; z-index: 2; min-height: 90px; display: flex; align-items: center; padding: 16px; gap: 12px; }
.global-ben-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(212,160,23,0.20); border: 1.5px solid rgba(212,160,23,0.55); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.global-ben-icon img { width: 100%; height: 100%; object-fit: cover; }
.global-ben-text { flex: 1; min-width: 0; }
.global-ben-title { font-size: 14px; font-weight: 700; color: #fff; }
.global-ben-desc { font-size: 11px; color: rgba(255,255,255,0.68); font-weight: 500; margin-top: 1px; }
.global-ben-tag { background: linear-gradient(135deg, rgba(212,160,23,0.30), rgba(212,160,23,0.15)); border: 1px solid rgba(212,160,23,0.55); color: #F5C842; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); flex-shrink: 0; }
.global-ben-arrow { color: rgba(212,160,23,0.70); font-size: 20px; font-weight: 300; flex-shrink: 0; }

/* ── PURCHASE HISTORY ─────────────────────────────────────────────────── */
.ph-subtabs { display: flex; border-bottom: 2px solid var(--sep); margin-bottom: 20px; gap: 0; }
.ph-subtab { background: none; border: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 12px 20px; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.ph-subtab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ph-subtab:hover:not(.active) { color: var(--text); }
.ph-panel { display: none; }
.ph-panel.active { display: block; }

.ph-order-list { display: flex; flex-direction: column; gap: 10px; }
.ph-order-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 2px 10px rgba(0,0,0,0.07); overflow: hidden; }
.ph-order-header { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ph-order-name { font-size: 16px; font-weight: 800; color: var(--text); }
.ph-order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
@media (max-width: 599px) { .ph-order-meta { grid-template-columns: 1fr; } }
.ph-order-meta-row { display: flex; align-items: baseline; gap: 6px; }
.ph-order-meta-label { font-size: 13px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.ph-order-meta-value { font-size: 13px; font-weight: 500; color: var(--text); }
.ph-status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.ph-status-dot.approved { background: #16A34A; box-shadow: 0 0 5px rgba(22,163,74,0.6); }
.ph-status-dot.cancelled { background: var(--red); box-shadow: 0 0 5px rgba(239,68,68,0.6); }
.ph-status-dot.failed { background: var(--red); box-shadow: 0 0 5px rgba(239,68,68,0.6); }
.ph-status-dot.pending { background: var(--orange); box-shadow: 0 0 5px rgba(249,115,22,0.6); }
.ph-order-expand-btn { background: none; border: 1.5px solid var(--blue); border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--blue); cursor: pointer; font-family: inherit; text-align: center; margin: 0 16px 16px; width: calc(100% - 32px); }
.ph-ticket-area { display: none; border-top: 1px solid var(--sep); padding: 16px; background: var(--bg); }
.ph-ticket-area.open { display: block; }
.ph-ticket-card { background: var(--surface); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ph-ticket-card + .ph-ticket-card { margin-top: 10px; }
.ph-ticket-info { flex: 1; min-width: 0; }
.ph-ticket-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ph-ticket-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.ph-ticket-label { font-size: 12px; font-weight: 600; color: var(--text); flex-shrink: 0; min-width: 90px; }
.ph-ticket-value { font-size: 12px; font-weight: 500; color: var(--text); word-break: break-word; }
.ph-ticket-qr { flex-shrink: 0; background: #fff; border-radius: 10px; padding: 8px; border: 1.5px solid var(--sep); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-ticket-qr img { width: 80px; height: 80px; display: block; }
.ph-ticket-qr-label { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
@media (max-width: 479px) { .ph-ticket-card { flex-direction: column; } .ph-ticket-qr { align-self: flex-start; } }

.ph-api-notice { background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: var(--radius-md); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.ph-api-notice-icon { font-size: 20px; flex-shrink: 0; }
.ph-api-notice-text { font-size: 12px; color: #1E40AF; font-weight: 500; line-height: 1.5; }
.ph-api-notice-text strong { font-weight: 700; }

.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ph-stat { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 12px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ph-stat-val { font-size: 20px; font-weight: 900; color: var(--blue); letter-spacing: -0.5px; }
.ph-stat-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }
