/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Funnel Changer - Premium Design System
   Based on FunnelBrain design system, adapted for FC brand colors
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Nanum+Gothic:wght@400;700;800&display=swap");

:root {
  /* ?????????????????????????????????????????????????????????????????????????
     Premium Color Palette - Deep Purple & Amber Gold
     ????????????????????????????????????????????????????????????????????????? */

  /* Primary - Deep Purple */
  --primary-50: #f3f0ff;
  --primary-100: #e9e2ff;
  --primary-200: #d4c8ff;
  --primary-300: #b5a0ff;
  --primary-400: #9270f5;
  --primary-500: #6E5AD1;
  --primary-600: #4A3094;
  --primary-700: #3d2578;
  --primary-800: #321d63;
  --primary-900: #281852;
  --primary-950: #170e33;

  /* Accent - Amber Gold */
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-200: #fde68a;
  --accent-300: #fcd34d;
  --accent-400: #FFD056;
  --accent-500: #f59e0b;
  --accent-600: #d97706;
  --accent-700: #b45309;
  --accent-800: #92400e;
  --accent-900: #78350f;

  /* Neutral - Slate */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --neutral-950: #020617;

  /* Semantic Colors */
  --success: #38B000;
  --warning: #FFD056;
  --error: #E74C3C;
  --info: #35BCFF;

  /* Theme Variables - Light Mode */
  --primary-color: var(--primary-600);
  --secondary-color: var(--success);
  --accent-color: var(--accent-400);
  --background-color: var(--neutral-100);
  --text-color: var(--neutral-700);
  --heading-color: var(--neutral-900);
  --card-background: #ffffff;
  --card-bg: #ffffff;
  --border-color: var(--neutral-200);
  --text-secondary: var(--neutral-500);
  --text-muted: var(--neutral-400);
  --text-primary: var(--neutral-900);
  --input-bg: var(--neutral-50);
  --hover-bg: var(--primary-50);
  --bg-secondary: var(--neutral-100);
  --accent-bg: var(--primary-50);
  --info-bg: #eff6ff;
  --warning-bg: var(--accent-50);
  --success-bg: #dcfce7;

  /* Dashboard specific */
  --dashboard-bg: #f5f5f7;
  --section-bg: #eaeaec;

  /* Sidebar specific */
  --sidebar-bg: #ffffff;
  --sidebar-border: var(--neutral-200);
  --sidebar-hover: var(--neutral-100);
  --sidebar-active: var(--primary-50);
  --sidebar-active-text: var(--primary-600);
  --sidebar-text: var(--neutral-600);
  --sidebar-text-muted: var(--neutral-400);

  /* Typography */
  --font-display:
    "Noto Sans KR", "Nanum Gothic", -apple-system, BlinkMacSystemFont,
    sans-serif;
  --font-body:
    "Noto Sans KR", "Nanum Gothic", -apple-system, BlinkMacSystemFont,
    sans-serif;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius */
  --radius-sm: 0.1875rem;  /* 3px */
  --radius-md: 0.3125rem;  /* 5px */
  --radius-lg: 0.3125rem;  /* 5px */
  --radius-xl: 0.375rem;   /* 6px */
  --radius-2xl: 0.5rem;    /* 8px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px var(--primary-500);
  --shadow-gold: 0 0 40px -10px var(--accent-400);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Sidebar dimensions */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 64px;
  --header-height: 56px;
}

/* ?????????????????????????????????????????????????????????????????????????
   Dark Mode
   ????????????????????????????????????????????????????????????????????????? */
.dark {
  --primary-color: var(--primary-400);
  --secondary-color: #4ade80;
  --accent-color: var(--accent-400);
  --background-color: #1a1d24;
  --text-color: #d1d5db;
  --heading-color: #f3f4f6;
  --card-background: #242830;
  --card-bg: #242830;
  --border-color: #3a3f4b;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-primary: #f9fafb;
  --input-bg: #2d323c;
  --hover-bg: #2d323c;
  --bg-secondary: #1f2329;
  --accent-bg: rgba(74, 48, 148, 0.2);
  --info-bg: rgba(53, 188, 255, 0.2);
  --warning-bg: rgba(255, 208, 86, 0.2);
  --success-bg: rgba(56, 176, 0, 0.2);

  --dashboard-bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
  --section-bg: rgba(30, 30, 45, 0.5);

  --sidebar-bg: #1f2329;
  --sidebar-border: #3a3f4b;
  --sidebar-hover: #2d323c;
  --sidebar-active: rgba(74, 48, 148, 0.2);
  --sidebar-active-text: var(--primary-300);
  --sidebar-text: #d1d5db;
  --sidebar-text-muted: #6b7280;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Global Base Styles
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: -0.011em;
}

