/* ═══════════════════════════════════════════════════════
   KREATIVE SKETCH — Global Design System
   Warm Editorial Luxury | Fully Responsive
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── TOKENS ── */
:root {
  --cream:        #F7F3EC;
  --cream-2:      #F0EAE0;
  --warm-white:   #FDFBF7;
  --ink:          #1A1410;
  --ink-2:        #2C2520;
  --ink-muted:    #5C5348;
  --inkss:        #d38e05;
  --inks-muted:   #faf9f6;
  --ink-faint:    #9C9088;
  --gold:         #C4923A;
  --gold-light:   #E8C97A;
  --gold-bg:      #FAF3E3;
  --terracotta:   #C4633A;
  --sage:         #6B7B5E;
  --border:       rgba(26,20,16,0.10);
  --border-md:    rgba(26,20,16,0.18);
  --border-strong:rgba(26,20,16,0.25);
  --shadow-sm:    0 2px 12px rgba(26,20,16,0.07);
  --shadow-md:    0 8px 32px rgba(26,20,16,0.10);
  --shadow-lg:    0 20px 60px rgba(26,20,16,0.14);
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    8px;
  --transition:   0.25s ease;
  --sidebar-w:    260px;
  --nav-h:        72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; background: var(--warm-white); color: var(--ink); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── TYPOGRAPHY ── */
.font-display { font-family: 'Cormorant Garamond', serif; }
h1,h2,h3,h4,h5 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.1; }

/* ── NAVBAR ── */
.ks-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
.ks-nav.scrolled { height: 60px; background: rgba(253,251,247,0.97); box-shadow: var(--shadow-sm); }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand-mark {
  width: 36px; height: 36px;
  background: var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 1.5; }
.nav-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--inks-muted); padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--inkss); }
.nav-menu .nav-btn {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--warm-white) !important; background: var(--ink);
  padding: 9px 22px; border-radius: var(--radius-sm); margin-left: 8px;
  transition: background var(--transition) !important;
}
.nav-menu .nav-btn:hover { background: var(--gold) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--warm-white); border-bottom: 1px solid var(--border-md);
  padding: 20px 24px 28px; z-index: 199; flex-direction: column; gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--inkss-muted); padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile-menu a:hover { color: var(--inks); }
.nav-mobile-menu .nav-btn {
  margin-top: 8px; text-align: center; padding: 14px;
  background: var(--inkss); color: var(--warm-white) !important;
  border-radius: var(--radius-sm); border-bottom: none;
  font-weight: 500; font-size: 13px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-ink  { color: var(--warm-white); background: var(--ink); border-color: var(--ink); }
.btn-ink:hover  { background: var(--gold); border-color: var(--gold); color: var(--warm-white); }
.btn-gold { color: var(--ink); background: var(--gold-light); border-color: var(--gold-light); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--warm-white); }
.btn-outline { color: var(--ink-muted); background: transparent; border-color: var(--border-md); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { color: rgba(255,255,255,.75); background: transparent; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-lg { padding: 16px 36px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { color: #fff; background: #B84040; border-color: #B84040; }
.btn-danger:hover { background: #8f3232; border-color: #8f3232; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 24px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 9px;
}
.form-control {
  width: 100%; padding: 12px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--ink); background: var(--cream);
  border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  outline: none; transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--gold); background: var(--warm-white); }
.form-control::placeholder { color: var(--ink-faint); }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 7px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); font-size: 12px; color: var(--ink-muted); pointer-events: none;
}
.select-wrap select { padding-right: 36px; }

