* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom center, rgba(255, 80, 180, 0.12), transparent 30%),
    linear-gradient(135deg, #070b14 0%, #0d1320 45%, #0b0f19 100%);
  color: #eef2ff;
  overflow-x: hidden;
}

body {
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(122, 92, 255, 0.22);
  top: 40px;
  left: -80px;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(0, 204, 255, 0.18);
  top: 180px;
  right: -60px;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: rgba(255, 90, 180, 0.12);
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  align-items: start;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 14, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(122, 92, 255, 0.35);
}

.top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-box {
  text-align: center;
}

.phone {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 22px rgba(0, 200, 255, 0.18);
}

.manager {
  font-size: 14px;
  color: #b5bfd7;
  margin-top: 6px;
}

.mini-panels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.panel {
  min-width: 230px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #e7ecff;
  letter-spacing: -0.01em;
}

.panel ul,
.panel ol {
  margin: 0;
  padding-left: 18px;
  color: #d9e2f5;
}

.panel li {
  margin-bottom: 6px;
  font-size: 14px;
}

.panel-updated-at {
  margin-top: 12px;
  font-size: 12px;
  color: #aeb9d3;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #95a2c0;
}

.lang-btn {
  background: none;
  border: none;
  color: #9aa7c5;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(122, 92, 255, 0.45);
}

/* top profile */
.top-profile-wrap {
  position: relative;
}

.top-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.top-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.top-profile-avatar {
  font-size: 15px;
}

#top-profile-username {
  font-size: 14px;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-profile-caret {
  font-size: 12px;
  opacity: 0.85;
}

