:root {
    --portal-green: #0f9f4a;
    --portal-green-dark: #087333;
    --portal-green-soft: #e9f7ee;
    --portal-ink: #20302a;
    --portal-muted: #718078;
    --portal-line: #e4eae6;
    --portal-surface: #ffffff;
    --portal-background: #f4f7f5;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    background: var(--portal-background);
    color: var(--portal-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

a { color: var(--portal-green-dark); }
a:hover { color: var(--portal-green); }

input, select, textarea { max-width: 100%; }

.portal-content,
.auth-content {
    margin: 0 auto;
    max-width: 1440px;
    padding: 32px 34px 48px;
}

.portal-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--portal-line);
    display: flex;
    justify-content: space-between;
    min-height: 78px;
    padding: 12px 34px 12px 100px;
}

.portal-topbar-brand,
.portal-navigation-brand {
    align-items: center;
    color: var(--portal-ink);
    display: inline-flex;
    font-size: 20px;
    font-weight: 750;
    gap: 10px;
    text-decoration: none;
}

.portal-topbar-brand:hover,
.portal-navigation-brand:hover { color: var(--portal-ink); }

.portal-topbar-brand small {
    color: var(--portal-muted);
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--portal-green), var(--portal-green-dark));
    border-radius: 11px;
    color: #fff;
    display: inline-flex;
    font-size: 19px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.portal-topbar-meta { text-align: right; }
.portal-topbar-meta span,
.portal-topbar-meta strong { display: block; }
.portal-topbar-meta span { color: var(--portal-muted); font-size: 12px; }
.portal-topbar-meta strong { font-size: 14px; margin-top: 3px; }

.portal-menu-button {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(25, 45, 35, .14);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 48px;
    justify-content: center;
    left: 24px;
    position: fixed;
    top: 15px;
    transition: background .2s, transform .2s;
    width: 48px;
    z-index: 1045;
}

