/* ===================================
   COFFEE 98 — PREMIUM STYLESHEET v2
   Dark Luxury Theme
   =================================== */

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

:root {
    --bg-0:      #060606;
    --bg-1:      #0f0f0f;
    --bg-2:      #161616;
    --card-bg:   rgba(255,255,255,0.035);
    --border:    rgba(255,255,255,0.08);
    --border-g:  rgba(201,169,97,0.4);
    --text:      #f0f0f0;
    --muted:     #777;
    --gold:      #c9a961;
    --gold-l:    #e3c47a;
    --gold-glow: rgba(201,169,97,0.22);
    --ease:      cubic-bezier(0.25,0.46,0.45,0.94);
    --spring:    cubic-bezier(0.34,1.56,0.64,1);
    --delay:     0s;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Koulen', 'Hanuman', 'Inter', 'Segoe UI', sans-serif;
    font-size: 16.5px;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 0.12s ease, filter 0.12s ease, font-size 0.2s ease;
}
/* Khmer mode — slightly larger for readability */
body.lang-km {
    font-size: 17px;
}
/* Language switch transition */
body.lang-switching {
    opacity: 0;
    filter: blur(2px);
    pointer-events: none;
}

/* ===================================
   PAGE LOADER
   =================================== */

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: logoReveal .9s var(--ease) .2s both;
}
.loader-logo span { color: var(--gold); }

.loader-bar {
    width: 220px;
    height: 2px;
    background: var(--border);
    margin: 1.8rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}
.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-l));
    animation: loadProgress 1.3s var(--ease) .3s forwards;
    width: 0;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(6,6,6,.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.1rem 0;
    transition: padding .35s var(--ease), background .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
    padding: .65rem 0;
    background: rgba(6,6,6,.97);
    box-shadow: 0 4px 40px rgba(0,0,0,.6);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
/* Logo upload box */
.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 2px dashed transparent;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}
body.is-admin .logo-box {
    border-color: var(--border-g);
    cursor: pointer;
}
body.is-admin .logo-box:hover {
    border-color: var(--gold);
    background: rgba(201,169,97,.06);
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-box-ph {
    font-size: 1.3rem;
    color: var(--gold);
    opacity: .5;
    pointer-events: none;
}
.logo {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
}
.logo span { color: var(--gold); }

/* ── Admin / User visibility ── */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: revert !important; }
/* Section-level overrides for block/flex elements */
body.is-admin section.admin-only { display: block !important; }
body.is-admin .add-category-wrap.admin-only { display: flex !important; }
body.is-admin .admin-badge.admin-only { display: flex !important; }
body.is-admin #emptyState .admin-only { display: inline-block !important; }

/* ── Nav right cluster ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── Admin badge ── */
.admin-badge {
    align-items: center;
    gap: .4rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bg-0);
    background: var(--gold);
    padding: .3rem .85rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Lock button ── */
.lock-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color .3s ease, color .3s ease, background .3s ease;
    position: relative;
    overflow: hidden;
}
.lock-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,169,97,.08);
}
/* Change password button */
.change-pw-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-g);
    background: rgba(201,169,97,.1);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .3s ease, transform .2s var(--spring);
    position: relative;
    overflow: hidden;
}
.change-pw-btn:hover {
    background: rgba(201,169,97,.25);
    transform: scale(1.08);
}
/* Language switch */
.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-g);
    background: rgba(201,169,97,.08);
    cursor: pointer;
    padding: 3px;
    gap: 0;
    user-select: none;
}
.lang-opt {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-2);
    transition: color .25s;
    line-height: 26px;
}
.lang-opt.active {
    color: #1a1200;
}
.lang-thumb {
    position: absolute;
    top: 3px;
    height: calc(100% - 6px);
    border-radius: 12px;
    background: var(--gold);
    transition: left .25s cubic-bezier(.34,1.56,.64,1), width .2s;
    z-index: 0;
}
/* Backup / Log / Users buttons */
.backup-btn, .log-btn, .users-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-g);
    background: rgba(201,169,97,.1);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .3s ease, transform .2s var(--spring);
    position: relative;
    overflow: hidden;
}
.backup-btn:hover, .log-btn:hover, .users-btn:hover {
    background: rgba(201,169,97,.25);
    transform: scale(1.08);
}

