/* ============================================================
   Design Tokens — Light + Black
   ============================================================ */
:root {
  --color-bg: #f8f8f7;
  --color-surface: #ffffff;
  --color-surface-2: #f0efed;

  --color-border: #e2e1de;
  --color-border-subtle: #eceae7;

  --color-text: #1a1916;
  --color-text-muted: #6b6860;
  --color-text-faint: #b0ada8;

  /* Black accent */
  --color-accent: #1a1916;
  --color-accent-hover: #000000;

  /* Green for active badge */
  --color-green: #16a34a;
  --color-green-dim: rgba(22, 163, 74, 0.08);
  /* Blue for completed */
  --color-blue: #2563eb;
  --color-blue-dim: rgba(37, 99, 235, 0.08);
  /* Amber */
  --color-amber: #d97706;
  --color-amber-dim: rgba(217, 119, 6, 0.08);
  /* Red */
  --color-red: #dc2626;

  /* Point color — pure black used as highlight */
  --color-point: #1a1916;
  --color-point-dim: rgba(26, 25, 22, 0.06);

  --font-sans: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 64px;
  --max-width: 1100px;
  --content-padding: clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
   Skip link — accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--color-text);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-text-muted);
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

/* ============================================================
   Focus styles — WCAG 2.1 AA
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Layout Shell
   ============================================================ */
#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 248, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* Shimmer sweep L→R on the static border */
#app-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 30%,
    rgba(26, 25, 22, 0.5) 48%,
    rgba(26, 25, 22, 0.9) 50%,
    rgba(26, 25, 22, 0.5) 52%,
    transparent 70%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: navShimmer 2.4s ease-in-out infinite;
}

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

#app-main {
  flex: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  height: var(--nav-height);
  position: relative;
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.45em;
  margin-right: auto;
  text-decoration: none;
  transition: opacity var(--transition);
}
.nav__logo:hover {
  opacity: 0.6;
}
.nav__logo-top {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-transform: uppercase;
}
.nav__logo-bottom {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 0.1rem;
}

.nav__link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  border: none;
  background: none;
  border-radius: var(--radius-md);
}
.nav__link:hover {
  color: var(--color-text);
}
.nav__link--active {
  color: var(--color-text);
  font-weight: 700;
}

/* ============================================================
   Language dropdown
   ============================================================ */
.nav__lang-wrap {
  position: relative;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__lang-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.nav__lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 145px;
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.nav__lang-dropdown--open {
  display: block;
}

.nav__lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.nav__lang-option:hover {
  background: var(--color-bg);
}
.nav__lang-option--active {
  color: var(--color-text);
  font-weight: 700;
  background: var(--color-point-dim);
}
.nav__lang-option .lang-flag {
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Auth Widget ──────────────────────────────────────────────── */
.nav__auth-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__login-btn {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition), transform var(--transition);
}
.nav__login-btn:hover {
  color: var(--color-text);
  transform: scale(1.1);
}

.nav__auth-btn {
  display: flex;
  align-items: center;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: border-color var(--transition), opacity var(--transition);
}
.nav__auth-btn:hover {
  border-color: var(--color-point);
  opacity: 0.9;
}

.nav__auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 120px;
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.nav__auth-dropdown--open {
  display: block;
}

.nav__auth-option {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.nav__auth-option:hover {
  background: var(--color-bg);
}
.nav__auth-option--danger {
  color: #ef4444;
}
.nav__auth-option--danger:hover {
  background: rgba(239, 68, 68, 0.06);
}

/* ── Project CRUD Controls ────────────────────────────────────── */
.projects__new-btn {
  margin-bottom: 1.2rem;
}

.project-card__admin-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
}

.btn--danger {
  color: #ef4444;
  border-color: #ef4444;
  background: transparent;
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.nav__menu-btn {
  display: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 1.4rem;
  font-weight: 700;
  transition: color var(--transition);
}
.nav__menu-btn:hover {
  color: var(--color-text);
}

/* ============================================================
   Pages — shared
   ============================================================ */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--content-padding);
  animation: fadeIn 0.3s ease;
}

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

/* Standard page exit */
@keyframes pageExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
.page-exit {
  animation: pageExit 0.16s ease-in both;
  pointer-events: none;
}

