/* ========================================
   Bootstrap 5 Theme Customization
   그누보드 5.6용 디자인 시스템
   ======================================== */

/* ----------------------------------------
   Design Tokens (CSS 변수)
   ---------------------------------------- */

:root {
    /* ========================================
       Theme Palette
       색상 테마를 변경하려면 이 섹션의 값만 수정하세요.
       Primary/Accent/Status 색상을 바꾸면 전체 UI가 자동 반영돼요.
       ======================================== */

    /* Brand — 로고 보라색 마크 기반 */
    --gb-primary: #8b5cf6;
    --gb-primary-hover: #7c3aed;
    --gb-primary-dark: #6d28d9;
    --gb-primary-light: #f5f3ff;
    --gb-primary-light-hover: #ede9fe;

    /* Status — 상태 표시 색상 */
    --gb-success: #16a34a;
    --gb-success-hover: #15803d;
    --gb-success-light: #ecfdf5;
    --gb-success-dark: #166534;
    --gb-danger: #dc2626;
    --gb-danger-hover: #b91c1c;
    --gb-danger-light: #fef2f2;
    --gb-danger-dark: #991b1b;
    --gb-warning: #d97706;
    --gb-warning-light: #fffbeb;
    --gb-warning-dark: #92400e;
    --gb-info: #0891b2;
    --gb-info-light: #ecfeff;
    --gb-info-dark: #155e75;

    /* Accent — 골드/앰버 기반 */
    --gb-accent: #c4935a;
    --gb-accent-hover: #b07d44;
    --gb-accent-dark: #96682f;
    --gb-accent-light: #fdf8f0;
    --gb-accent-bright: #dbb07a;

    /* Neutral Colors */
    --gb-gray-50: #f9fafb;
    --gb-gray-100: #f3f4f6;
    --gb-gray-200: #e5e7eb;
    --gb-gray-300: #d1d5db;
    --gb-gray-400: #9ca3af;
    --gb-gray-500: #6b7280;
    --gb-gray-600: #4b5563;
    --gb-gray-700: #374151;
    --gb-gray-800: #1f2937;
    --gb-gray-900: #111827;

    /* Typography Scale */
    --gb-font-xs: 0.75rem;      /* 12px */
    --gb-font-sm: 0.875rem;     /* 14px */
    --gb-font-base: 1rem;       /* 16px */
    --gb-font-lg: 1.125rem;     /* 18px */
    --gb-font-xl: 1.25rem;      /* 20px */
    --gb-font-2xl: 1.5rem;      /* 24px */
    --gb-font-3xl: 1.875rem;    /* 30px */

    /* Font Weight */
    --gb-font-normal: 400;
    --gb-font-medium: 500;
    --gb-font-semibold: 600;
    --gb-font-bold: 700;

    /* Line Height */
    --gb-leading-tight: 1.25;
    --gb-leading-normal: 1.5;
    --gb-leading-relaxed: 1.625;

    /* Spacing Scale */
    --gb-space-1: 0.25rem;      /* 4px */
    --gb-space-2: 0.5rem;       /* 8px */
    --gb-space-3: 0.75rem;      /* 12px */
    --gb-space-4: 1rem;         /* 16px */
    --gb-space-5: 1.25rem;      /* 20px */
    --gb-space-6: 1.5rem;       /* 24px */
    --gb-space-8: 2rem;         /* 32px */

    /* Border Radius */
    --gb-radius-sm: 0.25rem;    /* 4px */
    --gb-radius: 0.375rem;      /* 6px */
    --gb-radius-lg: 0.5rem;     /* 8px */

    /* Shadow */
    --gb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gb-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --gb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Transition */
    --gb-transition: 150ms ease-in-out;

    /* Gradient Accent (공유 디자인 토큰 — 헤더·스킨 공용) */
    --vue-gradient-start: #a78bfa;
    --vue-gradient-mid: var(--gb-accent);
    --vue-gradient-end: #f0a03c;
    --vue-glow-primary: 0 0 20px rgba(139, 92, 246, 0.3);
    --vue-glow-subtle: 0 0 0 3px rgba(139, 92, 246, 0.1);

    /* Dark Area Tokens (vnav header, footer copyright) */
    --vue-dark-bg:
        linear-gradient(160deg, #0d1117 0%, #161b22 45%, #1a1230 100%);
    --vue-dark-accent:
        linear-gradient(
            90deg, transparent,
            rgba(88,166,255,0.3),
            rgba(188,140,255,0.3),
            transparent
        );
    --vue-dark-shimmer: linear-gradient(90deg, #58a6ff, #bc8cff, #58a6ff);
    --vue-dark-blue: #58a6ff;
    --vue-dark-purple: #bc8cff;
    --vue-dark-text: rgba(255,255,255,0.45);

    /* Glass Morphism Tokens (dark area) */
    --vue-glass-bg: rgba(255,255,255,0.06);
    --vue-glass-bg-hover: rgba(255,255,255,0.12);
    --vue-glass-border: rgba(255,255,255,0.1);
    --vue-glass-border-hover: rgba(255,255,255,0.2);

    /* Header Tokens */
    --vue-search-radius: 24px;
    --vue-icon-btn-size: 38px;

    /* Dropdown */
    --vue-dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --vue-dropdown-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Offcanvas */
    --vue-vnav-width: 320px;

    /* ----------------------------------------
       Markdown Content Tokens
       ---------------------------------------- */

    /* Markdown Typography */
    --md-font-family:
        'Noto Sans KR', -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --md-font-mono:
        'JetBrains Mono', 'D2Coding', 'Nanum Gothic Coding',
        Consolas, Monaco, monospace;

    /* Markdown Headings */
    --md-h1-size: var(--gb-font-3xl);      /* 30px */
    --md-h2-size: var(--gb-font-2xl);      /* 24px */
    --md-h3-size: var(--gb-font-xl);       /* 20px */
    --md-h4-size: var(--gb-font-lg);       /* 18px */
    --md-h5-size: var(--gb-font-base);     /* 16px */
    --md-h6-size: var(--gb-font-sm);       /* 14px */

    /* Code Block - Light Theme (GitHub Style) */
    --md-code-bg: #f6f8fa;
    --md-code-border: var(--gb-gray-200);
    --md-code-text: var(--gb-gray-800);
    --md-code-inline-bg: #eff1f3;
    --md-code-inline-text: #24292f;

    /* Code Syntax Colors (GitHub Light) */
    --md-syntax-comment: #6a737d;
    --md-syntax-keyword: #d73a49;
    --md-syntax-string: #032f62;
    --md-syntax-function: #6f42c1;
    --md-syntax-number: #005cc5;
    --md-syntax-variable: #e36209;

    /* Blockquote */
    --md-blockquote-border: var(--gb-primary);
    --md-blockquote-bg: var(--gb-gray-50);
    --md-blockquote-text: var(--gb-gray-600);

    /* Table */
    --md-table-header-bg: var(--gb-gray-100);
    --md-table-border: var(--gb-gray-200);
    --md-table-stripe-bg: var(--gb-gray-50);

    /* Spacing */
    --md-paragraph-gap: 0.75rem;
    --md-heading-gap: 1.25rem;
    --md-list-indent: 2rem;

    /* ----------------------------------------
       Extended Design Tokens
       ---------------------------------------- */

    /* Base White */
    --gb-white: #ffffff;

    /* Line Height Extended */
    --gb-leading-snug: 1.375;

    /* ----------------------------------------
       Semantic Surface / Text / Border
       ---------------------------------------- */

    /* Surface */
    --gb-surface-page: var(--gb-gray-50);
    --gb-surface-card: var(--gb-white);
    --gb-surface-raised: var(--gb-white);
    --gb-surface-sunken: var(--gb-gray-100);
    --gb-surface-overlay: var(--gb-white);

    /* Text */
    --gb-text-primary: var(--gb-gray-900);
    --gb-text-secondary: var(--gb-gray-600);
    --gb-text-tertiary: var(--gb-gray-400);
    --gb-text-on-primary: var(--gb-white);
    --gb-text-link: var(--gb-primary);

    /* Border */
    --gb-border-default: var(--gb-gray-200);
    --gb-border-subtle: var(--gb-gray-100);
    --gb-border-strong: var(--gb-gray-300);
    --gb-border-focus: var(--gb-primary);

    /* ----------------------------------------
       Scale Extensions
       ---------------------------------------- */

    /* Font Size Extended */
    --gb-font-4xl: 2.25rem;    /* 36px */
    --gb-font-5xl: 3rem;       /* 48px */

    /* Font Weight Extended */
    --gb-font-light: 300;
    --gb-font-extrabold: 800;

    /* Spacing Extended */
    --gb-space-7: 1.75rem;     /* 28px */
    --gb-space-9: 2.25rem;     /* 36px */
    --gb-space-10: 2.5rem;     /* 40px */
    --gb-space-12: 3rem;       /* 48px */
    --gb-space-16: 4rem;       /* 64px */
    --gb-space-20: 5rem;       /* 80px */
    --gb-space-24: 6rem;       /* 96px */

    /* Radius Extended */
    --gb-radius-xl: 0.75rem;   /* 12px */
    --gb-radius-2xl: 1rem;     /* 16px */
    --gb-radius-full: 9999px;

    /* Shadow Extended */
    --gb-shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --gb-shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --gb-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Transition Extended */
    --gb-transition-fast: 100ms ease-in-out;
    --gb-transition-normal: 200ms ease-in-out;
    --gb-transition-slow: 300ms ease-in-out;
    --gb-transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Duration Only (animation 속성용 — transition 변수는 timing-function 포함이라 animation에 쓰면 파싱 실패) */
    --gb-duration-fast: 100ms;
    --gb-duration-normal: 200ms;
    --gb-duration-slow: 300ms;

    /* Z-Index Scale (12단계) */
    --gb-z-hide: -1;
    --gb-z-base: 0;
    --gb-z-dropdown: 1000;
    --gb-z-sticky: 1020;
    --gb-z-fixed: 1030;
    --gb-z-offcanvas-backdrop: 1040;
    --gb-z-offcanvas: 1045;
    --gb-z-modal-backdrop: 1050;
    --gb-z-modal: 1055;
    --gb-z-popover: 1070;
    --gb-z-tooltip: 1080;
    --gb-z-popup: 1095;

    /* Border Width */
    --gb-border-width-1: 1px;
    --gb-border-width-2: 2px;
    --gb-border-width-4: 4px;

    /* Focus Ring */
    --gb-focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.1);
    --gb-focus-ring-danger: 0 0 0 3px rgba(220, 38, 38, 0.1);

    /* ----------------------------------------
       Hero Tokens
       ---------------------------------------- */
    --gb-hero-bg-start: #f0f5ff;
    --gb-hero-bg-mid1: #dbeafe;
    --gb-hero-bg-mid2: #e0e7ff;
    --gb-hero-bg-end: #ede9fe;

    /* ----------------------------------------
       Search Badge Colors
       ---------------------------------------- */
    --gb-color-board: #3b82f6;
    --gb-color-content: #10b981;
    --gb-color-shop: #f59e0b;
}

/* ----------------------------------------
   Base Styles
   ---------------------------------------- */

body {
    font-family:
        'Noto Sans KR', -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    font-size: var(--gb-font-base);
    font-weight: var(--gb-font-normal);
    line-height: var(--gb-leading-normal);
    color: var(--gb-text-primary);
    background-color: var(--gb-surface-page);
}

a {
    color: var(--gb-text-link);
    text-decoration: none;
    transition: color var(--gb-transition);
}

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

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

/* ----------------------------------------
   Typography - Headings
   ---------------------------------------- */

h1, .h1 {
    font-size: var(--gb-font-3xl);
    font-weight: var(--gb-font-bold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-900);
    margin-bottom: var(--gb-space-4);
}

h2, .h2 {
    font-size: var(--gb-font-2xl);
    font-weight: var(--gb-font-bold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-900);
    margin-bottom: var(--gb-space-4);
}

h3, .h3 {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-semibold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-800);
    margin-bottom: var(--gb-space-3);
}

h4, .h4 {
    font-size: var(--gb-font-lg);
    font-weight: var(--gb-font-semibold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-800);
    margin-bottom: var(--gb-space-3);
}

h5, .h5 {
    font-size: var(--gb-font-base);
    font-weight: var(--gb-font-semibold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-700);
    margin-bottom: var(--gb-space-2);
}

h6, .h6 {
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-semibold);
    line-height: var(--gb-leading-tight);
    color: var(--gb-gray-700);
    margin-bottom: var(--gb-space-2);
}

/* Page Title */
.page-title {
    font-size: var(--gb-font-2xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
    padding-bottom: var(--gb-space-4);
    margin-bottom: var(--gb-space-6);
    border-bottom: 2px solid var(--gb-gray-200);
}

/* Section Title */
.section-title {
    font-size: var(--gb-font-lg);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-800);
    padding-bottom: var(--gb-space-2);
    margin-bottom: var(--gb-space-4);
    border-bottom: 1px solid var(--gb-gray-200);
}

/* ----------------------------------------
   Typography - Text Styles
   ---------------------------------------- */

.text-xs { font-size: var(--gb-font-xs); }
.text-sm { font-size: var(--gb-font-sm); }
.text-base { font-size: var(--gb-font-base); }
.text-lg { font-size: var(--gb-font-lg); }
.text-xl { font-size: var(--gb-font-xl); }

.text-light { font-weight: 300; }
.text-normal { font-weight: var(--gb-font-normal); }
.text-medium { font-weight: var(--gb-font-medium); }
.text-semibold { font-weight: var(--gb-font-semibold); }
.text-bold { font-weight: var(--gb-font-bold); }

.text-primary { color: var(--gb-primary) !important; }
.text-success { color: var(--gb-success) !important; }
.text-danger { color: var(--gb-danger) !important; }
.text-warning { color: var(--gb-warning) !important; }
.text-muted { color: var(--gb-gray-500) !important; }
.text-dark { color: var(--gb-gray-800) !important; }

.lead {
    font-size: var(--gb-font-lg);
    font-weight: var(--gb-font-normal);
    line-height: var(--gb-leading-relaxed);
    color: var(--gb-gray-600);
}

.small, small {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-500);
}

/* ----------------------------------------
   Buttons - Unified Size System
   ---------------------------------------- */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gb-space-2);
    font-weight: var(--gb-font-medium);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border-radius: var(--gb-radius);
    transition: all var(--gb-transition);
    white-space: nowrap;
}

/* Button Sizes */
.btn-xs {
    padding: var(--gb-space-1) var(--gb-space-2);
    font-size: var(--gb-font-xs);
    height: 26px;
    min-width: 26px;
}