::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

.dark ::selection {
  background: var(--primary-700);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   App Layout (Sidebar + Main)
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Sidebar
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 40;
  transition:
    width var(--transition-base),
    transform var(--transition-base);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.sidebar-logo-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}

.sidebar-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-600);
  white-space: nowrap;
}

.sidebar-version {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.sidebar-collapse-btn {
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.sidebar-collapse-btn .expand-icon {
  display: none;
}

.sidebar.collapsed .sidebar-collapse-btn .collapse-icon {
  display: none;
}

.sidebar.collapsed .sidebar-collapse-btn .expand-icon {
  display: block;
}

/* Collapsed state - hide text */
.sidebar.collapsed .sidebar-logo-link {
  justify-content: center;
}

.sidebar.collapsed .sidebar-version,
.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .sidebar-menu-button span,
.sidebar.collapsed .sidebar-submenu,
.sidebar.collapsed .sidebar-group-label {
  display: none;
}

.sidebar.collapsed .sidebar-menu-button {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .sidebar-footer-content span,
.sidebar.collapsed .sidebar-footer-btn span {
  display: none;
}

.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-user svg:last-child {
  display: none;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) 0;
}

.sidebar-group {
  margin-bottom: var(--space-4);
}

.sidebar-group-label {
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  padding: 0 var(--space-2);
}

.sidebar-menu-button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border: none;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-menu-button:hover {
  background: var(--sidebar-hover);
}

.sidebar-menu-button.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.sidebar-menu-button svg,
.sidebar-menu-button i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sidebar Submenu - Hierarchical Navigation */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  margin-left: calc(var(--space-4) + 9px);
  padding-left: var(--space-4);
  border-left: none;
  position: relative;
}

.sidebar-submenu-item {
  padding: 1px 0;
  position: relative;
}

/* 세로선: 마지막이 아닌 아이템은 위에서 아래까지 직선 */
.sidebar-submenu-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

/* 수평 가지선: 마지막이 아닌 아이템 */
.sidebar-submenu-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 50%;
  width: var(--space-3);
  height: 2px;
  background: var(--border-color);
}

/* 마지막 서브메뉴 아이템: ㄴ자 커브로 끝남 */
.sidebar-submenu-item:last-child::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 0;
  width: var(--space-3);
  height: 50%;
  border-left: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  border-bottom-left-radius: 8px;
  background: none;
}

.sidebar-submenu-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.3rem var(--space-3);
  border: none;
  background: transparent;
  color: var(--sidebar-text-muted);
  font-size: 0.813rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-submenu-button:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.sidebar-submenu-button.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}

.sidebar-submenu-button svg,
.sidebar-submenu-button i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.dark .sidebar-submenu-item:not(:last-child)::after {
  background: var(--sidebar-border);
}

.dark .sidebar-submenu-item:not(:last-child)::before {
  background: var(--sidebar-border);
}

.dark .sidebar-submenu-item:last-child::before {
  border-left-color: var(--sidebar-border);
  border-bottom-color: var(--sidebar-border);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-user:hover {
  background: var(--sidebar-hover);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.dark .sidebar-user-avatar {
  background: var(--primary-900);
  color: var(--primary-300);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
  backdrop-filter: blur(4px);
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Main Content Area
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  background: var(--dashboard-bg);
  transition: margin-left var(--transition-base);
}

.sidebar.collapsed ~ .sidebar-overlay ~ .main-content,
.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
}

.main-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading-color);
}

.main-body {
  padding: var(--space-8) var(--space-10);
  max-width: 1400px;
}

/* ?????????????????????????????????????????????????????????????????????????
   Theme Toggle Button
   ????????????????????????????????????????????????????????????????????????? */

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--hover-bg);
  color: var(--heading-color);
  border-color: var(--primary-400);
}

.dark .theme-toggle-btn {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--accent-400);
}