/* Admin dropdown menu */
.admin-menu {
    position: relative;
}
.admin-menu-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-g);
    background: rgba(201,169,97,.1);
    color: var(--gold);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s var(--spring);
}
.admin-menu-btn:hover { background: rgba(201,169,97,.25); transform: scale(1.08); }
.admin-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-1);
    border: 1px solid var(--border-g);
    border-radius: 12px;
    padding: .4rem;
    min-width: 185px;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 999;
    animation: dropIn .2s var(--spring);
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.admin-dropdown.open { display: flex; }
.admin-drop-item {
    display: flex; align-items: center; gap: .6rem;
    width: 100%; text-align: left;
    padding: .55rem .85rem;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.admin-drop-item:hover { background: rgba(255,255,255,.07); }
.admin-drop-divider {
    height: 1px;
    background: var(--border);
    margin: .3rem .4rem;
}
.admin-drop-logout { color: #e74c3c !important; }
.admin-drop-logout:hover { background: rgba(231,76,60,.12) !important; }

/* Site settings button */
.site-settings-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-g);
    background: rgba(201,169,97,.1);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .3s ease, transform .2s var(--spring);
    position: relative;
    overflow: hidden;
}
.site-settings-btn:hover {
    background: rgba(201,169,97,.25);
    transform: scale(1.08);
}
/* Featured name editable */
body.is-admin #featuredName {
    cursor: pointer;
    border-radius: 4px;
    transition: outline .2s;
}
body.is-admin #featuredName:hover {
    outline: 2px dashed var(--gold);
    outline-offset: 4px;
}
#featuredName.editing {
    outline: 2px solid var(--gold) !important;
    outline-offset: 4px;
    background: rgba(201,169,97,.06);
    border-radius: 4px;
}
/* Title color row */
.title-color-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.color-picker {
    width: 44px; height: 36px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}
.title-color-row .btn-cancel {
    white-space: nowrap;
    font-size: .72rem !important;
    padding: .45rem .7rem;
}
/* Title style live preview */
.title-preview-wrap {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
    text-align: center;
    margin: .75rem 0;
    overflow: hidden;
}
#titlePreviewText {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: 'Kdam Thmor Pro', 'Inter', sans-serif;
    display: inline-block;
    transition: font-size .2s;
}
/* Currency preview */
.currency-preview {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: .25rem;
}
.currency-preview strong {
    color: var(--gold);
    font-size: 1.05rem;
}

body.is-admin .lock-btn {
    border-color: var(--border-g);
    background: rgba(201,169,97,.1);
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    position: relative;
    transition: color .3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    transition: all .3s ease;
    transform-origin: left center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

/* ===================================
   HERO
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    background: transparent;
}

.hero-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border-g);
    padding: .45rem 1.4rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeInDown .8s var(--ease) .6s both;
}

.hero-title {
    font-size: clamp(2.8rem, 9vw, 11rem);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, #d4a84b 0%, #f0cc72 40%, #c9961f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Kdam Thmor Pro', 'Inter', 'Segoe UI', sans-serif;
    filter: drop-shadow(0 0 60px rgba(201,169,97,.35));
    animation: heroReveal 1.1s var(--ease) .8s both;
}
.hero-title span {
    display: inline;
    background: linear-gradient(135deg, #f0cc72 0%, #d4a84b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(.9rem, 2.5vw, 1.15rem);
    color: var(--muted);
    margin: 1.8rem 0 3rem;
    letter-spacing: 3px;
    font-weight: 300;
    animation: fadeInUp .8s var(--ease) 1s both;
}

.cta-button {
    display: inline-block;
    padding: 1.05rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: color .4s var(--ease);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
    animation: fadeInUp .8s var(--ease) 1.2s both;
}
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
    z-index: -1;
}
.cta-button:hover { color: var(--bg-0); }
.cta-button:hover::before { transform: scaleX(1); }

/* Floating cups */
.floating-cups {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.float-cup {
    position: absolute;
    opacity: 0.35;
    pointer-events: none;
    filter: drop-shadow(0 8px 32px rgba(201,169,97,.3)) brightness(1.1);
}
@keyframes floatA {
    0%   { transform: translateY(0px)   rotate(-8deg)  scale(1); }
    50%  { transform: translateY(-28px) rotate(-4deg)  scale(1.03); }
    100% { transform: translateY(0px)   rotate(-8deg)  scale(1); }
}
@keyframes floatB {
    0%   { transform: translateY(0px)   rotate(6deg)   scale(1); }
    50%  { transform: translateY(-22px) rotate(10deg)  scale(1.02); }
    100% { transform: translateY(0px)   rotate(6deg)   scale(1); }
}
@keyframes floatC {
    0%   { transform: translateY(0px)   rotate(-14deg) scale(1); }
    50%  { transform: translateY(-35px) rotate(-9deg)  scale(1.04); }
    100% { transform: translateY(0px)   rotate(-14deg) scale(1); }
}
@keyframes floatD {
    0%   { transform: translateY(0px)   rotate(12deg)  scale(1); }
    50%  { transform: translateY(-20px) rotate(16deg)  scale(1.02); }
    100% { transform: translateY(0px)   rotate(12deg)  scale(1); }
}
/* Individual cup positions & animations */
/* corners */
.fc-1 { width: 190px; top: 12%; left: 3%;   animation: floatA 6s   ease-in-out infinite; }
.fc-2 { width: 165px; top: 60%; left: 2%;   animation: floatB 7.5s ease-in-out infinite 1s; }
.fc-3 { width: 200px; top: 10%; right: 3%;  animation: floatC 8s   ease-in-out infinite 0.5s; }
.fc-4 { width: 170px; top: 60%; right: 2%;  animation: floatD 7s   ease-in-out infinite 1.5s; }
/* above title */
.fc-5 { width: 150px; top: 8%;  left: 38%;  animation: floatB 9s   ease-in-out infinite 0.8s; }
.fc-6 { width: 155px; top: 8%;  right: 22%; animation: floatA 7s   ease-in-out infinite 2s; }
/* below title */
.fc-7 { width: 145px; top: 75%; left: 30%;  animation: floatC 8.5s ease-in-out infinite 1.2s; }
.fc-8 { width: 150px; top: 74%; right: 28%; animation: floatD 6.5s ease-in-out infinite 0.3s; }

/* Hero circles */
.hero-background { position: absolute; inset: 0; pointer-events: none; }

.circle {
    position: absolute;
    border: 1px solid rgba(201,169,97,.07);
    border-radius: 50%;
    animation: slowFloat 9s ease-in-out infinite;
}
.circle-1 { width:520px; height:520px; top:-8%;  left:-6%;  animation-delay:0s; }
.circle-2 { width:360px; height:360px; bottom:4%; right:8%;  animation-delay:3s; }
.circle-3 { width:200px; height:200px; top:22%;  right:22%; animation-delay:1.5s;
            border-color: rgba(201,169,97,.04); }

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 1.8s both;
}
.scroll-dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollBounce 1.6s ease-in-out infinite;
}