.btn-sm {
    padding: var(--gb-space-2) var(--gb-space-3);
    font-size: var(--gb-font-sm);
    height: 32px;
    min-width: 32px;
}

.btn, .btn-md {
    padding: var(--gb-space-2) var(--gb-space-4);
    font-size: var(--gb-font-sm);
    height: 38px;
    min-width: 38px;
}

.btn-lg {
    padding: var(--gb-space-3) var(--gb-space-6);
    font-size: var(--gb-font-base);
    height: 46px;
    min-width: 46px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--gb-primary);
    border: 1px solid var(--gb-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--gb-primary-hover);
    border-color: var(--gb-primary-hover);
    color: #fff;
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--gb-gray-600);
    border: 1px solid var(--gb-gray-600);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--gb-gray-700);
    border-color: var(--gb-gray-700);
    color: #fff;
}

/* Success Button */
.btn-success {
    background-color: var(--gb-success);
    border: 1px solid var(--gb-success);
    color: #fff;
}

.btn-success:hover {
    background-color: var(--gb-success-hover);
    border-color: var(--gb-success-hover);
    color: #fff;
}

/* Danger Button */
.btn-danger {
    background-color: var(--gb-danger);
    border: 1px solid var(--gb-danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: var(--gb-danger-hover);
    border-color: var(--gb-danger-hover);
    color: #fff;
}

/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--gb-primary);
    color: var(--gb-primary);
}

.btn-outline-primary:hover {
    background-color: var(--gb-primary);
    color: #fff;
}

.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--gb-gray-300);
    color: var(--gb-gray-700);
}

.btn-outline-secondary:hover {
    background-color: var(--gb-gray-100);
    border-color: var(--gb-gray-400);
    color: var(--gb-gray-800);
}

/* Light Button */
.btn-light {
    background-color: var(--gb-gray-100);
    border: 1px solid var(--gb-gray-200);
    color: var(--gb-gray-700);
}

.btn-light:hover {
    background-color: var(--gb-gray-200);
    border-color: var(--gb-gray-300);
    color: var(--gb-gray-800);
}

/* Link Button */
.btn-link {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--gb-primary);
    padding-left: 0;
    padding-right: 0;
}

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

/* Full Width Button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Button Group */
.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--gb-radius) 0 0 var(--gb-radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--gb-radius) var(--gb-radius) 0;
}

.btn-group .btn:not(:last-child) {
    border-right-width: 0;
}

/* ----------------------------------------
   Forms - Input System
   ---------------------------------------- */

/* Form Group */
.form-group {
    margin-bottom: var(--gb-space-4);
}

/* Form Label */
.form-label,
label {
    display: block;
    margin-bottom: var(--gb-space-2);
    font-size: 0.75rem;
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-700);
}

/* Bootstrap col-form-label */
.col-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gb-gray-800);
    line-height: 1.5;
}

.form-label-required::after {
    content: " *";
    color: var(--gb-danger);
}

/* Form Control Base */
.form-control {
    display: block;
    width: 100%;
    padding: var(--gb-space-2) var(--gb-space-3);
    font-size: 0.75rem;
    font-weight: var(--gb-font-normal);
    line-height: var(--gb-leading-normal);
    color: var(--gb-text-primary);
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-strong);
    border-radius: var(--gb-radius);
    transition: border-color var(--gb-transition), box-shadow var(--gb-transition);
}

.form-control:focus {
    border-color: var(--gb-border-focus);
    outline: 0;
    box-shadow: var(--gb-focus-ring);
}

.form-control::placeholder {
    color: var(--gb-gray-400);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--gb-gray-100);
    color: var(--gb-gray-500);
    cursor: not-allowed;
}

/* Form Control Sizes */
.form-control-sm {
    padding: var(--gb-space-1) var(--gb-space-2);
    font-size: var(--gb-font-xs);
    height: 32px;
}

.form-control-lg {
    padding: var(--gb-space-3) var(--gb-space-4);
    font-size: var(--gb-font-base);
    height: 46px;
}

/* Select */
.form-select {
    display: block;
    width: 100%;
    padding: var(--gb-space-2) var(--gb-space-8) var(--gb-space-2) var(--gb-space-3);
    font-size: 0.75rem;
    font-weight: var(--gb-font-normal);
    color: var(--gb-text-primary);
    background-color: var(--gb-surface-card);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--gb-space-3) center;
    background-size: 16px 12px;
    border: 1px solid var(--gb-gray-300);
    border-radius: var(--gb-radius);
    appearance: none;
    transition: border-color var(--gb-transition), box-shadow var(--gb-transition);
}

.form-select:focus {
    border-color: var(--gb-border-focus);
    outline: 0;
    box-shadow: var(--gb-focus-ring);
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio — 체크박스와 라벨 Y축 정렬 고정
 * Bootstrap 기본: .form-check block+padding-left, .form-check-input float+left+margin-top:(line-height-base-width)*.5+vertical-align:top
 * 레거시 전역: label,input{vertical-align:middle} → Bootstrap과 충돌 가능. 패널은 admin-core.css에서 flex로 오버라이드.
 * 본 파일은 사용자 쪽(!G5_IS_ADMIN)에서만 로드됨. */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--gb-space-2);
    margin-bottom: var(--gb-space-2);
    flex-wrap: nowrap;
    min-height: 1.125rem; /* 18px, 입력 높이와 동일 */
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
    border: 1px solid var(--gb-gray-300);
    border-radius: var(--gb-radius-sm);
    cursor: pointer;
    transition: all var(--gb-transition);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--gb-primary);
    border-color: var(--gb-primary);
}

.form-check-label {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 18px; /* 체크박스 높이(18px)와 맞춰 Y축 정렬 */
    font-weight: var(--gb-font-normal);
    cursor: pointer;
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
}

/* Input Group */
.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--gb-radius) 0 0 var(--gb-radius);
}

.input-group .form-control:last-child {
    border-radius: 0 var(--gb-radius) var(--gb-radius) 0;
}

.input-group .btn {
    border-radius: 0;
}

.input-group .btn:last-child {
    border-radius: 0 var(--gb-radius) var(--gb-radius) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--gb-space-2) var(--gb-space-3);
    font-size: 0.75rem;
    font-weight: var(--gb-font-normal);
    color: var(--gb-gray-600);
    background-color: var(--gb-gray-100);
    border: 1px solid var(--gb-gray-300);
}

/* Form Text (Help Text) */
.form-text {
    margin-top: var(--gb-space-1);
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-500);
}

/* Form Validation States */
.is-invalid {
    border-color: var(--gb-danger) !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.invalid-feedback {
    margin-top: var(--gb-space-1);
    font-size: 0.6875rem;
    color: var(--gb-danger);
}

.is-valid {
    border-color: var(--gb-success) !important;
}

/* Wrest Validation Tooltip (Absolute Positioned)
   폼 검증 메시지를 필드 위에 말풍선 형태로 표시
   레이아웃 공간을 차지하지 않음 */
.wrest-validation-tooltip {
    position: absolute;
    z-index: var(--gb-z-popover);
    max-width: 280px;
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    color: #fff;
    background-color: var(--gb-danger);
    border-radius: var(--gb-radius);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gb-transition), visibility var(--gb-transition);
}

.wrest-validation-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* 말풍선 화살표 (아래 방향) */
.wrest-validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 1rem;
    width: 0;
    height: 0;
    border: 0.375rem solid transparent;
    border-top-color: var(--gb-danger);
}

/* 필드 컨테이너에 relative 포지셔닝 */
.wrest-field-wrapper {
    position: relative;
}

/* ----------------------------------------
   Navbar Customization
   ---------------------------------------- */

.navbar {
    padding: var(--gb-space-3) 0;
    background-color: var(--gb-surface-card);
    border-bottom: 1px solid var(--gb-border-default);
}

.navbar-brand {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
}

.navbar-nav .nav-link {
    padding: var(--gb-space-2) var(--gb-space-3);
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-600);
    border-radius: var(--gb-radius);
    transition: all var(--gb-transition);
}

.navbar-nav .nav-link:hover {
    color: var(--gb-primary);
    background-color: var(--gb-gray-100);
}

.navbar-nav .nav-link.active {
    color: var(--gb-primary);
}

/* ----------------------------------------
   Dropdown Customization
   ---------------------------------------- */

.dropdown-menu {
    padding: var(--gb-space-2) 0;
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-md);
    background-color: var(--gb-surface-overlay);
}

.dropdown-item {
    padding: var(--gb-space-2) var(--gb-space-4);
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-700);
    transition: all var(--gb-transition);
}

.dropdown-item:hover {
    background-color: var(--gb-gray-100);
    color: var(--gb-gray-900);
}

.dropdown-divider {
    margin: var(--gb-space-2) 0;
    border-top: 1px solid var(--gb-gray-200);
}

/* ----------------------------------------
   Card Customization
   ---------------------------------------- */

.card {
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-sm);
}

.card-header {
    padding: var(--gb-space-4);
    background-color: var(--gb-surface-sunken);
    border-bottom: 1px solid var(--gb-border-default);
}

.card-header:first-child {
    border-radius: calc(var(--gb-radius-lg) - 1px) calc(var(--gb-radius-lg) - 1px) 0 0;
}

.card-title {
    margin-bottom: 0;
    font-size: var(--gb-font-base);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-800);
}

.card-body {
    padding: var(--gb-space-4);
}

.card-footer {
    padding: var(--gb-space-4);
    background-color: var(--gb-surface-sunken);
    border-top: 1px solid var(--gb-border-default);
}

/* ----------------------------------------
   List Group Customization
   ---------------------------------------- */

.list-group-item {
    padding: var(--gb-space-3) var(--gb-space-4);
    border-color: var(--gb-gray-200);
    color: var(--gb-gray-700);
    transition: background-color var(--gb-transition);
}

.list-group-item:hover {
    background-color: var(--gb-gray-50);
}

.list-group-item a {
    color: var(--gb-gray-800);
    font-weight: var(--gb-font-medium);
}

.list-group-item a:hover {
    color: var(--gb-primary);
}

/* ----------------------------------------
   Badge Customization
   ---------------------------------------- */

.badge {
    padding: var(--gb-space-1) var(--gb-space-2);
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-medium);
    border-radius: var(--gb-radius-sm);
}

.badge.bg-primary { background-color: var(--gb-primary) !important; }
.badge.bg-success { background-color: var(--gb-success) !important; }
.badge.bg-danger { background-color: var(--gb-danger) !important; }
.badge.bg-warning { background-color: var(--gb-warning) !important; color: #fff; }
.badge.bg-secondary { background-color: var(--gb-gray-500) !important; }

/* ----------------------------------------
   Table Customization
   ---------------------------------------- */

.table {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-700);
}

.table > thead > tr > th {
    padding: var(--gb-space-3) var(--gb-space-4);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-700);
    background-color: var(--gb-gray-50);
    border-bottom: 2px solid var(--gb-gray-200);
}

.table > tbody > tr > td {
    padding: var(--gb-space-3) var(--gb-space-4);
    border-bottom: 1px solid var(--gb-gray-200);
    vertical-align: middle;
}

.table > tbody > tr:hover > td {
    background-color: var(--gb-gray-50);
}

/* ----------------------------------------
   Footer Customization
   ---------------------------------------- */

/* footer 기본 스타일은 .vue-footer 에서 정의 */

/* ----------------------------------------
   Utilities
   ---------------------------------------- */

/* Spacing helpers */
.gap-1 { gap: var(--gb-space-1); }
.gap-2 { gap: var(--gb-space-2); }
.gap-3 { gap: var(--gb-space-3); }
.gap-4 { gap: var(--gb-space-4); }

/* Background */
.bg-white { background-color: var(--gb-surface-card) !important; }
.bg-light { background-color: var(--gb-gray-50) !important; }

/* Border */
.border-light { border-color: var(--gb-gray-200) !important; }

/* Selection */
::selection {
    background-color: var(--gb-primary);
    color: #fff;
}

/* Validation Feedback */
.frm_input.is-invalid,
.full_input.is-invalid,
.half_input.is-invalid,
.tbl_input.is-invalid {
    border-color: var(--gb-danger);
    background-color: #fff5f5;
}

.invalid-feedback {
    display: block;
    color: var(--gb-danger);
    margin-top: var(--gb-space-1);
    font-size: var(--gb-font-sm);
}

/* ========================================
   쇼핑몰 전용 스타일
   ======================================== */

/* ----------------------------------------
   쇼핑몰 네비바 (vue-shop-nav)
   ---------------------------------------- */
.vue-shop-nav {
    background-color: var(--gb-surface-card);
    border-bottom: 1px solid var(--gb-border-default);
    padding: 0;
    position: relative;
    z-index: 1;
}

.vue-shop-category-btn {
    border: none;
    background-color: var(--gb-primary);
    color: #fff;
    padding: 10px 20px;
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-semibold);
    cursor: pointer;
    transition: background-color var(--gb-transition-normal);
}

.vue-shop-category-btn:hover {
    background-color: var(--gb-primary-hover);
}

.vue-shop-nav-link {
    color: var(--gb-text-secondary);
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    padding: 12px 14px;
    position: relative;
    transition: color var(--gb-transition-normal);
}

.vue-shop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--gb-primary);
    transform: scaleX(0);
    transition: transform var(--gb-transition-normal);
}

.vue-shop-nav-link:hover {
    color: var(--gb-primary);
}

.vue-shop-nav-link:hover::after {
    transform: scaleX(1);
}

/* 카테고리 메가메뉴 — Clean Portal */
.vue-shop-nav #category {
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-top: 2px solid var(--gb-primary);
    border-radius: 0 0 var(--gb-radius-lg) var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-lg);
    padding: 0;
    animation: vueMegaMenuFadeIn var(--gb-duration-normal) ease-out;
}

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

.vue-shop-nav #category .ct_wr {
    padding: 1rem 0.5rem;
}

.vue-shop-nav #category .cate {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vue-shop-nav #category .cate::after {
    display: none;
}

.vue-shop-nav #category .cate_li_1 {
    float: none;
    width: auto;
    min-height: auto;
    padding: 1rem 1.25rem;
    border-left: 1px solid var(--gb-border-subtle);
    border-bottom: none;
}

.vue-shop-nav #category .cate_li_1:nth-child(5n+1) {
    border-left: 0;
}

.vue-shop-nav #category .cate_li_1:hover {
    background-color: var(--gb-surface-raised);
}