.dark .theme-toggle-btn:hover {
  background: var(--hover-bg);
  color: var(--accent-300);
  border-color: var(--accent-400);
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Admin Sidebar (Dark theme)
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.sidebar-admin {
  --sidebar-bg: #1a1a2e;
  --sidebar-border: #2d2d4e;
  --sidebar-hover: #2d2d4e;
  --sidebar-active: rgba(255, 208, 86, 0.15);
  --sidebar-active-text: #FFD056;
  --sidebar-text: #e2e8f0;
  --sidebar-text-muted: #94a3b8;
}

.sidebar-admin .sidebar-brand {
  color: #FFD056;
}

.sidebar-admin .sidebar-user-avatar {
  background: rgba(255, 208, 86, 0.2);
  color: #FFD056;
}

.sidebar-admin .sidebar-user-name {
  color: #e2e8f0;
}

.sidebar-admin .sidebar-user-email {
  color: #94a3b8;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Auth Page Styles (Login/Register)
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: linear-gradient(
    135deg,
    var(--primary-950) 0%,
    var(--primary-900) 50%,
    var(--primary-800) 100%
  );
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--primary-400) 1px,
    transparent 0
  );
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 48, 148, 0.4) 0%, transparent 70%);
  filter: blur(60px);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2.5rem;
  box-shadow:
    0 32px 64px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--accent-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-400);
  font-weight: 400;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-300);
  margin-bottom: 0.5rem;
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: var(--neutral-100);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: var(--primary-500);
  box-shadow:
    0 0 0 3px rgba(74, 48, 148, 0.3),
    0 0 20px rgba(74, 48, 148, 0.2);
}

.auth-input::placeholder {
  color: var(--neutral-500);
}

.auth-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-950);
  background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-500) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 208, 86, 0.4);
  margin-top: 0.5rem;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 208, 86, 0.5);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0;
  gap: 1rem;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider-text {
  font-size: 0.8rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--neutral-200);
  text-decoration: none;
}

.auth-social-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-social-button svg {
  width: 20px;
  height: 20px;
}

.auth-link {
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--primary-300);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--neutral-400);
  font-size: 0.9rem;
}

.auth-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  color: #fca5a5;
  font-size: 0.9rem;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Premium Card Styles
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

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

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

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

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border-color);
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Buttons
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: calc(var(--space-3) / 2) var(--space-5);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-500) 100%);
  color: var(--primary-950);
  box-shadow: 0 4px 20px rgba(255, 208, 86, 0.3);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 208, 86, 0.4);
}

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

.btn-secondary:hover {
  background: var(--hover-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-color);
}

.btn-ghost:hover {
  background: var(--hover-bg);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #c0392b);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: calc(var(--space-2) / 2) var(--space-3);
  font-size: 0.8125rem;
}

.btn-lg {
  padding: calc(var(--space-4) / 2) var(--space-8);
  font-size: 1rem;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Stats Cards (Dashboard)
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stat-card {
  background: var(--card-background);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-color);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.stat-icon.primary { background: var(--primary-100); color: var(--primary-600); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.info    { background: var(--info-bg); color: var(--info); }
.stat-icon.danger  { background: rgba(231, 76, 60, 0.1); color: var(--error); }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
}

.stat-change {
  font-size: 0.75rem;
  margin-top: var(--space-2);
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Dropdown Menu
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: var(--space-2);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--hover-bg);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-2) 0;
}

.dropdown-item-danger {
  color: var(--error);
}

.dropdown-item-danger:hover {
  background: rgba(231, 76, 60, 0.1);
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Page Header
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.page-header-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

.page-header-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: var(--space-1) 0 0;
}

.page-header-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Data Table
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  padding: var(--space-3) var(--space-4);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.data-table tbody td {
  padding: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--hover-bg);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Badges
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-100); color: var(--primary-700); }
.badge-success { background: var(--success-bg); color: #166534; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-danger  { background: rgba(231, 76, 60, 0.1); color: #991b1b; }
.badge-info    { background: var(--info-bg); color: #1e40af; }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Empty State
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--card-background);
  border-radius: 24px;
  border: 2px dashed var(--border-color);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  padding: var(--space-6);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: var(--space-3);
}

.empty-state-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Flash Messages
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.flash-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
}

.flash-message {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: flashSlideIn 0.3s ease-out;
}

.flash-message .flash-dismiss {
  margin-left: auto;
  padding: var(--space-1);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.flash-message .flash-dismiss:hover {
  opacity: 1;
}

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

.flash-notice {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: #166534;
}

.flash-alert {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--error);
  color: #991b1b;
}