/* ===================================
   SHARED LAYOUT
   =================================== */

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text);
    font-family: 'Kdam Thmor Pro', 'Inter', 'Segoe UI', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.section-title.revealed { opacity: 1; transform: translateY(0); }

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
}

/* ===================================
   CATEGORY FILTERS
   =================================== */

.category-filters-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 3.5rem;
}
.cat-scroll-btn {
    display: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-g);
    background: var(--bg-1);
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
.cat-scroll-btn:hover { background: rgba(201,169,97,.2); }
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    flex: 1;
}

.filter-btn {
    padding: .5rem 1.5rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: 100px;
    cursor: pointer;
    transition: all .3s var(--ease);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-0);
}

/* Add Category inline widget */
.add-category-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.add-cat-btn {
    border-color: rgba(201,169,97,.35);
    color: var(--gold);
    border-style: dashed;
}
.add-cat-input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width .4s var(--ease), opacity .3s ease;
}
.add-cat-input-row.open {
    max-width: 300px;
    opacity: 1;
}
.add-cat-input-row input {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-g);
    border-radius: 100px;
    padding: .45rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .78rem;
    letter-spacing: .5px;
    width: 170px;
    outline: none;
    transition: box-shadow .3s ease;
}
.add-cat-input-row input:focus {
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.add-cat-input-row input::placeholder { color: rgba(255,255,255,.25); }
.add-cat-confirm {
    padding: .45rem 1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--bg-0);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: background .25s ease, transform .2s var(--spring);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.add-cat-confirm:hover {
    background: var(--gold-l);
    transform: scale(1.05);
}

/* Category button label */
.cat-label { pointer-events: none; }

/* Drink count badge */
.cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    font-size: .65rem;
    font-weight: 700;
    margin-left: .4rem;
    pointer-events: none;
    transition: background .2s;
}
.filter-btn.active .cat-count {
    background: rgba(0,0,0,.2);
}

/* Admin controls group (reorder + delete) */
.cat-controls {
    display: none; /* hidden for all users by default */
}
/* Admin: make visible in DOM but invisible until hover */
body.is-admin .filter-btn .cat-controls {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .18s ease, transform .18s ease;
}
/* Show only on hover */
body.is-admin .filter-btn:hover .cat-controls {
    opacity: 1;
    transform: scale(1);
}

/* Move to first / last buttons */
.cat-move {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 4px;
    background: rgba(0,0,0,.3);
    font-size: .65rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    color: inherit;
}
.cat-move:hover { background: rgba(201,169,97,.7); color: #000; }

/* Delete badge on filter buttons */
.cat-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(0,0,0,.3);
    font-size: .6rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.cat-del:hover { background: rgba(200,55,55,.8); }
.cat-rename {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 4px;
    font-size: .65rem;
    cursor: pointer;
    background: rgba(201,169,97,.3);
    transition: background .2s ease;
}
.cat-rename:hover { background: rgba(201,169,97,.7); color: #000; }

/* ===================================
   MENU GRID
   =================================== */

.menu-section { background: var(--bg-0); }

/* Search bar */
.menu-search-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
}
.menu-search-icon {
    position: absolute;
    left: 1rem;
    font-size: .95rem;
    pointer-events: none;
    opacity: .5;
}
.menu-search-input {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .75rem 2.8rem .75rem 2.8rem;
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.menu-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.menu-search-clear {
    position: absolute;
    right: .8rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: .85rem;
    padding: .3rem;
    border-radius: 50%;
    transition: color .2s, background .2s;
}
.menu-search-clear:hover { color: var(--text); background: rgba(255,255,255,.08); }

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

/* Quick-add card */
.quick-add-card {
    border: 2px dashed var(--border-g) !important;
    background: rgba(201,169,97,.04) !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: border-color .2s, background .2s, transform .2s var(--spring) !important;
}
.quick-add-card:hover {
    border-color: var(--gold) !important;
    background: rgba(201,169,97,.1) !important;
    transform: translateY(-4px) !important;
}
.quick-add-inner {
    text-align: center;
    pointer-events: none;
}
.quick-add-icon {
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: .5rem;
    font-weight: 300;
}
.quick-add-label {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}
.quick-add-label strong { color: var(--gold); }

.menu-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: default;
    transition: transform .45s var(--spring), box-shadow .45s ease, border-color .3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(44px);
}
.menu-card.revealed { opacity: 1; transform: translateY(0); }

.menu-card:hover {
    transform: translateY(-14px);
    border-color: var(--border-g);
    box-shadow: 0 28px 56px rgba(201,169,97,.13), 0 8px 24px rgba(0,0,0,.5);
}

/* Card Image */
.card-image-wrap {
    position: relative;
    height: clamp(160px, 22vw, 220px);
    overflow: hidden;
}
.menu-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
    display: block;
}
.menu-card:hover .menu-image { transform: scale(1.09); }

