/* ============================================================
   YS Project - Main Stylesheet
   Mobile-first responsive design
   ============================================================ */

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

:root {
    /* Colors */
    --color-primary: #6C5CE7;
    --color-primary-dark: #5A4BD1;
    --color-primary-light: #A29BFE;
    --color-accent: #FF6B6B;
    --color-accent-hover: #EE5A5A;
    --color-success: #00B894;
    --color-warning: #FDCB6E;
    --color-bg: #F8F9FA;
    --color-white: #FFFFFF;
    --color-text: #2D3436;
    --color-text-secondary: #636E72;
    --color-text-muted: #B2BEC3;
    --color-border: #DFE6E9;
    --color-card-bg: #FFFFFF;
    --color-premium: #F9CA24;
    --color-premium-bg: #FFF9E6;

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

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Typography */
    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
                    system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Noto Sans KR',
                    'Apple SD Gothic Neo', sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-md: 17px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;

    /* Layout */
    --max-width: 1200px;
    --header-height: 56px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

select {
    font-family: inherit;
}


/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--font-size-md);
    color: var(--color-primary);
}

.header__logo:hover {
    color: var(--color-primary-dark);
}

.header__logo-icon {
    font-size: var(--font-size-lg);
}

.header__logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.header__logo-img {
    max-height: 36px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__user {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.specialist-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: linear-gradient(135deg, #00B894, #00CEC9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.header__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.header__link:hover {
    background: var(--color-bg);
}

.header__link--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.header__link--primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.header__link--active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--color-primary);
}

/* Notification bell */
.header__noti-wrap {
    position: relative;
}

.header__noti-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    position: relative;
    line-height: 1;
}

.header__noti-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

.header__noti-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    max-height: 360px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
}

.header__noti-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.header__noti-read-all {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    cursor: pointer;
    font-family: var(--font-family);
}

.header__noti-list {
    max-height: 300px;
    overflow-y: auto;
}

.header__noti-empty {
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ── Header Community Dropdown ── */
.header__community-wrap {
    position: relative;
}
.header__community-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: inherit;
}
.header__community-btn:hover {
    background: var(--color-bg);
}
.header__community-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    padding: var(--space-xs) 0;
}
.header__community-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    white-space: nowrap;
}
.header__community-item:hover {
    background: var(--color-bg);
}
.header__community-item--all {
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xs);
}
.header__community-empty {
    padding: var(--space-md);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.header__noti-item {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border-light, #f5f5f5);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    cursor: default;
}

.header__noti-item:last-child {
    border-bottom: none;
}

.header__noti-item--unread {
    background: rgba(108, 92, 231, 0.04);
}

.header__noti-item__time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── Mobile Header (hamburger menu) ── */
.header__mobile-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    background: none;
    border: none;
}
.header__hamburger span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.header__hamburger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header__hamburger--active span:nth-child(2) {
    opacity: 0;
}
.header__hamburger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 200;
    padding: var(--space-sm) 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.header__mobile-menu--open {
    display: block;
}
.header__mobile-user {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xs);
}
.header__mobile-link {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s;
}
.header__mobile-link:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Hide hamburger on desktop, show desktop nav */
@media (min-width: 769px) {
    .header__mobile-actions { display: none; }
    .header__mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
    .header__nav--desktop { display: none; }
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    color: var(--color-white);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

.hero__inner {
    max-width: 600px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.hero__subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

/* Search Bar */
.search-bar {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
}

.search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--color-text);
    min-width: 0;
}

.search-bar__input::placeholder {
    color: var(--color-text-muted);
}

.search-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-bar__btn:hover {
    background: var(--color-primary-dark);
}


/* ── Filters ── */
.filters {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    position: sticky;
    top: var(--header-height);
    z-index: 90;
}

.filters__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.filters__bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filters__row {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.filters__row::-webkit-scrollbar {
    display: none;
}

.filters__select {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 8px 32px 8px 14px;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.filters__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Filters - Inline Search */
.filters__search {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-left: auto;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filters__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.filters__search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 12px;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--color-text);
    width: 130px;
    min-width: 0;
}

.filters__search-input::placeholder {
    color: var(--color-text-muted);
}

.filters__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    transition: color 0.2s;
}

.filters__search-btn:hover {
    color: var(--color-primary);
}

/* ── Filters: PC Custom Dropdown ── */
.filters__trigger {
    display: none;
}