.vue-shop-nav #category .cate_li_1_a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gb-border-subtle);
    font-weight: var(--gb-font-semibold);
    font-size: var(--gb-font-sm);
    color: var(--gb-text-primary);
    text-decoration: none;
    transition: color var(--gb-transition-normal);
}

.vue-shop-nav #category .cate_li_1_a::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75em;
    color: var(--gb-primary);
    opacity: 0.7;
}

.vue-shop-nav #category .cate_li_1_a:hover {
    color: var(--gb-primary);
}

.vue-shop-nav #category .sub_cate {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vue-shop-nav #category .cate_li_2 {
    line-height: 1.6;
}

.vue-shop-nav #category .cate_li_2 a {
    display: block;
    padding: 0.1875rem 0;
    font-size: var(--gb-font-xs);
    color: var(--gb-text-secondary);
    text-decoration: none;
    transition: color var(--gb-transition-normal), padding-left var(--gb-transition-normal);
}

.vue-shop-nav #category .cate_li_2 a:hover {
    color: var(--gb-primary);
    padding-left: 0.25rem;
}

.vue-shop-nav #category .close_btn {
    z-index: 1;
    border-radius: var(--gb-radius-sm);
    font-size: var(--gb-font-xs);
}

.vue-shop-nav #category .no-cate {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gb-text-tertiary);
    font-size: var(--gb-font-sm);
}

/* 쇼핑몰 breadcrumb */
.shop-breadcrumb {
    background-color: var(--gb-surface-raised);
}

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gb-text-tertiary);
}

.shop-breadcrumb .form-select-sm {
    font-size: var(--gb-font-xs);
    background-color: var(--gb-surface-card);
    border-color: var(--gb-border-default);
    color: var(--gb-text-primary);
}

/* vnav 메뉴 섹션 라벨 */
.vnav-menu-section-label {
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px 4px;
}

/* ----------------------------------------
   메인 페이지 섹션
   ---------------------------------------- */

/* 히어로 배너 */
.shop-hero {
    width: 100%;
    overflow: hidden;
}

/* 상품 섹션 */
.shop-section {
    padding: 48px 0;
}

.shop-section-alt {
    background-color: var(--gb-gray-50);
}

.shop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gb-gray-900);
}

.shop-section-title {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
    margin: 0;
}

.shop-section-more {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-500);
    text-decoration: none;
    transition: color var(--gb-transition-normal);
}

.shop-section-more:hover {
    color: var(--gb-primary);
}


/* ----------------------------------------
   Summernote 에디터 콘텐츠 스타일
   (게시글 본문에 적용)
   ---------------------------------------- */

/* 인라인 코드 */
code {
    padding: 0.125rem 0.375rem;
    font-size: 0.875em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #d63384;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* 코드 블록 */
pre {
    padding: 1rem;
    font-size: 0.875rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    overflow-x: auto;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
}

/* 인용문 */
blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--gb-primary);
    background-color: #f8f9fa;
    color: var(--gb-gray-700);
    font-style: italic;
}

blockquote p {
    margin: 0;
}

blockquote p + p {
    margin-top: 0.5rem;
}

/* 제목 스타일 */
.view-content h1,
.view-content h2,
.view-content h3,
.view-content h4,
.view-content h5,
.view-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: var(--gb-font-semibold);
    line-height: 1.3;
    color: var(--gb-gray-900);
}

.view-content h1 { font-size: var(--gb-font-3xl); }
.view-content h2 { font-size: var(--gb-font-2xl); }
.view-content h3 { font-size: var(--gb-font-xl); }
.view-content h4 { font-size: var(--gb-font-lg); }
.view-content h5 { font-size: var(--gb-font-base); }
.view-content h6 { font-size: var(--gb-font-sm); }

/* 단락 */
.view-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 목록 */
.view-content ul,
.view-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.view-content li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

.view-content ul ul,
.view-content ol ol,
.view-content ul ol,
.view-content ol ul {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* 테이블 */
.view-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.view-content th,
.view-content td {
    padding: 0.75rem;
    border: 1px solid var(--gb-gray-300);
    vertical-align: top;
}

.view-content th {
    background-color: var(--gb-gray-100);
    font-weight: var(--gb-font-semibold);
    text-align: left;
}

.view-content tr:hover {
    background-color: var(--gb-gray-50);
}

/* 수평선 */
.view-content hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--gb-gray-300);
}

/* 링크 */
.view-content a {
    color: var(--gb-primary);
    text-decoration: none;
}

.view-content a:hover {
    text-decoration: underline;
}

/* 하이라이트/마크 */
mark {
    padding: 0.125rem 0.25rem;
    background-color: #fff3cd;
    border-radius: 0.125rem;
}

/* 취소선 */
s, del {
    color: var(--gb-gray-500);
    text-decoration: line-through;
}

/* 첨자 */
sub, sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

/* 이미지 */
.view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

/* 이미지 정렬 */
.view-content img.note-float-left {
    float: left;
    margin: 0 1rem 1rem 0;
}

.view-content img.note-float-right {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* clearfix */
.view-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Clean Portal Layout Styles
   밝은 플랫디자인 포털 레이아웃
   ======================================== */

/* ----------------------------------------
   Header 공통
   ---------------------------------------- */

@keyframes vueDropFadeIn {
    from { opacity: 0; transform: scaleY(0.96); }
    to   { opacity: 1; transform: scaleY(1); }
}

@keyframes vueBadgePop {
    from { transform: scale(0); }
    60%  { transform: scale(1.2); }
    to   { transform: scale(1); }
}

.vue-header {
    position: relative;
    background-color: var(--gb-surface-card);
    z-index: var(--gb-z-fixed);
}

/* ----------------------------------------
   유틸리티바
   ---------------------------------------- */
.vue-util-bar {
    background-color: var(--gb-gray-50);
    border-bottom: 1px solid var(--gb-gray-200);
    padding: 6px 0;
}

.vue-util-link {
    color: var(--gb-gray-600);
    font-size: var(--gb-font-xs);
    padding: 2px 6px;
    transition: color var(--gb-transition-normal);
}

.vue-util-link:hover {
    color: var(--gb-gray-900);
}

.vue-util-link-active {
    color: var(--vue-gradient-start);
    font-weight: var(--gb-font-semibold);
}

.vue-util-divider {
    color: var(--gb-gray-300);
    font-size: 11px;
    user-select: none;
}

/* 스티키 래퍼 */
.vue-sticky-wrap {
    background-color: var(--gb-surface-card);
    transition: box-shadow var(--gb-transition-normal);
}

.vue-sticky-wrap.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--gb-z-fixed);
    box-shadow: var(--gb-shadow-md);
}

body.vue-sticky-active {
    /* JS가 padding-top을 동적 설정 */
}

/* ----------------------------------------
   메인 탑바
   ---------------------------------------- */
.vue-topbar {
    padding: 16px 0;
    background-color: var(--gb-surface-card);
    border-bottom: 1px solid var(--gb-border-default);
    position: relative;
    z-index: 2;
}

.vue-topbar .container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* 로고 */
.vue-topbar .navbar-brand {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
    text-decoration: none;
    flex: none;
    min-width: 0;
    letter-spacing: -0.02em;
    transition: color var(--gb-transition-normal);
}

.vue-topbar .navbar-brand:hover {
    color: var(--vue-gradient-start);
}

.vue-topbar .navbar-logo {
    max-height: 34px;
    width: auto;
    transition: filter var(--gb-transition-normal);
}

.vue-topbar .navbar-brand:hover .navbar-logo {
    filter: brightness(1.05);
}

/* 검색바 */
.vue-search-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
}

.vue-search-form {
    display: flex;
    border: 1.5px solid var(--gb-gray-200);
    border-radius: var(--vue-search-radius);
    overflow: hidden;
    transition:
        border-color var(--gb-transition-normal),
        box-shadow var(--gb-transition-normal),
        background-color var(--gb-transition-normal);
    background-color: var(--gb-gray-50);
}

.vue-search-form:focus-within {
    border-color: var(--vue-gradient-start);
    background-color: var(--gb-surface-card);
    box-shadow: var(--vue-glow-subtle);
}

.vue-search-input {
    flex: 1;
    border: none;
    padding: 9px 18px;
    font-size: var(--gb-font-sm);
    outline: none;
    background: transparent;
    min-width: 0;
    color: var(--gb-gray-800);
}

.vue-search-input::placeholder {
    color: var(--gb-gray-400);
}

.vue-search-btn {
    border: none;
    background: transparent;
    color: var(--gb-gray-400);
    padding: 9px 14px;
    cursor: pointer;
    transition: color var(--gb-transition-normal);
    font-size: var(--gb-font-sm);
}

.vue-search-btn:hover {
    color: var(--vue-gradient-start);
}

/* 우측 아이콘/유틸 영역 */
.vue-topbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.vue-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--vue-icon-btn-size);
    height: var(--vue-icon-btn-size);
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--gb-gray-500);
    font-size: var(--gb-font-base);
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--gb-transition-normal),
        color var(--gb-transition-normal),
        box-shadow var(--gb-transition-normal);
    position: relative;
}

.vue-icon-btn:hover {
    background-color: var(--gb-gray-100);
    color: var(--vue-gradient-start);
}

.vue-icon-btn:active {
    transform: scale(0.95);
}

.vue-icon-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 16px;
    padding: 0 4px;
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    border: 2px solid var(--gb-surface-card);
    animation: vueBadgePop 0.3s ease-out;
}

/* 인증 버튼 (비로그인) */
.vue-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.vue-auth-links .btn {
    font-size: var(--gb-font-xs);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: var(--gb-font-medium);
    transition: all var(--gb-transition-normal);
}

.vue-auth-links .btn-primary {
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    border: none;
}

.vue-auth-links .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* 유저 드롭다운 */
.vue-user-dropdown .dropdown-toggle::after {
    display: none;
}

.vue-user-dropdown .dropdown-menu {
    min-width: 220px;
    padding: 0;
    border-radius: var(--gb-radius-lg);
    overflow: hidden;
    box-shadow: var(--vue-dropdown-shadow-lg);
    border: 1px solid var(--gb-gray-100);
    transform-origin: top right;
    animation: vueDropFadeIn 0.15s ease-out;
}

.vue-user-info {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(124, 58, 237, 0.04));
    border-bottom: 1px solid var(--gb-gray-100);
}

.vue-user-info .fw-semibold {
    color: var(--gb-gray-900);
    font-size: var(--gb-font-sm);
}

.vue-user-info .text-muted {
    font-size: var(--gb-font-xs);
    margin-top: 2px;
}

.vue-user-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: var(--gb-font-sm);
    transition: background-color var(--gb-transition), padding-left var(--gb-transition);
}

.vue-user-dropdown .dropdown-item:hover {
    padding-left: 20px;
}

.vue-user-dropdown .dropdown-item i {
    transition: color var(--gb-transition);
}

.vue-user-dropdown .dropdown-item:hover i {
    color: var(--vue-gradient-start);
}

/* ----------------------------------------
   메뉴 탭 바
   ---------------------------------------- */
.vue-menu-tab {
    background-color: var(--gb-surface-card);
    border-bottom: 1px solid var(--gb-border-default);
    padding: 0;
    position: relative;
    z-index: 1;
}

.vue-menu-tab .container {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.vue-tab-link {
    display: inline-flex;
    align-items: center;
    padding: 13px 18px;
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-500);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color var(--gb-transition-normal), border-color var(--gb-transition-normal);
    position: relative;
}

.vue-tab-link:hover {
    color: var(--gb-gray-800);
}

.vue-tab-link.active {
    color: var(--vue-gradient-start);
    border-image:
        linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-end)) 1;
}

/* 탭 드롭다운 */
.vue-tab-dropdown {
    position: relative;
}

.vue-tab-dropdown .dropdown-toggle::after {
    font-size: 0.6em;
    vertical-align: 0.15em;
    margin-left: 6px;
    opacity: 0.5;
}

.vue-tab-dropdown .dropdown-menu {
    margin-top: 0;
    border-radius: 0 0 var(--gb-radius-lg) var(--gb-radius-lg);
    border-top: 3px solid var(--vue-gradient-start);
    box-shadow: var(--vue-dropdown-shadow);
    transform-origin: top center;
    animation: vueDropFadeIn 0.15s ease-out;
}

/* 3단계 메뉴 — dropdown-submenu (hover 시 오른쪽으로 확장) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-top: 3px solid var(--vue-gradient-start);
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--vue-dropdown-shadow);
    display: none;
    transform-origin: top left;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: vueDropFadeIn 0.15s ease-out;
}

.dropdown-submenu > .dropdown-item::after {
    content: "›";
    float: right;
    margin-left: 0.5rem;
    opacity: 0.5;
}

/* ----------------------------------------
   히어로 섹션
   ---------------------------------------- */
.vue-hero {
    background:
        linear-gradient(
            135deg,
            var(--gb-hero-bg-start) 0%,
            var(--gb-hero-bg-mid1) 40%,
            var(--gb-hero-bg-mid2) 70%,
            var(--gb-hero-bg-end) 100%
        );
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 히어로 배경 장식 */
.vue-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vue-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vue-hero .container {
    position: relative;
    z-index: 1;
}

.vue-hero-title {
    font-size: 2.25rem;
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.vue-hero-subtitle {
    font-size: var(--gb-font-lg);
    color: var(--gb-gray-500);
    margin-bottom: 28px;
    font-weight: var(--gb-font-normal);
}

.vue-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vue-hero-actions .btn {
    border-radius: 6px;
    padding: 11px 32px;
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-semibold);
    transition: all var(--gb-transition-normal);
}

.vue-hero-actions .btn-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.vue-hero-actions .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* 로그인 후 히어로 (컴팩트) */
.vue-hero-compact {
    padding: 40px 0;
}

.vue-hero-compact .vue-hero-title {
    font-size: var(--gb-font-2xl);
    margin-bottom: 6px;
}

.vue-hero-compact .vue-hero-subtitle {
    margin-bottom: 0;
    font-size: var(--gb-font-base);
}

/* ----------------------------------------
   콘텐츠 섹션
   ---------------------------------------- */
.vue-section {
    padding: 48px 0;
}

.vue-section-alt {
    background-color: var(--gb-surface-card);
}

.vue-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.vue-section-title {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-gray-900);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gb-primary);
    display: inline-block;
}

.vue-section-more {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-400);
    text-decoration: none;
    transition: color var(--gb-transition-normal);
}

.vue-section-more:hover {
    color: var(--gb-primary);
}