/* Category Badge */
.card-category-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: .28rem .8rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(6,6,6,.82);
    color: var(--gold);
    border: 1px solid var(--border-g);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Edit / Delete Buttons */
.card-actions {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
}
.menu-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.card-action-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: transform .2s var(--spring), filter .2s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}
.btn-edit   { background: rgba(201,169,97,.92); color: var(--bg-0); }
.btn-delete { background: rgba(210,55,55,.92);  color: #fff; }
.btn-edit:hover,
.btn-delete:hover { transform: scale(1.18); filter: brightness(1.15); }

/* Card Body */
.card-body {
    padding: 1.3rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.menu-card {
    display: flex;
    flex-direction: column;
}
.card-footer { margin-top: auto; }
.card-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    color: var(--text);
}
.card-subtitle {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
    letter-spacing: .4px;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .5px;
    line-height: 1.3;
}
.card-order-btn {
    padding: .4rem 1.1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid var(--border-g);
    background: transparent;
    color: var(--gold);
    border-radius: 100px;
    cursor: pointer;
    transition: all .3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.card-order-btn:hover { background: var(--gold); color: var(--bg-0); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
    font-size: .95rem;
    letter-spacing: 1px;
}

/* ===================================
   FEATURED DRINK  — CSS Coffee Cup
   =================================== */

.featured {
    background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 100%);
    overflow: hidden;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.featured-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 440px;
}

/* Glow behind cup */
.featured-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 68%);
    border-radius: 50%;
    animation: glowPulse 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Featured drink photo (replaces CSS cup) */
.featured-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-g);
    box-shadow: 0 0 60px rgba(201,169,97,.25), 0 20px 60px rgba(0,0,0,.5);
    position: relative;
    z-index: 2;
    animation: floatCup 4.5s ease-in-out infinite;
}
@media (max-width: 640px) {
    .featured-img { width: 220px; height: 220px; }
}

/* Cup wrapper floats (kept for backwards compat) */
.featured-cup {
    position: relative;
    animation: floatCup 4.5s ease-in-out infinite;
    z-index: 2;
    margin-top: 40px;
}

/* Cup body */
.cup-body {
    width: 130px; height: 110px;
    background: linear-gradient(160deg, #282828 0%, #181818 100%);
    border-radius: 8px 8px 26px 26px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(201,169,97,.18),
        inset 0 2px 10px rgba(255,255,255,.04);
    border: 1px solid rgba(201,169,97,.28);
}

/* Coffee liquid */
.cup-liquid {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 64%;
    background: linear-gradient(180deg, #7b4520 0%, #3d1e08 100%);
    border-radius: 0 0 24px 24px;
    animation: liquidWave 3.2s ease-in-out infinite;
}
.cup-liquid::after {
    content: '';
    position: absolute;
    top: -1px; left: -50%;
    width: 200%; height: 12px;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,169,97,.25) 0%, transparent 60%);
    animation: liquidShimmer 2.2s ease-in-out infinite;
}

/* Shine */
.cup-shine {
    position: absolute;
    top: 10px; left: 10px;
    width: 28px; height: 55px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    transform: rotate(-22deg);
}

/* Saucer */
.cup-saucer {
    width: 160px; height: 14px;
    background: linear-gradient(160deg, #282828, #181818);
    border-radius: 50%;
    margin: 0 auto;
    border: 1px solid rgba(201,169,97,.2);
    box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px rgba(201,169,97,.08);
    position: relative;
    z-index: 1;
}

/* Handle */
.cup-handle {
    position: absolute;
    right: -27px; top: 22px;
    width: 30px; height: 46px;
    border: 3px solid rgba(201,169,97,.35);
    border-left: none;
    border-radius: 0 24px 24px 0;
}

/* Steam lines */
.steam-wrap {
    position: absolute;
    top: -72px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    align-items: flex-end;
}
.steam-line {
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(to top, rgba(201,169,97,.45), transparent);
    animation: steamRise 2.8s ease-in-out infinite;
}
.steam-line.s1 { height: 55px; animation-delay: 0s; }
.steam-line.s2 { height: 42px; animation-delay: .55s; }
.steam-line.s3 { height: 62px; animation-delay: 1.1s; }

/* Featured text */
.featured-description {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.featured-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
}
.featured-description h3 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--text);
}
.featured-description p {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.9;
    max-width: 480px;
}
.featured-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