.filters__dropdown {
    display: none;
}

@media (min-width: 768px) {
    .filters__inner {
        position: relative;
    }

    .filters__select {
        display: none !important;
    }

    .filters__trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-full);
        padding: 8px 14px;
        font-size: var(--font-size-sm);
        font-family: var(--font-family);
        color: var(--color-text);
        cursor: pointer;
        white-space: nowrap;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    }

    .filters__trigger::after {
        content: '';
        display: inline-block;
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.2s;
    }

    .filters__trigger--open::after {
        transform: rotate(180deg);
    }

    .filters__trigger:hover {
        border-color: var(--color-primary);
    }

    .filters__trigger:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    }

    .filters__trigger--disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .filters__trigger--active {
        background: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);
    }

    .filters__trigger--active::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }

    .filters__dropdown--open {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: var(--space-md);
        z-index: 100;
        margin-top: var(--space-xs);
        animation: filterDropdownIn 0.15s ease-out;
    }

    @keyframes filterDropdownIn {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .filters__dropdown-grid {
        display: grid;
        gap: var(--space-xs);
    }

    .filters__dropdown-item {
        padding: 10px 8px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        text-align: center;
        font-size: var(--font-size-sm);
        color: var(--color-text);
        background: var(--color-bg);
        border: 1px solid transparent;
        transition: all 0.15s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .filters__dropdown-item:hover {
        border-color: var(--color-primary-light);
        background: rgba(108, 92, 231, 0.08);
    }

    .filters__dropdown-item--selected {
        background: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);
    }
}


/* ── Landing Banner ── */
.landing-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    padding: 0 var(--space-md);
}

.landing-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.landing-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    min-height: 100px;
}

.landing-banner__logo-icon {
    font-size: 40px;
    color: var(--color-premium);
    flex-shrink: 0;
}

.landing-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.landing-banner__title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--color-white);
}

.landing-banner__subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
}

/* Custom banner (admin-uploaded image) */
.landing-banner--custom {
    background: none;
    padding: 0;
}

.landing-banner--custom .landing-banner__inner {
    max-width: none;
    position: relative;
}

.landing-banner__image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* ── Hero Banner Overlay (shared across all banners) ── */
.hero-overlay {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--color-white);
    font-size: var(--font-size-base);
    line-height: 1.6;
}
.hero-overlay p { margin: 0; }
.hero-overlay p + p { margin-top: var(--space-xs); }

/* Overlay on custom image banners: absolute over the image */
.landing-banner--custom .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* ── Main Content ── */
.main {
    padding: var(--space-lg) var(--space-md);
}

.main__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}


/* ── Section ── */
.section {
    margin-bottom: var(--space-xl);
}

.section__title {
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section__title-icon {
    font-size: var(--font-size-lg);
}


/* ── Store Card Grid ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* Store Card */
.store-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.store-card--premium {
    border: 2px solid var(--color-premium);
}

.store-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: var(--color-bg);
    overflow: hidden;
}

.store-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-premium);
    color: #333;
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.store-card__heart {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: transform 0.2s, background 0.2s;
    line-height: 1;
}

.store-card__heart:hover {
    transform: scale(1.15);
    background: rgba(255,255,255,1);
}

.store-card__heart--active {
    color: var(--color-accent);
}

.store-card__heart--inactive {
    color: var(--color-text-muted);
}

.store-card__body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.store-card__name {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
}

.store-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.store-card__meta-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.store-card__stats {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.store-card__stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.store-card__stat-icon {
    font-size: 12px;
}

.stat-star { color: var(--color-warning); }
.stat-heart { color: var(--color-accent); }
.stat-review { color: var(--color-primary-light); }


/* ── Premium Store Grid ── */
.premium-grid {
    display: grid;
    gap: var(--space-md);
}

.premium-grid--quad {
    grid-template-columns: repeat(2, 1fr);
}

.premium-grid--duo {
    grid-template-columns: repeat(2, 1fr);
}

.premium-grid--trio {
    grid-template-columns: repeat(2, 1fr);
}

.premium-grid--solo {
    grid-template-columns: 1fr;
}

/* Premium Card */
.premium-card {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border: 2px solid var(--color-premium);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.premium-card__image-wrap {
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.premium-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--color-text-muted);
    background: linear-gradient(135deg, #f5f6fa 0%, #dfe6e9 100%);
}

.premium-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--color-premium);
    color: #333;
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.premium-card__heart {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: transform 0.2s;
    line-height: 1;
}

.premium-card__heart:hover {
    transform: scale(1.15);
    background: rgba(255,255,255,1);
}

.premium-card__heart--active { color: var(--color-accent); }
.premium-card__heart--inactive { color: var(--color-text-muted); }

.premium-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
    min-width: 0;
}