.top-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(12, 18, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.top-profile-dropdown-item {
  width: 100%;
  min-height: 42px;
  border: none;
  background: transparent;
  color: #eef2ff;
  text-align: left;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.top-profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.top-profile-dropdown-item.danger {
  color: #ff9eb0;
}

/* side menu auth */
.side-menu-auth {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.side-menu-login-btn,
.side-menu-signup-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.side-menu-login-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.side-menu-login-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.side-menu-signup-btn {
  background: #ff4f7a;
  color: #ffffff;
  border: none;
}

.side-menu-signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 79, 122, 0.22);
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1f29;
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}

.refresh-btn:hover {
  background: #232a36;
  transform: translateY(-1px);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}

.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.98), rgba(8, 12, 22, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 80;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.menu-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-menu-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #e8efff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.side-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.chat-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.mode-switcher-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-switcher {
  display: inline-flex;
  align-self: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mode-btn {
  border: none;
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 14px;
  background: transparent;
  color: #cdd8f2;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.mode-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.85), rgba(0, 200, 255, 0.55));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mode-helper {
  color: #aeb9d4;
  font-size: 14px;
  padding-left: 4px;
}

.mode-section {
  display: none;
}

.mode-section.active {
  display: block;
}

.chat-window-wrap {
  position: relative;
  height: 60vh;
}

.chat-window {
  height: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scroll-behavior: smooth;
}

.welcome-card {
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.12), rgba(0, 200, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.welcome-card h1,
.welcome-card h2 {
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.welcome-card p {
  margin: 6px 0;
  color: #d7dff3;
}

.welcome-card .sub {
  color: #a9b6d5;
}

.example-questions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example-questions-title {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: #b9c5df;
  margin-bottom: 2px;
}

.example-question-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.example-question-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.message-row {
  display: flex;
  margin: 16px 0;
  width: 100%;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.assistant {
  justify-content: flex-start;
}

.message-bubble {
  width: fit-content;
  max-width: min(78%, 820px);
  border-radius: 22px;
  padding: 16px 18px;
  line-height: 1.72;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, #2d6df0 0%, #4d7dff 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(45, 109, 240, 0.28);
}

.message-row.assistant .message-bubble {
  background: rgba(18, 24, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #edf2ff;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.message-role {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.88;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.message-content {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.message-content p,
.message-content div,
.message-content span,
.message-content li,
.message-content strong,
.message-content em,
.message-content code,
.message-content a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.message-content a,
.source-list a {
  color: #9cc8ff;
  text-decoration: none;
}

.message-content a:hover,
.source-list a:hover {
  text-decoration: underline;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
  margin: 0 0 12px 0;
  line-height: 1.4;
  color: #ffffff;
}

.message-content h1 {
  font-size: 26px;
}

.message-content h2 {
  font-size: 22px;
}

.message-content h3 {
  font-size: 18px;
}

.message-content h4 {
  font-size: 16px;
}

.message-content p {
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.message-content ul,
.message-content ol {
  margin: 0 0 12px 20px;
  padding-left: 18px;
}

.message-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.message-content strong {
  font-weight: 700;
}

.message-content em {
  font-style: italic;
}

.message-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.message-content pre {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 12px 0;
}

.message-content blockquote {
  margin: 0 0 12px 0;
  padding-left: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

.source-list {
  margin-top: 12px;
  font-size: 13px;
  color: #b7c5e0;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.source-list strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #dce6ff;
}

.composer {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.composer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.composer-refresh-btn {
  padding: 9px 14px;
  min-width: auto;
  border-radius: 12px;
  font-size: 13px;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dfe6f8;
  font-size: 14px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  color: #f1f5ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.file-btn input {
  display: none;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4ebff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.file-chip-remove {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.composer-bottom {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

#message-input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(12, 17, 28, 0.84);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#message-input::placeholder {
  color: #9aa7c5;
}

#message-input:focus,
.calc-field select:focus,
.auth-field input:focus {
  border-color: rgba(122, 92, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.08);
}

#send-btn {
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #dce8ff 100%);
  color: #0f1524;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

#send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.floating-scroll-btn {
  position: absolute;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 22, 36, 0.95);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: 0.2s ease;
  z-index: 20;
}

.floating-scroll-btn:hover {
  transform: translateY(-1px);
  background: rgba(28, 36, 58, 0.96);
}

.floating-scroll-btn.top {
  top: 20px;
}

.floating-scroll-btn.bottom {
  bottom: 20px;
}

.floating-scroll-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.feature-shortcut-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(122, 92, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feature-shortcut-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-shortcut-text h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.feature-shortcut-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #cfd8ec;
}

.feature-shortcut-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #0d1320;
  background: linear-gradient(135deg, #ffffff 0%, #dce8ff 100%);
  transition: 0.2s ease;
  white-space: nowrap;
}

.feature-shortcut-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

/* calculator */
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 430px);
  gap: 22px;
  align-items: start;
}

.calculator-intro-card,
.pricing-table-card,
.calculator-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.calculator-intro-card {
  padding: 26px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.1), rgba(0, 200, 255, 0.07));
}

.calculator-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 216, 255, 0.1);
  border: 1px solid rgba(0, 216, 255, 0.28);
  color: #7fefff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.calculator-intro-card h2 {
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.calculator-intro-card p {
  margin: 8px 0;
  color: #dbe4f8;
  line-height: 1.8;
}

.calculator-intro-card .sub {
  color: #aebdda;
}

.pricing-table-card {
  padding: 22px;
}

.pricing-table-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 100px 1.2fr 1fr;
  gap: 18px;
  padding: 16px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
  color: #dce6fb;
}

.pricing-grid-head {
  border-top: none;
  padding-top: 0;
  font-size: 13px;
  font-weight: 800;
  color: #9fb0d0;
}

.calculator-card {
  position: sticky;
  top: 110px;
  padding: 26px;
  background:
    radial-gradient(circle at bottom center, rgba(255, 60, 60, 0.15), transparent 28%),
    rgba(255, 255, 255, 0.045);
}

.calc-brand {
  font-size: 14px;
  font-weight: 800;
  color: #d6deef;
  letter-spacing: 0.12em;
  opacity: 0.9;
  margin-bottom: 12px;
}

.calculator-card h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.calc-panel-desc {
  margin: 10px 0 0 0;
  color: #aeb9d3;
  line-height: 1.7;
}

.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.calc-group-label {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8efff;
  font-size: 15px;
}

.radio-item input {
  accent-color: #68f0ff;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field label {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5ff;
}

.calc-field select {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 27, 40, 0.9);
  color: #ffffff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.calc-result-box {
  margin-top: 20px;
  padding: 18px 18px 8px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-breakdown-row,
.calc-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: #dce6fb;
}

.calc-breakdown-row strong,
.calc-total-row strong {
  color: #ffffff;
}

.calc-total-row {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 800;
}

.calc-note-box {
  margin-top: 16px;
  color: #b7c2dd;
  font-size: 13px;
  line-height: 1.7;
}

.calc-note-box p {
  margin: 6px 0;
}

.calc-action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.calc-primary-btn,
.calc-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: 0.2s ease;
}

.calc-primary-btn {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #8a2cff 0%, #ff2450 100%);
  box-shadow: 0 14px 30px rgba(255, 40, 80, 0.18);
}

.calc-primary-btn:hover {
  transform: translateY(-1px);
}

.calc-secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef2ff;
  cursor: pointer;
}