/* ===================================
   ADD PRODUCT FORM
   =================================== */

.add-product { background: var(--bg-1); }

.product-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    display: grid;
    gap: 1.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.form-group label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea,
.contact-form input,
.contact-form textarea,
.modal .form-group input,
.modal .form-group select {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .9rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.2); }

.form-group select option,
.modal .form-group select option { background: #1a1a1a; color: var(--text); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.modal .form-group input:focus,
.modal .form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--bg-0);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: background .3s ease, transform .3s var(--spring), box-shadow .3s ease;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.submit-btn:hover {
    background: var(--gold-l);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(201,169,97,.3);
}
.submit-btn:active { transform: translateY(0); }
.btn-icon { font-size: 1.3rem; font-weight: 300; }

/* ===================================
   IMAGE UPLOAD ZONE
   =================================== */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
    background: rgba(255,255,255,.02);
    position: relative;
    pointer-events: all;
}
.upload-placeholder, .upload-preview {
    pointer-events: none;
}
.upload-remove {
    pointer-events: all;
}
.upload-zone:hover {
    border-color: var(--border-g);
    background: rgba(201,169,97,.04);
}
.upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(201,169,97,.08);
}
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 2rem 1rem;
    pointer-events: none;
}
.upload-icon { font-size: 2rem; opacity: .6; }
.upload-text { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.upload-hint { font-size: .72rem; color: rgba(255,255,255,.25); letter-spacing: .3px; }

.upload-preview {
    position: relative;
    width: 100%;
    height: 180px;
}
.upload-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.upload-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
    backdrop-filter: blur(6px);
}
.upload-remove:hover { background: rgba(200,55,55,.9); transform: scale(1.1); }

/* ===================================
   ABOUT
   =================================== */

.about { background: var(--bg-0); }

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.8rem 2rem;
    text-align: center;
    transition: transform .45s var(--spring), border-color .3s ease;
    opacity: 0;
    transform: translateY(44px);
}
.about-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay);
}
.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-g);
}
.about-icon { font-size: 2.6rem; margin-bottom: 1.5rem; }
.about-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--gold);
}
.about-card p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.85;
}

/* ===================================
   CONTACT
   =================================== */

.contact { background: var(--bg-1); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-g);
    height: 420px;
}
.map-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--muted);
    text-align: center;
    padding: 2rem;
    font-size: .88rem;
}
.map-placeholder span { font-size: 2.5rem; }
.map-placeholder strong { color: var(--gold); }
.map-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 16px;
}
.contact-info { display: grid; gap: 2.2rem; }

.contact-item {
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .65s ease, transform .65s ease;
}
.contact-item.revealed {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--delay);
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; color: var(--gold); }
.contact-item h3 {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
}
.contact-item p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.85;
}

.contact-form {
    padding: 2.8rem;
    display: grid;
    gap: 1.3rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .7s ease .25s, transform .7s ease .25s;
}
.contact-form.revealed { opacity: 1; transform: translateX(0); }

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: rgba(0,0,0,.55);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 3.5rem 0;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: 'Kdam Thmor Pro', 'Inter', 'Segoe UI', sans-serif;
}
.footer-logo span { color: var(--gold); }
.footer p { color: var(--muted); font-size: .82rem; letter-spacing: .8px; }

/* Social links */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.contact-social {
    justify-content: flex-start;
    margin-bottom: 1.75rem;
}
.social-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .22s var(--spring), opacity .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
    position: relative;
    overflow: hidden;
}
.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 22px rgba(0,0,0,.5);
}