/* ── Detail overlay (full-screen, above nav) ── */
@keyframes overlayEnter {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes overlayExit {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background-color: var(--color-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  will-change: transform;
}
.detail-overlay--enter {
  animation: overlayEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.detail-overlay--exit {
  animation: overlayExit 0.3s cubic-bezier(0.55, 0, 0.45, 1) both;
}

.detail-overlay__inner {
  min-height: 100%;
}

/* Prevent background scroll when overlay is open */
body.overlay-open {
  overflow: hidden;
}

.page__header {
  margin-bottom: 3rem;
}

.page__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.page__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 1rem;
}

/* ============================================================
   Home — Hero
   ============================================================ */
.page--home {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(70vh - var(--nav-height));
}

.hero__text {
  max-width: 640px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Focus card */
.focus__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 560px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.focus__card:hover {
  border-color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.focus__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.focus__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-text);
  color: #fff;
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-point-dim);
}

.btn--sm {
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--active {
  background: var(--color-green-dim);
  color: var(--color-green);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge--completed {
  background: var(--color-blue-dim);
  color: var(--color-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge--archived {
  background: var(--color-point-dim);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge--tech {
  background: var(--color-point-dim);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge--thoughts {
  background: var(--color-amber-dim);
  color: var(--color-amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge--notes {
  background: var(--color-green-dim);
  color: var(--color-green);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* ============================================================
   Projects — sub-tabs
   ============================================================ */
.project-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tab {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.project-tab:hover {
  color: var(--color-text);
}
.project-tab--active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-text);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  flex: 1;
}

.project-card__desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.18rem 0.55rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.project-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* ============================================================
   Thinking / Posts
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  background: transparent;
}
.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}
.filter-btn--active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  font-weight: 700;
}

.posts__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.post-card:hover {
  border-color: var(--color-text);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.post-card__date {
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.post-card__read-time {
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.post-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   About
   ============================================================ */
.about__content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.about__section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.about__intro p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about__intro p:last-child {
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.4rem 1.75rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-text);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0.15;
}
.timeline__item:hover {
  border-color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.timeline__item:hover::before {
  opacity: 0.7;
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.timeline__company {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.timeline__period {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.75rem;
}

.timeline__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Skills */
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.35rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.skill-tag:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  background: var(--color-point-dim);
}

/* Contact links */
.contact__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem var(--content-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy,
.footer__built {
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

/* ============================================================
   Project Card — clickable variant
   ============================================================ */
.project-card--clickable {
  cursor: pointer;
  position: relative;
}
.project-card--clickable::after {
  content: '→';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1rem;
  color: var(--color-text-faint);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
}
.project-card--clickable:hover::after {
  opacity: 1;
  color: var(--color-text);
  transform: translateX(3px);
}
.project-card--clickable:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

/* ============================================================
   Project Detail — App-bar header
   ============================================================ */
.page--project-detail {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Sticky app-bar inside overlay */
.detail-appbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--content-padding);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(248, 248, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* Back button — left */
.detail-back-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.detail-back-btn:hover {
  color: var(--color-text);
  background: var(--color-point-dim);
}

/* Title — center */
.detail-appbar__title {
  justify-self: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  text-align: center;
}

/* Tabs — right */
.detail-tabs {
  justify-self: end;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.detail-tab:hover {
  color: var(--color-text);
}
.detail-tab--active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-text);
}

/* Detail content pane */
.detail-pane-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--content-padding) 4rem;
  min-height: 300px;
}
.detail-pane {
  animation: fadeIn 0.2s ease;
}

/* Overview */
.detail-overview {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 720px;
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* How to Use */
.how-to-use {
  margin-top: 2.5rem;
  max-width: 720px;
}
.how-to-use__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.how-to-use__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.how-to-use__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.how-to-use__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-to-use__content {
  flex: 1;
  min-width: 0;
}
.how-to-use__step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.how-to-use__step-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.how-to-use__image {
  margin-top: 0.75rem;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Notice */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}
.notice-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.notice-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.notice-item__date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.notice-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.notice-item__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Docs */
.detail-doc-block {
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.detail-doc-block__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.detail-doc-block__body {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 0;
}

/* Privacy Policy */
.detail-privacy {
  max-width: 720px;
}
.detail-privacy__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.detail-privacy__paragraph {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0.75rem 0;
  white-space: pre-wrap;
}
.detail-privacy__article {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}
.detail-privacy__body {
  margin-bottom: 0.25rem;
}
.detail-privacy__line {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 0.1rem 0;
}
.detail-privacy__dash {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 0.05rem 0 0.05rem 1.2rem;
  position: relative;
}
.detail-privacy__dash::before {
  content: '–';
  position: absolute;
  left: 0.2rem;
  color: var(--color-text-faint);
}

/* Pricing grid — 2x2 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}
.pricing-card--highlight {
  border: 2px solid #000;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

/* Recommended badge — top center */
.pricing-card__badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__trial-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-green);
  border: 1px solid rgba(22, 163, 74, 0.25);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Left section: name + price info */
.pricing-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 140px;
}

.pricing-card__name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
}

.pricing-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.pricing-card__price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pricing-card__period {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
/* Responsive period text: show full by default, mid/tiny hidden */
.period--full { display: inline; }
.period--mid  { display: none; }
.period--tiny { display: none; }

/* Middle section: desc + feature */
.pricing-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pricing-card__features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.pricing-card__feature {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.pricing-card__feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

.pricing-card__specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
}
.pricing-card__spec-row {
  border-bottom: 1px solid var(--color-border-subtle);
}
.pricing-card__spec-row:last-child {
  border-bottom: none;
}
.pricing-card__spec-label {
  color: var(--color-text-muted);
  padding: 0.35rem 0.5rem 0.35rem 0;
  white-space: nowrap;
  width: 50%;
}
.pricing-card__spec-value {
  color: var(--color-text);
  font-weight: 600;
  padding: 0.35rem 0;
  text-align: right;
}

/* Original price row — strikethrough + discount inline */
.pricing-card__original-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Discount text — inline next to strikethrough price */
.pricing-card__discount {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
/* CTA button — bottom of card */
.pricing-card__cta-wrap {
  margin-top: auto;
}
/* Default CTA button / link */
.pricing-card__cta {
  display: block;
  width: 100%;
  padding: 0.65rem 1.5rem;
  border: 1.5px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 1.275rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}
.pricing-card__cta:hover {
  opacity: 0.7;
}
/* Primary CTA (highlight/Plus cards) */
.pricing-card__cta--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}
/* Original price — strikethrough */
.pricing-card__original-price {
  text-decoration: line-through;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Pricing footer — two columns: token note (left) + common features (right) */
.pricing-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

/* Pricing note (token explanation) — left */
.pricing-note {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.pricing-note__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.pricing-note__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.pricing-note__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.pricing-note__table tr {
  border-bottom: 1px solid var(--color-border-subtle);
}
.pricing-note__table tr:last-child {
  border-bottom: none;
}
.pricing-note__td {
  padding: 0.4rem 0.5rem 0.4rem 0;
  color: var(--color-text-muted);
  vertical-align: top;
}
.pricing-note__td--token {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  width: 30%;
  padding-right: 1rem;
}

/* Common features — right */
.pricing-common {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.pricing-common__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.pricing-common__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-common__item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.pricing-common__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* Not-found fallback */
.detail-not-found {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-faint);
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: rgba(26, 25, 22, 0.1);
  color: var(--color-text);
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248, 248, 247, 0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem var(--content-padding);
    gap: 0.15rem;
    z-index: 99;
  }
  .nav__links--open {
    display: flex;
  }
  .nav__menu-btn {
    display: flex;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .stats {
    gap: 2rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .project-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Detail appbar on mobile: back | title | tabs | lang */
  .detail-appbar {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.5rem;
  }
  .detail-appbar__title {
    font-size: 0.875rem;
    max-width: 140px;
  }
  .detail-tab {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .contact__links {
    flex-direction: column;
  }

  .project-card__header {
    flex-direction: column;
  }

  .detail-appbar__title {
    display: none;
  }
  .detail-appbar {
    grid-template-columns: auto 1fr auto;
  }

  /* Mobile: single column grid */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-footer {
    grid-template-columns: 1fr;
  }
  .how-to-use__image {
    max-width: 280px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Admin UI
   ============================================================ */

/* Login */
.admin-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
  text-align: center;
}
.admin-login__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
}
.admin-login__desc {
  color: var(--body);
  max-width: 400px;
}
.admin-login__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.admin-login__btn svg {
  flex-shrink: 0;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  gap: 0;
}

/* Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface, #1a1a2e);
  border-right: 1px solid var(--border, #333);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border, #333);
  margin-bottom: 0.5rem;
}
.admin-sidebar__avatar {
  border-radius: 50%;
}
.admin-sidebar__username {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0;
  flex: 1;
}
.admin-sidebar__item {
  display: block;
  width: 100%;
  padding: 0.625rem 1.25rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.admin-sidebar__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
}
.admin-sidebar__item--active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent, #818cf8);
  font-weight: 600;
}
.admin-sidebar__logout {
  margin-top: auto;
  padding: 0.625rem 1.25rem;
  background: none;
  border: none;
  border-top: 1px solid var(--border, #333);
  color: var(--body);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
}
.admin-sidebar__logout:hover {
  color: #f87171;
}

/* Content area */
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-width: 0;
}

/* Editor */
.admin-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-editor__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--heading);
}

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border, #444);
  border-radius: 6px;
  background: var(--surface, #1e1e36);
  color: var(--body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.admin-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--body);
}
.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-btn--primary {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}
.admin-btn--primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}
.admin-btn--danger {
  color: #f87171;
  border-color: #7f1d1d;
}
.admin-btn--danger:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: #f87171;
}
.admin-btn--sm {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}
.admin-btn--tab {
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
}
.admin-btn--tab-active {
  border-bottom-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.admin-table th,
.admin-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #333);
}
.admin-table th {
  color: var(--muted, #888);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table td {
  color: var(--body);
}
.admin-table__mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted, #888);
}
.admin-table__actions {
  display: flex;
  gap: 0.375rem;
}

/* Badge */
.admin-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-badge--active {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.admin-badge--completed {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
.admin-badge--archived {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

/* Form overlay */
.admin-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  overflow-y: auto;
}
.admin-form {
  background: #0f0f23;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #e2e2e2;
}
.admin-form h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #ffffff;
}
.admin-form__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}

/* Field */
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.admin-field > label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Input */
.admin-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1a1a2e;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.admin-input:focus {
  outline: none;
  border-color: #6366f1;
}
.admin-input--textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.admin-input--inline {
  width: auto;
  flex: 1;
}
select.admin-input {
  appearance: none;
  cursor: pointer;
}

/* Localized input */
.admin-localized {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.admin-localized__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-localized__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0;
}
.admin-localized__tab {
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  color: #888;
  font-size: 0.6875rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.admin-localized__tab:hover {
  color: #e2e2e2;
}
.admin-localized__tab--active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}
.admin-localized__tab--primary {
  font-weight: 600;
}
.admin-localized__panels {
  margin-top: 0.375rem;
}

/* Card list */
.admin-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1a1a2e;
  gap: 1rem;
}
.admin-card__info {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  color: #e2e2e2;
  line-height: 1.4;
}
.admin-card__info strong {
  color: #ffffff;
}
.admin-card__actions {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

/* Skills */
.admin-skill-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.admin-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}
.admin-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #e2e2e2;
}
.admin-skill-tag__remove {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.125rem;
}
.admin-skill-tag__remove:hover {
  color: #f87171;
}

/* About tabs */
.admin-about-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

/* Loading / Error / Empty */
.admin-loading {
  text-align: center;
  padding: 3rem 0;
  color: #888;
  font-size: 0.875rem;
}
.admin-error {
  text-align: center;
  padding: 2rem 0;
  color: #f87171;
  font-size: 0.875rem;
}
.admin-empty {
  text-align: center;
  padding: 2rem 0;
  color: #888;
  font-size: 0.875rem;
}

/* Admin responsive */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border, #333);
    overflow-x: auto;
  }
  .admin-sidebar__user {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0 0.5rem 0 0;
    border-right: 1px solid var(--border, #333);
  }
  .admin-sidebar__nav {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }
  .admin-sidebar__item {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
  .admin-sidebar__logout {
    margin-top: 0;
    border-top: none;
    border-left: 1px solid var(--border, #333);
    padding: 0.5rem 0.75rem;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-form {
    padding: 1.25rem;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  #app-header,
  .hero__cta,
  .filter-bar,
  .project-card__actions,
  .contact__links {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .page {
    padding: 1rem 0;
  }
}