/* ══ Widget System ══ */
.vue-widget {
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: 6px;
    box-shadow: var(--gb-shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vue-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gb-border-default);
    font-size: var(--gb-font-base);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-text-primary);
}
.vue-widget-header a {
    color: inherit;
    text-decoration: none;
}
.vue-widget-header a:hover {
    color: var(--gb-primary);
}
.vue-widget-header .vue-widget-icon {
    color: var(--gb-primary);
    margin-right: 8px;
    font-size: 14px;
}

.vue-widget-more {
    font-size: 13px;
    color: var(--gb-text-tertiary);
    text-decoration: none;
    white-space: nowrap;
}
.vue-widget-more:hover {
    color: var(--gb-primary);
}

.vue-widget-body {
    padding: 20px;
    flex: 1 1 auto;
}
.vue-widget-body.p-0 {
    padding: 0;
}

/* 리스트형 위젯 공통 */
.vue-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vue-widget-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gb-border-subtle);
    gap: 12px;
    transition: background-color 0.15s ease;
}
.vue-widget-list > li:last-child {
    border-bottom: none;
}
.vue-widget-list > li:hover {
    background-color: var(--gb-surface-raised);
}
.vue-widget-list a {
    color: var(--gb-text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vue-widget-list a:hover {
    color: var(--gb-primary);
}

/* 위젯 메타 텍스트 */
.vue-widget-meta {
    font-size: 13px;
    color: var(--gb-text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* 위젯 배지 */
.vue-widget-badge {
    font-size: 11px;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 500;
    flex-shrink: 0;
}

/* 반응형 */
@media (max-width: 767.98px) {
    .vue-widget-header { padding: 14px 16px; }
    .vue-widget-body { padding: 16px; }
    .vue-widget-list > li { padding: 10px 16px; }
}

/* 서브페이지 래퍼 */
.vue-subpage-wrap {
    padding-top: 28px;
    padding-bottom: 28px;
    min-height: 400px;
}

/* ----------------------------------------
   위젯 영역
   ---------------------------------------- */
.vue-widget-row {
    padding: 48px 0;
    background-color: var(--gb-gray-50);
}

/* ----------------------------------------
   밝은 플랫 푸터
   ---------------------------------------- */
.vue-footer {
    background-color: var(--gb-surface-card);
    border-top: 1px solid var(--gb-border-default);
}

/* 정책 링크 바 — 상단 그라디언트 액센트 라인 */
.vue-footer-links {
    position: relative;
    background-color: var(--gb-gray-50);
    border-bottom: 1px solid var(--gb-gray-100);
    padding: var(--gb-space-3) 0;
}

.vue-footer-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            var(--vue-gradient-start),
            var(--vue-gradient-mid),
            var(--vue-gradient-end)
        );
}

.vue-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gb-space-2);
    flex-wrap: wrap;
}

.vue-footer-links-list a {
    color: var(--gb-gray-500);
    text-decoration: none;
    font-size: var(--gb-font-sm);
    transition: color var(--gb-transition-normal);
    padding: 2px var(--gb-space-1);
}

.vue-footer-links-list a:hover {
    color: var(--vue-gradient-start);
}

.vue-footer-links-list a.fw-semibold {
    color: var(--gb-gray-800);
}

.vue-footer-links-divider {
    color: var(--gb-gray-300);
    font-size: var(--gb-font-xs);
    user-select: none;
}

/* 푸터 본문 */
.vue-footer-body {
    padding: var(--gb-space-10) 0 var(--gb-space-8);
}

/* 브랜드 영역 */
.vue-footer-brand {
    margin-bottom: var(--gb-space-3);
}

.vue-footer-brand-name {
    font-size: var(--gb-font-lg);
    font-weight: var(--gb-font-bold);
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.vue-footer-heading {
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-800);
    margin-bottom: var(--gb-space-3);
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: var(--gb-space-2);
}

.vue-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    border-radius: 1px;
}

.vue-footer-text {
    color: var(--gb-gray-500);
    font-size: var(--gb-font-sm);
    line-height: 1.7;
}

.vue-footer-nav .nav-link {
    color: var(--gb-gray-500);
    padding: var(--gb-space-1) 0;
    font-size: var(--gb-font-sm);
    transition: color var(--gb-transition-normal);
}

.vue-footer-nav .nav-link:hover {
    color: var(--vue-gradient-start);
}

/* 고객센터 전화번호 */
.vue-footer-tel {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--gb-space-3);
}

.vue-footer-meta {
    color: var(--gb-gray-400);
    font-size: var(--gb-font-xs);
    margin: var(--gb-space-2) 0 0;
}

/* 회사정보 DL — 작고 가벼운 톤 */
.vue-footer-company {
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-400);
    line-height: 1.7;
}

.vue-footer-dl {
    margin: 0;
}

.vue-footer-dl-row {
    display: inline;
}

.vue-footer-dl-row dt {
    display: inline;
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-500);
}

.vue-footer-dl-row dt::after {
    content: ' ';
}

.vue-footer-dl-row dd {
    display: inline;
    margin: 0;
}

.vue-footer-dl-row dd::after {
    content: '  ·  ';
    color: var(--gb-gray-300);
}

.vue-footer-dl-row:last-child dd::after {
    content: none;
}

/* 카피라이트 — 다크 영역 (Debugbar 팔레트) */
.vue-footer-copy {
    position: relative;
    background: var(--vue-dark-bg);
    padding: var(--gb-space-4) 0;
}

.vue-footer-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--vue-dark-accent);
}

.vue-footer-copy span {
    color: var(--vue-dark-text);
    font-size: var(--gb-font-xs);
}

/* ----------------------------------------
   맨 위로 버튼 (밝은 스타일)
   ---------------------------------------- */
.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--gb-z-modal-backdrop);
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    line-height: 42px;
    text-align: center;
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    color: var(--gb-text-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all var(--gb-transition-normal);
}

.btn-scroll-top:hover {
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(37,99,235,0.25);
    transform: translateY(-2px);
}

/* ----------------------------------------
   페이지 헤더 (제목 + 브레드크럼)
   ---------------------------------------- */
.vue-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gb-space-4);
    padding-bottom: var(--gb-space-4);
    margin-bottom: var(--gb-space-6);
    border-bottom: 1px solid var(--gb-gray-200);
    position: relative;
}

.vue-page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-end));
    border-radius: 2px;
}

.vue-page-title {
    margin: 0;
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-800);
    line-height: var(--gb-leading-tight);
    white-space: nowrap;
}

.vue-page-header .breadcrumb {
    margin-bottom: 0;
    font-size: var(--gb-font-xs);
    flex-shrink: 0;
}

.vue-page-header .breadcrumb-item a {
    color: var(--gb-gray-400);
    text-decoration: none;
    transition: color var(--gb-transition);
}

.vue-page-header .breadcrumb-item a:hover {
    color: var(--gb-primary);
}

.vue-page-header .breadcrumb-item.active {
    color: var(--gb-gray-500);
}

.vue-page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gb-gray-300);
}

/* 반응형: 모바일에서는 breadcrumb 숨김 (제목만 표시) */
@media (max-width: 575.98px) {
    .vue-page-header {
        padding-bottom: var(--gb-space-3);
        margin-bottom: var(--gb-space-4);
    }

    .vue-page-header nav[aria-label="breadcrumb"] {
        display: none;
    }

    .vue-page-title {
        font-size: var(--gb-font-lg);
    }
}

/* ----------------------------------------
   모바일 검색 오버레이
   ---------------------------------------- */
.vue-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--gb-z-offcanvas-backdrop);
    background-color: var(--gb-surface-card);
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vue-search-overlay.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vue-search-overlay .vue-search-form {
    flex: 1;
    border-color: var(--vue-gradient-start);
    background-color: var(--gb-surface-card);
    box-shadow: var(--vue-glow-subtle);
}

.vue-search-overlay .btn-close {
    flex-shrink: 0;
}

/* ----------------------------------------
   Offcanvas 모바일 메뉴 (vnav)
   ---------------------------------------- */

/* 기본 오프캔버스 오버라이드 */
.vnav.offcanvas {
    width: var(--vue-vnav-width);
    border-right: none;
    display: flex;
    flex-direction: column;
    background-color: var(--gb-surface-card);
}

.vnav .offcanvas-header,
.vnav .offcanvas-body {
    all: unset;
}

/* 다크 그라데이션 헤더 (Debugbar 스타일) */
.vnav-header {
    position: relative;
    padding: 24px 20px 16px;
    background: var(--vue-dark-bg);
    color: #fff;
    flex-shrink: 0;
}

.vnav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--vue-dark-shimmer);
    background-size: 200% 100%;
    animation: vnavAccentShimmer 4s linear infinite;
}

@keyframes vnavAccentShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vnav-close {
    position: absolute;
    top: 18px;
    right: 16px;
    background: var(--vue-glass-bg);
    border: 1px solid var(--vue-glass-border);
    color: rgba(255,255,255,0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gb-font-sm);
    cursor: pointer;
    transition: all var(--gb-transition-normal);
    backdrop-filter: blur(12px);
}

.vnav-close:hover {
    background: var(--vue-glass-bg-hover);
    border-color: var(--vue-glass-border-hover);
    color: #fff;
}

/* 프로필 */
.vnav-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.vnav-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vue-glass-bg);
    border: 1px solid var(--vue-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gb-font-2xl);
    flex-shrink: 0;
    backdrop-filter: blur(12px);
}

.vnav-nick {
    font-weight: var(--gb-font-bold);
    font-size: var(--gb-font-base);
    letter-spacing: -0.01em;
}

.vnav-point {
    font-size: 13px;
    color: var(--vue-dark-blue);
    text-decoration: none;
    transition: color var(--gb-transition);
}

.vnav-point:hover {
    color: #79c0ff;
}

/* 퀵 액션 그리드 */
.vnav-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.vnav-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(88,166,255,0.12), rgba(188,140,255,0.12));
    border: 1px solid rgba(88,166,255,0.15);
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    transition: all var(--gb-transition-bounce);
    backdrop-filter: blur(12px);
}

.vnav-quick-item:hover {
    background: linear-gradient(135deg, rgba(88,166,255,0.22), rgba(188,140,255,0.22));
    border-color: rgba(88,166,255,0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88,166,255,0.15);
}

.vnav-quick-icon {
    position: relative;
    font-size: var(--gb-font-lg);
    line-height: 1;
}

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

.vnav-quick-label {
    font-size: 11px;
    font-weight: var(--gb-font-medium);
    opacity: 0.9;
}

/* 비로그인 게스트 */
.vnav-guest {
    padding-right: 40px;
}

.vnav-guest-title {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.vnav-guest-desc {
    font-size: 13px;
    opacity: 0.8;
    margin: 0 0 16px;
}

.vnav-guest-btns {
    display: flex;
    gap: 8px;
}

.vnav-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: var(--gb-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--gb-transition-normal), transform var(--gb-transition);
}

.vnav-btn:active {
    transform: scale(0.97);
}

.vnav-btn-outline {
    border: 1.5px solid var(--vue-glass-border-hover);
    color: rgba(255,255,255,0.85);
    background: var(--vue-glass-bg);
    backdrop-filter: blur(8px);
}

.vnav-btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    background: var(--vue-glass-bg-hover);
}

.vnav-btn-solid {
    border: 1.5px solid #58a6ff;
    color: #fff;
    background: rgba(88,166,255,0.2);
    backdrop-filter: blur(8px);
}

.vnav-btn-solid:hover {
    background: rgba(88,166,255,0.3);
    color: #fff;
}

/* 검색바 */
.vnav-search {
    position: relative;
    z-index: 5;
    padding: 12px 20px;
    background: var(--gb-surface-card);
    border-bottom: 1px solid var(--gb-border-subtle);
    flex-shrink: 0;
}

/* vnav 안 vue-search-wrap 리셋 — 데스크탑 절대위치/폭 제한 해제 */
.vnav-search.vue-search-wrap {
    position: relative;
    left: auto;
    transform: none;
    max-width: none;
    width: auto;
}

/* vnav 안 검색폼: 데스크탑 보더/배경 리셋 */
.vnav-search .vue-search-form {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.vnav-search .vue-search-form:focus-within {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

/* vnav 자동완성 드롭다운 — offcanvas 전폭, 메뉴 위에 덮기 */
.vnav-search .vue-suggest-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    width: auto !important; /* JS positionDropdown()의 인라인 width 오버라이드 */
    top: 100%;
    max-height: 60vh;
    z-index: 10;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gb-border-subtle);
    margin-top: 0;
    background: var(--gb-surface-page);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vnav-search .vue-suggest-item {
    padding: 10px 16px;
    font-size: 14px;
}

.vnav-search .vue-suggest-group-header {
    padding: 8px 16px;
}

.vnav-search .vue-suggest-popular-grid {
    padding: 4px 8px;
}

.vnav-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--gb-gray-50);
    border: 1.5px solid var(--gb-gray-100);
    transition:
        border-color var(--gb-transition-normal),
        box-shadow var(--gb-transition-normal);
}

.vnav-search-box:focus-within {
    border-color: var(--gb-gray-100);
    box-shadow: none;
    background: var(--gb-surface-raised);
}

.vnav-search-icon {
    color: var(--gb-gray-400);
    font-size: 14px;
    flex-shrink: 0;
}

.vnav-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--gb-gray-800);
    min-width: 0;
}

.vnav-search-input::placeholder {
    color: var(--gb-gray-400);
}

/* 스크롤 바디 */
.vnav-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: var(--gb-surface-card);
}

/* 메뉴 항목 — 스태거 슬라이드인 */
.vnav-menu-item {
    opacity: 0;
    transform: translateX(-12px);
}

.vnav.show .vnav-menu-item {
    animation: vnavSlideIn 0.35s ease forwards;
}

.vnav.show .vnav-menu-item:nth-child(1) { animation-delay: 0.05s; }
.vnav.show .vnav-menu-item:nth-child(2) { animation-delay: 0.08s; }
.vnav.show .vnav-menu-item:nth-child(3) { animation-delay: 0.11s; }
.vnav.show .vnav-menu-item:nth-child(4) { animation-delay: 0.14s; }
.vnav.show .vnav-menu-item:nth-child(5) { animation-delay: 0.17s; }
.vnav.show .vnav-menu-item:nth-child(6) { animation-delay: 0.20s; }
.vnav.show .vnav-menu-item:nth-child(7) { animation-delay: 0.23s; }
.vnav.show .vnav-menu-item:nth-child(8) { animation-delay: 0.26s; }

@keyframes vnavSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.vnav-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--gb-gray-800);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--gb-transition), color var(--gb-transition);
    letter-spacing: -0.01em;
    position: relative;
}