/* Hero background image */
.hero.has-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero.has-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 1;
    pointer-events: none;
}
.hero.has-bg-img .hero-content,
.hero.has-bg-img .scroll-indicator,
.hero.has-bg-img .hero-bg-btn {
    z-index: 2;
    position: relative;
}
/* Admin hero bg button */
.hero-bg-btn {
    position: absolute;
    bottom: 2rem; right: 2rem;
    z-index: 3;
    background: rgba(0,0,0,.6);
    border: 1px solid var(--border-g);
    color: var(--gold);
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .75rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s;
    white-space: nowrap;
}
.hero-bg-btn:hover { background: rgba(201,169,97,.18); }
.hero-bg-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin-top: 1.2rem;
    position: relative;
    z-index: 3;
}
.hero-bg-dropdown {
    display: none;
    flex-direction: column;
    gap: .3rem;
    background: rgba(10,10,10,.92);
    border: 1px solid var(--border-g);
    border-radius: 12px;
    padding: .4rem;
    backdrop-filter: blur(12px);
    animation: dropIn .18s ease;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    z-index: 10;
}
.hero-bg-dropdown.open { display: flex; }
.hero-bg-opt {
    background: none;
    border: none;
    color: var(--text);
    font-size: .8rem;
    padding: .5rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
    transition: background .15s;
}
.hero-bg-opt:hover { background: rgba(255,255,255,.08); }
.hero-bg-opt-remove { color: #e74c3c !important; }
.hero-bg-opt-remove:hover { background: rgba(231,76,60,.12) !important; }

/* ===================================
   EDIT MODAL
   =================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.8rem;
    transform: scale(.9) translateY(20px);
    transition: transform .4s var(--spring);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--gold);
}
.modal .form-group { margin-bottom: 1.2rem; }
.modal .form-group label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: .45rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.6rem;
}
.btn-cancel {
    flex: 1;
    padding: .9rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 10px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.btn-cancel:hover { border-color: var(--muted); color: var(--text); }
.modal .submit-btn { flex: 1.5; }

/* ===================================
   INLINE EDITING
   =================================== */

/* Hint that an element is clickable for admin */
body.is-admin [data-editable]:hover,
body.is-admin [data-about-index]:hover {
    outline: 1px dashed var(--border-g);
    border-radius: 4px;
    cursor: text;
}
body.is-admin [data-editable].editing,
body.is-admin [data-about-index].editing {
    outline: 2px solid var(--gold);
    background: rgba(201,169,97,.06);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: text;
    min-width: 40px;
    display: inline-block;
}

/* ── Pin button on card ── */
.btn-pin {
    background: rgba(201,169,97,.2);
    color: var(--gold);
    font-size: .9rem;
}
.btn-pin:hover { background: rgba(201,169,97,.85); color: var(--bg-0); transform: scale(1.1); }

/* ── Featured star badge on pinned card ── */
.card-featured-star {
    position: absolute;
    bottom: 10px; right: 10px;
    font-size: 1.1rem;
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(201,169,97,.6));
    pointer-events: none;
    animation: glowPulse 2s ease-in-out infinite;
}

/* ── Featured pin hint for admin ── */
.featured-pin-hint {
    font-size: .75rem !important;
    color: var(--gold) !important;
    letter-spacing: .5px;
    opacity: .75;
    margin-bottom: 0 !important;
}

/* ── Edit Contact Info button ── */
.contact-edit-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}
.edit-section-btn {
    padding: .5rem 1.2rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--border-g);
    background: transparent;
    color: var(--gold);
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.edit-section-btn:hover {
    background: var(--gold);
    color: var(--bg-0);
}

/* ===================================
   LOGIN MODAL
   =================================== */

.login-modal {
    max-width: 420px;
    text-align: center;
    padding: 3rem 2.5rem;
    position: relative;
}
.login-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    animation: floatCup 4s ease-in-out infinite;
    display: block;
}
.login-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}
.login-subtitle {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.login-modal .form-group {
    text-align: left;
    margin-bottom: 1rem;
}
.login-modal .form-group label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: .5rem;
}
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrap input {
    flex: 1;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .9rem 3rem .9rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .3s ease, box-shadow .3s ease;
    width: 100%;
}
.password-wrap input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.password-wrap input::placeholder { color: rgba(255,255,255,.2); }
.toggle-pw {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: .45;
    transition: opacity .2s ease;
    line-height: 1;
    padding: 0;
}
.toggle-pw:hover { opacity: .85; }

.login-error {
    font-size: .8rem;
    color: #ff6b6b;
    min-height: 1.2em;
    text-align: left;
    margin-bottom: .25rem;
    letter-spacing: .3px;
}

.modal-close-x {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background .2s ease;
}
.modal-close-x:hover { color: var(--text); background: rgba(255,255,255,.07); }

/* ===================================
   RIPPLE
   =================================== */

.ripple-btn { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    transform: scale(0);
    animation: rippleAnim .65s linear;
    pointer-events: none;
}

/* ===================================
   TOAST
   =================================== */

.toast {
    position: fixed;
    top: 88px; right: 24px;
    padding: 1rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .4px;
    z-index: 3000;
    transform: translateX(130%);
    transition: transform .45s var(--spring);
    max-width: 320px;
    box-shadow: 0 12px 44px rgba(0,0,0,.45);
    font-family: inherit;
}
.toast.show { transform: translateX(0); }
.toast.success {
    background: rgba(201,169,97,.96);
    color: var(--bg-0);
    border: 1px solid var(--gold);
}
.toast.error {
    background: rgba(200,55,55,.96);
    color: #fff;
    border: 1px solid rgba(255,100,100,.4);
}

/* ===================================
   KEYFRAMES
   =================================== */