.flash-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: #92400e;
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Form Styles
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: calc(var(--space-3) / 2) var(--space-4);
  font-size: 0.875rem;
  color: var(--text-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(74, 48, 148, 0.15);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: var(--space-1);
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Mobile Responsive
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

/* Mobile menu toggle button */
.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.mobile-menu-btn:hover {
  background: var(--hover-bg);
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar .sidebar-brand,
  .sidebar .sidebar-version,
  .sidebar .sidebar-menu-button span,
  .sidebar .sidebar-submenu,
  .sidebar .sidebar-group-label,
  .sidebar .sidebar-user-info,
  .sidebar .sidebar-user svg:last-child {
    display: none;
  }

  .sidebar .sidebar-menu-button {
    justify-content: center;
    padding: 0.75rem;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }
}

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Utility Classes
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

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

/* ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??   Dark Mode - Additional Component Overrides
   ?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═?═??*/

.dark .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dark .form-input:focus,
.dark .form-select:focus,
.dark .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(110, 90, 209, 0.25);
}

.dark .btn-secondary {
  background: var(--neutral-700);
  color: var(--neutral-200);
  border-color: var(--neutral-600);
}

.dark .btn-secondary:hover {
  background: var(--neutral-600);
}

.dark .btn-ghost {
  color: var(--neutral-300);
}

.dark .btn-ghost:hover {
  background: var(--neutral-700);
  color: var(--neutral-100);
}

.dark .page-header p {
  color: var(--text-secondary);
}

.dark .stat-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.dark .empty-state {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.dark .badge-neutral {
  background: var(--neutral-700);
  color: var(--neutral-300);
}

.dark .dropdown-menu {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dark .dropdown-item:hover {
  background: var(--hover-bg);
}

.dark .main-header {
  background: var(--card-bg);
  border-bottom-color: var(--border-color);
}

.dark .flash-message {
  border-color: var(--border-color);
}

/* Dark mode auth pages */
.dark .auth-container {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1a2e 70%, #0a0a1a 100%);
}

.dark .auth-card {
  background: rgba(30, 30, 50, 0.85);
  border-color: rgba(110, 90, 209, 0.2);
}
.editable-text:hover {
  background-color: rgba(59, 130, 246, 0.1);
  outline: 2px dashed rgba(59, 130, 246, 0.3);
  outline-offset: 2px;
}
.editable-text:focus {
  outline: 2px solid rgb(59, 130, 246);
  outline-offset: 4px;
  background-color: rgba(59, 130, 246, 0.05);
}

/* 드래그앤드롭 스타일 */
.section-item {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.sortable-ghost {
  opacity: 0.4;
  background: #f3f4f6;
}
.sortable-drag {
  opacity: 1;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  cursor: grabbing !important;
}
.drag-handle {
  cursor: grab;
  touch-action: none;
}
.drag-handle:active {
  cursor: grabbing;
}

/* ★ 핸들링 요소 hover 시에만 표시 */
.section-item .handling-element,
.section-item .drag-handle,
.section-item .section-controls,
.feature-item .drag-handle,
.feature-item .handling-element,
.add-feature-btn {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
/* 섹션 호버 시 섹션 컨트롤만 표시 */
.section-item:hover > .section-controls,
.section-item:hover > .drag-handle {
  opacity: 1 !important;
  pointer-events: auto;
}
/* 개별 요소 호버 시에만 해당 요소의 핸들 표시 */
.feature-item:hover > .drag-handle,
.feature-item:hover > .handling-element,
.editable-element:hover > .element-drag-handle,
.editable-element:hover > .element-delete-btn {
  opacity: 1 !important;
  pointer-events: auto;
}
/* 섹션 hover 시 항목 추가 버튼 표시 */
.section-item:hover .add-feature-btn {
  opacity: 1 !important;
  pointer-events: auto;
}

/* ★ 칼럼 컨테이너(row) 호버 표시 */
.column-row-editable {
  position: relative;
  transition: outline 0.15s ease;
}
.column-row-editable:hover {
  outline: 1px dashed rgba(139, 92, 246, 0.4);
  outline-offset: 2px;
}
.column-row-editable .row-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: #fff;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 49;
  white-space: nowrap;
}
.column-row-editable:hover .row-label {
  opacity: 1;
}

/* ★ 칼럼 호버 표시 */
.column-editable {
  position: relative;
  transition:
    outline 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  min-height: 80px;
  /* 편집 모드에서 칼럼 경계 표시 */
  outline: 1px dashed rgba(59, 130, 246, 0.25);
  outline-offset: -1px;
}
.column-editable:hover {
  outline: 2px dashed rgba(59, 130, 246, 0.6);
  outline-offset: -1px;
  background: rgba(59, 130, 246, 0.03);
}
.column-editable.column-selected {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  background: rgba(59, 130, 246, 0.05);
}
/* 빈 칼럼 강조 */
.column-editable.column-empty {
  background: rgba(59, 130, 246, 0.05);
  min-height: 100px;
}

/* ★ 칼럼 미니멀 컨트롤 (호버 시 바깥 상단) */
.column-editable .column-controls {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  padding: 3px;
  border-radius: 6px;
}
.column-editable:hover .column-controls {
  opacity: 1;
}
.column-controls .col-ctrl-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s;
}
.column-controls .col-ctrl-btn:hover {
  background: #3b82f6;
  color: #fff;
}
.column-controls .col-ctrl-btn.danger:hover {
  background: #ef4444;
}

/* ★ 빈 칼럼에 + 버튼 */
.column-editable .column-add-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.15);
  border: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: 10px;
  color: #3b82f6;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.2s;
  z-index: 50;
}
/* 빈 칼럼이거나 호버 시 + 버튼 표시 */
.column-editable.column-empty .column-add-element,
.column-editable:hover .column-add-element {
  display: flex;
}
/* 내용이 있는 칼럼은 호버 시에만 작게 표시 */
.column-editable:not(.column-empty):hover .column-add-element {
  width: 28px;
  height: 28px;
  font-size: 14px;
  opacity: 0.7;
  top: auto;
  bottom: 8px;
  right: 8px;
  left: auto;
  transform: none;
}
.column-editable .column-add-element:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  transform: translate(-50%, -50%) scale(1.1);
}