.vnav-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(to bottom, var(--vue-gradient-start), var(--vue-gradient-end));
    transition: height var(--gb-transition-normal);
}

.vnav-menu-link:hover {
    background: var(--gb-gray-50);
    color: var(--vue-gradient-start);
}

.vnav-menu-link:hover::before {
    height: 20px;
}

.vnav-menu-link:active {
    background: var(--gb-gray-100);
}

.vnav-chevron {
    font-size: 11px;
    color: var(--gb-gray-400);
    transition: transform var(--gb-transition-normal), color var(--gb-transition-normal);
}

.vnav-has-sub[aria-expanded="true"] .vnav-chevron {
    transform: rotate(180deg);
    color: var(--vue-gradient-start);
}

/* 서브메뉴 */
.vnav-submenu {
    display: none;
    padding: 2px 0 8px;
    background: var(--gb-gray-50);
}

.vnav-has-sub[aria-expanded="true"] + .vnav-submenu {
    display: block;
    animation: vnavExpand 0.25s ease;
}

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

.vnav-sub-link {
    display: block;
    padding: 10px 20px 10px 32px;
    color: var(--gb-gray-600);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--gb-transition), padding-left var(--gb-transition-normal);
}

.vnav-sub-link:hover {
    color: var(--vue-gradient-start);
    padding-left: 36px;
}

.vnav-sub-depth {
    padding-left: 44px;
    font-size: 13px;
    color: var(--gb-gray-500);
}

.vnav-sub-depth:hover {
    padding-left: 48px;
}

/* 보조 링크 4열 그리드 */
.vnav-secondary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 16px 16px 8px;
    margin-top: 4px;
    border-top: 1px solid var(--gb-gray-100);
}

.vnav-sec-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px 10px;
    border-radius: var(--gb-radius);
    color: var(--gb-gray-500);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--gb-transition), background-color var(--gb-transition);
}

.vnav-sec-link i {
    font-size: 18px;
}

.vnav-sec-link:hover {
    color: var(--vue-gradient-start);
    background: rgba(37, 99, 235, 0.04);
}

/* 하단 고정 푸터 */
.vnav-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--gb-gray-100);
    background: var(--gb-gray-50);
}

.vnav-footer-links {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 4px 0;
}

.vnav-footer-links a {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: var(--gb-gray-500);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--gb-transition);
}

.vnav-footer-links a:hover {
    color: var(--vue-gradient-start);
}

.vnav-footer-links a i {
    margin-right: 3px;
}

/* 모바일 햄버거 메뉴 버튼 (우측 배치) */
.vue-mobile-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--gb-radius);
    background: transparent;
    color: var(--gb-gray-700);
    font-size: var(--gb-font-xl);
    flex-shrink: 0;
    cursor: pointer;
    transition:
        background-color var(--gb-transition-normal),
        color var(--gb-transition-normal);
}

.vue-mobile-menu-btn:hover,
.vue-mobile-menu-btn:active {
    background-color: var(--gb-gray-100);
    color: var(--vue-gradient-start);
}

.vue-mobile-menu-btn .vue-noti-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    padding: 1px 4px;
    line-height: 1.2;
}

/* vnav 하단 다크모드 토글 */
.vnav-footer-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-top: 1px solid var(--gb-gray-100);
}

/* ----------------------------------------
   반응형 조정
   ---------------------------------------- */
@media (max-width: 991.98px) {
    .vue-topbar .vue-search-wrap {
        display: none;
    }

    .vue-topbar .navbar-brand {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vue-topbar .vue-search-toggle {
        display: inline-flex;
    }

    .vue-hero {
        padding: 48px 0;
    }

    .vue-hero-title {
        font-size: var(--gb-font-2xl);
    }

    .vue-hero-compact {
        padding: 28px 0;
    }

    .vue-section {
        padding: 36px 0;
    }

    .vue-widget-row {
        padding: 36px 0;
    }

    .vue-tab-link {
        padding: 10px 14px;
    }
}

@media (min-width: 992px) {
    .vue-topbar .vue-search-toggle {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .vue-hero {
        padding: 36px 0;
    }

    .vue-hero-title {
        font-size: var(--gb-font-xl);
    }

    .vue-hero-subtitle {
        font-size: var(--gb-font-sm);
    }

    .vue-hero-compact .vue-hero-title {
        font-size: var(--gb-font-lg);
    }

    .vue-footer-body {
        padding: 28px 0 24px;
    }

    .vue-footer-body .row > div + div {
        padding-top: 16px;
        border-top: 1px solid var(--gb-gray-100);
    }

    .vue-footer-tel {
        font-size: var(--gb-font-lg);
    }

    .vue-footer-copy .d-flex {
        flex-direction: column;
        text-align: center;
        gap: var(--gb-space-2);
    }

    .vue-topbar .vue-auth-links .btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* ----------------------------------------
   prefers-reduced-motion (헤더·드롭다운)
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .vue-icon-btn .badge,
    .vue-user-dropdown .dropdown-menu,
    .vue-noti-dropdown,
    .vue-tab-dropdown .dropdown-menu {
        animation: none;
    }

    .vue-icon-btn,
    .vue-topbar .navbar-brand,
    .vue-topbar .navbar-logo,
    .vue-search-form,
    .vue-search-btn,
    .vue-tab-link,
    .vue-user-dropdown .dropdown-item,
    .vue-auth-links .btn {
        transition: none;
    }
}


/* ============================================
   Pagination — Clean Portal
   ============================================ */

.bo-pagination {
    display: flex;
    justify-content: center;
    padding: var(--gb-space-4) 0;
}

.bo-pg-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bo-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 var(--gb-space-2);
    border: 1px solid var(--gb-gray-200);
    border-radius: 8px;
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-600);
    background: var(--gb-surface-card);
    text-decoration: none;
    transition: all var(--gb-transition-normal);
    cursor: pointer;
    line-height: 1;
}

a.bo-pg-btn:hover {
    color: var(--gb-primary);
    border-color: var(--gb-primary);
    background: var(--gb-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* 현재 페이지 */
.bo-pg-active {
    color: #fff;
    background: var(--gb-primary);
    border-color: var(--gb-primary);
    font-weight: var(--gb-font-bold);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* 비활성 (처음/이전/다음/마지막 비활성) */
.bo-pg-disabled {
    color: var(--gb-gray-300);
    border-color: var(--gb-gray-100);
    background: var(--gb-gray-50);
    cursor: default;
    pointer-events: none;
}

/* 처음/마지막/이전/다음 아이콘 버튼 */
.bo-pg-first,
.bo-pg-prev,
.bo-pg-next,
.bo-pg-last {
    font-size: var(--gb-font-xs);
    min-width: 2rem;
    height: 2.25rem;
}

/* 이전/다음 그룹 구분 여백 */
.bo-pg-prev {
    margin-right: var(--gb-space-1);
}

.bo-pg-next {
    margin-left: var(--gb-space-1);
}

/* 반응형 */
@media (max-width: 575.98px) {
    .bo-pg-btn {
        min-width: 2rem;
        height: 2rem;
        font-size: var(--gb-font-xs);
        border-radius: 6px;
    }

    .bo-pg-first,
    .bo-pg-prev,
    .bo-pg-next,
    .bo-pg-last {
        min-width: 1.75rem;
        height: 2rem;
    }

}

/* =====================================================================
   § 통합검색 / 태그 결과 스타일
   ===================================================================== */

/* 검색폼 카드 */
.sch-form-card {
    background: var(--gb-gray-50);
    border: 1px solid var(--gb-gray-200);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
}

.sch-form-body {
    max-width: 700px;
    margin: 0 auto;
}

/* 소스 필터 탭 */
.sch-source-tabs {
    border-bottom: 1px solid var(--gb-gray-200);
    gap: 0.25rem;
}

.sch-source-tabs .nav-link {
    color: var(--gb-gray-600);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: var(--gb-font-sm);
}

.sch-source-tabs .nav-link.active {
    color: var(--gb-primary);
    border-bottom: 2px solid var(--gb-primary);
    font-weight: 600;
    background: transparent;
}

/* 결과 목록 컨테이너 */
.sch-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 개별 결과 아이템 */
.sch-result-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
}

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

/* 소스 뱃지 */
.sch-source-badge {
    font-size: 0.7rem;
    font-weight: 500;
    vertical-align: middle;
}

.sch-badge-board    { background-color: var(--gb-color-board); color: var(--gb-white); }
.sch-badge-content  { background-color: var(--gb-color-content); color: var(--gb-white); }
.sch-badge-shop     { background-color: var(--gb-color-shop); color: var(--gb-white); }

/* 결과 제목 */
.sch-result-title {
    font-size: var(--gb-font-base);
    font-weight: 500;
    color: var(--gb-gray-900);
    vertical-align: middle;
}

.sch-result-title:hover {
    color: var(--gb-primary);
    text-decoration: underline !important;
}

/* 결과 미리보기 */
.sch-result-preview {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-600);
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

/* 태그 영역 */
.sch-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.sch-tag-badge {
    font-size: 0.7rem;
    background-color: var(--gb-gray-100);
    color: var(--gb-gray-700);
    padding: 0.25em 0.6em;
    border: 1px solid var(--gb-gray-200);
}

.sch-tag-badge:hover {
    background-color: var(--gb-primary);
    color: #fff;
    border-color: var(--gb-primary);
}

.sch-tag-current {
    background-color: var(--gb-primary) !important;
    color: #fff !important;
    border-color: var(--gb-primary) !important;
}

/* 메타 정보 */
.sch-result-meta {
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-500);
}

/* 결과 없음 */
.sch-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gb-gray-500);
}

/* 태그 결과 페이지 헤더 */
.tag-result-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gb-gray-900);
}

/* =====================================================================
   § 검색 자동완성 드롭다운
   ===================================================================== */

/* ── 검색 자동완성 드롭다운 ── */
.vue-suggest-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: var(--gb-z-dropdown, 1050);
    background: var(--gb-surface-card); border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-sm); box-shadow: var(--gb-shadow-lg);
    max-height: 400px; overflow-y: auto; display: none;
    margin-top: 4px;
}
.vue-suggest-dropdown.show { display: block; }

.vue-suggest-group + .vue-suggest-group { border-top: 1px solid var(--gb-border-subtle); }

.vue-suggest-group-header {
    padding: 0.5rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    color: var(--gb-text-tertiary); letter-spacing: 0.03em;
    display: flex; justify-content: space-between; align-items: center;
}

.vue-suggest-item {
    padding: 0.5rem 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
    color: var(--gb-text-primary); font-size: 0.875rem; position: relative;
    transition: background-color 0.1s;
}
.vue-suggest-item:hover,
.vue-suggest-item.active { background: var(--gb-surface-hover); }
.vue-suggest-item i {
    color: var(--gb-text-tertiary); width: 1rem; text-align: center; flex-shrink: 0;
    font-size: 0.8125rem;
}
.vue-suggest-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vue-suggest-remove {
    position: absolute; right: 0.5rem; border: none; background: none;
    color: var(--gb-text-tertiary); font-size: 1rem; cursor: pointer;
    padding: 0 0.25rem; line-height: 1;
}
.vue-suggest-remove:hover { color: var(--gb-text-primary); }

.vue-suggest-clear-all {
    border: none; background: none; color: var(--gb-text-tertiary);
    font-size: 0.6875rem; cursor: pointer; padding: 0;
}
.vue-suggest-clear-all:hover { color: var(--gb-primary); }

.vue-suggest-price { margin-left: auto; font-weight: 600; color: var(--gb-primary); font-size: 0.8125rem; flex-shrink: 0; }
.vue-suggest-area { margin-left: auto; color: var(--gb-text-secondary); font-size: 0.8125rem; flex-shrink: 0; }

.vue-suggest-thumb {
    width: 2rem; height: 2rem; border-radius: var(--gb-radius-xs, 4px);
    object-fit: cover; flex-shrink: 0;
}

.vue-suggest-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: var(--gb-surface-raised); font-size: 0.6875rem; font-weight: 600;
    color: var(--gb-text-secondary); flex-shrink: 0;
}

.vue-suggest-popular-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 576px) {
    .vue-suggest-popular-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   § 알림 드롭다운
   ===================================================================== */

.vue-noti-wrap .dropdown-toggle::after {
    display: none;
}

.vue-noti-badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 0.65rem;
    min-width: 1rem;
    padding: 0.15em 0.35em;
    line-height: 1;
}

.vue-noti-dropdown {
    width: 380px;
    max-height: 480px;
    padding: 0;
    border: 1px solid var(--gb-gray-100);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: vueDropFadeIn 0.2s ease-out;
}

.vue-noti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gb-gray-100);
    font-size: var(--gb-font-sm);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}

.vue-noti-header a {
    font-size: var(--gb-font-xs);
    color: var(--gb-primary);
    text-decoration: none;
}

.vue-noti-header a:hover {
    text-decoration: underline;
}

.vue-noti-list {
    max-height: 360px;
    overflow-y: auto;
}

.vue-noti-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gb-gray-700);
    border-bottom: 1px solid var(--gb-gray-50);
    transition: background-color var(--gb-transition);
}

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

.vue-noti-item:hover {
    background-color: var(--gb-gray-50);
    color: var(--gb-gray-700);
    text-decoration: none;
}

.vue-noti-item.unread {
    background-color: var(--gb-primary-light);
}

.vue-noti-item.unread:hover {
    background-color: var(--gb-primary-light-hover);
}

.vue-noti-item .noti-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--gb-gray-100);
    color: var(--gb-gray-500);
    font-size: var(--gb-font-sm);
}

.vue-noti-item.unread .noti-icon {
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-mid));
    color: #fff;
}

.vue-noti-item .noti-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vue-noti-item .noti-title {
    font-size: var(--gb-font-sm);
    line-height: var(--gb-leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vue-noti-item .noti-time {
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-400);
}

.vue-noti-footer {
    padding: 0.6rem 1rem;
    text-align: center;
    border-top: 1px solid var(--gb-gray-100);
    font-size: var(--gb-font-sm);
}

.vue-noti-footer a {
    color: var(--gb-primary);
    text-decoration: none;
}

.vue-noti-footer a:hover {
    text-decoration: underline;
}

.vue-noti-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--gb-gray-400);
}

.vue-noti-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.vue-noti-empty p {
    margin: 0;
    font-size: var(--gb-font-sm);
}