.portal-menu-button:hover { background: var(--portal-green); transform: scale(1.04); }
.portal-menu-button span { background: var(--portal-green-dark); border-radius: 5px; height: 2px; transition: background .2s; width: 21px; }
.portal-menu-button:hover span { background: #fff; }

.portal-menu-overlay {
    background: rgba(15, 27, 21, .48);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .25s;
    z-index: 1050;
}

.portal-navigation {
    background: #fff;
    box-shadow: 8px 0 30px rgba(11, 31, 21, .16);
    height: 100vh;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
    width: 350px;
    z-index: 1055;
}

.portal-menu-open { overflow: hidden; }
.portal-menu-open .portal-menu-overlay { opacity: 1; pointer-events: auto; }
.portal-menu-open .portal-navigation { transform: translateX(0); }

.portal-navigation-header {
    align-items: center;
    border-bottom: 1px solid var(--portal-line);
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.portal-menu-close {
    background: #f1f4f2;
    border: 0;
    border-radius: 10px;
    color: var(--portal-muted);
    cursor: pointer;
    font-size: 26px;
    height: 40px;
    line-height: 1;
    width: 40px;
}

.portal-menu-close:hover { background: #fce9e7; color: #b53b2e; }
.portal-navigation-content { padding: 20px; }

.portal-user-card {
    align-items: center;
    background: linear-gradient(135deg, var(--portal-green), var(--portal-green-dark));
    border-radius: 16px;
    color: #fff;
    display: flex;
    gap: 13px;
    margin-bottom: 28px;
    padding: 18px;
}

.portal-user-avatar {
    align-items: center;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    display: flex;
    font-size: 20px;
    font-weight: 750;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.portal-user-card strong,
.portal-user-card span { display: block; }
.portal-user-card strong { font-size: 14px; }
.portal-user-card div > span { font-size: 12px; opacity: .8; }

.portal-navigation-label {
    color: #98a29c;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
    margin: 22px 10px 8px;
    text-transform: uppercase;
}

.portal-navigation-link {
    align-items: center;
    background: #f6f8f7;
    border-radius: 12px;
    color: var(--portal-ink);
    display: flex;
    font-size: 14px;
    font-weight: 650;
    gap: 12px;
    margin-bottom: 6px;
    padding: 12px 14px;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

a.portal-navigation-link:hover { background: var(--portal-green); color: #fff; transform: translateX(4px); }
.portal-navigation-icon {
    align-items: center;
    background: var(--portal-green-soft);
    border-radius: 8px;
    color: var(--portal-green-dark);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}
a.portal-navigation-link:hover .portal-navigation-icon { background: rgba(255,255,255,.2); color: #fff; }
.portal-navigation-link.is-disabled { color: #89938e; cursor: default; }
.portal-navigation-badge { background: #e9edea; border-radius: 20px; font-size: 10px; margin-left: auto; padding: 3px 8px; }

.portal-signout { border-top: 1px solid var(--portal-line); margin-top: 28px; padding-top: 20px; }
.portal-signout button {
    background: transparent;
    border: 1px solid #ced7d1;
    border-radius: 10px;
    color: var(--portal-ink);
    cursor: pointer;
    font-weight: 650;
    padding: 10px 14px;
    width: 100%;
}
.portal-signout button:hover { border-color: var(--portal-green); color: var(--portal-green-dark); }

.portal-footer {
    color: var(--portal-muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1440px;
    padding: 16px 34px 28px;
}

.dashboard-hero {
    align-items: center;
    background: linear-gradient(135deg, #13aa51, #087333);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(8, 115, 51, .18);
    color: #fff;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px 36px;
    position: relative;
}
.dashboard-hero::after { background: rgba(255,255,255,.07); border-radius: 50%; content: ""; height: 240px; position: absolute; right: -45px; top: -105px; width: 240px; }
.dashboard-hero-label { font-size: 11px; font-weight: 750; letter-spacing: .13em; opacity: .82; text-transform: uppercase; }
.dashboard-hero h1 { font-size: clamp(27px, 3vw, 40px); margin: 7px 0 5px; }
.dashboard-hero p { margin: 0; opacity: .86; }
.dashboard-hero-date { align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; display: flex; flex-direction: column; min-width: 94px; padding: 12px; position: relative; z-index: 1; }
.dashboard-hero-date strong { font-size: 28px; line-height: 1; }
.dashboard-hero-date span { font-size: 12px; margin-top: 5px; text-transform: uppercase; }

.dashboard-metrics { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.dashboard-metric { align-items: center; background: #fff; border: 1px solid var(--portal-line); border-radius: 16px; display: flex; gap: 15px; padding: 20px; }
.dashboard-metric-icon { align-items: center; background: #edf2ff; border-radius: 12px; color: #4662a5; display: flex; font-weight: 800; height: 48px; justify-content: center; width: 48px; }
.dashboard-metric-icon.is-open { background: var(--portal-green-soft); color: var(--portal-green-dark); }
.dashboard-metric div > strong,
.dashboard-metric div > span { display: block; }
.dashboard-metric div > strong { font-size: 27px; line-height: 1; }
.dashboard-metric div span { color: var(--portal-muted); font-size: 12px; margin-top: 6px; }

.dashboard-columns { display: grid; gap: 22px; grid-template-columns: 1.15fr .85fr; }
.dashboard-panel { background: #fff; border: 1px solid var(--portal-line); border-radius: 18px; overflow: hidden; }
.dashboard-panel-heading { align-items: center; border-bottom: 1px solid var(--portal-line); display: flex; justify-content: space-between; padding: 20px 22px; }
.dashboard-panel-heading h2 { font-size: 20px; margin: 2px 0 0; }
.eyebrow { color: var(--portal-green-dark); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.dashboard-panel-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.dashboard-club-row,
.dashboard-shop-row { align-items: center; border-bottom: 1px solid #edf1ee; color: var(--portal-ink); display: flex; gap: 13px; padding: 16px 22px; text-decoration: none; transition: background .15s; }
.dashboard-club-row:last-child,
.dashboard-shop-row:last-child { border-bottom: 0; }
.dashboard-club-row:hover,
.dashboard-shop-row:hover { background: #f7fbf8; color: var(--portal-ink); }
.dashboard-club-initial { align-items: center; background: var(--portal-green-soft); border-radius: 11px; color: var(--portal-green-dark); display: flex; flex: 0 0 auto; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.dashboard-club-details { flex: 1; min-width: 0; }
.dashboard-club-details strong,
.dashboard-club-details small,
.dashboard-club-summary small,
.dashboard-shop-row strong,
.dashboard-shop-row small { display: block; }
.dashboard-club-details small,
.dashboard-club-summary small,
.dashboard-shop-row small { color: var(--portal-muted); font-size: 11px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-club-summary { text-align: right; }
.permission { background: #e7f0ff; border-radius: 999px; color: #285892; display: inline-block; font-size: 10px; font-weight: 750; padding: 4px 8px; }
.dashboard-shop-row { justify-content: space-between; }
.dashboard-shop-row > span:first-child { min-width: 0; }
.dashboard-shop-meta { flex: 0 0 auto; text-align: right; }
.shop-status { border-radius: 999px; display: inline-block; font-size: 10px; font-weight: 750; padding: 4px 9px; }
.shop-status.is-open { background: var(--portal-green-soft); color: var(--portal-green-dark); }
.shop-status.is-closed { background: #f0f1f0; color: #65716a; }
.dashboard-panel-empty { color: var(--portal-muted); margin: 0; padding: 28px 22px; }
.dashboard-empty { margin-top: 22px; }

.shops-heading { margin-bottom: 20px; }
.shop-summary { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.shop-summary div { background: #fff; border: 1px solid var(--portal-line); border-radius: 14px; padding: 17px 20px; }
.shop-summary strong,
.shop-summary span { display: block; }
.shop-summary strong { font-size: 25px; }
.shop-summary span { color: var(--portal-muted); font-size: 11px; margin-top: 3px; }
.shops-panel { background: #fff; border: 1px solid var(--portal-line); border-radius: 17px; overflow: hidden; }
.shops-toolbar { align-items: center; border-bottom: 1px solid var(--portal-line); display: grid; gap: 12px; grid-template-columns: auto minmax(240px, 420px) 1fr; padding: 18px 20px; }
.shops-toolbar label { font-size: 12px; font-weight: 700; }
.shops-toolbar input { border-color: #d9e1dc; }
.shops-toolbar span { color: var(--portal-muted); font-size: 12px; justify-self: end; }
.shops-table-wrap { overflow-x: auto; }
.shops-table { border-collapse: collapse; min-width: 820px; width: 100%; }
.shops-table th { background: #f6f8f7; color: #7b8780; font-size: 10px; letter-spacing: .08em; padding: 12px 18px; text-align: left; text-transform: uppercase; }
.shops-table td { border-top: 1px solid #edf1ee; font-size: 13px; padding: 15px 18px; }
.shops-table tbody tr:hover { background: #f8fbf9; }
.shop-view-link { font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.shops-no-results { color: var(--portal-muted); margin: 0; padding: 28px 20px; text-align: center; }

.back-link { font-size: 12px; font-weight: 700; margin: 0 0 14px; }
.back-link a { text-decoration: none; }
.shop-detail-hero { align-items: center; background: #fff; border: 1px solid var(--portal-line); border-radius: 18px; display: flex; justify-content: space-between; padding: 25px 28px; }
.shop-detail-hero h1 { font-size: clamp(25px, 3vw, 35px); margin: 5px 0 12px; }
.shop-detail-badges { display: flex; gap: 7px; }
.shop-detail-facts { display: flex; gap: 10px; margin: 0; }
.shop-detail-facts div { background: #f5f8f6; border-radius: 12px; min-width: 125px; padding: 13px 16px; }
.shop-detail-facts dt { color: var(--portal-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shop-detail-facts dd { font-size: 16px; font-weight: 750; margin: 4px 0 0; }
.product-section-heading { align-items: end; display: flex; justify-content: space-between; margin: 30px 0 17px; }
.product-section-heading h2 { font-size: 22px; margin: 3px 0 0; }
.product-search { align-items: center; display: flex; gap: 10px; }
.product-search input { min-width: 260px; }
.product-search span { color: var(--portal-muted); font-size: 11px; min-width: 72px; }
.product-grid { display: grid; gap: 17px; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); }
.product-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 17px; overflow: hidden; }
.product-card-image { align-items: stretch; background: linear-gradient(145deg, #edf7f0, #dceee2); color: var(--portal-green-dark); display: grid; flex: 0 0 210px; font-size: 44px; font-weight: 800; height: 210px; justify-items: stretch; min-height: 210px; overflow: hidden; }
.product-card-image > span,
.product-card-image img { grid-column: 1; grid-row: 1; }
.product-card-image > span { align-items: center; display: flex; justify-content: center; }
.product-card-image img { background: #fff; display: block; height: 210px; object-fit: contain; object-position: center; width: 100%; }
.product-card-body { padding: 18px; }
.product-size-type { color: var(--portal-green-dark); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { font-size: 18px; margin: 5px 0 8px; }
.product-description { color: var(--portal-muted); display: -webkit-box; font-size: 12px; line-height: 1.5; margin: 0 0 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-prices { display: flex; gap: 9px; margin-top: 12px; }
.product-prices > span { background: #f5f8f6; border-radius: 10px; flex: 1; padding: 9px 11px; }
.product-prices small,
.product-prices strong { display: block; }
.product-prices small { color: var(--portal-muted); font-size: 9px; text-transform: uppercase; }
.product-prices strong { font-size: 15px; margin-top: 2px; }
.product-sizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.product-sizes span { border: 1px solid #dce4df; border-radius: 6px; color: #58675f; font-size: 10px; padding: 3px 7px; }
.product-options { border-top: 1px solid #edf1ee; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; }
.product-options span { background: #fff5df; border-radius: 999px; color: #8a6213; font-size: 9px; font-weight: 700; padding: 4px 8px; }
.products-no-results { background: #fff; border: 1px solid var(--portal-line); border-radius: 14px; color: var(--portal-muted); padding: 25px; text-align: center; }

.catalogue-hero { align-items: center; background: linear-gradient(135deg, #fff, #edf8f0); border: 1px solid #dbe9df; border-radius: 20px; display: flex; justify-content: space-between; padding: 27px 30px; }
.catalogue-hero h1 { font-size: clamp(27px, 3vw, 37px); margin: 5px 0 7px; }
.catalogue-hero p { color: var(--portal-muted); margin: 0; }
.catalogue-count { background: var(--portal-green); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 750; padding: 9px 16px; }
.catalogue-filters { align-items: end; background: #fff; border: 1px solid var(--portal-line); border-radius: 15px; display: grid; gap: 13px; grid-template-columns: minmax(230px, 1fr) minmax(210px, .7fr) auto auto; margin: 20px 0; padding: 17px 19px; }
.catalogue-filters label { display: block; font-size: 10px; font-weight: 750; letter-spacing: .05em; margin-bottom: 5px; text-transform: uppercase; }
.catalogue-filter-button { background: var(--portal-green-dark); border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; min-height: 38px; padding: 8px 17px; }
.catalogue-clear-link { align-self: center; font-size: 12px; font-weight: 700; text-decoration: none; }
.garment-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.garment-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 17px; display: flex; flex-direction: column; overflow: hidden; }
.garment-card-image { align-items: center; background: linear-gradient(145deg, #eef7f1, #dcece1); color: var(--portal-green-dark); display: flex; height: 210px; justify-content: center; overflow: hidden; text-decoration: none; }
.garment-card-image img { height: 100%; object-fit: contain; width: 100%; }
.garment-card-image span { font-size: 52px; font-weight: 800; }
.garment-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.garment-card h2 { font-size: 17px; margin: 5px 0 7px; }
.garment-card h2 a { color: var(--portal-ink); text-decoration: none; }
.garment-card p { color: var(--portal-muted); display: -webkit-box; font-size: 11px; line-height: 1.45; margin: 0 0 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.garment-price-list { display: flex; gap: 7px; margin: auto 0 13px; padding-top: 7px; }
.garment-price-list span { background: #f5f8f6; border-radius: 8px; flex: 1; padding: 8px; }
.garment-price-list small,
.garment-price-list strong { display: block; }
.garment-price-list small { color: var(--portal-muted); font-size: 8px; text-transform: uppercase; }
.garment-price-list strong { font-size: 13px; margin-top: 2px; }
.garment-view-button { border: 1px solid var(--portal-green); border-radius: 9px; color: var(--portal-green-dark); display: block; font-size: 11px; font-weight: 750; padding: 8px; text-align: center; text-decoration: none; }
.garment-view-button:hover { background: var(--portal-green); color: #fff; }
.catalogue-pagination { align-items: center; color: var(--portal-muted); display: flex; font-size: 11px; justify-content: space-between; margin-top: 20px; }
.catalogue-pagination nav { align-items: center; display: flex; gap: 13px; }
.catalogue-pagination a { background: #fff; border: 1px solid var(--portal-line); border-radius: 8px; font-weight: 700; padding: 7px 11px; text-decoration: none; }
.catalogue-pagination strong { color: var(--portal-ink); }
.garment-detail { background: #fff; border: 1px solid var(--portal-line); border-radius: 19px; display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; overflow: hidden; }
.garment-detail-image { align-items: center; background: linear-gradient(145deg, #eef7f1, #dcece1); display: flex; justify-content: center; min-height: 530px; overflow: hidden; }
.garment-detail-image img { height: 100%; max-height: 620px; object-fit: contain; width: 100%; }
.garment-detail-image span { color: var(--portal-green-dark); font-size: 80px; font-weight: 800; }
.garment-detail-content { padding: 34px; }
.garment-detail-content h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 12px; }
.garment-detail-content h2 { font-size: 14px; margin: 25px 0 9px; }
.garment-detail-description { color: var(--portal-muted); line-height: 1.6; }
.garment-detail-prices { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.garment-detail-prices div { background: #f5f8f6; border-radius: 10px; padding: 11px 13px; }
.garment-detail-prices strong,
.garment-detail-prices span { display: block; }
.garment-detail-prices strong { font-size: 11px; margin-bottom: 4px; }
.garment-detail-prices span { color: var(--portal-muted); font-size: 11px; }
.garment-size-type { color: var(--portal-muted); font-size: 11px; margin: 0 0 7px; }
.garment-detail-sizes { margin-top: 0; }
.garment-detail-options { border-top: 0; margin-top: 0; padding-top: 0; }
.catalogue-readonly-note { background: #edf6ff; border-radius: 9px; color: #335f82; font-size: 11px; margin: 26px 0 0; padding: 11px 13px; }

.reports-hero { align-items: center; background: linear-gradient(135deg, #173e2b, #087333); border-radius: 20px; color: #fff; display: flex; justify-content: space-between; padding: 27px 30px; }
.reports-hero .eyebrow { color: #a9e6bd; }
.reports-hero h1 { font-size: clamp(27px, 3vw, 37px); margin: 5px 0 7px; }
.reports-hero p { margin: 0; opacity: .8; }
.reports-export { background: #fff; border-radius: 10px; color: var(--portal-green-dark); font-size: 12px; font-weight: 750; padding: 10px 15px; text-decoration: none; }
.reports-export:hover { color: var(--portal-green); }
.reports-filters { align-items: end; background: #fff; border: 1px solid var(--portal-line); border-radius: 15px; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; margin: 20px 0; padding: 17px 19px; }
.reports-filters label { display: block; font-size: 10px; font-weight: 750; letter-spacing: .05em; margin-bottom: 5px; text-transform: uppercase; }
.reports-filters button { background: var(--portal-green-dark); border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; min-height: 38px; padding: 8px 17px; }
.reports-metrics { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 17px; }
.reports-metrics article { background: #fff; border: 1px solid var(--portal-line); border-radius: 14px; padding: 17px 19px; }
.reports-metrics span,
.reports-metrics strong { display: block; }
.reports-metrics span { color: var(--portal-muted); font-size: 10px; text-transform: uppercase; }
.reports-metrics strong { font-size: 25px; margin-top: 4px; }
.report-statuses { align-items: center; background: #eef6f1; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; padding: 11px 14px; }
.report-statuses > span { color: var(--portal-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.report-statuses strong { background: #fff; border-radius: 999px; font-size: 10px; font-weight: 650; padding: 5px 9px; }
.report-statuses b { color: var(--portal-green-dark); margin-left: 4px; }
.reports-columns { display: grid; gap: 18px; grid-template-columns: 1.25fr .75fr; }
.reports-table-wrap { overflow-x: auto; }
.reports-table { border-collapse: collapse; min-width: 600px; width: 100%; }
.reports-table th { background: #f6f8f7; color: #7b8780; font-size: 9px; letter-spacing: .07em; padding: 11px 16px; text-align: left; text-transform: uppercase; }
.reports-table td { border-top: 1px solid #edf1ee; font-size: 12px; padding: 13px 16px; }
.reports-table td strong,
.reports-table td small { display: block; }
.reports-table td small { color: var(--portal-muted); font-size: 9px; margin-top: 2px; }
.report-products { list-style: none; margin: 0; padding: 9px 20px 18px; }
.report-products li { padding: 9px 0; }
.report-products li div { align-items: center; display: flex; gap: 9px; justify-content: space-between; }
.report-products strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-products span { color: var(--portal-muted); flex: 0 0 auto; font-size: 9px; }
.report-products i { background: #e8eeea; border-radius: 4px; display: block; height: 5px; margin-top: 6px; overflow: hidden; }
.report-products i b { background: var(--portal-green); border-radius: 4px; display: block; height: 100%; }
.reports-recent { margin-top: 18px; }
.report-order-status { background: var(--portal-green-soft); border-radius: 999px; color: var(--portal-green-dark); display: inline-block; font-size: 9px; font-weight: 700; padding: 4px 8px; white-space: nowrap; }
.report-definition { color: var(--portal-muted); font-size: 10px; margin: 13px 2px 0; }

.club-profile-hero { align-items: center; background: var(--club-banner); border-radius: 20px; color: var(--club-font); display: flex; gap: 20px; min-height: 170px; overflow: hidden; padding: 27px 30px; position: relative; }
.club-profile-hero::after { background: rgba(255,255,255,.08); border-radius: 50%; content: ""; height: 260px; position: absolute; right: -60px; top: -120px; width: 260px; }
.club-profile-logo { align-items: center; background: #fff; border: 3px solid rgba(255,255,255,.42); border-radius: 18px; color: var(--portal-green-dark); display: grid; flex: 0 0 100px; height: 100px; justify-items: stretch; overflow: hidden; position: relative; }
.club-profile-logo > span,
.club-profile-logo img { grid-column: 1; grid-row: 1; }
.club-profile-logo > span { align-items: center; display: flex; font-size: 36px; font-weight: 800; justify-content: center; }
.club-profile-logo img { background: #fff; height: 100%; object-fit: contain; width: 100%; }
.club-profile-title { flex: 1; min-width: 0; }
.club-profile-title > span { font-size: 10px; font-weight: 750; letter-spacing: .12em; opacity: .76; text-transform: uppercase; }
.club-profile-title h1 { font-size: clamp(28px, 4vw, 43px); margin: 5px 0 6px; }
.club-profile-title p { margin: 0; opacity: .82; }
.club-profile-permission { background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 11px; font-weight: 750; padding: 7px 12px; position: relative; text-transform: uppercase; z-index: 1; }
.club-profile-stats { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0; }
.club-profile-stats article { align-items: center; background: #fff; border: 1px solid var(--portal-line); border-radius: 14px; display: flex; gap: 11px; min-width: 0; padding: 15px; }
.club-profile-stats article div > strong,
.club-profile-stats article div > small { display: block; }
.club-profile-stats article div > strong { font-size: 23px; line-height: 1; }
.club-profile-stats article div > small { color: var(--portal-muted); font-size: 9px; margin-top: 5px; }
.club-stat-icon { align-items: center; background: #eaf0ff; border-radius: 10px; color: #3d5e9e; display: flex; flex: 0 0 40px; font-size: 12px; font-weight: 800; height: 40px; justify-content: center; }
.club-stat-icon.is-open { background: var(--portal-green-soft); color: var(--portal-green-dark); }
.club-stat-icon.is-closed,
.club-stat-icon.is-archived { background: #f0f2f1; color: #647169; }
.club-stat-icon.is-warning { background: #fff2dc; color: #a46508; }
.club-profile-columns { display: grid; gap: 18px; grid-template-columns: 1.2fr .8fr; }
.club-information-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 16px; padding: 21px 23px; }
.club-card-heading { border-bottom: 1px solid #edf1ee; margin-bottom: 8px; padding-bottom: 13px; }
.club-card-heading h2 { font-size: 18px; margin: 3px 0 0; }
.club-information-list { margin: 0; }
.club-information-list div { display: grid; gap: 14px; grid-template-columns: 130px 1fr; padding: 12px 0; }
.club-information-list div + div { border-top: 1px solid #edf1ee; }
.club-information-list dt { color: var(--portal-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.club-information-list dd { font-size: 12px; margin: 0; }
.club-information-list a { font-weight: 650; text-decoration: none; }
.club-access-note { background: #f8fbf9; }
.club-access-note p { color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.club-shops-section { margin-top: 28px; }
.club-shops-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.club-shops-heading h2 { font-size: 22px; margin: 3px 0 0; }
.club-shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
.club-shop-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 15px; color: var(--portal-ink); display: flex; flex-direction: column; min-height: 180px; padding: 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.club-shop-card:hover { border-color: #aad6b7; color: var(--portal-ink); transform: translateY(-2px); }
.club-shop-card.is-closing-soon { border-color: #ebc984; }
.club-shop-card > div { align-items: center; display: flex; gap: 6px; }
.club-shop-card h3 { font-size: 17px; margin: 15px 0 6px; }
.club-shop-card p { color: var(--portal-muted); font-size: 11px; margin: 0; }
.club-shop-card > small { color: #9b620a; font-size: 10px; margin-top: 5px; }
.club-shop-card > strong { color: var(--portal-green-dark); font-size: 11px; margin-top: auto; padding-top: 13px; }
.closing-soon-badge { background: #fff2dc; border-radius: 999px; color: #9b620a; font-size: 9px; font-weight: 750; padding: 4px 8px; }

.page-heading { display: flex; justify-content: space-between; margin: 18px 0 24px; }
.members-heading { align-items: center; }
.members-heading p { color: var(--portal-muted); margin: 0; }
.members-add-button { background: var(--portal-green-dark); border-radius: 10px; color: #fff; font-size: 12px; font-weight: 750; padding: 11px 16px; text-decoration: none; }
.members-add-button:hover { background: var(--portal-green); color: #fff; }
.members-message { background: var(--portal-green-soft); border: 1px solid #bfe2c9; border-radius: 10px; color: var(--portal-green-dark); font-size: 12px; margin-bottom: 15px; padding: 11px 14px; }
.members-panel, .member-form-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 17px; overflow: hidden; }
.members-filters { align-items: end; border-bottom: 1px solid var(--portal-line); display: grid; gap: 12px; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr) auto auto; padding: 18px 20px; }
.members-filters label, .member-form-grid label { display: block; font-size: 10px; font-weight: 750; letter-spacing: .05em; margin-bottom: 5px; text-transform: uppercase; }
.members-filters button, .member-form-actions button { background: var(--portal-green-dark); border: 0; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; min-height: 38px; padding: 8px 17px; }
.members-clear-link { align-self: center; font-size: 12px; font-weight: 700; text-decoration: none; }
.members-table-wrap { overflow-x: auto; }
.members-table { border-collapse: collapse; min-width: 850px; width: 100%; }
.members-table th { background: #f6f8f7; color: #7b8780; font-size: 9px; letter-spacing: .08em; padding: 12px 18px; text-align: left; text-transform: uppercase; }
.members-table td { border-top: 1px solid #edf1ee; font-size: 12px; padding: 14px 18px; vertical-align: middle; }
.members-table td strong, .members-table td small { display: block; }
.members-table td small { color: var(--portal-muted); font-size: 9px; margin-top: 3px; }
.members-table td a { text-decoration: none; }
.member-status { border-radius: 999px; display: inline-block; font-size: 9px; font-weight: 750; padding: 4px 8px; }
.member-status.is-active { background: var(--portal-green-soft); color: var(--portal-green-dark); }
.member-status.is-inactive { background: #f0f1f0; color: #65716a; }
.member-edit-link { font-weight: 700; }
.members-empty { color: var(--portal-muted); padding: 35px 22px; text-align: center; }
.members-empty h2 { color: var(--portal-ink); font-size: 18px; }
.member-form-card { padding: 24px; }
.member-form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-form-wide { grid-column: 1 / -1; }
.member-active-field { align-items: center; display: flex; gap: 8px; padding-top: 23px; }
.member-active-field label { margin: 0; }
.member-form-actions { align-items: center; border-top: 1px solid var(--portal-line); display: flex; gap: 15px; margin-top: 24px; padding-top: 20px; }
.member-archive-form { border-top: 1px solid var(--portal-line); margin-top: 20px; padding-top: 20px; }
.member-archive-form button { background: transparent; border: 1px solid #dcaaa4; border-radius: 9px; color: #a33c31; font-size: 11px; font-weight: 700; padding: 8px 13px; }
.page-heading h1,
.auth-card h1 { margin: 5px 0 8px; }
.club-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.club-card,
.empty-state,
.auth-card { background: #fff; border: 1px solid var(--portal-line); border-radius: 16px; padding: 24px; }
.club-card h2 { font-size: 20px; margin: 15px 0 7px; }
.club-card p { color: var(--portal-muted); }

.auth-page { background: linear-gradient(145deg, #edf7f0, #f7f9f8 55%); }
.auth-content { min-height: calc(100vh - 70px); }
.auth-shell { display: grid; min-height: 72vh; place-items: center; }
.auth-card { box-shadow: 0 18px 50px rgba(25, 45, 35, .1); max-width: 480px; width: 100%; }
.auth-card .btn-primary,
.club-card .btn-primary { background: var(--portal-green-dark); border-color: var(--portal-green-dark); }
.auth-card .btn-primary:hover,
.club-card .btn-primary:hover { background: var(--portal-green); border-color: var(--portal-green); }

@media (max-width: 900px) {
    .dashboard-columns { grid-template-columns: 1fr; }
    .portal-topbar-meta span { display: none; }
    .garment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .garment-detail { grid-template-columns: 1fr; }
    .garment-detail-image { min-height: 360px; }
    .reports-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-columns { grid-template-columns: 1fr; }
    .club-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .club-profile-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .portal-content,
    .auth-content { padding: 20px 16px 36px; }
    .portal-topbar { min-height: 68px; padding: 10px 16px 10px 76px; }
    .portal-menu-button { height: 42px; left: 16px; top: 13px; width: 42px; }
    .portal-topbar-meta { display: none; }
    .portal-navigation { max-width: 90vw; width: 310px; }
    .dashboard-hero { align-items: flex-start; padding: 26px 22px; }
    .dashboard-hero-date { display: none; }
    .dashboard-metrics { gap: 10px; grid-template-columns: 1fr; }
    .shop-summary { grid-template-columns: 1fr; }
    .shops-toolbar { grid-template-columns: 1fr; }
    .shops-toolbar span { justify-self: start; }
    .shop-detail-hero { align-items: flex-start; flex-direction: column; gap: 20px; }
    .shop-detail-facts { width: 100%; }
    .shop-detail-facts div { flex: 1; min-width: 0; }
    .product-section-heading { align-items: stretch; flex-direction: column; gap: 13px; }
    .product-search { align-items: stretch; flex-direction: column; }
    .product-search input { min-width: 0; }
    .catalogue-hero { align-items: flex-start; flex-direction: column; gap: 15px; }
    .catalogue-filters { grid-template-columns: 1fr; }
    .garment-grid { grid-template-columns: 1fr; }
    .catalogue-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
    .garment-detail-content { padding: 23px; }
    .reports-hero { align-items: flex-start; flex-direction: column; gap: 17px; }
    .reports-filters { grid-template-columns: 1fr; }
    .club-profile-hero { align-items: flex-start; flex-wrap: wrap; padding: 23px; }
    .club-profile-logo { flex-basis: 78px; height: 78px; }
    .club-profile-title { flex-basis: calc(100% - 100px); }
    .club-profile-permission { margin-left: 98px; }
    .club-profile-stats { grid-template-columns: 1fr; }
    .club-information-list div { grid-template-columns: 1fr; gap: 4px; }
    .members-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .members-filters, .member-form-grid { grid-template-columns: 1fr; }
    .member-form-wide { grid-column: auto; }
    .dashboard-metric { padding: 15px 18px; }
    .dashboard-club-row { align-items: flex-start; flex-wrap: wrap; }
    .dashboard-club-summary { padding-left: 55px; text-align: left; width: 100%; }
    .portal-footer { gap: 5px; padding: 14px 16px 24px; }
    .portal-footer span:last-child { display: none; }
}
