/* ارچه (Arche) — Abivard v1.5 Stylesheet */
:root {
  --bg-page: #07080c;
  --bg-surface: rgba(16, 19, 28, 0.78);
  --card-bg: rgba(15, 18, 27, 0.74);
  --input-bg: rgba(8, 10, 16, 0.72);
  --text-main: #f5f4f0;
  --text-muted: #b6b9c6;
  --gold-primary: #e5b557;
  --gold-light: #f6d58b;
  --gold-deep: #9e6d1c;
  --gold-glow: rgba(229, 181, 87, 0.35);
  --border-color: rgba(229, 181, 87, 0.22);
  --font-family: 'Vazirmatn', Tahoma, sans-serif;
  --font-scale: 1;
  --shadow-3d: 0 24px 54px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(229, 181, 87, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --transition-smooth: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }
body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.3s ease;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

#bg-3d-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.scroll-progress-wrap { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; background: transparent; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-primary)); box-shadow: 0 0 12px var(--gold-glow); transition: width 0.1s linear; }

.glass-panel { background: var(--bg-surface); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid var(--border-color); }

.text-3d-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(229, 181, 87, 0.22));
}

.text-3d-hero {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(145deg, #fff1c2 0%, var(--gold-primary) 48%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 240, 190, 0.4), 0 3px 0 rgba(158, 109, 28, 0.5), 0 12px 24px rgba(0, 0, 0, 0.45);
}

.tilt-3d { transform-style: preserve-3d; will-change: transform; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease; }

/* Clean Top Bar */
.navbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 1200px; border-radius: 20px; z-index: 1000; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-logo-frame { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; border: 1.5px solid var(--border-color); background: var(--input-bg); display: flex; align-items: center; justify-content: center; }
.brand-logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo-fallback { font-weight: 800; font-size: 0.92rem; color: var(--gold-primary); }
.brand-text-group { display: flex; flex-direction: column; }
.brand-title { font-size: 1.3rem; font-weight: 900; line-height: 1.15; }
.brand-handle { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { position: relative; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); padding: 6px 2px; transition: var(--transition-smooth); }
.nav-link:hover, .nav-link.active { color: var(--gold-primary); }
.nav-link::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--gold-primary), var(--gold-light)); border-radius: 999px; transition: width 0.28s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.header-btn-group { display: flex; align-items: center; gap: 8px; }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-main); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth); font-weight: 700; }
.icon-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.hamburger-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: var(--transition-smooth); }
.hamburger-btn:hover { border-color: var(--gold-primary); box-shadow: 0 0 14px var(--gold-glow); }
.hamburger-line { width: 20px; height: 2px; border-radius: 999px; background: var(--gold-primary); }

.btn-gold, .btn-gold-sm, .btn-gold-full { background: linear-gradient(135deg, var(--gold-light), var(--gold-primary) 55%, var(--gold-deep)); color: #12100b; font-weight: 700; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(229, 181, 87, 0.25); transition: var(--transition-smooth); }
.btn-gold { padding: 11px 22px; border-radius: 14px; font-size: 0.94rem; }
.btn-gold-sm { padding: 8px 14px; border-radius: 12px; font-size: 0.84rem; }
.btn-gold-full { width: 100%; padding: 12px 16px; border-radius: 14px; font-size: 0.92rem; }
.btn-gold:hover, .btn-gold-sm:hover, .btn-gold-full:hover { transform: translateY(-2px); box-shadow: 0 14px 28px var(--gold-glow); }

.btn-glass { padding: 11px 20px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-main); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth); }
.btn-glass:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.btn-text-gold { padding: 10px 12px; color: var(--gold-primary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; transition: var(--transition-smooth); }
.btn-text-gold:hover { color: var(--gold-light); }

.btn-outline-full { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-color); background: transparent; color: var(--text-main); font-weight: 600; font-size: 0.86rem; cursor: pointer; transition: var(--transition-smooth); }
.btn-outline-full:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); z-index: 1090; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer-menu { position: fixed; top: 12px; bottom: 12px; left: 12px; width: min(340px, calc(100% - 24px)); border-radius: 24px; z-index: 1100; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; transform: translateX(-112%); transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: var(--shadow-3d); }
.drawer-menu.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-logo { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; border: 1px solid var(--border-color); }
.drawer-title { font-size: 1.2rem; font-weight: 800; }
.drawer-sub { font-size: 0.76rem; color: var(--text-muted); }
.drawer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--card-bg); border: 1px solid transparent; font-weight: 600; transition: var(--transition-smooth); }
.drawer-link:hover { border-color: var(--border-color); color: var(--gold-primary); }
.drawer-link small { color: var(--text-muted); font-weight: 700; }
.drawer-tools { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.floating-dock { position: fixed; bottom: 20px; left: 20px; z-index: 950; display: flex; flex-direction: column; gap: 8px; }
.dock-btn { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32); }