.premium-card__name {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-card__meta {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.premium-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--space-xs);
}

.premium-card__info-item {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: var(--space-xs);
}

.premium-card__stats {
    display: flex;
    gap: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.premium-card__stat {
    display: flex;
    align-items: center;
    gap: 3px;
}



/* ── Infinite Scroll ── */
.infinite-scroll-loader {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--color-text-muted);
}

.infinite-scroll-loader .loading__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-sm);
    animation: spin 0.8s linear infinite;
}

.infinite-scroll-loader p {
    font-size: var(--font-size-sm);
    margin: 0;
}

.infinite-scroll-end {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.infinite-scroll-end p {
    margin: 0;
    position: relative;
    display: inline-block;
}

.infinite-scroll-end p::before,
.infinite-scroll-end p::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--color-border);
    vertical-align: middle;
    margin: 0 var(--space-sm);
}


/* ── Loading ── */
.loading {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    color: var(--color-text-muted);
}

.loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.empty-state__text {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.empty-state__sub {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}


/* ── Footer ── */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__links {
    margin-top: var(--space-sm);
}

.footer__link {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ── Partnership Floating Button ── */
.partnership-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.partnership-fab:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
}

.partnership-fab:active {
    transform: translateY(0);
}

.partnership-fab svg {
    flex-shrink: 0;
}

/* Mobile: icon only */
@media (max-width: 600px) {
    .partnership-fab {
        bottom: 16px;
        right: 16px;
        padding: 14px;
        border-radius: 50%;
    }
    .partnership-fab__label {
        display: none;
    }
}

/* ── Partnership Modal ── */
.partnership-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.partnership-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.partnership-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--color-white);
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.partnership-modal--open {
    transform: translateY(0);
}

@media (min-width: 600px) {
    .partnership-modal {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        border-radius: var(--radius-lg);
        width: 480px;
        max-height: 85vh;
        transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    }
    .partnership-modal--open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
}

.partnership-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.partnership-modal__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
}

.partnership-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.partnership-modal__close:hover {
    background: var(--color-bg);
}

.partnership-modal__body {
    padding: var(--space-lg);
}

.partnership-modal__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.partnership-modal__field {
    margin-bottom: var(--space-md);
}

.partnership-modal__label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.partnership-modal__required {
    color: var(--color-accent);
}

.partnership-modal__input,
.partnership-modal__textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--font-size-base);
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.partnership-modal__input:focus,
.partnership-modal__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.partnership-modal__textarea {
    resize: vertical;
    min-height: 120px;
}

.partnership-modal__char-count {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 4px;
}

.partnership-modal__error {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.08);
    border-radius: var(--radius-sm);
}

.partnership-modal__success {
    font-size: var(--font-size-sm);
    color: var(--color-success);
    margin-bottom: var(--space-sm);
    padding: 8px 12px;
    background: rgba(0, 184, 148, 0.08);
    border-radius: var(--radius-sm);
}

