/* ═══════════════════════════════════════════════════════════════
   FRESHMILK TOGO — base.css
   Tokens, reset, header, login, view-section, responsive
   ═══════════════════════════════════════════════════════════════ */

/* ═══ DESIGN TOKENS ═══ */
:root {
    --bg-main: #050505;
    --bg-panel: #0a0a0a;
    --accent-gradient: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    --border-soft: rgba(255, 255, 255, 0.08);
}

/* ═══ RESET & BODY ═══ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: #FFFFFF;
    margin: 0;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ═══ GLOBAL HEADER ═══ */
.fm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(10, 10, 10, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .fm-header {
        padding: 0 2.5rem;
    }
}

/* Logo */
.fm-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.fm-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
    line-height: 1;
}

.fm-logo-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #000;
    color: #000;
    letter-spacing: 0.2em;
    padding: 5px 6px;
    border-radius: 3px;
    line-height: 1;
    display: inline;
}

/* Header Right */
.fm-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

@media (min-width: 768px) {
    .fm-header-right {
        gap: 1.5rem;
    }
}

/* Nav Desktop */
.fm-nav {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-right: 1rem;
}

@media (min-width: 1280px) {
    .fm-nav {
        display: flex;
    }
}

.fm-nav a {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #888;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fm-nav a:hover,
.fm-nav a.active {
    color: #fff;
}

/* ═══ HAMBURGER (mobile only) ═══ */
.fm-hamburger {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.fm-hamburger:hover {
    color: #fff;
}

@media (max-width: 1279px) {
    .fm-hamburger {
        display: flex;
        align-items: center;
    }
}

@media (min-width: 1280px) {
    .fm-hamburger {
        display: none;
    }
}

/* Mobile Nav Overlay */
.fm-mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    animation: slideDown 0.2s ease-out;
}

.fm-mobile-nav.open {
    display: flex;
}

.fm-mobile-nav a {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fm-mobile-nav a:hover,
.fm-mobile-nav a.active {
    color: #fff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Selector */
.fm-lang-btn {
    background: none;
    border: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    font-family: inherit;
}

.fm-lang-btn:hover {
    color: #fff;
}

.fm-lang-arrow {
    color: rgba(255, 255, 255, 0.3);
}

/* Language Wrapper */
.fm-lang-wrap {
    position: relative;
    min-width: 48px;
    text-align: center;
}

/* Language Dropdown */
.fm-lang-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0.5rem;
    min-width: 8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(192, 192, 192, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 60;
    background: rgba(10, 10, 10, 0.95);
    padding: 0.25rem 0;
}

.fm-lang-menu.open {
    display: block;
}

.fm-lang-option {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
}

.fm-lang-option:hover {
    color: #fff;
}

.fm-lang-option.active {
    color: #fff;
    background: none;
}

.fm-lang-option.active::before {
    content: '✓';
    position: absolute;
    left: 6px;
    color: rgba(192, 192, 192, 0.8);
    font-size: 8px;
}

.fm-lang-divider {
    height: 1px;
    background: rgba(192, 192, 192, 0.15);
    margin: 0 12px;
}

/* Header Divider */
.fm-header-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

@media (min-width: 640px) {
    .fm-header-divider {
        display: block;
    }
}

/* ═══ USER WIDGET ═══ */
.fm-user-widget {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.fm-user-widget.visible {
    opacity: 1;
    pointer-events: auto;
}

.fm-user-info {
    display: none;
    flex-direction: column;
    text-align: right;
}

@media (min-width: 640px) {
    .fm-user-info {
        display: flex;
    }
}

.fm-user-name {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    font-weight: 700;
    transition: color 0.2s ease;
}

.fm-user-widget:hover .fm-user-name {
    color: rgba(255, 255, 255, 0.8);
}

.fm-user-plan {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFD700;
}

.fm-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease;
}

.fm-user-widget:hover .fm-user-avatar {
    border-color: rgba(255, 255, 255, 0.4);
}

/* User Dropdown */
.fm-user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(192, 192, 192, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 60;
    background: rgba(10, 10, 10, 0.95);
}

.fm-user-menu.open {
    display: block;
}

.fm-user-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.fm-user-menu button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fm-user-menu button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ═══ MAIN VIEWPORT ═══
   Bulletproof: header 70px + footer 40px = 110px reserved.
   Main fills EXACTLY the space between them. Content NEVER overflows below footer.
   ═══ */
.fm-main {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ VIEW SECTIONS ═══ */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.view-section.active {
    display: flex;
    opacity: 1;
}

/* Form visibility — replaces inline style.display */
.form-hidden {
    display: none !important;
}

/* ═══ BUTTONS ═══ */
.btn-freshmilk {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-freshmilk:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

/* ═══ INPUT FIELDS ═══ */
.fm-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    color: #FFF;
    font-family: inherit;
    transition: all 0.3s ease;
}

.fm-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.fm-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ═══ LOGIN SCREEN ═══ */
#view-login {
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-main);
    z-index: 5;
}

/* When login is active: hide nav, lang, divider, user widget — only logo */
#view-login.active~#login-header-mask,
body:has(#view-login.active) .fm-nav,
body:has(#view-login.active) .fm-lang-btn,
body:has(#view-login.active) .fm-header-divider,
body:has(#view-login.active) .fm-user-widget {
    display: none !important;
}

.login-card {
    width: 100%;
    max-width: 24rem;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-card-glow {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.login-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.5rem;
}

.login-input {
    width: 100%;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.login-submit {
    width: 100%;
    border-radius: 1rem;
    padding: 0.5rem;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-divider-text {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Social / Alt Login Buttons */
.login-social-btn {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(192, 192, 192, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-social-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(192, 192, 192, 0.25);
}

.login-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-social-btn span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.login-social-btn:hover span {
    color: #fff;
}

.login-social-btn:hover svg {
    opacity: 1;
}

/* Forgot / Back Links */
.login-link-wrap {
    margin-top: 0.5rem;
    text-align: center;
}

.login-link {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    font-family: inherit;
}

.login-link:hover {
    color: #fff;
}

/* Login Panels (signup, forgot, reset, activated) */
.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-panel-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Back Button (← arrow) */
.login-back-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    font-family: inherit;
}

.login-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Footer Links (side by side) */
.login-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

/* Success States */
.login-success {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.login-success.visible {
    display: block;
}

.login-success-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-success-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.login-success-icon.blue svg {
    color: #60a5fa;
}

.login-success-icon.green {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.login-success-icon.green svg {
    color: #4ade80;
}

.login-success-title {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.login-success-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

/* Activated Panel Content */
.activated-content {
    text-align: center;
    padding: 1rem 0;
}

.activated-content .login-success-icon {
    margin: 0 auto 0.75rem;
}

.activated-content .login-success-title {
    margin-bottom: 0.25rem;
}

.activated-content .login-success-sub {
    margin-bottom: 1rem;
}

/* ═══ GLOBAL FOOTER ═══ */
.fm-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--bg-main);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 40;
}

.fm-footer-left,
.fm-footer-right {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.fm-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-google-logo {
    height: 12px;
    width: auto;
    opacity: 0.35;
}

/* ═══ STEP NAVIGATION BAR ═══ */
.step-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.5rem;
    z-index: 10;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-back {
    background: none;
    border: none;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: left;
}

.step-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    flex: 1;
    text-align: center;
}

.step-progress {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.2em;
    min-width: 80px;
    text-align: right;
}

/* ═══ MODAL ═══ */
.fm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fm-modal-overlay.show {
    display: flex;
}

.fm-modal-card {
    max-width: 22rem;
    width: 90%;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(192, 192, 192, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
}

.fm-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192, 192, 192, 0.5), transparent);
}

.fm-modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.fm-modal-ok {
    border-radius: 0.75rem;
    padding: 0.6rem 2.5rem;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FFF 0%, #A0A0A0 100%);
    color: #000;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fm-modal-ok:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.fm-modal-ok:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ═══ SUBCATEGORY MODAL ═══ */
.subcat-modal-card {
    text-align: left;
    max-width: 24rem;
}

.subcat-modal-card .fm-modal-text {
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 12px;
}

.fm-modal-card-glow {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192, 192, 192, 0.5), transparent);
}

.subcat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.subcat-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.5rem;
}

.subcat-category-display {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-left: 1rem;
}

.subcat-dropdown {
    position: relative;
    width: 100%;
}

.subcat-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.subcat-dropdown-trigger.has-value {
    color: #fff;
    font-weight: 600;
}

.subcat-dropdown-trigger:hover,
.subcat-dropdown.open .subcat-dropdown-trigger {
    border-color: rgba(255, 255, 255, 0.35);
}

.subcat-dropdown.open .subcat-dropdown-trigger svg {
    transform: rotate(180deg);
}

.subcat-dropdown-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.subcat-dropdown-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 6px;
}

.subcat-dropdown.open .subcat-dropdown-list {
    display: block;
}

.subcat-search {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    outline: none;
    margin-bottom: 4px;
    border-radius: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subcat-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.subcat-items {
    max-height: 200px;
    overflow-y: auto;
}

.subcat-dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subcat-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.subcat-dropdown-item.selected {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
}

/* Scrollbar */
.subcat-items::-webkit-scrollbar {
    width: 4px;
}

.subcat-items::-webkit-scrollbar-track {
    background: transparent;
}

.subcat-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.subcat-modal-card .fm-modal-ok {
    width: 100%;
    margin-top: 0.5rem;
}

/* ═══ TOAST ═══ */
.fm-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.fm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══ KEYFRAMES ═══ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* ═══ UTILITY ═══ */
.hidden {
    display: none !important;
}