@media (max-width: 575.98px) {
    .vue-noti-dropdown {
        width: 100vw;
        max-width: 100vw;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ========================================
   알림센터 페이지 (nc- prefix)
   ======================================== */

.nc-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* 탭 */
.nc-tabs {
    border-bottom: 2px solid var(--gb-gray-200);
    margin-bottom: 0;
}

.nc-tabs .nav-link {
    color: var(--gb-gray-500);
    font-weight: var(--gb-font-medium);
    font-size: var(--gb-font-sm);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 1rem;
    transition: color var(--gb-transition), border-color var(--gb-transition);
}

.nc-tabs .nav-link:hover {
    color: var(--gb-gray-700);
    border-color: var(--gb-gray-300);
}

.nc-tabs .nav-link.active {
    color: var(--gb-primary);
    border-color: var(--gb-primary);
    background: transparent;
}

.nc-tab-content {
    padding-top: 1rem;
}

/* 토스트 알림 */
.nc-toast {
    position: relative;
    z-index: 10;
    margin-bottom: 0.75rem;
    font-size: var(--gb-font-sm);
}

/* 로딩 / 비어있음 */
.nc-loading,
.nc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gb-gray-400);
}

.nc-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.nc-empty p {
    margin: 0;
    font-size: var(--gb-font-sm);
}

/* 필터 바 */
.nc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
}

.nc-filter-btn {
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-600);
    background: var(--gb-gray-100);
    border: 1px solid transparent;
    padding: 0.25rem 0.625rem;
    transition: all var(--gb-transition);
}

.nc-filter-btn:hover {
    background: var(--gb-gray-200);
    color: var(--gb-gray-800);
}

.nc-filter-btn.active {
    background: var(--gb-primary-light);
    color: var(--gb-primary);
    border-color: var(--gb-primary);
}

/* 일괄 작업 바 */
.nc-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
    font-size: var(--gb-font-sm);
}

.nc-bulk-actions {
    display: flex;
    gap: 0.375rem;
}

.nc-bulk-actions .btn {
    font-size: var(--gb-font-xs);
}

/* 알림 아이템 */
.nc-noti-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
    transition: background var(--gb-transition);
}

.nc-noti-item:hover {
    background: var(--gb-gray-50);
}

.nc-noti-item.unread {
    background: var(--gb-primary-light);
}

.nc-noti-item.unread:hover {
    background: var(--gb-primary-light-hover);
}

.nc-item-check {
    flex-shrink: 0;
}

.nc-noti-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.nc-noti-link:hover {
    color: inherit;
}

.nc-noti-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gb-gray-100);
    color: var(--gb-gray-500);
    font-size: var(--gb-font-sm);
}

.nc-noti-item.unread .nc-noti-icon {
    background: var(--gb-primary);
    color: #fff;
}

.nc-noti-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nc-noti-title {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc-noti-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-400);
}

.nc-noti-type-label {
    color: var(--gb-gray-500);
}

.nc-noti-delete {
    flex-shrink: 0;
    color: var(--gb-gray-400);
    border: none;
    background: transparent;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0;
    transition: opacity var(--gb-transition), color var(--gb-transition);
}

.nc-noti-item:hover .nc-noti-delete {
    opacity: 1;
}

.nc-noti-delete:hover {
    color: var(--gb-danger);
}

/* 페이지네이션 */
.nc-pagination {
    padding: 1rem 0;
}

/* 쪽지 헤더 */
.nc-memo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
}

.nc-memo-tabs .nav-link {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-500);
    padding: 0.375rem 0.75rem;
}

.nc-memo-tabs .nav-link.active {
    color: var(--gb-primary);
    background: var(--gb-primary-light);
}

.nc-memo-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
    font-size: var(--gb-font-sm);
}

/* 쪽지 아이템 */
.nc-memo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
    transition: background var(--gb-transition);
}

.nc-memo-item:hover {
    background: var(--gb-gray-50);
}

.nc-memo-item.unread {
    background: var(--gb-primary-light);
}

.nc-memo-item.unread:hover {
    background: var(--gb-primary-light-hover);
}

.nc-memo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.nc-memo-sender {
    flex-shrink: 0;
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    color: var(--gb-gray-700);
    min-width: 6rem;
    max-width: 8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc-memo-preview {
    flex: 1;
    min-width: 0;
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc-memo-time {
    flex-shrink: 0;
    font-size: var(--gb-font-xs);
    color: var(--gb-gray-400);
}

/* 수신자 검색 */
.nc-member-search-wrap {
    position: relative;
}

.nc-member-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--gb-z-modal-backdrop);
    background: var(--gb-surface-overlay);
    border: 1px solid var(--gb-gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.nc-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: var(--gb-font-sm);
    transition: background var(--gb-transition-fast);
}

.nc-suggestion-item:hover {
    background: var(--gb-gray-50);
}

/* 쪽지 보기 모달 */
.nc-memo-view-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gb-gray-100);
    margin-bottom: 0.75rem;
    font-size: var(--gb-font-sm);
}

.nc-memo-view-label {
    color: var(--gb-gray-400);
}

.nc-memo-view-nick {
    font-weight: var(--gb-font-semibold);
    color: var(--gb-gray-800);
}

.nc-memo-view-time {
    margin-left: auto;
    color: var(--gb-gray-400);
    font-size: var(--gb-font-xs);
}

.nc-memo-view-content {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 설정 탭 */
.nc-settings-wrap {
    padding: 0.5rem 0;
}

.nc-settings-desc {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-500);
    margin-bottom: 1rem;
}

.nc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gb-gray-100);
}

.nc-setting-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nc-setting-icon {
    width: 1.5rem;
    text-align: center;
    color: var(--gb-gray-500);
}

.nc-setting-label {
    font-size: var(--gb-font-sm);
    color: var(--gb-gray-700);
}

.nc-settings-actions {
    padding: 1rem 0;
    text-align: right;
}

/* 반응형 */
@media (max-width: 575.98px) {
    .nc-filter-bar {
        padding: 0.5rem 0;
    }

    .nc-bulk-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nc-memo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nc-memo-sender {
        min-width: 4rem;
        max-width: 5rem;
    }

    .nc-noti-delete {
        opacity: 1;
    }
}

/* ========================================
   팝업레이어 (hd_pop / hd_pops)
   app/newwin.inc.php — 메인 페이지 팝업 공지
   ======================================== */

/* 컨테이너 — 스태킹 컨텍스트 생성 방지 */
#hd_pop {
    position: static !important;
    z-index: auto !important;
    height: 0;
}

#hd_pop *,
#hd_pop *::before,
#hd_pop *::after {
    box-sizing: border-box;
}

/* 모바일 백드롭 (JS 제어) */
#hd_pop_backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--gb-z-popup) - 1);
    -webkit-tap-highlight-color: transparent;
}

/* ── 팝업 카드 ── */
.hd_pops {
    position: fixed;
    z-index: var(--gb-z-popup);
    background: var(--gb-surface-overlay);
    border: 1px solid var(--gb-gray-200);
    border-radius: var(--gb-radius-lg);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: var(--gb-font-sm);
    line-height: var(--gb-leading-normal);
    color: var(--gb-gray-900);
}

/* PC 상단 액센트 라인 */
.hd_pops::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--gb-primary);
    flex-shrink: 0;
}

/* 드래그 핸들 (모바일 전용, PC 숨김) */
.hd_pops_handle {
    display: none;
}

/* 콘텐츠 영역 */
.hd_pops_con {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

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

/* 푸터 */
.hd_pops_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gb-gray-100);
    background: var(--gb-gray-50);
    padding: var(--gb-space-2) var(--gb-space-3);
    flex-shrink: 0;
    gap: var(--gb-space-2);
}

/* 버튼 공통 리셋 */
.hd_pops_reject,
.hd_pops_close {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition:
        color var(--gb-transition),
        background var(--gb-transition),
        border-color var(--gb-transition);
}

.hd_pops_reject:focus-visible,
.hd_pops_close:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--gb-primary) 35%, transparent);
    outline-offset: 2px;
    box-shadow: none;
}

.hd_pops_reject:focus:not(:focus-visible),
.hd_pops_close:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* "N시간 보지 않기" 링크 */
.hd_pops_reject {
    background: none;
    border: none;
    color: var(--gb-gray-400);
    font-size: var(--gb-font-xs);
    line-height: 1.4;
    padding: var(--gb-space-1) 0;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.hd_pops_reject:hover {
    color: var(--gb-gray-600);
}

/* 닫기 버튼 */
.hd_pops_close {
    background: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-sm);
    color: var(--gb-gray-600);
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-medium);
    line-height: 1.4;
    padding: var(--gb-space-1) var(--gb-space-3);
    white-space: nowrap;
    flex-shrink: 0;
}

.hd_pops_close:hover {
    background: var(--gb-gray-50);
    border-color: var(--gb-gray-300);
    color: var(--gb-gray-800);
}

/* ── 모바일: 하단 시트 (≤ 575px) ── */
@media (max-width: 575.98px) {
    .hd_pops {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: var(--gb-space-4) var(--gb-space-4) 0 0;
        border: none;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    }

    /* 모바일: 상단 액센트 라인 제거 → 드래그 핸들로 대체 */
    .hd_pops::before {
        display: none;
    }

    /* 드래그 핸들 표시 */
    .hd_pops_handle {
        display: flex;
        justify-content: center;
        padding: var(--gb-space-3) 0 var(--gb-space-1);
        flex-shrink: 0;
    }

    .hd_pops_handle span {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--gb-gray-300);
    }

    .hd_pops_con {
        width: 100% !important;
    }

    .hd_pops_footer {
        padding:
            var(--gb-space-3) var(--gb-space-4)
            calc(var(--gb-space-3) + env(safe-area-inset-bottom, 0px));
    }
}


/* ========================================================================
   § Design System — Component Patterns
   ======================================================================== */

/* ----------------------------------------
   1. Card Variants
   ---------------------------------------- */

.card-elevated {
    background-color: var(--gb-surface-card);
    border: none;
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-md);
}

.card-flat {
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
    box-shadow: none;
}

.card-interactive {
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-sm);
    transition:
        box-shadow var(--gb-transition-normal),
        transform var(--gb-transition-normal),
        border-color var(--gb-transition-normal);
    cursor: pointer;
}

.card-interactive:hover {
    box-shadow: var(--gb-shadow-lg);
    border-color: var(--gb-border-strong);
    transform: translateY(-2px);
}

.card-interactive:active {
    transform: translateY(0);
    box-shadow: var(--gb-shadow);
}

/* ----------------------------------------
   2. Button Variants
   ---------------------------------------- */

/* Ghost Button */
.btn-ghost {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--gb-text-secondary);
    transition: all var(--gb-transition);
}

.btn-ghost:hover {
    background-color: var(--gb-surface-sunken);
    color: var(--gb-text-primary);
}

.btn-ghost:active {
    background-color: var(--gb-gray-200);
}

/* Icon-only Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--gb-radius-full);
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--gb-text-secondary);
    transition: all var(--gb-transition);
}

.btn-icon:hover {
    background-color: var(--gb-surface-sunken);
    color: var(--gb-text-primary);
}

.btn-icon.btn-sm { width: 32px; height: 32px; font-size: var(--gb-font-sm); }
.btn-icon.btn-md,
.btn-icon { width: 38px; height: 38px; font-size: var(--gb-font-base); }
.btn-icon.btn-lg { width: 46px; height: 46px; font-size: var(--gb-font-lg); }

/* Loading State */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--gb-radius-full);
    animation: vueSpinner 0.6s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
}

.btn-primary.is-loading::after,
.btn-success.is-loading::after,
.btn-danger.is-loading::after {
    border-color: rgba(255, 255, 255, 0.4);
    border-right-color: transparent;
}

/* ----------------------------------------
   3. Badge/Tag Variants
   ---------------------------------------- */

.badge-outline-primary {
    background-color: transparent;
    border: var(--gb-border-width-1) solid var(--gb-primary);
    color: var(--gb-primary);
}

.badge-outline-success {
    background-color: transparent;
    border: var(--gb-border-width-1) solid var(--gb-success);
    color: var(--gb-success);
}

.badge-outline-danger {
    background-color: transparent;
    border: var(--gb-border-width-1) solid var(--gb-danger);
    color: var(--gb-danger);
}

.badge-outline-warning {
    background-color: transparent;
    border: var(--gb-border-width-1) solid var(--gb-warning);
    color: var(--gb-warning);
}

/* Count Badge */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--gb-radius-full);
    font-size: 11px;
    font-weight: var(--gb-font-bold);
    line-height: 1;
}

/* Tag */
.vue-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--gb-space-1);
    padding: var(--gb-space-1) var(--gb-space-3);
    border-radius: var(--gb-radius-full);
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-medium);
    background-color: var(--gb-surface-sunken);
    color: var(--gb-text-secondary);
    text-decoration: none;
    transition: all var(--gb-transition);
}

.vue-tag:hover {
    background-color: var(--gb-primary-light);
    color: var(--gb-primary);
}

.vue-tag-remove {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
    border-radius: var(--gb-radius-full);
    border: none;
    background: transparent;
    color: inherit;
    font-size: 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--gb-transition);
}

.vue-tag-remove:hover {
    opacity: 1;
}

/* ----------------------------------------
   4. Empty State
   ---------------------------------------- */

.vue-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--gb-space-12) var(--gb-space-4);
    text-align: center;
}

.vue-empty-icon {
    font-size: var(--gb-font-4xl);
    color: var(--gb-text-tertiary);
    margin-bottom: var(--gb-space-4);
}

.vue-empty-title {
    font-size: var(--gb-font-lg);
    font-weight: var(--gb-font-semibold);
    color: var(--gb-text-primary);
    margin-bottom: var(--gb-space-2);
}

.vue-empty-desc {
    font-size: var(--gb-font-sm);
    color: var(--gb-text-secondary);
    max-width: 320px;
    margin-bottom: var(--gb-space-6);
}

/* ----------------------------------------
   5. Skeleton Loading
   ---------------------------------------- */

@keyframes vueShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background:
        linear-gradient(
            90deg,
            var(--gb-gray-200) 25%,
            var(--gb-gray-100) 50%,
            var(--gb-gray-200) 75%
        );
    background-size: 200% 100%;
    animation: vueShimmer 1.5s ease-in-out infinite;
    border-radius: var(--gb-radius);
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--gb-space-2);
    border-radius: var(--gb-radius-sm);
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 20px;
    width: 40%;
    margin-bottom: var(--gb-space-3);
    border-radius: var(--gb-radius-sm);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--gb-radius-full);
    flex-shrink: 0;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--gb-radius-lg);
}

/* ----------------------------------------
   6. Avatar
   ---------------------------------------- */

