/* ============================================================
   SEWCIAL OPS — Design System
   Colors: #f0f1ec | #ffffff | #161616 | #b9b9b9
   Fonts: Bebas Neue (headers) | Manrope (body)
   Principles: minimal, grid, editorial, no rounded corners
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    background: #f0f1ec;
    color: #161616;
    line-height: 1.6;
    min-height: 100vh;
}

.legal-doc {
    background: #fff;
    border: 1px solid #e8e9e4;
    padding: 34px;
    line-height: 1.72;
    color: #333;
}

.legal-doc p {
    margin: 0 0 18px;
    font-size: 0.95rem;
}

.legal-doc h2 {
    margin: 34px 0 10px;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.legal-doc h2:first-of-type {
    margin-top: 22px;
}

.legal-doc a {
    color: #161616;
    font-weight: 700;
}

.public-footer {
    background: #161616;
    color: rgba(255,255,255,0.65);
    padding: 22px 24px;
    font-size: 0.78rem;
}

.public-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.public-footer a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
}

.public-footer a:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .legal-doc {
        padding: 24px 20px;
    }

    .public-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; letter-spacing: 1.5px; }

.label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b9b9b9;
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container--narrow { max-width: 640px; }
.container--wide   { max-width: 1440px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Navigation --- */
.nav {
    background: #161616;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav__logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: #ffffff;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-sidebar-toggle {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
}

.nav-sidebar-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b9b9b9;
    transition: color 0.2s;
}