.calc-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* footer */
.site-footer {
  margin-top: 40px;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9fb0d0;
  font-size: 13px;
}

.footer-left {
  opacity: 0.9;
}

.footer-center {
  text-align: center;
  flex: 1;
}

.footer-right {
  text-align: right;
}

/* auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal-content {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 24px));
  margin: 80px auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(12, 18, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-modal-content h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #ffffff;
}

.auth-modal-content p {
  margin: 0 0 20px 0;
  color: #b9c5df;
  line-height: 1.6;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field label {
  font-size: 14px;
  font-weight: 700;
  color: #eef2ff;
}

.auth-field input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 38, 0.92);
  color: #ffffff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.auth-field input[readonly] {
  background: rgba(255, 255, 255, 0.04);
  color: #c9d3ea;
}

.auth-submit-btn {
  margin-top: 6px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4f7a 0%, #ff2450 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 79, 122, 0.22);
}

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


.board-page {
  padding: 32px 0;
}

.board-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.board-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.board-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
}

.board-back-link {
  color: #cfe0ff;
  text-decoration: none;
  font-weight: 700;
}

.board-back-link:hover {
  text-decoration: underline;
}

.board-list-card,
.board-detail-card,
.board-form-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.board-list-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: #eef2ff;
}

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

.board-list-item-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.board-list-item-meta,
.board-detail-meta {
  color: #aeb9d3;
  font-size: 14px;
}

.board-detail-title {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: #ffffff;
}

.board-detail-content {
  margin-top: 24px;
  color: #e4ebff;
  line-height: 1.8;
}

.board-empty,
.board-info-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: #c8d4ef;
}

.board-write-btn,
.board-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.board-write-btn {
  background: linear-gradient(135deg, #ff4f7a 0%, #ff2450 100%);
  color: #fff;
}

.board-action-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.board-action-btn.danger {
  background: rgba(255, 70, 100, 0.18);
  color: #ffb3c0;
}

.board-action-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.board-form p {
  margin-bottom: 16px;
}

.board-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #eef2ff;
}

.board-input,
.board-textarea,
.board-form input[type="text"],
.board-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(18, 24, 38, 0.92);
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.board-textarea,
.board-form textarea {
  min-height: 220px;
  resize: vertical;
}

.board-delete-text {
  color: #dce6fb;
  font-size: 16px;
  line-height: 1.7;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  color: #eef2ff;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.2s ease;
}

.pagination-btn:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.pagination-info {
  color: #cbd7f0;
  font-size: 14px;
  font-weight: 700;
  padding: 0 6px;
}

@media (max-width: 1100px) {
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-self: start;
    align-items: flex-start;
  }

  .message-bubble {
    max-width: 92%;
  }

  .composer-bottom {
    grid-template-columns: 1fr;
  }

  .feature-shortcut-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-shortcut-btn {
    width: 100%;
  }

  .floating-scroll-btn {
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .floating-scroll-btn.top {
    top: 14px;
  }

  .floating-scroll-btn.bottom {
    bottom: 14px;
  }

  .calc-form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mode-switcher {
    width: 100%;
  }

  .mode-btn {
    flex: 1;
  }

  .top-profile-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-right {
    text-align: center;
  }

  .auth-modal-content {
    margin: 50px auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 16px;
  }

  .logo {
    font-size: 24px;
  }

  .phone {
    font-size: 22px;
  }

  .panel {
    min-width: 100%;
  }

  .lang-toggle {
    gap: 8px;
  }

  .top-profile-btn {
    min-height: 40px;
    padding: 0 12px;
  }

  #top-profile-username {
    max-width: 90px;
    font-size: 13px;
  }

  .chat-shell {
    width: min(100%, calc(100% - 20px));
  }

  .chat-window {
    padding: 18px;
  }

  .composer {
    padding: 14px;
  }

  .auth-modal-content {
    width: min(100%, calc(100% - 16px));
    padding: 20px 16px;
    border-radius: 20px;
  }

  .auth-modal-content h2 {
    font-size: 24px;
  }

  .auth-field input {
    height: 46px;
    font-size: 14px;
  }

  .auth-submit-btn {
    height: 48px;
    font-size: 15px;
  }

  .side-menu-auth {
    flex-direction: column;
  }
}


/* ── 구인구직 styles ──────────────────────────────────────────────── */