/* 칼럼 리사이즈 핸들 - 가운데 세로선 */
.column-editable .column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
  z-index: 60;
}
.column-editable .column-resize-handle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: transparent;
  transition: background 0.2s;
}
.column-editable:hover .column-resize-handle {
  opacity: 1;
}
.column-editable:hover .column-resize-handle::before {
  background: rgba(59, 130, 246, 0.5);
}
.column-editable .column-resize-handle:hover::before,
.column-editable .column-resize-handle.active::before {
  background: #3b82f6;
  width: 3px;
}

/* ★ 우클릭 컨텍스트 메뉴 */
.context-menu {
  position: fixed;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10002;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.context-menu.show {
  display: block;
}
.context-menu-item {
  padding: 8px 12px;
  color: #d1d5db;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.context-menu-item:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
}
.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
.context-menu-item i {
  width: 14px;
  text-align: center;
}

/* ★ 요소 드래그 핸들 - 비활성화 (우클릭 메뉴로 대체) */
.draggable-element {
  position: relative;
}
.draggable-element .drag-element-handle {
  display: none !important; /* 드래그 핸들 숨김 - 우클릭 메뉴 사용 */
}
.draggable-element.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}
.drop-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  z-index: 999;
  pointer-events: none;
}
.drop-zone-highlight {
  outline: 2px dashed #3b82f6 !important;
  outline-offset: 2px;
  background: rgba(59, 130, 246, 0.05) !important;
}

/* CTA 링크 변경, 이미지 변경 버튼 등 */
.cta-link-btn,
.image-change-overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.group:hover .cta-link-btn,
.group:hover .image-change-overlay {
  opacity: 1;
}

/* ★ 이미지 변경 가능한 래퍼 */
.img-editable-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.img-editable-wrapper .img-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  pointer-events: none;
}
.img-editable-wrapper:hover .img-edit-overlay {
  opacity: 1;
  pointer-events: auto;
}
.img-edit-overlay button {
  padding: 8px 16px;
  background: white;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}
.img-edit-overlay button:hover {
  transform: scale(1.05);
}

/* ★ 콘텐츠 블록 편집 컨트롤 */
.content-block {
  position: relative;
  transition: background-color 0.2s ease;
}
.content-block:hover {
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
}
.block-controls {
  z-index: 10;
}
.block-controls button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* 모달 애니메이션 */
@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-slide-up {
  animation: slide-up 0.3s ease-out;
}

/* 선택된 요소/섹션 하이라이트 */
.element-selected {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 4px !important;
  background-color: rgba(59, 130, 246, 0.05) !important;
}

.section-selected {
  outline: 3px dashed #8b5cf6 !important;
  outline-offset: 8px !important;
  position: relative;
}

.section-selected::before {
  content: "섹션 선택됨";
  position: absolute;
  top: 8px;
  left: 8px;
  background: #8b5cf6;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* ============================================
   컴팩트 플로팅 텍스트 에디터 (Smart Mini)
   ============================================ */
#floatingEditor {
  position: fixed;
  z-index: 10001;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#floatingEditor.show {
  display: flex;
}
#floatingEditor.above::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.95);
}
#floatingEditor.below::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(17, 24, 39, 0.95);
}