.vue-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--gb-radius-full);
    background-color: var(--gb-primary-light);
    color: var(--gb-primary);
    font-weight: var(--gb-font-semibold);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.vue-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vue-avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.vue-avatar-sm { width: 32px; height: 32px; font-size: var(--gb-font-xs); }
.vue-avatar-md,
.vue-avatar { width: 40px; height: 40px; font-size: var(--gb-font-sm); }
.vue-avatar-lg { width: 48px; height: 48px; font-size: var(--gb-font-base); }
.vue-avatar-xl { width: 64px; height: 64px; font-size: var(--gb-font-xl); }

/* Status Dot */
.vue-avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: var(--gb-radius-full);
    border: 2px solid var(--gb-surface-card);
}

.vue-avatar-status-online { background-color: var(--gb-success); }
.vue-avatar-status-offline { background-color: var(--gb-gray-400); }
.vue-avatar-status-busy { background-color: var(--gb-danger); }

/* ----------------------------------------
   7. Stat Card
   ---------------------------------------- */

.vue-stat-card {
    display: flex;
    align-items: flex-start;
    gap: var(--gb-space-4);
    padding: var(--gb-space-5);
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
}

.vue-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--gb-radius-xl);
    background-color: var(--gb-primary-light);
    color: var(--gb-primary);
    font-size: var(--gb-font-xl);
    flex-shrink: 0;
}

.vue-stat-body {
    flex: 1;
    min-width: 0;
}

.vue-stat-label {
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-medium);
    color: var(--gb-text-secondary);
    margin-bottom: var(--gb-space-1);
}

.vue-stat-value {
    font-size: var(--gb-font-2xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-text-primary);
    line-height: var(--gb-leading-tight);
}

.vue-stat-trend {
    font-size: var(--gb-font-xs);
    font-weight: var(--gb-font-medium);
    margin-top: var(--gb-space-1);
}

.vue-stat-trend-up { color: var(--gb-success); }
.vue-stat-trend-down { color: var(--gb-danger); }

/* ----------------------------------------
   8. Section Header
   ---------------------------------------- */

.vue-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gb-space-6);
}

.vue-section-head-title {
    font-size: var(--gb-font-xl);
    font-weight: var(--gb-font-bold);
    color: var(--gb-text-primary);
    margin: 0;
}

.vue-section-head-underline {
    position: relative;
    padding-bottom: var(--gb-space-3);
    margin-bottom: var(--gb-space-6);
    border-bottom: 1px solid var(--gb-border-default);
}

.vue-section-head-underline::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(135deg, var(--vue-gradient-start), var(--vue-gradient-end));
    border-radius: 2px;
}

/* ----------------------------------------
   9. List Item
   ---------------------------------------- */

.vue-list-item {
    display: flex;
    align-items: center;
    gap: var(--gb-space-3);
    padding: var(--gb-space-3) var(--gb-space-4);
    border-bottom: 1px solid var(--gb-border-subtle);
    transition: background-color var(--gb-transition);
    text-decoration: none;
    color: inherit;
}

.vue-list-item:hover {
    background-color: var(--gb-surface-sunken);
}

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

.vue-list-item-body {
    flex: 1;
    min-width: 0;
}

.vue-list-item-title {
    font-size: var(--gb-font-sm);
    font-weight: var(--gb-font-medium);
    color: var(--gb-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vue-list-item-meta {
    font-size: var(--gb-font-xs);
    color: var(--gb-text-tertiary);
    margin-top: 2px;
}

.vue-list-item-side {
    flex-shrink: 0;
    font-size: var(--gb-font-xs);
    color: var(--gb-text-tertiary);
}

/* ----------------------------------------
   10. Alert
   ---------------------------------------- */

.vue-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--gb-space-3);
    padding: var(--gb-space-4);
    border-radius: var(--gb-radius-lg);
    font-size: var(--gb-font-sm);
    line-height: var(--gb-leading-normal);
}

.vue-alert-icon {
    flex-shrink: 0;
    font-size: var(--gb-font-lg);
    line-height: 1;
    margin-top: 1px;
}

.vue-alert-content {
    flex: 1;
    min-width: 0;
}

.vue-alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.vue-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.vue-alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.vue-alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ----------------------------------------
   11. Toast (Frontend)
   ---------------------------------------- */

.vue-toast-container {
    position: fixed;
    top: var(--gb-space-6);
    right: var(--gb-space-6);
    z-index: var(--gb-z-popup);
    display: flex;
    flex-direction: column;
    gap: var(--gb-space-2);
    pointer-events: none;
}

.vue-toast {
    display: flex;
    align-items: center;
    gap: var(--gb-space-3);
    padding: var(--gb-space-3) var(--gb-space-4);
    background-color: var(--gb-surface-card);
    border: 1px solid var(--gb-border-default);
    border-radius: var(--gb-radius-lg);
    box-shadow: var(--gb-shadow-lg);
    font-size: var(--gb-font-sm);
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
    animation: vueToastIn var(--gb-duration-slow) ease-out;
}

.vue-toast-icon {
    flex-shrink: 0;
    font-size: var(--gb-font-lg);
}

.vue-toast-body {
    flex: 1;
    min-width: 0;
}

.vue-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--gb-text-tertiary);
    cursor: pointer;
    padding: var(--gb-space-1);
    font-size: var(--gb-font-sm);
    transition: color var(--gb-transition);
}

.vue-toast-close:hover {
    color: var(--gb-text-primary);
}

.vue-toast-success .vue-toast-icon { color: var(--gb-success); }
.vue-toast-error .vue-toast-icon { color: var(--gb-danger); }
.vue-toast-warning .vue-toast-icon { color: var(--gb-warning); }
.vue-toast-info .vue-toast-icon { color: var(--gb-info); }

@keyframes vueToastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.vue-toast-out {
    animation: vueToastOut var(--gb-duration-normal) ease-in forwards;
}

@keyframes vueToastOut {
    to { opacity: 0; transform: translateX(100%); }
}

@media (max-width: 575.98px) {
    .vue-toast-container {
        top: auto;
        bottom: var(--gb-space-4);
        right: var(--gb-space-4);
        left: var(--gb-space-4);
    }

    .vue-toast {
        min-width: 0;
        max-width: none;
    }
}

/* ----------------------------------------
   12. Spinner
   ---------------------------------------- */

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

.vue-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gb-border-default);
    border-right-color: var(--gb-primary);
    border-radius: var(--gb-radius-full);
    animation: vueSpinner 0.6s linear infinite;
}

.vue-spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.vue-spinner-lg { width: 32px; height: 32px; border-width: 3px; }
.vue-spinner-xl { width: 48px; height: 48px; border-width: 4px; }

.vue-spinner-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gb-space-8);
}


/* ========================================================================
   § Animation Utilities
   범용 진입/퇴장 애니메이션 + easing 토큰 + 스크롤 reveal
   ======================================================================== */

/* Easing Tokens */
:root {
    --gb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gb-ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --gb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --gb-ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Keyframes --- */

@keyframes vueFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vueFadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes vueSlideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes vueSlideInRight {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes vueScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes vueFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Page Load Animation --- */
@keyframes vuePageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#container {
    animation: vuePageIn 500ms var(--gb-ease-out) both;
}

/* --- Utility Classes --- */

.vue-anim-fade-in {
    animation: vueFadeIn 400ms var(--gb-ease-out) both;
}
.vue-anim-fade-in-up {
    animation: vueFadeInUp 500ms var(--gb-ease-out) both;
}
.vue-anim-fade-in-down {
    animation: vueFadeInDown 500ms var(--gb-ease-out) both;
}
.vue-anim-slide-in-left {
    animation: vueSlideInLeft 500ms var(--gb-ease-out) both;
}
.vue-anim-slide-in-right {
    animation: vueSlideInRight 500ms var(--gb-ease-out) both;
}
.vue-anim-scale-in {
    animation: vueScaleIn 400ms var(--gb-ease-spring) both;
}
.vue-anim-fade-out {
    animation: vueFadeOut var(--gb-duration-normal)
        var(--gb-ease-out) both;
}

/* Stagger delays (자식 요소 순차 애니메이션) */
.vue-anim-stagger > :nth-child(1) { animation-delay: 0ms; }
.vue-anim-stagger > :nth-child(2) { animation-delay: 50ms; }
.vue-anim-stagger > :nth-child(3) { animation-delay: 100ms; }
.vue-anim-stagger > :nth-child(4) { animation-delay: 150ms; }
.vue-anim-stagger > :nth-child(5) { animation-delay: 200ms; }
.vue-anim-stagger > :nth-child(6) { animation-delay: 250ms; }
.vue-anim-stagger > :nth-child(7) { animation-delay: 300ms; }
.vue-anim-stagger > :nth-child(8) { animation-delay: 350ms; }

/* --- Scroll Reveal --- */

.vue-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 350ms var(--gb-ease-out),
                transform 350ms var(--gb-ease-out);
}

.vue-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vue-reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 350ms var(--gb-ease-out),
                transform 350ms var(--gb-ease-out);
}

.vue-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.vue-reveal-scale {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity 350ms var(--gb-ease-out),
                transform 350ms var(--gb-ease-out);
}

.vue-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ----------------------------------------
   § Reduced Motion (전역)
   모든 커스텀 애니메이션 + transition 일괄 비활성화
   ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .vue-reveal,
    .vue-reveal-left,
    .vue-reveal-scale {
        opacity: 1;
        transform: none;
    }
}


/* ========================================================================
   § Performance Utilities
   content-visibility, contain, will-change 패턴
   ======================================================================== */

/* 오프스크린 섹션 렌더링 지연 — 장문 페이지 초기 렌더 성능 개선 */
.vue-lazy-render {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* 레이아웃 격리 — 리플로우 범위 제한 */
.vue-contain-layout {
    contain: layout style;
}

/* 페인트 격리 — 독립 렌더링 레이어 */
.vue-contain-paint {
    contain: paint;
}

/* GPU 가속 힌트 (애니메이션 대상에만) */
.vue-gpu {
    will-change: transform;
}

/* 이미지 lazy 래퍼 — CLS 방지 */
.vue-img-ratio {
    position: relative;
    overflow: hidden;
}

.vue-img-ratio::before {
    content: '';
    display: block;
    padding-top: var(--vue-img-aspect, 56.25%);
}

.vue-img-ratio > img,
.vue-img-ratio > picture > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================================================
   § Accessibility Utilities
   focus-visible, 고대비 모드, 스킵 네비게이션 강화
   ======================================================================== */

/* Focus-visible 강화 — 키보드 사용자에게 명확한 포커스 링 */
:focus-visible {
    outline: 2px solid var(--gb-border-focus);
    outline-offset: 2px;
}

/* 마우스 클릭 시 포커스 링 제거 (접근성 유지하면서 시각적 노이즈 제거) */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip navigation 강화 */
.visually-hidden-focusable:focus {
    z-index: var(--gb-z-popup);
    background: var(--gb-primary);
    color: var(--gb-text-on-primary);
    padding: var(--gb-space-2) var(--gb-space-4);
    font-weight: var(--gb-font-semibold);
    border-radius: 0 0 var(--gb-radius) var(--gb-radius);
    text-decoration: none;
}

/* 고대비 모드 (Windows High Contrast) */
@media (forced-colors: active) {
    .btn,
    .card,
    .form-control,
    .form-select,
    .badge {
        border: 1px solid ButtonText;
    }

    .btn-primary,
    .btn-success,
    .btn-danger {
        background-color: ButtonFace;
        color: ButtonText;
    }

    :focus-visible {
        outline: 2px solid Highlight;
    }

    .vue-spinner {
        border-color: GrayText;
        border-right-color: Highlight;
    }
}

/* 링크 구분 — 밑줄로 색각 이상자 대응 */
.vue-underline-links a:not(.btn):not(.nav-link):not(.dropdown-item) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Screen reader 전용 라이브 영역 */
.vue-sr-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================================================
   § Responsive Utilities
   브레이크포인트: xs(<576) sm(576+) md(768+) lg(992+) xl(1200+) xxl(1400+)
   ======================================================================== */

/* Touch targets — 모바일 44px 최소 터치 영역 */
@media (max-width: 767.98px) {
    .vue-touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    /* 테이블 가로 스크롤 래퍼 */
    .vue-table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vue-table-responsive table {
        min-width: 600px;
    }

    /* 모바일 스택: 가로 → 세로 */
    .vue-stack-mobile {
        flex-direction: column !important;
    }

    .vue-stack-mobile > * + * {
        margin-top: var(--gb-space-3);
    }

    /* 모바일 풀 너비 */
    .vue-full-mobile {
        width: 100% !important;
    }

    /* 모바일 간격 축소 */
    .vue-compact-mobile {
        gap: var(--gb-space-2) !important;
    }

    .vue-compact-mobile .card-body {
        padding: var(--gb-space-3);
    }
}

/* 태블릿 최적화 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .vue-hide-tablet { display: none !important; }

    .vue-compact-tablet {
        gap: var(--gb-space-3) !important;
    }
}

/* 대형 화면 (1200px+): 콘텐츠 영역 확장 */
@media (min-width: 1200px) {
    .vue-wide-xl {
        max-width: 1140px;
        margin-inline: auto;
    }
}

/* 초대형 화면 (1400px+) */
@media (min-width: 1400px) {
    .vue-wide-xxl {
        max-width: 1320px;
        margin-inline: auto;
    }
}

/* Safe area (노치 대응) */
@supports (padding: env(safe-area-inset-bottom)) {
    .vue-safe-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}


/* ========================================================================
   § Dark Mode
   data-theme="dark" on <html> OR system prefers-color-scheme: dark
   ======================================================================== */

[data-theme="dark"] {
    /* Primary — 로고 보라색 (다크) */
    --gb-primary: #a78bfa;
    --gb-primary-hover: #c4b5fd;
    --gb-primary-dark: #8b5cf6;
    --gb-primary-light: rgba(139, 92, 246, 0.15);
    --gb-primary-light-hover: rgba(139, 92, 246, 0.25);

    /* Accent — 골드 (다크) */
    --gb-accent: #dbb07a;
    --gb-accent-hover: #e8c496;
    --gb-accent-dark: #c4935a;
    --gb-accent-light: rgba(196, 147, 90, 0.15);
    --gb-accent-bright: #e8c496;

    /* Semantic */
    --gb-success: #3fb950;
    --gb-success-hover: #56d364;
    --gb-success-light: rgba(63, 185, 80, 0.15);
    --gb-success-dark: #86efac;
    --gb-danger: #f85149;
    --gb-danger-hover: #ff7b72;
    --gb-danger-light: rgba(248, 81, 73, 0.15);
    --gb-danger-dark: #fca5a5;
    --gb-warning: #d29922;
    --gb-warning-light: rgba(210, 153, 34, 0.15);
    --gb-warning-dark: #fcd34d;
    --gb-info: #39d2c0;
    --gb-info-light: rgba(57, 210, 192, 0.15);
    --gb-info-dark: #67e8f9;

    /* Neutrals (inverted) */
    --gb-gray-50: #0d1117;
    --gb-gray-100: #161b22;
    --gb-gray-200: #21262d;
    --gb-gray-300: #30363d;
    --gb-gray-400: #484f58;
    --gb-gray-500: #6e7681;
    --gb-gray-600: #8b949e;
    --gb-gray-700: #a4adb7;
    --gb-gray-800: #bbc3cd;
    --gb-gray-900: #d0d7de;
    --gb-white: #d0d7de;

    /* Surface */
    --gb-surface-page: #0d1117;
    --gb-surface-card: #161b22;
    --gb-surface-raised: #1c2128;
    --gb-surface-sunken: #010409;
    --gb-surface-overlay: #1c2128;

    /* Text */
    --gb-text-primary: #d0d7de;
    --gb-text-secondary: #8b949e;
    --gb-text-tertiary: #484f58;
    --gb-text-on-primary: #ffffff;
    --gb-text-link: #58a6ff;

    /* Border */
    --gb-border-default: #30363d;
    --gb-border-subtle: #21262d;
    --gb-border-strong: #484f58;
    --gb-border-focus: #58a6ff;

    /* Shadow */
    --gb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --gb-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --gb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --gb-shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.4),
        0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --gb-shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --gb-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.2);

    /* Focus Ring */
    --gb-focus-ring: 0 0 0 3px rgba(88, 166, 255, 0.2);
    --gb-focus-ring-danger: 0 0 0 3px rgba(248, 81, 73, 0.2);

    /* Glow (gradient는 palette var() 참조로 자동 반영) */
    --vue-glow-primary: 0 0 20px rgba(88, 166, 255, 0.3);
    --vue-glow-subtle: 0 0 0 3px rgba(88, 166, 255, 0.15);

    /* Dropdown */
    --vue-dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --vue-dropdown-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);

    /* Dark Area (more intense in dark mode) */
    --vue-dark-bg: linear-gradient(160deg, #010409 0%, #0d1117 45%, #0d0d1a 100%);
    --vue-dark-text: rgba(255,255,255,0.55);

    /* Hero */
    --gb-hero-bg-start: #0d1117;
    --gb-hero-bg-mid1: #161b22;
    --gb-hero-bg-mid2: #1a1230;
    --gb-hero-bg-end: #1a1230;

    /* Search Badges */
    --gb-color-board: #58a6ff;
    --gb-color-content: #3fb950;
    --gb-color-shop: #d29922;

    /* Markdown (dark) */
    --md-code-bg: #161b22;
    --md-code-border: #30363d;
    --md-code-text: #bbc3cd;
    --md-code-inline-bg: #21262d;
    --md-code-inline-text: #bbc3cd;
    --md-syntax-comment: #8b949e;
    --md-syntax-keyword: #ff7b72;
    --md-syntax-string: #a5d6ff;
    --md-syntax-function: #d2a8ff;
    --md-syntax-number: #79c0ff;
    --md-syntax-variable: #ffa657;
    --md-blockquote-bg: #161b22;
    --md-blockquote-text: #8b949e;
    --md-table-header-bg: #161b22;
    --md-table-border: #30363d;
    --md-table-stripe-bg: #0d1117;

    /* Alert Colors (dark) */
    color-scheme: dark;
}