@keyframes logoReveal {
    from { opacity:0; transform: translateY(16px) scale(.95); }
    to   { opacity:1; transform: translateY(0)    scale(1);   }
}
@keyframes loadProgress {
    from { width:0;    }
    to   { width:100%; }
}
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(30px); }
    to   { opacity:1; transform: translateY(0);    }
}
@keyframes fadeInDown {
    from { opacity:0; transform: translateY(-20px); }
    to   { opacity:1; transform: translateY(0);     }
}
@keyframes heroReveal {
    from { opacity:0; transform: translateY(40px) scale(.96); }
    to   { opacity:1; transform: translateY(0)    scale(1);   }
}
@keyframes slowFloat {
    0%,100% { transform: translateY(0)    rotate(0deg); }
    50%     { transform: translateY(-32px) rotate(2deg); }
}
@keyframes floatCup {
    0%,100% { transform: translateY(0);    }
    50%     { transform: translateY(-20px); }
}
@keyframes glowPulse {
    0%,100% { transform: scale(1);    opacity: .6; }
    50%     { transform: scale(1.18); opacity: 1;  }
}
@keyframes steamRise {
    0%   { transform: translateY(0)    scaleX(1);   opacity: .75; }
    50%  { transform: translateY(-28px) scaleX(1.6); opacity: .4;  }
    100% { transform: translateY(-60px) scaleX(.5);  opacity: 0;   }
}
@keyframes liquidWave {
    0%,100% { transform: translateY(0);    }
    50%     { transform: translateY(-4px); }
}
@keyframes liquidShimmer {
    0%,100% { transform: translateX(0);   }
    50%     { transform: translateX(12%); }
}
@keyframes scrollBounce {
    0%,100% { transform: translateY(0);   opacity: 1;  }
    50%     { transform: translateY(10px); opacity: .4; }
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}
@keyframes shake {
    0%,100% { transform: translateX(0) scale(1); }
    20%     { transform: translateX(-8px) scale(1); }
    40%     { transform: translateX(8px)  scale(1); }
    60%     { transform: translateX(-5px) scale(1); }
    80%     { transform: translateX(5px)  scale(1); }
}
.modal.shake { animation: shake .45s ease; }

