:root {
    /* ── Brand ── */
    --color-brand: #CB3534;
    --color-brand-hover: #A22A29;
    --color-brand-soft: #FBEEEE;

    /* ── DS Ink / Surface / Divider ── */
    --color-ink: #191919;
    --color-ink-sub: rgba(0, 0, 0, 0.52);
    --color-ink-muted: rgba(0, 0, 0, 0.44);
    --color-surface: #ffffff;
    --color-surface-alt: #f2f3f5;
    --color-divider: #f0f0f2;
    --color-star: #ffb800;

    /* ── Spacing scale ── */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    /* ── Typography ── */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 26px;

    /* ── Radii ── */
    --ds-radius-md: 14px;
    --ds-radius-lg: 20px;
    --ds-radius-xl: 24px;
    --ds-radius-pill: 999px;

    /* ── Shadow ── */
    --ds-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);

    /* ── Colors from globals.css (OKLCH approximations) ── */
    --bg-sand: #fdfcfb;
    --bg: #ffffff;
    --bg-secondary: #f8f7f5;
    --text-primary: #181818;
    --text-secondary: #717171;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
    background: var(--bg-sand);
    color: var(--color-ink);
    height: 100%;
    overflow: hidden;
}

/* Desktop centering frame */
.app-frame {
    display: flex;
    justify-content: center;
    height: 100dvh;
    width: 100%;
}

.mobile-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    background: var(--bg);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.15);
    height: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-container {
        box-shadow: none;
    }
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
}

header .search-input {
    display: flex;
    gap: 6px;
}

header .btn-noti {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

header .btn-noti:hover {
    background-color: #f2f3f5;
}

header .btn-noti svg {
    width: 20px;
    height: 20px;
}

.logo {
    color: #cb3534;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 999px;
    height: 36px;
    padding: 0 var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    text-decoration: none;
    gap: var(--space-sm);
    transition: background 0.2s;
}

.search-bar:hover {
    background-color: #e9e9e9;
}

/* Main Content */
main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    scrollbar-width: none;
}

main::-webkit-scrollbar {
    display: none;
}


/* Sections */
.section-greeting {
    padding: 18px 20px 8px;
}

.section-greeting h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
    margin: 0;
}



/* Store Row */
.store-row {
    display: flex;
    padding: 14px 20px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.store-img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: #eee;
    object-fit: cover;
    flex-shrink: 0;
}

.store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-meta {
    font-size: 13px;
    color: var(--color-ink-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}



/* Bottom Nav */
nav#bottom-nav {
    position: absolute;
    left: 50%;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    height: 64px;
    border-radius: 9999px;
    z-index: 10;
    isolation: isolate;
    transition: all 340ms cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%);
}

.nav-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    overflow: hidden;
    pointer-events: none;
    backdrop-filter: url(#liquid-glass-refraction) blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(140deg, hsla(0, 0%, 100%, 0.45) 0%, hsla(0, 0%, 100%, 0.15) 60%, hsla(0, 0%, 100%, 0.35) 100%);
    box-shadow:
        0 24px 48px -16px rgba(17, 12, 20, 0.28),
        0 8px 20px -6px rgba(17, 12, 20, 0.14),
        inset 0 1.5px 0.5px hsla(0, 0%, 100%, 0.95),
        inset 0 0 0 1px hsla(0, 0%, 100%, 0.35);
}

.nav-items {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 6px;
}

.active-pill {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc((100% - 12px) / 5);
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 12px -2px rgba(17, 12, 20, 0.16);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.nav-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #181818;
    font-size: 10px;
    font-weight: 600;
    gap: 2px;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--color-brand);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Animations from globals.css */
@keyframes ds-icon-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

.theme-icon--float {
    animation: ds-icon-float 4.5s ease-in-out infinite;
}

/* Footer */
footer {
    padding: 32px 20px 40px;
    margin-top: 32px;
    border-top: 1px solid var(--color-divider);
    color: rgba(0, 0, 0, 0.44);
    font-size: 11px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-ink-sub);
    text-decoration: none;
    font-weight: 500;
}

button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

p {
    margin: 0;
    padding: 0;
}

.swiper-pagination-bullet {
    background: #fff !important;
}

.swiper-pagination-bullet-active {
    width: 20px !important;
    border-radius: 5px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}


#bottom-nav {
    width: 408px;
}

#bottom-nav a svg {
    width: 24px;
    height: 24px;
}

#bottom-nav:not(.active) a svg {
    width: 18px;
    height: 18px;
}

#bottom-nav a span {
    display: inline;
}

#bottom-nav:not(.active) a span {
    display: none;
}

.hidden {
    display: none !important;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

dl,
dl dt,
dl dd {
    margin: 0;
    padding: 0;
}

.input-inactive {
    border: 1px solid #e0e0e0 !important;
    opacity: 0.5;
}

.input-inactive:focus {
    border: 1px solid #e0e0e0 !important;
}

.dim {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0;
}


#calendar {
    height: 449px;
}

#calendar .fc-toolbar.fc-header-toolbar {
    margin-bottom: 10px;
}

#calendar .selected-date {
    background-color: #CB3534 !important;
    color: white !important;
}

#calendar .selected-date .fc-daygrid-day-number {
    color: white !important;
}