/* ★ 이미지/버튼 플로팅 에디터 공통 스타일 */
.floating-element-editor {
  position: fixed;
  z-index: 10001;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  max-width: 500px;
}
.floating-element-editor.show {
  display: flex;
}
.floating-element-editor.above::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.95);
}
.floating-element-editor.below::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(17, 24, 39, 0.95);
}
.floating-element-editor .fe-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(17, 24, 39, 0.98);
  border-radius: 8px;
  padding: 12px;
  min-width: 200px;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.floating-element-editor .fe-dropdown.show {
  display: block;
}

.fe-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 12px;
}
.fe-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.fe-btn.active {
  background: #3b82f6;
  color: #fff;
}
.fe-btn-danger {
  color: #f87171;
}
.fe-btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* 버튼 호버 효과 클래스 */
.hover-scale {
  transition: all 0.3s ease !important;
}
.hover-scale:hover {
  transform: scale(1.05) !important;
}
.hover-brightness {
  transition: all 0.3s ease !important;
}
.hover-brightness:hover {
  filter: brightness(1.15) !important;
}
.hover-shadow {
  transition: all 0.3s ease !important;
}
.hover-shadow:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}
.hover-translate {
  transition: all 0.3s ease !important;
}
.hover-translate:hover {
  transform: translateY(-3px) !important;
}

/* 토글 스위치 */
.fe-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.fe-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.fe-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #374151;
  border-radius: 20px;
  transition: 0.3s;
}
.fe-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.fe-toggle input:checked + .fe-toggle-slider {
  background: #3b82f6;
}
.fe-toggle input:checked + .fe-toggle-slider:before {
  transform: translateX(16px);
}

/* 슬라이더 */
.fe-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: #374151;
  border-radius: 2px;
  outline: none;
}
.fe-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
}
.fe-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.fe-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}
.fe-select {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  max-width: 70px;
}
.fe-select:focus {
  outline: none;
}
.fe-select option {
  background: #1f2937;
  color: #fff;
}
.fe-input {
  width: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 4px;
  border-radius: 5px;
  font-size: 11px;
  text-align: center;
}
.fe-input:focus {
  outline: 1px solid #3b82f6;
}
.fe-color {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.fe-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: rgba(17, 24, 39, 0.98);
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fe-dropdown.show {
  display: block;
}
.fe-dropdown-title {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.fe-color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.fe-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.fe-color-swatch:hover {
  transform: scale(1.15);
}
.fe-gradient-preview {
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
}
.icon-pick-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-pick-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #c084fc;
  transform: scale(1.1);
}

/* 섹션 호버 메뉴는 .section-controls로 통합됨 */

/* ============================================
   좌측 요소 팔레트 패널
   ============================================ */
#elementPalettePanel {
  position: fixed;
  top: 60px;
  left: 56px;
  width: 220px;
  background: #1f2937;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
}
#elementPalettePanel.show {
  display: block;
}
.ep-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ep-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #d1d5db;
}
.ep-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.ep-item i,
.ep-item svg {
  font-size: 20px;
  width: 24px;
  height: 24px;
}
.ep-item span {
  font-size: 10px;
  font-weight: 500;
}

/* ============================================
   요소 설정 패널 (Element Settings Panel)
   ============================================ */
#elementSettingsPanel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: #111827;
  z-index: 10001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
#elementSettingsPanel.open {
  right: 0;
}

/* ============================================
   우측 사이드바 (Section Settings Panel)
   ============================================ */