/* ── FILE UPLOAD ── */
.file-drop {
  position: relative; border: 1.5px dashed var(--border-md);
  border-radius: var(--radius-sm); padding: 32px 20px;
  text-align: center; cursor: pointer; background: var(--cream);
  transition: all var(--transition);
}
.file-drop:hover { border-color: var(--gold); background: #FAF6EF; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-icon { font-size: 28px; color: var(--gold); margin-bottom: 10px; }
.file-drop-text { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.file-drop-text strong { color: var(--ink); font-weight: 500; }
.file-drop-name { margin-top: 10px; font-size: 13px; color: var(--gold); font-weight: 500; word-break: break-all; }

/* ── CARDS ── */
.card {
  background: var(--warm-white); border: 1px solid var(--border-md);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px;
}
.card:last-child { margin-bottom: 0; }
.card-header {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card-icon {
  width: 36px; height: 36px; background: var(--cream); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--gold); flex-shrink: 0;
}
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; }
.card-subtitle { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.card-body { padding: 28px; }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--border); background: var(--cream); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-gold { background: var(--gold-bg); color: var(--gold); }
.badge-ink  { background: var(--ink); color: var(--warm-white); }
.badge-success { background: #EAF4EE; color: #3D7A5A; }
.badge-error   { background: #FAEAEA; color: #B84040; }
.badge-info    { background: #E8F0FB; color: #2B60BC; }
.badge-muted   { background: var(--cream-2); color: var(--ink-muted); }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.alert-success { background: #EAF4EE; color: #3D7A5A; border-left: 3px solid #3D7A5A; }
.alert-error   { background: #FAEAEA; color: #B84040; border-left: 3px solid #B84040; }
.alert-info    { background: #E8F0FB; color: #2B60BC; border-left: 3px solid #2B60BC; }
.alert-gold    { background: var(--gold-bg); color: var(--gold); border-left: 3px solid var(--gold); }

/* ── SECTION HELPERS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-tag.center { justify-content: center; }
.section-tag.center::before { display: none; }
.section-tag.center::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 54px); font-weight: 300; color: var(--ink); margin-bottom: 16px; }
.section-title em { font-style: italic; color: var(--gold); }
.section-body { font-size: 16px; line-height: 1.8; color: var(--ink-muted); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { background: #3D7A5A; color: #fff; }
.toast-error   { background: #B84040; color: #fff; }
.toast-info    { background: var(--ink); color: var(--warm-white); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; } .reveal.d4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
.ks-footer { background: #100D0A; padding: 80px 48px 40px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--warm-white); margin-bottom: 14px; }
.footer-tagline { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.38); margin-bottom: 26px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 14px; transition: all var(--transition);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-col-title { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-row i { font-size: 14px; color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-row span { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); }

/* ── ADMIN SIDEBAR ── */
.ks-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 150;
  background: var(--ink); display: flex; flex-direction: column; overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-head { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 10px; }
.sidebar-logo-mark { width: 32px; height: 32px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo-mark svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; }
.sidebar-brand { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: var(--warm-white); line-height: 1.2; }
.sidebar-sub { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 20px 12px; }
.sidebar-section-label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.25); padding: 6px 10px 8px; margin-top: 16px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: rgba(255,255,255,0.55); cursor: pointer; border: none; background: none;
  width: 100%; text-align: left; transition: all var(--transition); margin-bottom: 2px;
  text-decoration: none;
}
.sidebar-nav-item i { font-size: 16px; flex-shrink: 0; }
.sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.sidebar-nav-item.active { background: var(--gold); color: var(--ink); font-weight: 500; }
.sidebar-nav-item.active i { color: var(--ink); }

.sidebar-foot { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sidebar-avatar { width: 34px; height: 34px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.sidebar-user-name { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── ADMIN MAIN ── */
.admin-wrap { margin-left: var(--sidebar-w); min-height: 100vh; background: var(--cream); }
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-md);
  padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.topbar-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--border-md); border-radius: var(--radius-sm);
  background: var(--warm-white); color: var(--ink-muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition);
}
.topbar-icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.admin-content { padding: 36px 40px; }

.page-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.page-breadcrumb a { color: var(--gold); }
.page-breadcrumb span { color: var(--border-strong); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-md); }
.page-head-title { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 300; }
.page-head-sub { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }

/* ── TABLE ── */
.ks-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ks-table thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--border-md); text-align: left; white-space: nowrap; }
.ks-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--ink); vertical-align: middle; }
.ks-table tbody tr:hover td { background: rgba(247,243,236,0.6); }
.ks-table tbody tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.tbl-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border-md); background: var(--warm-white); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: all var(--transition); color: var(--ink-muted); text-decoration: none; }
.tbl-btn:hover { border-color: var(--ink); color: var(--ink); }
.tbl-btn.edit:hover { border-color: var(--gold); color: var(--gold); }
.tbl-btn.delete:hover { border-color: #B84040; color: #B84040; background: #FAEAEA; }

/* ── STAT CARDS ── */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--warm-white); border: 1px solid var(--border-md); border-radius: var(--radius-md); padding: 24px 28px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gold); }
.stat-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.stat-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: #3D7A5A; }
.stat-change.down { color: #B84040; }

/* ── RESPONSIVE ── */
@media (max-width: 1280px) { .stat-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 1024px) {
  .ks-nav { padding: 0 24px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .admin-wrap { margin-left: 0; }
  .ks-sidebar { transform: translateX(-100%); }
  .ks-sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 149; }
  .sidebar-overlay.show { display: block; }
  .admin-topbar { padding: 0 20px; }
  .admin-content { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .ks-footer { padding: 60px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .ks-nav { padding: 0 16px; }
  .btn-lg { padding: 13px 24px; }
}