.job-page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.job-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Filter bar */
.job-filter-bar {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.job-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.job-filter-bar select {
  min-width: 140px;
}

.job-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4f7a 0%, #ff2450 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.job-search-btn:hover {
  opacity: 0.9;
}

.job-amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 14px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cfe0ff;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4f7a;
  flex-shrink: 0;
}

.chip-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 16px;
  line-height: 1;
  margin-left: 2px;
}

.chip-remove:hover {
  opacity: 1;
  color: #ff4f7a;
}

.job-keyword-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.job-keyword-hint {
  font-size: 12px;
  color: #6e7a94;
  margin-bottom: 6px;
}

/* Content area: sidebar + main */
.job-content-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.job-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.job-sidebar-section {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.job-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  padding-left: 12px;
  border-left: 3px solid #ff4f7a;
  margin-bottom: 12px;
}

.job-sidebar-link {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  color: #b0bdd4;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}

.job-sidebar-link:hover {
  background: rgba(255,255,255,0.04);
  color: #eef2ff;
}

.job-sidebar-link.active {
  background: rgba(255,79,122,0.08);
  color: #ff7aa2;
}

.job-sidebar-count {
  background: rgba(255,79,122,0.12);
  color: #ff7aa2;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

.job-sidebar-cta {
  text-align: center;
}

.job-sidebar-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cfe0ff;
}

.job-sidebar-muted {
  display: block;
  font-size: 11px;
  color: #6e7a94;
  margin-top: 10px;
}

.job-main {
  flex: 1;
  min-width: 0;
}

/* Section headers */
.job-section {
  margin-bottom: 32px;
}

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

.job-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.job-section-title.premium {
  color: #ff7aa2;
}

.job-section-links {
  font-size: 13px;
  color: #8a96b2;
}

/* Card grid */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.job-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.job-card.premium {
  border-color: rgba(255,79,122,0.25);
  box-shadow: 0 0 20px rgba(255,79,122,0.08);
}

.job-card.premium:hover {
  border-color: rgba(255,79,122,0.4);
  box-shadow: 0 8px 30px rgba(255,79,122,0.12);
}

.job-card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(122,92,255,0.2), rgba(255,79,122,0.2));
}