/* ===================================
   RESPONSIVE
   =================================== */

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤960px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    /* About cards: single column */
    .about-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

    /* Featured: stack vertically */
    .featured-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .featured-description { align-items: center; }
    .featured-description p { max-width: 560px; margin: 0 auto; }
    .featured-img { width: 260px; height: 260px; }

    /* Menu grid: 2 columns */
    .menu-grid { grid-template-columns: repeat(2, 1fr); }

    /* Admin badge: hide label, keep dot indicator */
    .admin-badge { display: none !important; }
    body.is-admin .admin-badge { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Floating cups — smaller on mobile, hide center ones ── */
    .fc-1 { width: 110px; top: 3%;  left: 1%;   }
    .fc-2 { width: 100px; top: 58%; left: 0%;   }
    .fc-3 { width: 115px; top: 2%;  right: 1%;  }
    .fc-4 { width: 105px; top: 56%; right: 0%;  }
    .fc-5, .fc-6, .fc-7, .fc-8 { display: none; }
    .float-cup { opacity: 0.25; }

    /* ── Navbar ── */
    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(6,6,6,.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s ease;
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }
    .nav-links.open { max-height: 480px; }
    .nav-links li a {
        display: block;
        padding: 1rem 1.75rem;
        border-bottom: 1px solid var(--border);
        font-size: .95rem;
    }

    /* Shrink nav-right on mobile */
    .nav-right { gap: .45rem; }
    .lang-switch { height: 28px; }
    .lang-opt    { padding: 0 7px; font-size: .68rem; line-height: 22px; }
    .lock-btn, .change-pw-btn, .site-settings-btn,
    .backup-btn, .log-btn, .users-btn {
        width: 30px; height: 30px; font-size: .85rem;
    }

    /* Logo box smaller */
    .logo-box  { width: 34px; height: 34px; border-radius: 6px; }
    .logo      { font-size: 1.2rem; letter-spacing: 2px; }
    .nav-brand { gap: .5rem; }

    /* ── Sections ── */
    section { padding: 4rem 0; }
    .section-container { padding: 0 1.25rem; }
    .section-title { margin-bottom: 2rem; letter-spacing: 2px; }

    /* ── Hero content side padding so text never touches screen edge ── */
    .hero-content { padding: 0 1.5rem; }
    .hero-tagline { margin: 1.2rem 0 2.2rem; }
    .cta-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }

    /* ── Menu ── */
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .menu-card .card-body { padding: 1rem; }
    .card-name {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Admin: always show card edit/delete on touch (no hover needed) */
    body.is-admin .menu-card .card-actions {
        opacity: 1;
        transform: translateY(0);
    }

    /* ── Category filters: scrollable row with arrows ── */
    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .category-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }
    .cat-scroll-btn { display: flex; }

    /* ── Featured ── */
    .featured-img { width: 200px; height: 200px; }

    /* ── About ── */
    .about-grid { max-width: 100%; }

    /* ── Contact ── */
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-map { height: 280px; }
    .contact-form { padding: 1.5rem 1.25rem; }

    /* ── Forms ── */
    .form-row { grid-template-columns: 1fr; }
    .product-form { padding: 1.75rem 1.25rem; }

    /* ── Hero bg button: bottom center on mobile ── */
    .hero-bg-btn {
        bottom: 1.5rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: .7rem;
    }

    /* ── Modals ── */
    .modal { padding: 1.5rem 1.25rem; width: calc(100vw - 2rem); }
    .modal-actions { flex-direction: column-reverse; gap: .6rem; }
    .modal-actions button { width: 100%; }

    /* ── Toast ── */
    .toast { right: 12px; left: 12px; max-width: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Small phone (≤480px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* Hero */
    .hero-content { padding: 0 1rem; }
    .hero-title { font-size: clamp(2.2rem, 13.5vw, 5rem); white-space: normal; letter-spacing: .02em; }
    .hero-tagline { font-size: .9rem; letter-spacing: 1.5px; }
    .cta-button { padding: .85rem 2rem; font-size: .75rem; }

    /* Menu: 2 columns on small phones */
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .card-name { white-space: normal; font-size: .85rem; }
    .menu-image { height: 130px; }
    .card-body { padding: .7rem !important; min-height: 90px; }
    .card-name { font-size: .78rem; min-height: 2.2em; }
    .card-subtitle { display: none; }
    .menu-price { font-size: .9rem; }
    .card-order-btn { padding: .35rem .7rem; font-size: .7rem; }
    .card-category-badge { font-size: .6rem; padding: .2rem .5rem; }

    /* Nav brand: even smaller */
    .logo { font-size: 1.05rem; letter-spacing: 1px; }
    .logo-box { width: 28px; height: 28px; }
    .nav-right { gap: .3rem; }

    /* Section title: smaller on tiny screens */
    .section-title { font-size: clamp(1.4rem, 8vw, 2rem); letter-spacing: 1px; margin-bottom: 1.5rem; }

    /* Category filters: smaller buttons */
    .filter-btn { padding: .4rem 1rem; font-size: .68rem; }

    /* Social links: smaller icons */
    .social-btn { width: 40px; height: 40px; font-size: .95rem; }

    /* Featured image and section */
    .featured-img { width: 170px; height: 170px; }
    .featured-container { gap: 2rem; }

    /* About cards */
    .about-grid { max-width: 100%; }
    .about-card { padding: 1.75rem 1.25rem; }

    /* Contact */
    .contact-form { padding: 1.25rem 1rem; }

    /* Footer */
    .footer { padding: 2.5rem 1rem; }
    .footer-logo { font-size: 1.5rem; letter-spacing: 3px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet landscape / iPad (769–1024px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .section-container { padding: 0 2rem; }
    .featured-img { width: 240px; height: 240px; }
}

/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENT BANNER
   ═══════════════════════════════════════════════════════ */

.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .55rem 1.25rem;
    font-size: .85rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 200;
    flex-wrap: wrap;
}

.ann-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: .9rem;
    padding: .1rem .35rem;
    border-radius: 50%;
    transition: color .2s, background .2s;
}
.ann-close:hover { color: #fff; background: rgba(255,255,255,.15); }

.ann-edit {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .75rem;
    padding: .15rem .5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.ann-edit:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════════════════
   STATUS BADGE (Open / Closed)
   ═══════════════════════════════════════════════════════ */

.status-badge {
    display: flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.status-badge.open   { background: rgba(34,197,94,.18);  color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.status-badge.closed { background: rgba(239,68,68,.18);  color: #f87171; border: 1px solid rgba(239,68,68,.35); }

/* ═══════════════════════════════════════════════════════
   CARD DESCRIPTION
   ═══════════════════════════════════════════════════════ */

.card-subtitle {
    font-size: .86rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════
   TOGGLE LABEL (checkbox rows)
   ═══════════════════════════════════════════════════════ */

.toggle-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    cursor: pointer;
    color: var(--text);
}
.toggle-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   TEXTAREA in forms
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   ACTIVITY LOG
   ═══════════════════════════════════════════════════════ */

.log-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: .25rem;
}

.log-entry {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .6rem .85rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .82rem;
}

.log-user   { color: var(--gold); font-weight: 600; }
.log-action { color: var(--text); }
.log-time   { color: var(--muted); font-size: .75rem; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   USER MANAGEMENT
   ═══════════════════════════════════════════════════════ */

.users-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .5rem;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.user-name  { font-size: .9rem; font-weight: 500; }

.owner-badge {
    background: #c0392b;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: .1rem .4rem;
    border-radius: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.you-badge {
    background: var(--gold);
    color: #000;
    font-size: .62rem;
    font-weight: 700;
    padding: .1rem .4rem;
    border-radius: 10px;
    letter-spacing: .5px;
    margin-left: .4rem;
    vertical-align: middle;
}

.del-user-btn {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.3);
    color: #f87171;
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.del-user-btn:hover { background: rgba(239,68,68,.25); }

/* ═══════════════════════════════════════════════════════
   TEXTAREA in forms
   ═══════════════════════════════════════════════════════ */

textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    padding: .65rem .85rem;
    transition: border-color .2s;
    outline: none;
}
textarea:focus { border-color: var(--gold); }
textarea::placeholder { color: var(--muted); }