.partnership-modal__submit {
    width: 100%;
    padding: 12px;
    font-size: var(--font-size-base);
    font-weight: 700;
    font-family: inherit;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.partnership-modal__submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.partnership-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet (>= 600px) */
@media (min-width: 600px) {
    .store-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filters__select {
        min-width: 140px;
    }

    .filters__search-input {
        width: 160px;
    }

    /* Tablet: premium cards horizontal layout */
    .premium-card {
        flex-direction: row;
    }

    .premium-card__image-wrap {
        width: 160px;
    }

    .premium-grid--trio {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-grid--trio .premium-card {
        flex-direction: column;
    }

    .premium-grid--trio .premium-card__image-wrap {
        width: 100%;
    }

    .premium-grid--trio .premium-card__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .premium-grid--quad {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-grid--duo,
    .premium-grid--solo {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (>= 960px) */
@media (min-width: 960px) {
    :root {
        --header-height: 64px;
    }

    .header__logo-text {
        max-width: none;
    }

    .store-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }

    .main {
        padding: var(--space-xl) var(--space-lg);
    }

    .landing-banner__content {
        padding: var(--space-lg) 0;
        min-height: 120px;
    }

    .landing-banner__logo-icon {
        font-size: 52px;
    }

    .landing-banner__title {
        font-size: var(--font-size-xl);
    }

    .landing-banner__subtitle {
        font-size: var(--font-size-base);
    }

    .premium-card__image-wrap {
        width: 180px;
    }

    .premium-grid--trio .premium-card__image-wrap {
        width: 100%;
    }

    .premium-card__name {
        font-size: var(--font-size-lg);
    }

    .filters__search-input {
        width: 200px;
    }
}

/* Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
    .store-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .premium-card__image-wrap {
        width: 200px;
    }

    .premium-grid--trio .premium-card__image-wrap {
        width: 100%;
    }

}


/* ── Utility: screen reader only ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}


/* ── Auth Pages (Login / Register) ── */
.auth {
    min-height: calc(100vh - var(--header-height) - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg);
}

.auth__container {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
}

.auth__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.auth__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* Auth Tabs (Login type toggle) */
.auth-tabs {
    display: flex;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: var(--space-lg);
}

.auth-tabs__btn {
    flex: 1;
    padding: 10px var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.auth-tabs__btn:hover {
    color: var(--color-text);
}

.auth-tabs__btn--active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.auth-form__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.auth-form__input-row {
    display: flex;
    gap: var(--space-sm);
}

.auth-form__input-row .auth-form__input {
    flex: 1;
    min-width: 0;
}

.auth-form__input {
    width: 100%;
    padding: 12px var(--space-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form__input::placeholder {
    color: var(--color-text-muted);
}

.auth-form__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.auth-form__input--error {
    border-color: var(--color-accent);
}

.auth-form__input--error:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.auth-form__input--success {
    border-color: var(--color-success);
}

.auth-form__input--success:focus {
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
}

.auth-form__check-btn {
    flex-shrink: 0;
    padding: 0 var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.auth-form__check-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.auth-form__check-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-form__feedback {
    font-size: var(--font-size-xs);
    min-height: 16px;
    line-height: 16px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.auth-form__feedback--error {
    color: var(--color-accent);
}

.auth-form__feedback--success {
    color: var(--color-success);
}

.auth-form__error {
    font-size: var(--font-size-sm);
    color: var(--color-white);
    background: var(--color-accent);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    text-align: center;
}

.auth-form__submit {
    width: 100%;
    padding: 14px;
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s, opacity 0.2s;
    margin-top: var(--space-sm);
}

.auth-form__submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.auth-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-form__submit--loading {
    position: relative;
    color: transparent;
}

.auth-form__submit--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Auth Footer */
.auth__footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.auth__footer-link {
    font-weight: 600;
    color: var(--color-primary);
}

.auth__footer-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* ── Default Store Image Placeholder (SVG fallback) ── */
.store-card__image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--color-text-muted);
    background: linear-gradient(135deg, #f5f6fa 0%, #dfe6e9 100%);
}


/* ── Common Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    color: var(--color-text);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn--secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--color-border);
}

.btn--danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--color-accent);
}

.btn--danger:hover:not(:disabled) {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn--sm {
    padding: 5px 10px;
    font-size: var(--font-size-xs);
}


/* ── Common Modal ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay--active {
    display: flex;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.modal__header h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
}

.modal__close {
    font-size: 24px;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--color-text);
}

.modal__body {
    padding: var(--space-md);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
}


/* ── Common Form Elements ── */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group > label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}


/* ── Hearts Page (즐겨찾기) ── */
.hearts-hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ee5a6a 100%);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.hearts-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hearts-hero__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.hearts-hero__subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
}

/* Custom hearts banner (admin-uploaded image) */
.hearts-hero--custom {
    background: none;
    padding: 0;
}

.hearts-hero--custom .hearts-hero__inner {
    max-width: none;
    position: relative;
}

.hearts-hero--custom .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hearts-hero__image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.hearts-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    padding: 0 var(--space-xs);
}

.hearts-count strong {
    color: var(--color-accent);
    font-weight: 700;
}

.store-card__hearted-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
}

.store-card--suspended {
    opacity: 0.6;
    cursor: default;
}

.store-card__suspended-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: var(--font-size-sm);
    z-index: 3;
}

.empty-state__link {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 10px var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: background 0.2s;
}

.empty-state__link:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.header__link--active {
    color: var(--color-accent);
    font-weight: 700;
}

/* ── Level Badge (공통) ── */
.level-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    vertical-align: middle;
}

.level-badge--t1  { background: #E8F5E9; color: #2E7D32; } /* 새싹 */
.level-badge--t2  { background: #E0F2F1; color: #00695C; } /* 초보 */
.level-badge--t3  { background: #E3F2FD; color: #1565C0; } /* 견습 */
.level-badge--t4  { background: #E8EAF6; color: #283593; } /* 숙련 */
.level-badge--t5  { background: #F3E5F5; color: #7B1FA2; } /* 중급 */
.level-badge--t6  { background: #FCE4EC; color: #AD1457; } /* 고급 */
.level-badge--t7  { background: #FFF3E0; color: #E65100; } /* 전문 */
.level-badge--t8  { background: #FFF8E1; color: #F57F17; } /* 달인 */
.level-badge--t9  { background: #FFEBEE; color: #C62828; } /* 영웅 */
.level-badge--t10 { background: linear-gradient(135deg, #FFEBEE, #F3E5F5); color: #880E4F; } /* 전설 */

.level-badge--sm {
    font-size: 9px;
    padding: 0 5px;
}


/* ── View Toggle (Card/List) ── */
.filters__view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.filters__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border-radius: 6px;
    color: var(--color-text-muted);
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.filters__view-btn:hover {
    color: var(--color-primary);
}

.filters__view-btn--active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.filters__view-btn--active:hover {
    color: var(--color-white);
}

.filters__view-btn svg {
    width: 16px;
    height: 16px;
}


/* ── Board (List) View ── */
.board-view {
    margin-bottom: var(--space-xl);
}

.board-view__section {
    margin-bottom: var(--space-md);
}

.board-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.board-table thead {
    background: var(--color-bg);
}

.board-table__th {
    padding: 10px var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.board-table__th--title { /* takes remaining space */ }
.board-table__th--author { width: 100px; }
.board-table__th--date { width: 90px; }
.board-table__th--views { width: 50px; text-align: center; }

.board-table__row {
    cursor: pointer;
    transition: background 0.15s;
}

.board-table__row:hover {
    background: rgba(108, 92, 231, 0.04);
}

.board-table__row--premium {
    background: var(--color-premium-bg);
}

.board-table__row--premium:hover {
    background: #FFF3CC;
}

.board-table__td {
    padding: 10px var(--space-sm);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.board-table__td--title {
    overflow: hidden;
}

.board-table__title-wrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-table__premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-premium);
    color: #333;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.board-table__prefix {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.board-table__title-text {
    color: var(--color-text);
    font-weight: 500;
}

.board-table__td--author {
    width: 100px;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-table__td--date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.board-table__td--views {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
}

/* Board table premium variant */
.board-table--premium {
    border: 2px solid var(--color-premium);
}

.board-table--premium thead {
    background: var(--color-premium-bg);
}


/* ── Board Pagination ── */
.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) 0;
    flex-wrap: wrap;
}

.board-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-family);
}

.board-pagination__btn:hover:not(:disabled):not(.board-pagination__btn--dots) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.board-pagination__btn--active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.board-pagination__btn--active:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.board-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.board-pagination__btn--dots {
    border: none;
    background: transparent;
    cursor: default;
}


/* ── Attendance Board Hero ── */
.att-hero {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.att-hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.att-hero__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.att-hero__subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
}

.att-hero--custom {
    background: none;
    padding: 0;
}

.att-hero--custom .att-hero__inner {
    max-width: none;
    position: relative;
}

.att-hero--custom .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.att-hero__image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* ── Attendance Board Page ── */
.att-board__title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.att-board__search {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
}

.att-board__search-input {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    width: 180px;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.att-board__search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.att-board__search-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s;
}

.att-board__search-btn:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 599px) {
    .att-board__search {
        margin-left: 0;
    }

    .att-board__search-input {
        flex: 1;
        width: auto;
    }
}


/* ── Mobile Board View Responsive ── */
@media (max-width: 599px) {
    .board-table__th--author { width: 60px; }
    .board-table__td--author { width: 60px; }

    .board-table__title-wrap {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        line-height: 1.4;
    }

    .board-table__th--views,
    .board-table__td--views {
        width: 40px;
    }
}