.job-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-thumbnail .region-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
}

.job-card-thumbnail .store-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.job-card-thumbnail .placeholder-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.35);
}

.job-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card-store {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-type-tag {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0,207,255,0.1);
  color: #7dd8ff;
  font-weight: 600;
  border: 1px solid rgba(0,207,255,0.15);
}

.premium-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ff4f7a, #ff2450);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 0 0 10px 0;
}

.job-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #e4ebff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  line-height: 1.4;
}

.job-card-phone {
  font-size: 13px;
  color: #ff7aa2;
  font-weight: 600;
}

.job-card-contact {
  font-size: 12px;
  color: #8a96b2;
}

.job-card-salary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.salary-badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.salary-badge.daily {
  background: rgba(255,215,0,0.15);
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.25);
}

.salary-badge.per_case {
  background: rgba(0,207,255,0.12);
  color: #00cfff;
  border: 1px solid rgba(0,207,255,0.2);
}

.salary-badge.monthly {
  background: rgba(255,79,122,0.12);
  color: #ff7aa2;
  border: 1px solid rgba(255,79,122,0.2);
}

.salary-badge.hourly {
  background: rgba(76,255,159,0.12);
  color: #4cff9f;
  border: 1px solid rgba(76,255,159,0.2);
}

.salary-amount-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.job-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.job-card-badge.views {
  background: rgba(122,92,255,0.12);
  color: #b8a5ff;
  border: 1px solid rgba(122,92,255,0.2);
}

.job-card-badge.days {
  background: rgba(255,215,0,0.1);
  color: #ffd97a;
  border: 1px solid rgba(255,215,0,0.15);
}

/* ── Job detail page ─────────────────────────────────────────────── */

.job-detail-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.job-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.job-gallery-main {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.job-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(122,92,255,0.2), rgba(255,79,122,0.2));
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
}

.job-gallery-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.job-gallery-thumb {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.job-gallery-thumb.active {
  border-color: #ff4f7a;
}

.job-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-info-panel .store-name {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.job-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.job-region-badge {
  background: rgba(122,92,255,0.12);
  color: #b8a5ff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
}

.job-employment-badge {
  background: rgba(0,207,255,0.1);
  color: #7dd8ff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
}

.job-salary-display {
  margin: 20px 0;
}

.job-salary-display .salary-label {
  font-size: 13px;
  color: #8a96b2;
  margin-bottom: 4px;
}

.job-salary-display .amount {
  font-size: 32px;
  font-weight: 900;
  color: #ffd700;
}

.job-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 20px 0;
}

.job-contact-list {
  display: flex;
  flex-direction: column;
}

.job-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contact-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-label {
  color: #8a96b2;
  font-size: 14px;
  min-width: 80px;
  flex-shrink: 0;
}

.contact-value {
  color: #eef2ff;
  font-size: 14px;
  font-weight: 600;
}

.phone-link {
  color: #ff7aa2;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.tg-link {
  color: #7dd8ff;
  text-decoration: none;
}

.tg-link:hover {
  text-decoration: underline;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #aeb9d3;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.job-amenity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.job-amenity-badges .badge {
  background: rgba(76,255,159,0.08);
  border: 1px solid rgba(76,255,159,0.15);
  color: #7dffba;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
}

.job-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.job-description-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.job-desc-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.job-description-content {
  color: #dce6fb;
  line-height: 1.8;
  font-size: 15px;
}

.job-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}

.job-desc-empty {
  color: #6e7a94;
  font-style: italic;
}

.job-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.job-meta-left {
  font-size: 14px;
  color: #6e7a94;
}

.job-meta-right {
  display: flex;
  gap: 10px;
}

/* ── Job form page ───────────────────────────────────────────────── */