#sectionSettingsPanel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: #111827;
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
#sectionSettingsPanel.open {
  right: 0;
}
.ssp-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #111827;
  z-index: 10;
}
.ssp-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.ssp-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ssp-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ssp-section {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ssp-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ssp-section-title i {
  color: #3b82f6;
}
.ssp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ssp-label {
  font-size: 12px;
  color: #9ca3af;
  min-width: 70px;
}
.ssp-input {
  flex: 1;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.ssp-input:focus {
  outline: none;
  border-color: #3b82f6;
}
.ssp-input option {
  background: #1f2937;
  color: #fff;
}
.ssp-color-input {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.ssp-btn-group {
  display: flex;
  gap: 4px;
  flex: 1;
}
.ssp-btn {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.ssp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ssp-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.ssp-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.ssp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
}
/* 투명도 바 슬라이더 (그라데이션 배경 위에 표시) */
.ssp-slider.opacity-bar {
  height: 20px;
  background: transparent !important;
}
.ssp-slider.opacity-bar::-webkit-slider-thumb {
  width: 16px;
  height: 20px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ssp-slider.opacity-bar::-moz-range-thumb {
  width: 16px;
  height: 20px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ssp-color-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ssp-color-preset {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.ssp-preset-btn {
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #a5b4fc;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.ssp-preset-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}
.ssp-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ============================================
   요소 선택 하이라이트 스타일
   ============================================ */
.element-ai-selected {
  outline: 3px solid #6366f1 !important;
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
  position: relative;
}
.element-ai-selected::before {
  content: "✓ 선택됨";
  position: absolute;
  top: -24px;
  left: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 100;
}
/* 요소 호버 시 선택 가능 힌트 */
#sections .pattern-content *:hover:not(.element-ai-selected) {
  outline: 2px dashed rgba(99, 102, 241, 0.4);
  outline-offset: 2px;
  cursor: pointer;
}
/* 사이드바 고정 버튼 */
.sidebar-pin-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 8px;
}
.sidebar-pin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar-pin-btn.pinned {
  background: #3b82f6;
  color: #fff;
}
/* 선택된 요소 정보 표시 */
.selected-element-info {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(139, 92, 246, 0.2) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.selected-element-tag {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
}
.selected-element-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  max-height: 100px;
  overflow: hidden;
  font-size: 11px;
  color: #9ca3af;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 탭 스타일 */
.ssp-tab {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}
.ssp-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ssp-tab.active {
  background: #3b82f6;
  color: #fff;
}
/* 이미지 프리셋 */
.ssp-img-preset {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.ssp-img-preset:hover {
  border-color: #3b82f6;
  transform: scale(1.05);
}
.ssp-color-preset:hover {
  transform: scale(1.1);
}
.ssp-color-preset.active {
  border-color: #fff;
}

/* 그라데이션 텍스트 */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   드래그앤드롭 요소 스타일
   ============================================ */
.editable-element {
  position: relative;
  transition:
    outline 0.15s,
    box-shadow 0.15s;
}
.editable-element.draggable {
  cursor: move;
}
.editable-element.dragging {
  opacity: 0.5;
  z-index: 1000;
}
.editable-element.drag-over {
  outline: 2px dashed #3b82f6;
  outline-offset: 4px;
}
.editable-element:hover .element-drag-handle,
.editable-element:hover .element-delete-btn {
  opacity: 1;
}
.element-drag-handle {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 18px;
  background: #374151;
  border-radius: 4px;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.element-drag-handle:active {
  cursor: grabbing;
}
.element-drag-handle i {
  color: #9ca3af;
  font-size: 10px;
}
.element-delete-btn {
  position: absolute;
  top: -8px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border: none;
}
.element-delete-btn:hover {
  background: #dc2626;
}
.element-delete-btn i {
  color: #fff;
  font-size: 10px;
}

/* ============================================
   이미지 리사이즈 핸들러
   ============================================ */
.image-resizable {
  position: relative;
  display: inline-block;
}
.image-resizable:hover .resize-handle {
  opacity: 1;
}
.resize-handle {
  position: absolute;
  background: #3b82f6;
  border: 2px solid #fff;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
}
.resize-handle-se {
  width: 12px;
  height: 12px;
  bottom: -6px;
  right: -6px;
  cursor: se-resize;
}
.resize-handle-e {
  width: 8px;
  height: 24px;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  cursor: e-resize;
}
.resize-handle-s {
  width: 24px;
  height: 8px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  cursor: s-resize;
}

/* ============================================
   칼럼 리사이즈 핸들러
   ============================================ */
.column-resizable {
  position: relative;
}
.column-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  background: transparent;
  cursor: col-resize;
  z-index: 50;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.column-resizable:hover .column-resize-handle {
  opacity: 1;
  background: rgba(59, 130, 246, 0.3);
}
.column-resize-handle:hover,
.column-resize-handle.active {
  background: rgba(59, 130, 246, 0.6);
}
.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 40px;
  background: #3b82f6;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.column-resize-handle:hover::after,
.column-resize-handle.active::after {
  opacity: 1;
}

/* 드롭 영역 표시 */
.drop-indicator {
  height: 4px;
  background: #3b82f6;
  border-radius: 2px;
  margin: 8px 0;
  animation: pulse-indicator 1s ease-in-out infinite;
}
@keyframes pulse-indicator {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ★ JSON Designer에서 가져온 섹션 스타일 지원 */
.pattern-content {
  overflow: hidden;
}
.pattern-content .glow-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    var(--glow-color, rgba(59, 130, 246, 0.1)),
    transparent 70%
  );
  pointer-events: none;
}
.pattern-content .text-accent {
  background: linear-gradient(
    135deg,
    var(--accent-start, #3b82f6),
    var(--accent-end, #8b5cf6)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pattern-content .img-hover img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pattern-content .img-hover:hover img {
  transform: scale(1.05);
}

/* Tailwind 호환 클래스 */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}
.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}
.ring-2 {
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}
.ring-gray-100 {
  --tw-ring-color: #f3f4f6;
}
.ring-gray-700 {
  --tw-ring-color: #374151;
}
/* Website Editor Styles */

/* Hide top navigation for full editor experience */
nav.bg-white.border-b.border-gray-200 {
  display: none !important;
}

body {
  overflow: hidden;
}

/* Ensure sections flow seamlessly */
.editor-container {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

/* Remove margins from section containers */
.section-container {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  transition: border 0.2s ease;
  border: 1px solid transparent;
}

.section-container:hover {
  border: 1px solid transparent;
}

/* Keep content styles but remove vertical margins between sections */
.section-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove border-radius from section's outer container */
.section-content > div:first-child {
  border-radius: 0 !important;
}

/* Remove margins between sections */
.section-container + .section-container {
  margin-top: 0 !important;
}

/* Ensure add section buttons don't create gaps */
.add-section-between {
  margin: 0 !important;
  height: 1px !important;
  position: relative;
  overflow: visible;
  background: transparent;
  transition: background 0.2s ease;
}

/* Show line on hover */
.add-section-between:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Add section button styling */
.add-section-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  opacity: 0;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Show add button on hover */
.add-section-between:hover .add-section-btn {
  opacity: 1;
}

/* Drag and drop styles */
.drag-over {
  background-color: rgba(59, 130, 246, 0.05);
  border: 2px dashed #3b82f6;
}

.drop-indicator {
  transition: all 0.2s ease;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Element hover controls */
.element-controls {
  z-index: 10;
}

.edit-element:hover {
  background-color: #1d4ed8;
}

/* Fix editing overlay */
.editing {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Element wrapper controls - Default hidden state */
.element-wrapper > .element-controls,
.element-wrapper > .drag-handle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Force better line-height for all headings */
.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
  line-height: 1.3 !important;
}

/* Override Tailwind's text-5xl line-height */
.section-content .text-5xl,
.section-content .text-4xl {
  line-height: 1.3 !important;
}

/* Fix section controls visibility and interaction */
.section-controls {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.section-controls button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Fix inline edit overlay to not block controls */
.section-container .absolute.inset-0.pointer-events-none {
  z-index: 1 !important;
}

/* Ensure editable elements are clickable */
.editable-element {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

.editable-element:hover {
  outline: 1px solid rgba(59, 130, 246, 0.8) !important;
}

/* Drag handle styling - removed, using element-wrapper rules instead */

/* Hide controls from nested elements by default */
.column-dropzone .element-wrapper > .drag-handle,
.column-dropzone .element-wrapper > .element-controls {
  opacity: 0 !important;
  pointer-events: none;
}

/* Show controls only on direct element hover */
.column-dropzone .element-wrapper:hover > .drag-handle,
.column-dropzone .element-wrapper:hover > .element-controls {
  opacity: 1 !important;
  pointer-events: auto;
}

/* Remove center image controls */
.image-element .image-placeholder {
  position: relative;
}

/* Ensure icons are visible */
.element-controls button svg {
  display: block;
  width: 12px;
  height: 12px;
}

/* Add section button styling - invisible by default */
.add-section-between .add-section-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: transparent;
  transition: all 0.2s ease;
}

.add-section-between:hover .add-section-line {
  background: #3b82f6;
}

.add-section-between .add-section-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

/* Element wrapper specific hover - show controls only on individual element hover */
.element-wrapper {
  position: relative;
}

/* Show controls only when hovering the specific element */
.element-wrapper:hover > .element-controls,
.element-wrapper:hover > .drag-handle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Section thumbnail styles */
.section-thumbnail {
  transition: all 0.2s ease;
}

.section-thumbnail:hover {
  transform: translateX(2px);
}

.section-thumbnail.active {
  border-left: 4px solid #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *




 */