.nav__links a:hover { color: #ffffff; opacity: 1; }
.nav__links a.active { color: #ffffff; }

.nav__section-link {
    display: none;
}

.nav-menu,
.account-menu {
    position: relative;
}

.nav-icon-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #b9b9b9;
    cursor: pointer;
    padding: 0;
    appearance: none;
    position: relative;
}

.nav-icon-button:hover,
.nav-icon-button.active,
.nav-menu.is-open .nav-icon-button,
.account-menu.is-open .nav-icon-button {
    color: #ffffff;
}

.nav-icon-button__badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #990033;
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.nav-menu__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: none;
    box-shadow: none;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.nav-menu.is-open .nav-menu__dropdown,
.account-menu.is-open .nav-menu__dropdown {
    display: block;
}

.nav-menu__label {
    padding: 8px 14px 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #b9b9b9;
}

.nav-menu__empty {
    padding: 10px 14px 12px;
    font-size: 0.76rem;
    color: #888;
    white-space: nowrap;
}

.nav__links .nav-menu__dropdown a {
    display: block;
    color: #161616;
    padding: 11px 14px;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
}

.nav-menu__subtext {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.nav-menu__form {
    border-top: 1px solid #f0f1ec;
    margin-top: 4px;
    padding: 6px 8px 0;
}

.nav-menu__form button {
    width: 100%;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 8px 6px;
    text-align: left;
    text-transform: uppercase;
}

.nav-menu__form button:hover {
    color: #161616;
    background: #f0f1ec;
}

.nav__links .nav-menu__dropdown a:hover {
    background: #f0f1ec;
    color: #161616;
    opacity: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary   { background: #161616; color: #ffffff; }
.btn--primary:hover { background: #333; opacity: 1; }
.btn--secondary { background: #ffffff; color: #161616; border: 1px solid #161616; }
.btn--secondary:hover { background: #f0f1ec; opacity: 1; }
.btn--ghost     { background: transparent; color: #161616; border: 1px solid #b9b9b9; }
.btn--ghost:hover { border-color: #161616; opacity: 1; }
.btn--danger    { background: #cc0000; color: #ffffff; }
.btn--danger:hover { background: #aa0000; opacity: 1; }
.btn--sm        { padding: 8px 16px; font-size: 0.65rem; }
.btn--lg        { padding: 16px 36px; font-size: 0.75rem; }
.btn--block     { width: 100%; }
.btn:disabled   { opacity: 0.4; cursor: not-allowed; }
.btn.is-loading {
    opacity: 0.68;
    cursor: wait !important;
    pointer-events: none;
}
.btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    vertical-align: -0.12em;
    animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

.form-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #161616;
}

.form-input,
.form-select,
.form-textarea {
    background: #ffffff;
    border: 1px solid #b9b9b9;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #161616;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: #161616; }

.form-input::placeholder,
.form-textarea::placeholder { color: #b9b9b9; }

.form-textarea { resize: vertical; min-height: 100px; }

.password-field {
    position: relative;
    width: 100%;
}

.password-field .form-input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #777;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #161616;
    outline: none;
}

.password-toggle:focus-visible {
    outline: 1px solid #161616;
    outline-offset: 2px;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.password-toggle .password-toggle__off { display: none; }
.password-toggle.is-visible .password-toggle__on { display: none; }
.password-toggle.is-visible .password-toggle__off { display: block; }

.form-error  { font-size: 0.78rem; color: #cc0000; margin-top: 4px; }
.form-hint   { font-size: 0.75rem; color: #b9b9b9; margin-top: 4px; }

/* --- Alerts --- */
.alert {
    padding: 14px 18px;
    font-size: 0.85rem;
    border-left: 3px solid;
    margin-bottom: 20px;
}
.alert--error   { background: #fff0f0; border-color: #cc0000; color: #cc0000; }
.alert--success { background: #f0fff4; border-color: #006633; color: #006633; }
.alert--info    { background: #f0f4ff; border-color: #0044cc; color: #0044cc; }
.alert--warning { background: #fffbf0; border-color: #cc8800; color: #cc8800; }

/* --- Toasts (assets/js/notify.js → toast()) --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 40px 14px 18px;
    font-size: 0.85rem;
    border-left: 3px solid;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    animation: toast-in 0.22s ease-out;
}
.toast--success { border-color: #006633; color: #006633; background: #f0fff4; }
.toast--error   { border-color: #cc0000; color: #cc0000; background: #fff0f0; }
.toast--info    { border-color: #0044cc; color: #0044cc; background: #f0f4ff; }
.toast--warning { border-color: #cc8800; color: #cc8800; background: #fffbf0; }
.toast.is-leaving { animation: toast-out 0.18s ease-in forwards; }
.toast__close {
    position: absolute;
    top: 8px; right: 10px;
    background: none; border: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
}
.toast__close:hover { opacity: 1; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(20px); } }

/* --- Confirm Dialog (assets/js/notify.js → confirmDialog()) --- */
.confirm-bg {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: confirm-fade-in 0.18s ease-out;
}
.confirm-box {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border: 1px solid #e8e9e4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: confirm-slide-in 0.22s ease-out;
}
.confirm-head {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #f0f1ec;
}
.confirm-head h4 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2.5px;
    font-size: 1rem;
    text-transform: uppercase;
}
.confirm-body {
    padding: 18px 24px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}
.confirm-foot {
    padding: 14px 24px 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
@keyframes confirm-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirm-slide-in  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Modal --- */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-bg.is-open {
    display: flex;
    animation: confirm-fade-in 0.18s ease-out;
}

.modal-box {
    background: #ffffff;
    max-width: 560px;
    width: 100%;
    border: 1px solid #e8e9e4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: confirm-slide-in 0.22s ease-out;
}

.modal-head {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #f0f1ec;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-head h3 {
    font-size: 1.45rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #161616;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.55;
    padding: 2px 0 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg {
    stroke: currentColor;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-foot {
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f1ec;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- Cards --- */
.card {
    background: #ffffff;
    border: 1px solid #e8e9e4;
}

.card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f1ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card__body    { padding: 24px; }
.card__footer  { padding: 16px 24px; border-top: 1px solid #f0f1ec; background: #f0f1ec; }

/* --- Page Header --- */
.page-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid #e8e9e4;
    margin-bottom: 40px;
}

.page-header__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

/* --- Tables --- */
.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead th {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b9b9b9;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e9e4;
    white-space: nowrap;
}

tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1ec;
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafaf8; }

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge--active    { background: #e6f4ee; color: #006633; }
.badge--frozen    { background: #fff8e0; color: #996600; }
.badge--suspended { background: #f0f1ec; color: #b9b9b9; }
.badge--public    { background: #e6f0ff; color: #003399; }
.badge--private   { background: #f0f1ec; color: #161616; }
.badge--new       { background: #fff0f5; color: #990033; }
.badge--viewed    { background: #e6f0ff; color: #003399; }
.badge--fulfilled { background: #fff8e0; color: #996600; }
.badge--paid      { background: #e6f4ee; color: #006633; }
.badge--cancelled { background: #f0f1ec; color: #b9b9b9; }
.badge--free      { background: #f0f1ec; color: #555555; }
.badge--pro       { background: #161616; color: #ffffff; }
.badge--business  { background: #b9a070; color: #ffffff; }

/* --- Auth Layout --- */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: #161616;
}

.auth-panel--left {
    background: #161616;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    min-height: 100vh;
}

.auth-panel--right {
    background: #f0f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

/* --- Auth Intro Animation --- */
.auth-page--intro { overflow: hidden; }

.auth-page--intro::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50vw;
    width: 50vw;
    height: 100vh;
    background: #161616;
    z-index: 9999;
    pointer-events: none;
    animation: auth-intro-slide-right 900ms cubic-bezier(.65,.05,.36,1) 400ms forwards;
}

.auth-page--intro .auth-panel--right .auth-form-wrap {
    opacity: 0;
    animation: auth-intro-fade-up 420ms ease-out 1100ms forwards;
}

@keyframes auth-intro-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-intro-slide-right {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

/* --- Pricing Cards Intro --- */
.pricing-cards-intro > * {
    opacity: 0;
    animation: pricing-cards-fade-up 1100ms cubic-bezier(.22,.61,.36,1) 250ms forwards;
}

@keyframes pricing-cards-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pricing-cards-intro > .pricing-card-current {
    border: 2px solid #161616;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    animation:
        pricing-cards-fade-up 1100ms cubic-bezier(.22,.61,.36,1) 250ms forwards,
        pricing-current-blink 900ms ease-in-out 1500ms 3;
}

.pricing-cards-intro > .pricing-card-upsell {
    border: 1px solid #e8e9e4;
    box-shadow: none;
    animation:
        pricing-cards-fade-up 1100ms cubic-bezier(.22,.61,.36,1) 250ms forwards,
        pricing-upsell-blink 900ms ease-in-out 1500ms 3;
}

@keyframes pricing-current-blink {
    0%, 100% {
        border-color: #161616;
        box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    }
    40%, 60% {
        border-color: #00b357;
        box-shadow:
            0 0 0 3px rgba(0,179,87,0.3),
            0 0 18px 4px rgba(0,179,87,0.45),
            0 12px 40px rgba(0,179,87,0.35);
    }
}

@keyframes pricing-upsell-blink {
    0%, 100% {
        border-color: #e8e9e4;
        box-shadow: none;
    }
    40%, 60% {
        border-color: #00b357;
        box-shadow:
            0 0 0 3px rgba(0,179,87,0.3),
            0 0 18px 4px rgba(0,179,87,0.45),
            0 12px 40px rgba(0,179,87,0.35);
    }
}


.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-form-wrap--shake {
    animation: login-shake 420ms ease-in-out both;
}

@keyframes login-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-10px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-form-wrap--shake {
        animation: none;
    }
}

.auth-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 6px;
    color: #ffffff;
}

.auth-mobile-brand {
    display: none;
}

.auth-tagline {
    color: #b9b9b9;
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 320px;
}

/* --- Dashboard --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid #e8e9e4;
    padding: 32px 0;
}

.sidebar-backdrop {
    display: none;
}

.sidebar__nav { list-style: none; }

.sidebar__nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b9b9b9;
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
}

.sidebar__nav li a:hover {
    color: #161616;
    background: #f0f1ec;
    opacity: 1;
}

.sidebar__nav li a.active {
    color: #161616;
    border-left-color: #161616;
    background: #f0f1ec;
}

.main-content { padding: 40px 48px; }

/* --- Lookbook Grid --- */
.lookbook-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.lookbook-search__field {
    flex: 1;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.lookbook-card {
    background: #ffffff;
    border: 1px solid #e8e9e4;
    cursor: pointer;
    transition: border-color 0.2s;
}

.lookbook-card:hover { border-color: #161616; }

.lookbook-card__cover {
    aspect-ratio: 3/4;
    background: #f0f1ec;
    overflow: hidden;
    position: relative;
}

.lookbook-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lookbook-card__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9b9b9;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lookbook-card__body { padding: 16px 20px; }
.lookbook-card__title { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.lookbook-card__meta  { font-size: 0.72rem; color: #b9b9b9; }

.lookbook-card__actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #f0f1ec;
}

/* --- Album --- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.album-card {
    background: #ffffff;
    border: 1px solid #e8e9e4;
    padding: 10px;
    position: relative;
    min-width: 0;
}

.album-card__check {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.9);
    padding: 4px;
    line-height: 0;
    z-index: 1;
}

.album-card__thumb {
    position: relative;
    background: #f5f5f0;
    overflow: hidden;
    margin-bottom: 10px;
}

.album-card__thumb--button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: zoom-in;
}

.album-card__thumb--button img {
    transition: transform 0.2s ease;
}

.album-card__thumb--button:hover img,
.album-card__thumb--button:focus-visible img {
    transform: scale(1.03);
}

.album-zoom-box {
    /* Fixed, uniform frame — independent of the image's aspect ratio. */
    width: min(1100px, calc(100vw - 40px));
    height: min(820px, calc(100vh - 40px));
    background: #ffffff;
    border: 1px solid #e8e9e4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.album-zoom-head {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f1ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.album-zoom-title {
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-zoom-body {
    flex: 1;
    min-height: 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f0;
    overflow: auto;
    position: relative;
    cursor: zoom-in;
}

.album-zoom-body.is-zoomed {
    cursor: zoom-out;
    align-items: flex-start;
    justify-content: flex-start;
}

.album-zoom-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.album-zoom-body.is-zoomed img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: scale(2);
    transform-origin: top left;
}

.album-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.album-card__play::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(22,22,22,0.68);
}

.album-card__play::after {
    content: "";
    position: absolute;
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

.album-card__name {
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card__meta {
    margin-top: 4px;
    text-transform: capitalize;
}

.album-card__delete {
    width: 100%;
    margin-top: 10px;
    color: #990033;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #161616;
    border: 0;
    background: transparent;
}

.icon-btn:hover {
    opacity: 1;
}

.icon-btn--danger {
    color: #cc0000;
}

.icon-btn--danger:hover {
    color: #cc0000;
}

/* --- Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e8e9e4;
    padding: 24px;
}

.stat-card__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #b9b9b9;
}

/* --- Builder --- */
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: calc(100vh - 60px);
}

.builder-canvas {
    background: #f0f1ec;
    padding: 32px;
    overflow-y: auto;
}

.builder-panel {
    background: #ffffff;
    border-left: 1px solid #e8e9e4;
    overflow-y: auto;
}

.builder-panel__section {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f1ec;
}

.builder-panel__section h4 {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    color: #b9b9b9;
    margin-bottom: 16px;
}

/* --- Page Tiles (builder) --- */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.page-tile {
    background: #ffffff;
    border: 2px solid #e8e9e4;
    cursor: grab;
    position: relative;
    transition: border-color 0.2s;
}

.page-tile:hover { border-color: #161616; }
.page-tile.selected { border-color: #161616; }
.page-tile.dragging { opacity: 0.5; }

.page-tile__img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f1ec;
}

.page-tile__img img { width: 100%; height: 100%; object-fit: cover; }

.page-tile__footer {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f1ec;
}

.page-tile__num {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #b9b9b9;
}

.page-tile__badge {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #161616;
    color: #fff;
    padding: 2px 6px;
}

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed #b9b9b9;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #ffffff;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #161616;
    background: #fafaf8;
}

.upload-zone__icon { font-size: 2rem; color: #b9b9b9; margin-bottom: 12px; }
.upload-zone__text { font-size: 0.8rem; color: #b9b9b9; }
.upload-zone__text strong { color: #161616; }

/* --- Flipbook Viewer --- */
.viewer-page {
    background: #161616;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    height: 56px;
    background: #161616;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.viewer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 5px;
    color: #ffffff;
}

.viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.flipbook-container {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.flipbook-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.flipbook-page {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #161616;
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flipbook-page__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.flipbook-page__title {
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.flipbook-page__price {
    color: #f0f1ec;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: #161616;
}

.viewer-btn {
    background: none;
    border: 1px solid #444;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s;
}

.viewer-btn:hover { border-color: #ffffff; }
.viewer-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.viewer-page-num {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #b9b9b9;
}

/* --- Checkout --- */
.checkout-page {
    min-height: 100vh;
    background: #f0f1ec;
    padding: 60px 32px;
}

.checkout-wrap {
    max-width: 560px;
    margin: 0 auto;
}

/* --- Admin --- */
.admin-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #cc0000;
    color: #fff;
    padding: 2px 8px;
    vertical-align: middle;
}

/* --- Utility --- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mt-32       { margin-top: 32px; }
.mb-8        { margin-bottom: 8px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.mb-32       { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted  { color: #b9b9b9; }
.text-small  { font-size: 0.8rem; }
.font-mono   { font-family: monospace; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider     { height: 1px; background: #e8e9e4; margin: 24px 0; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .nav-sidebar-toggle { display: inline-flex; }
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        width: min(280px, 86vw);
        display: block;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 220;
        box-shadow: 16px 0 36px rgba(0,0,0,0.16);
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 60px 0 0;
        display: block;
        background: rgba(22,22,22,0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 210;
    }
    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    body.sidebar-open {
        overflow: hidden;
    }
    .main-content { padding: 24px; }
    .nav__section-link { display: list-item; }
    .builder-layout { grid-template-columns: 1fr; }
    .builder-panel { border-left: none; border-top: 1px solid #e8e9e4; }
}

@media (max-width: 768px) {
    .auth-page {
        display: block;
        min-height: 100vh;
        padding: 20px 14px;
        background: #f0e1e6;
    }
    .auth-page--intro::before,
    .auth-page--intro::after { display: none; }
    .auth-page--intro .auth-panel--left > *,
    .auth-page--intro .auth-panel--right .auth-form-wrap {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .auth-panel--left { display: none; }
    .auth-panel--right {
        min-height: calc(100vh - 40px);
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 28px 28px;
        background: #f0f1ec;
        border: 1px solid #e8e9e4;
        box-shadow: 0 18px 50px rgba(22,22,22,0.08);
    }
    .auth-form-wrap {
        max-width: none;
    }
    .auth-mobile-brand {
        display: block;
        margin-bottom: 42px;
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1rem;
        letter-spacing: 5px;
        color: #161616;
    }
    .auth-form-wrap h2 {
        margin-bottom: 24px !important;
    }
    .flipbook-spread { grid-template-columns: 1fr; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .btn {
        min-height: 42px;
        padding: 10px 14px;
    }
    .modal-bg,
    .confirm-bg {
        align-items: flex-end;
        padding: 0;
    }
    .modal-box,
    .confirm-box {
        max-width: none;
        max-height: 92vh;
        overflow-y: auto;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: 0 -20px 44px rgba(0,0,0,0.22);
    }
    .modal-head,
    .confirm-head {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
    }
    .modal-foot,
    .confirm-foot {
        flex-direction: column-reverse;
    }
    .modal-foot .btn,
    .confirm-foot .btn {
        width: 100%;
    }
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .orders-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }
    .orders-table thead {
        display: none;
    }
    .orders-table tbody,
    .orders-table .order-click-row,
    .orders-table .order-click-row td {
        display: block;
        width: 100%;
    }
    .orders-table .order-click-row {
        border: 1px solid #e8e9e4;
        background: #fff;
        padding: 14px;
        position: relative;
    }
    .orders-table .order-click-row:hover {
        background: #fff;
    }
    .orders-table .order-click-row td {
        border: 0;
        padding: 5px 0;
    }
    .orders-table .order-click-row td[data-label],
    .orders-table .order-click-row td:nth-child(4) {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }
    .orders-table .order-click-row td[data-label]::before,
    .orders-table .order-click-row td:nth-child(4)::before {
        color: #8a8a8a;
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 1.4px;
        text-transform: uppercase;
    }
    .orders-table .order-click-row td[data-label]::before {
        content: attr(data-label);
    }
    .orders-table .order-click-row td:nth-child(4)::before {
        content: "Lookbook";
    }
    .orders-table .order-click-row td:first-child {
        position: absolute;
        top: 14px;
        right: 14px;
        width: auto;
        padding: 0;
    }
    .orders-table .order-click-row td:first-child::before {
        display: none;
    }
    .orders-table .order-click-row td:nth-child(2) {
        display: block;
        font-weight: 800;
        color: #161616;
        padding: 0 42px 8px 0;
        width: auto;
        font-size: 0.95rem;
    }
    .orders-table .order-click-row td:nth-child(2)::before {
        display: none;
    }
    .orders-table .order-click-row td:nth-child(3) {
        display: block;
        padding: 0 0 10px;
    }
    .orders-table .order-click-row td:nth-child(3)::before {
        display: none;
    }
    .orders-table .order-click-row td:nth-child(4) {
        color: #777;
        font-size: 0.78rem;
        padding-top: 8px;
        border-top: 1px solid #f0f1ec;
    }
    .orders-table .order-click-row td:nth-child(5),
    .orders-table .order-click-row td:nth-child(7) {
        color: #777;
        font-size: 0.78rem;
    }
    .orders-table .order-click-row td:nth-child(6) {
        position: absolute;
        top: 12px;
        right: 44px;
        width: auto;
        padding: 0;
    }
    .orders-table .order-click-row td:nth-child(6)::before {
        display: none;
    }
    .album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .album-card {
        padding: 6px;
    }
    .album-card__check {
        top: 8px;
        left: 8px;
        padding: 3px;
    }
    .album-card__thumb {
        margin-bottom: 6px;
    }
    .album-card__name {
        font-size: 0.66rem;
    }
    .album-card__meta {
        display: none;
    }
    .album-card__delete {
        margin-top: 6px;
        min-height: 28px;
        padding: 6px 4px;
        font-size: 0.56rem;
        letter-spacing: 1px;
    }
    .container { padding: 0 16px; }
    .nav__inner { padding: 0 16px; }
    .nav__logo {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1rem;
        letter-spacing: 3px;
    }
    .nav__links {
        gap: 8px;
    }
    .nav-menu,
    .account-menu {
        position: static;
    }
    .nav-menu__dropdown {
        position: fixed;
        top: 60px;
        left: 12px;
        right: 12px;
        min-width: 0;
        max-height: min(420px, calc(100vh - 84px));
        overflow-y: auto;
        box-shadow: 0 18px 44px rgba(0,0,0,0.18);
        border: 1px solid #e8e9e4;
    }
    .page-header__inner { flex-direction: column; align-items: flex-start; }
}