/* System preference fallback (auto mode) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        /* Same overrides as [data-theme="dark"] — use CSS custom property inheritance */
        --gb-primary: #a78bfa;
        --gb-primary-hover: #c4b5fd;
        --gb-primary-dark: #8b5cf6;
        --gb-primary-light: rgba(139, 92, 246, 0.15);
        --gb-primary-light-hover: rgba(139, 92, 246, 0.25);
        --gb-accent: #dbb07a;
        --gb-accent-hover: #e8c496;
        --gb-accent-dark: #c4935a;
        --gb-accent-light: rgba(196, 147, 90, 0.15);
        --gb-accent-bright: #e8c496;
        --gb-success: #3fb950;
        --gb-success-hover: #56d364;
        --gb-success-light: rgba(63, 185, 80, 0.15);
        --gb-success-dark: #86efac;
        --gb-danger: #f85149;
        --gb-danger-hover: #ff7b72;
        --gb-danger-light: rgba(248, 81, 73, 0.15);
        --gb-danger-dark: #fca5a5;
        --gb-warning: #d29922;
        --gb-warning-light: rgba(210, 153, 34, 0.15);
        --gb-warning-dark: #fcd34d;
        --gb-info: #39d2c0;
        --gb-info-light: rgba(57, 210, 192, 0.15);
        --gb-info-dark: #67e8f9;
        --gb-gray-50: #0d1117;
        --gb-gray-100: #161b22;
        --gb-gray-200: #21262d;
        --gb-gray-300: #30363d;
        --gb-gray-400: #484f58;
        --gb-gray-500: #6e7681;
        --gb-gray-600: #8b949e;
        --gb-gray-700: #a4adb7;
        --gb-gray-800: #bbc3cd;
        --gb-gray-900: #d0d7de;
        --gb-white: #d0d7de;
        --gb-surface-page: #0d1117;
        --gb-surface-card: #161b22;
        --gb-surface-raised: #1c2128;
        --gb-surface-sunken: #010409;
        --gb-surface-overlay: #1c2128;
        --gb-text-primary: #d0d7de;
        --gb-text-secondary: #8b949e;
        --gb-text-tertiary: #484f58;
        --gb-text-on-primary: #ffffff;
        --gb-text-link: #58a6ff;
        --gb-border-default: #30363d;
        --gb-border-subtle: #21262d;
        --gb-border-strong: #484f58;
        --gb-border-focus: #58a6ff;
        --gb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --gb-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
        --gb-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
        --gb-shadow-lg:
            0 10px 15px -3px rgba(0, 0, 0, 0.4),
            0 4px 6px -4px rgba(0, 0, 0, 0.3);
        --gb-shadow-xl:
            0 20px 25px -5px rgba(0, 0, 0, 0.5),
            0 8px 10px -6px rgba(0, 0, 0, 0.4);
        --gb-focus-ring: 0 0 0 3px rgba(88, 166, 255, 0.2);
        --gb-focus-ring-danger: 0 0 0 3px rgba(248, 81, 73, 0.2);
        --vue-glow-subtle: 0 0 0 3px rgba(88, 166, 255, 0.15);
        --vue-dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        --vue-dropdown-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
        --gb-hero-bg-start: #0d1117;
        --gb-hero-bg-mid1: #161b22;
        --gb-hero-bg-mid2: #1a1230;
        --gb-hero-bg-end: #1a1230;
        --md-code-bg: #161b22;
        --md-code-border: #30363d;
        --md-code-text: #bbc3cd;
        --md-code-inline-bg: #21262d;
        --md-code-inline-text: #bbc3cd;
        --md-blockquote-bg: #161b22;
        --md-table-header-bg: #161b22;
        --md-table-border: #30363d;
        color-scheme: dark;
    }
}

/* Dark mode specific component overrides */
[data-theme="dark"] .vue-alert-info {
    background-color: rgba(56, 139, 253, 0.1);
    color: #79c0ff;
    border-color: rgba(56, 139, 253, 0.3);
}

[data-theme="dark"] .vue-alert-success {
    background-color: rgba(63, 185, 80, 0.1);
    color: #56d364;
    border-color: rgba(63, 185, 80, 0.3);
}

[data-theme="dark"] .vue-alert-warning {
    background-color: rgba(210, 153, 34, 0.1);
    color: #e3b341;
    border-color: rgba(210, 153, 34, 0.3);
}

[data-theme="dark"] .vue-alert-danger {
    background-color: rgba(248, 81, 73, 0.1);
    color: #ff7b72;
    border-color: rgba(248, 81, 73, 0.3);
}

[data-theme="dark"] code {
    color: #ff7b72;
    background-color: var(--md-code-inline-bg);
}

[data-theme="dark"] pre {
    color: var(--md-code-text);
    background-color: var(--md-code-bg);
    border-color: var(--md-code-border);
}

[data-theme="dark"] mark {
    background-color: rgba(210, 153, 34, 0.3);
    color: #e3b341;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #21262d 25%, #30363d 50%, #21262d 75%);
    background-size: 200% 100%;
}

/* Bootstrap component dark overrides */
[data-theme="dark"] .offcanvas {
    background-color: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-default);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-subtle);
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--gb-surface-raised);
}

[data-theme="dark"] .form-check-input {
    background-color: var(--gb-surface-raised);
    border-color: var(--gb-border-strong);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--gb-primary);
    border-color: var(--gb-primary);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--gb-surface-raised);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-default);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-focus);
}

[data-theme="dark"] .modal-content {
    background-color: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-default);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--gb-surface-overlay);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-default);
}

[data-theme="dark"] .dropdown-item {
    color: var(--gb-text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--gb-surface-raised);
    color: var(--gb-text-primary);
}

[data-theme="dark"] .table {
    --bs-table-color: var(--gb-text-primary);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--gb-gray-200);
    --bs-table-border-color: var(--gb-border-subtle);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-subtle);
}

[data-theme="dark"] .card {
    background-color: var(--gb-surface-card);
    color: var(--gb-text-primary);
    border-color: var(--gb-border-default);
}

[data-theme="dark"] ::selection {
    background-color: rgba(88, 166, 255, 0.4);
}

/* Dark mode toggle switch — icon-in-thumb */
.vue-theme-toggle {
    --vue-toggle-sun: #f59e0b;
    --vue-toggle-sun-bg: #fef3c7;
    --vue-toggle-moon: #818cf8;
    --vue-toggle-moon-bg: #312e81;
    --vue-toggle-auto-bg: var(--gb-border-default);
    display: inline-flex;
    flex: none;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 20px;
    transition: background-color 200ms var(--gb-ease-out);
    line-height: 1;
}

.vue-theme-toggle:hover {
    background-color: var(--gb-surface-raised);
}

.vue-theme-toggle:focus-visible {
    outline: 2px solid var(--gb-border-focus);
    outline-offset: 2px;
}

/* Track */
.vue-theme-toggle-track {
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background-color: var(--vue-toggle-auto-bg);
    transition: background-color 200ms var(--gb-ease-out);
    flex-shrink: 0;
}

/* Thumb */
.vue-theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gb-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 300ms var(--gb-ease-spring),
        background-color 200ms var(--gb-ease-out);
}

/* Icons inside thumb */
.vue-theme-toggle-icon {
    position: absolute;
    font-size: 8px;
    transition: opacity 200ms var(--gb-ease-out), transform 200ms var(--gb-ease-out);
    opacity: 0;
    transform: scale(0.5);
}

.vue-theme-toggle-sun { color: var(--vue-toggle-sun); }
.vue-theme-toggle-moon { color: var(--vue-toggle-moon); }
.vue-theme-toggle-auto { color: var(--gb-text-tertiary); }

/* State: light — thumb left, sun icon */
.vue-theme-toggle[data-mode="light"] .vue-theme-toggle-thumb {
    transform: translateX(0);
}

.vue-theme-toggle[data-mode="light"] .vue-theme-toggle-track {
    background-color: var(--vue-toggle-sun-bg);
}

.vue-theme-toggle[data-mode="light"] .vue-theme-toggle-sun {
    opacity: 1;
    transform: scale(1);
}

/* State: dark — thumb right, moon icon */
.vue-theme-toggle[data-mode="dark"] .vue-theme-toggle-thumb {
    transform: translateX(14px);
    background-color: #312e81;
}

.vue-theme-toggle[data-mode="dark"] .vue-theme-toggle-track {
    background-color: var(--vue-toggle-moon-bg);
}

.vue-theme-toggle[data-mode="dark"] .vue-theme-toggle-moon {
    opacity: 1;
    transform: scale(1);
    color: #e0d5ff;
}

/* State: auto — thumb center, half-circle icon */
.vue-theme-toggle[data-mode="auto"] .vue-theme-toggle-thumb {
    transform: translateX(7px);
}

.vue-theme-toggle[data-mode="auto"] .vue-theme-toggle-auto {
    opacity: 1;
    transform: scale(1);
}

/* Dark theme overrides */
[data-theme="dark"] .vue-theme-toggle-track {
    background-color: var(--gb-gray-300);
}

[data-theme="dark"] .vue-theme-toggle-thumb {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background-color: var(--gb-gray-800);
}

[data-theme="dark"] .vue-theme-toggle[data-mode="dark"] .vue-theme-toggle-thumb {
    background-color: #312e81;
}

[data-theme="dark"] .vue-theme-toggle-auto {
    color: var(--gb-text-secondary);
}

[data-theme="dark"] .vue-theme-toggle[data-mode="light"] .vue-theme-toggle-track {
    background-color: color-mix(in srgb, var(--vue-toggle-sun) 25%, var(--gb-gray-300));
}

[data-theme="dark"] .vue-theme-toggle[data-mode="light"] .vue-theme-toggle-thumb {
    background-color: var(--gb-white);
}

[data-theme="dark"] .vue-theme-toggle[data-mode="dark"] .vue-theme-toggle-track {
    background-color: color-mix(in srgb, var(--vue-toggle-moon) 35%, transparent);
}

/* ---- GLightbox ---- */
.glightbox-container .gslide-image img {
    border-radius: var(--gb-radius-sm, 4px);
}

a.glightbox img,
a.view_image img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

a.glightbox:hover img,
a.view_image:hover img {
    opacity: 0.85;
}

[data-theme="dark"] .goverlay {
    background: rgba(0, 0, 0, 0.92);
}

[data-theme="dark"] .gslide-title {
    color: var(--gb-text-primary);
}

[data-theme="dark"] .gslide-desc {
    color: var(--gb-text-secondary);
}

[data-theme="dark"] .gnext,
[data-theme="dark"] .gprev,
[data-theme="dark"] .gclose {
    color: var(--gb-text-primary);
}

[data-theme="dark"] .gslide-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .gslide-inline {
    background: var(--gb-surface-card);
}

[data-theme="dark"] .gslide-desc a {
    color: var(--gb-link-color);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) .goverlay {
        background: rgba(0, 0, 0, 0.92);
    }
    :root:not([data-theme="light"]):not([data-theme="dark"]) .gslide-inline {
        background: var(--gb-surface-card);
    }
}