/* Hero & 3D Clock Stage */
.hero-section { padding: 122px 0 60px; min-height: 86vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 38px; align-items: center; }
.hero-main-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.hero-subtitle-badge { font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 700; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.hero-lead { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 24px; }
.hero-cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.glass-card-mini { background: var(--card-bg); backdrop-filter: blur(14px); border: 1px solid var(--border-color); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.metric-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.floating-icon-3d { animation: floatY 3.6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0px) translateZ(8px); } 50% { transform: translateY(-4px) translateZ(14px); } }
.metric-num { font-size: 1.08rem; font-weight: 800; color: var(--gold-light); line-height: 1.2; }
.metric-label { font-size: 0.78rem; color: var(--text-muted); }

/* 3D Clock Card & Variants */
.hero-clock-card { border-radius: 24px; padding: 18px 16px; text-align: center; box-shadow: var(--shadow-3d); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clock-stage-label { font-size: 0.78rem; font-weight: 700; color: var(--gold-primary); letter-spacing: 0.4px; }
.clock-3d-stage { width: 164px; height: 164px; display: flex; align-items: center; justify-content: center; perspective: 900px; }

.clock-dial-3d {
  position: relative;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--bg-surface), var(--input-bg));
  border: 3px solid var(--gold-primary);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 16px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(229, 181, 87, 0.12);
  transform: rotateX(10deg) rotateY(-8deg);
  transition: transform 0.35s ease, border-radius 0.35s ease, border-color 0.35s ease;
}

.clock-dial-3d.shape-square { border-radius: 26px; transform: rotateX(12deg) rotateY(10deg); }
.clock-dial-3d.shape-oct { border-radius: 33px; transform: rotateX(14deg) rotateZ(4deg); }
.clock-dial-3d.shape-double { border-width: 4px; outline: 2px dashed var(--gold-light); outline-offset: -7px; }
.clock-dial-3d.shape-minimal { border-width: 2px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35); }

.clock-tick {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 7px;
  background: var(--gold-light);
  transform-origin: 50% 72px;
  opacity: 0.85;
}
.clock-tick.major { width: 2px; height: 11px; background: var(--gold-primary); opacity: 1; }

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
  transform: translateX(-50%) rotate(0deg);
}
.clock-hand.hour { width: 4px; height: 38px; background: var(--text-main); z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.clock-hand.minute { width: 2.5px; height: 53px; background: var(--gold-light); z-index: 4; box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.clock-hand.second { width: 1.5px; height: 60px; background: var(--gold-primary); z-index: 5; }
.clock-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  border: 2px solid var(--bg-page);
  transform: translate(-50%, -50%);
  z-index: 6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.clock-dates-box { width: 100%; padding-top: 10px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.date-line-time { font-size: 1.3rem; font-weight: 900; color: var(--text-main); letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.date-divider { width: 36px; height: 1px; background: var(--border-color); margin: 2px 0; }
.date-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.date-icon { font-size: 0.82rem; opacity: 0.85; line-height: 1; }
.date-line-shamsi { font-size: 0.88rem; font-weight: 800; color: var(--gold-light); }
.date-line-gregorian { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

/* Sections & Cards */
.section-block { padding: 64px 0; }
.section-header { max-width: 660px; margin: 0 auto 28px; text-align: center; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.35rem); font-weight: 900; margin-bottom: 6px; }
.section-desc { color: var(--text-muted); font-size: 0.94rem; }

.controls-bar { border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); }
.filter-pill:hover { color: var(--gold-primary); border-color: var(--gold-primary); }
.filter-pill.active { background: linear-gradient(135deg, var(--gold-light), var(--gold-primary)); color: #12100b; border-color: transparent; }

.search-input-wrap { min-width: 210px; flex: 1; max-width: 300px; }
.search-input { width: 100%; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font-size: 0.88rem; outline: none; }
.search-input:focus { border-color: var(--gold-primary); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.writing-card { background: var(--card-bg); backdrop-filter: blur(14px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; cursor: pointer; }
.writing-card:hover { border-color: var(--gold-primary); box-shadow: var(--shadow-3d); }
.writing-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.78rem; }
.writing-cat-tag { padding: 3px 10px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--gold-light); font-weight: 600; }
.writing-date { color: var(--text-muted); }
.writing-title { font-size: 1.14rem; font-weight: 800; margin-top: 8px; margin-bottom: 6px; }
.writing-excerpt { color: var(--text-muted); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.writing-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border-color); font-size: 0.84rem; color: var(--gold-primary); font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 18px; }
.gallery-item-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; cursor: pointer; }
.gallery-item-card:hover { border-color: var(--gold-primary); box-shadow: var(--shadow-3d); }
.gallery-thumb-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--input-bg); }
.gallery-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item-card:hover .gallery-thumb-wrap img { transform: scale(1.06); }
.gallery-caption-box { padding: 14px 16px; }
.gallery-loc { font-size: 0.76rem; color: var(--gold-primary); font-weight: 700; margin-bottom: 3px; }
.gallery-title { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.gallery-desc { font-size: 0.84rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.dargaz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; }
.dargaz-card { background: var(--card-bg); backdrop-filter: blur(14px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.dargaz-card:hover { border-color: var(--gold-primary); box-shadow: var(--shadow-3d); }
.dargaz-icon-badge { width: 44px; height: 44px; border-radius: 13px; background: var(--input-bg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.dargaz-card-title { font-size: 1.08rem; font-weight: 800; }
.dargaz-card-text { font-size: 0.88rem; color: var(--text-muted); }

.dargaz-photos-header { margin: 30px 0 16px; text-align: center; }
.dargaz-photos-title { font-size: 1.2rem; font-weight: 800; color: var(--text-main); }
.dargaz-photos-grid .gallery-item-card { cursor: default; }
.dargaz-photo-credit { font-size: 0.74rem; color: var(--text-muted); }
.dargaz-photo-credit a { color: var(--gold-primary); text-decoration: none; }
.dargaz-photo-credit a:hover { text-decoration: underline; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.contact-info-card, .contact-form-card { border-radius: var(--radius-xl); padding: 22px; }
.about-profile-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.about-avatar-box { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--border-color); background: var(--input-bg); flex-shrink: 0; }
.about-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold-primary); }
.about-name { font-size: 1.15rem; font-weight: 800; }
.about-role { font-size: 0.84rem; color: var(--text-muted); }
.about-bio { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }

.contact-items-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border-color); }
.contact-item-meta { display: flex; flex-direction: column; }
.contact-item-label { font-size: 0.74rem; color: var(--text-muted); }
.contact-item-value { font-size: 0.9rem; color: var(--gold-light); }

.copy-btn { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--gold-light); font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: var(--transition-smooth); }
.copy-btn:hover { background: var(--gold-primary); color: #12100b; }

.form-heading { font-size: 1.12rem; font-weight: 800; margin-bottom: 12px; }
.styled-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.84rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font-size: 0.88rem; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold-primary); }
.form-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-status { padding: 10px 12px; border-radius: 12px; font-size: 0.84rem; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--gold-light); }