.job-form-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.job-form-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  border-left: 4px solid #ff4f7a;
  padding-left: 14px;
  margin: 32px 0 16px;
}

.job-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.job-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-form-field.full-width {
  grid-column: 1 / -1;
}

.job-form-field label {
  font-size: 14px;
  color: #b0bdd4;
  font-weight: 600;
}

.job-form-field .required {
  color: #ff4f7a;
  font-size: 12px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 40px;
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a96b2;
  font-size: 14px;
  pointer-events: none;
}

.job-form-hint {
  font-size: 13px;
  color: #6e7a94;
  margin: 0 0 10px;
}

/* Amenity checkbox grid */
.amenity-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amenity-checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  color: #8a96b2;
  font-size: 14px;
}

.amenity-checkbox-card input[type="checkbox"] {
  accent-color: #ff4f7a;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.amenity-checkbox-card:has(input:checked) {
  background: rgba(255,79,122,0.08);
  border-color: rgba(255,79,122,0.3);
  color: #ff7aa2;
}

/* Thumbnail dropzone */
.thumbnail-dropzone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-dropzone:hover {
  border-color: #ff4f7a;
  background: rgba(255,79,122,0.04);
}

.thumbnail-preview {
  width: 100%;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
}

.thumbnail-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6e7a94;
  font-size: 14px;
}

.thumbnail-upload-prompt span:first-child {
  font-size: 36px;
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.thumbnail-preview:hover .thumbnail-overlay {
  opacity: 1;
}

/* Gallery preview */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery-preview-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,70,100,0.8);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Quill dark theme overrides */
.ql-toolbar.ql-snow {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
  border-radius: 12px 12px 0 0;
}

.ql-container.ql-snow {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.1) !important;
  border-radius: 0 0 12px 12px;
  min-height: 300px;
}

.ql-editor {
  color: #eef2ff !important;
  font-size: 15px;
  line-height: 1.7;
  min-height: 300px;
}

.ql-editor.ql-blank::before {
  color: #6e7a94 !important;
  font-style: normal !important;
}

.ql-snow .ql-stroke {
  stroke: #aeb9d3 !important;
}

.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
  fill: #aeb9d3 !important;
}

.ql-snow .ql-picker-label {
  color: #aeb9d3 !important;
}

.ql-snow .ql-picker-options {
  background: #1a1f2e !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.ql-snow .ql-picker-item {
  color: #cfe0ff !important;
}

.ql-toolbar button:hover .ql-stroke {
  stroke: #ff7aa2 !important;
}

.ql-toolbar button:hover .ql-fill {
  fill: #ff7aa2 !important;
}

.ql-toolbar button.ql-active .ql-stroke {
  stroke: #ff4f7a !important;
}

.ql-toolbar button.ql-active .ql-fill {
  fill: #ff4f7a !important;
}

/* Info box */
.job-form-info-box {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 14px;
  padding: 16px 20px;
  color: #ffd97a;
  font-size: 14px;
  margin: 24px 0;
  line-height: 1.6;
}

/* Submit button */
.job-form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4f7a 0%, #ff2450 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.job-form-submit-btn:hover {
  opacity: 0.9;
}

/* ── Job responsive ──────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .job-sidebar {
    display: none;
  }

  .job-content-area {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-detail-top {
    grid-template-columns: 1fr;
  }

  .job-form-grid {
    grid-template-columns: 1fr;
  }

  .job-form-field.full-width {
    grid-column: auto;
  }

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

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

  .job-filter-row {
    flex-direction: column;
  }

  .job-filter-row select,
  .job-filter-row .job-search-btn {
    width: 100%;
  }

  .job-keyword-row {
    flex-direction: column;
  }

  .job-salary-display .amount {
    font-size: 24px;
  }

  .job-detail-card {
    padding: 20px;
  }

  .job-form-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .job-page-shell {
    width: calc(100% - 16px);
  }

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

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