/* Footer */
.site-footer { margin-top: 44px; border-radius: 26px 26px 0 0; border-bottom: none; padding: 22px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand-title { font-size: 1.15rem; font-weight: 900; }
.footer-links-col { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.86rem; color: var(--text-muted); }
.footer-links-col a:hover { color: var(--gold-primary); }

/* Modals & Admin */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card { width: 100%; max-width: 600px; max-height: 88vh; overflow-y: auto; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-3d); }
.admin-modal-card { max-width: 780px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-badge { padding: 4px 11px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--border-color); color: var(--gold-light); font-size: 0.78rem; font-weight: 700; }
.modal-date { font-size: 0.78rem; color: var(--text-muted); margin-right: 6px; }
.modal-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 10px; }
.modal-title-sm { font-size: 1.12rem; font-weight: 800; }
.modal-body-text { font-size: 0.94rem; line-height: 1.9; white-space: pre-line; }
.modal-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-author { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }

.lightbox-img-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 12px; max-height: 55vh; background: var(--input-bg); }
.lightbox-img-wrap img { width: 100%; max-height: 55vh; object-fit: contain; margin: 0 auto; }

.publish-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.publish-tab { flex: 1; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
.publish-tab.active { background: var(--input-bg); border-color: var(--gold-primary); color: var(--gold-light); }

.admin-tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.admin-pane { padding-top: 4px; }

.recovery-divider { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.recovery-box { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border-color); }

.admin-items-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border-color); font-size: 0.86rem; }
.admin-row-actions { display: flex; align-items: center; gap: 6px; }

.theme-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-top: 8px; }
.theme-preset-btn { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); cursor: pointer; text-align: right; display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; font-weight: 700; transition: var(--transition-smooth); }
.theme-preset-top { display: flex; align-items: center; gap: 8px; }
.theme-preset-clock-tag { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.theme-preset-btn:hover, .theme-preset-btn.active { border-color: var(--gold-primary); box-shadow: 0 0 12px var(--gold-glow); }
.theme-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); flex-shrink: 0; }

.toast-box { position: fixed; bottom: 24px; right: 24px; z-index: 1500; padding: 11px 16px; border-radius: 14px; font-size: 0.86rem; font-weight: 600; color: var(--gold-light); box-shadow: var(--shadow-3d); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.toast-box.show { opacity: 1; transform: translateY(0); }

.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-item.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-main-title { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .navbar { top: 8px; width: calc(100% - 16px); }
}
