/* ================================================================
   Personal Portfolio — style.css
   2026 Dark Modern Design
   ================================================================ */

/* ── Imports ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg-primary:   #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --border:       rgba(255, 255, 255, 0.10);
  --border-hover: rgba(59, 130, 246, 0.50);

  --blue:         #3b82f6;
  --purple:       #8b5cf6;
  --cyan:         #06b6d4;
  --pink:         #ec4899;

  --gradient:     linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-text: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 50%, var(--purple) 100%);

  --text-primary:   #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.60);
  --text-muted:     rgba(240, 240, 255, 0.35);

  --radius:  12px;
  --radius-lg: 20px;
  --blur:    blur(12px);

  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.40);
  --shadow-glow:  0 0 24px rgba(59, 130, 246, 0.25);
  --shadow-hover: 0 8px 40px rgba(59, 130, 246, 0.30);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: transparent; color: inherit; }

/* ── Noise overlay ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Utility ────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.20);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.30);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* ── Section title ──────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Scroll animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-menu-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
}

.nav-menu-mobile.open { display: flex; }

.nav-menu-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}
.nav-menu-mobile a:hover { color: var(--blue); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float1 12s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float2 15s ease-in-out infinite;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  animation: rotate 25s linear infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 25%;
  border-color: rgba(6, 182, 212, 0.10);
  animation: rotate 18s linear infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  left: 8%;
  border-color: rgba(139, 92, 246, 0.12);
  animation: float3 8s ease-in-out infinite;
}

.shape-4 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -100px;
  border-color: rgba(59, 130, 246, 0.04);
  animation: rotate 40s linear infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 40px) scale(1.05); }
  66%       { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(50px, -60px) scale(1.08); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.12em;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding: 8rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.6;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
  display: block;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

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

.about-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
}

.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.skill-tag {
  padding: 0.35rem 0.9rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
  transition: all var(--transition);
}

.skill-tag:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.50);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.20);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding: 6rem 0 0;
}

.stat-card {
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 26, 0.5), transparent);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-desc { margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ================================================================
   PROJECTS
   ================================================================ */
.projects {
  padding: 8rem 0;
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.40);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  font-weight: 700;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  padding: 0.2rem 0.65rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
}

.project-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition), color var(--transition);
}

.project-link:hover { color: var(--cyan); gap: 0.7rem; }

.projects-more {
  text-align: center;
  margin-top: 3rem;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 26, 0.5));
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header .section-desc { margin-inline: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.20);
}

/* Contact Form */
.contact-form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-textarea { height: 130px; }

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #f87171;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 340px;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-body {
  background: var(--bg-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Admin Login */
.admin-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.admin-login::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-card {
  width: min(420px, 100%);
  padding: 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form .form-input { width: 100%; }

.login-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #f87171;
  font-size: 0.88rem;
  display: none;
  text-align: center;
}

.login-error.show { display: block; }

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100dvh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100dvh;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.sidebar-close-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }

.sidebar-logo {
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
}

.sidebar-link .icon { font-size: 1.1rem; }

.sidebar-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Admin main */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  background: rgba(10, 10, 15, 0.60);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

/* Admin sections */
.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.admin-stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Admin card panels */
.admin-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.admin-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Admin form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Tags input */
.tags-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 48px;
  align-items: center;
  transition: border-color var(--transition);
}

.tags-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
}

.tag-remove {
  background: none;
  border: none;
  color: var(--blue);
  line-height: 1;
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.tag-remove:hover { opacity: 1; }

.tags-input {
  flex: 1;
  min-width: 120px;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.25rem;
}

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

/* Stats rows */
.stats-rows { display: flex; flex-direction: column; gap: 0.75rem; }

.stats-row-item {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.75rem;
  align-items: center;
}

/* Admin list items */
.admin-list { display: flex; flex-direction: column; gap: 0.75rem; }

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.admin-list-item:hover { border-color: var(--border-hover); }

.admin-list-item-icon { font-size: 1.5rem; }

.admin-list-item-body { flex: 1; min-width: 0; }

.admin-list-item-title { font-size: 0.95rem; font-weight: 600; }

.admin-list-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
}

.admin-list-item-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Projects admin */
.admin-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.admin-project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.admin-project-card:hover { border-color: var(--border-hover); }

.admin-project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.admin-project-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.admin-project-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-project-title { font-size: 0.95rem; font-weight: 700; }

.admin-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-visible {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-visible.on  { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-visible.off { background: rgba(239, 68, 68, 0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* Messages table */
.messages-table-wrap { overflow-x: auto; }

.messages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.messages-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.messages-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--text-secondary);
}

.messages-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.messages-table tr.unread td { color: var(--text-primary); }

.msg-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.msg-badge.unread { background: rgba(59, 130, 246, 0.12); color: var(--blue); border: 1px solid rgba(59,130,246,0.25); }
.msg-badge.read   { background: rgba(255,255,255,0.04);   color: var(--text-muted); border: 1px solid var(--border); }

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.image-upload-area:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.05);
}

.image-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.image-upload-text { color: var(--text-muted); font-size: 0.88rem; }
.image-upload-text strong { color: var(--blue); }

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

.image-preview.logo-preview {
  width: auto;
  max-width: 240px;
  max-height: 90px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.75rem;
}

/* Logo — slika namesto besedila (naslovnica + noga) */
.nav-logo img { display: block; height: 34px; width: auto; }
.footer-logo img { display: block; height: 28px; width: auto; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 0.75rem; }

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  transition: background var(--transition);
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(600px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
}

.modal-close:hover { background: rgba(239, 68, 68, 0.20); color: #f87171; }

/* Sidebar mobile toggle */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 400px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .admin-main { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle-btn { display: flex; align-items: center; }
  .sidebar-close-btn { display: flex; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

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

  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .admin-content { padding: 1rem; }
  .admin-card { padding: 1.25rem; }

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

  /* Sporočila: tabela postane seznam kartic, brez vodoravnega drsenja */
  .messages-table-wrap { overflow-x: visible; }
  .messages-table thead { display: none; }
  .messages-table, .messages-table tbody, .messages-table tr, .messages-table td {
    display: block;
    width: 100%;
  }
  .messages-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
  }
  .messages-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .messages-table td:last-child { border-bottom: none; }
  .messages-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
  }
  .messages-table td[colspan] { display: block; text-align: center; }
  .messages-table td[colspan]::before { content: none; }

  /* Storitve/seznami: dejanja se prelomijo v svojo vrstico namesto stiskanja */
  .admin-list-item { flex-wrap: wrap; row-gap: 0.6rem; }
  .admin-list-item-desc {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .admin-list-item-actions { flex: 1 0 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .container { --_pad: 1rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PIŠKOTKI (cookie consent)
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 460px;
  margin-inline: auto;
  z-index: 2000;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.cookie-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.cookie-text a {
  color: var(--cyan);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

@media (max-width: 480px) {
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   AI CHAT WIDGET
   ================================================================ */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1400;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 36px rgba(59, 130, 246, 0.6); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .icon-close { display: none; }
.chat-fab.open .icon-open { display: none; }
.chat-fab.open .icon-close { display: block; }

.chat-panel {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  z-index: 1450;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100dvh - 9rem));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.chat-header-info { line-height: 1.3; }
.chat-header-name { font-weight: 700; font-size: 0.95rem; }
.chat-header-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-header-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg-bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-error {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chatBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.5rem;
}
.chat-chip {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.chat-chip:hover { border-color: var(--blue); color: var(--blue); }

.chat-input-wrap {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  max-height: 96px;
  line-height: 1.4;
}
.chat-input:focus { outline: none; border-color: var(--border-hover); }
.chat-send {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), transform var(--transition);
}
.chat-send:hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.chat-disclaimer {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem 0.7rem;
}

@media (max-width: 480px) {
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5.75rem;
    height: min(70dvh, calc(100dvh - 8rem));
  }
  .chat-fab { bottom: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .chat-panel, .chat-fab, .chat-typing span { transition: none; animation: none; }
}

/* ================================================================
   ANALITIKA / STATUS PONUDBE (admin)
   ================================================================ */
.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10b981;
}

.quote-status {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.quote-status.sent     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.quote-status.realized { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.quote-status.rejected { background: rgba(239, 68, 68, 0.12);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Lijak konverzije */
.funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.funnel-step { text-align: center; flex: 1; min-width: 90px; }
.funnel-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.funnel-lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.funnel-arrow { font-size: 0.85rem; font-weight: 700; color: var(--cyan); white-space: nowrap; }

/* Stolpčni graf obiskov */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding-top: 0.5rem;
}
.chart-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 4px;
}
.chart-bar {
  width: 100%;
  background: var(--gradient);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.chart-bar-wrap:hover .chart-bar { opacity: 1; }

/* Viri obiska */
.source-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
}
.source-name { flex: 0 0 120px; font-size: 0.88rem; }
.source-track {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.source-bar { display: block; height: 100%; background: var(--gradient); }
.source-count { flex: 0 0 auto; font-size: 0.82rem; color: var(--text-muted); min-width: 72px; text-align: right; }

@media (max-width: 480px) {
  .source-name { flex-basis: 80px; }
  .funnel-arrow { display: none; }
}

/* ================================================================
   CENIK (Pricing)
   ================================================================ */
.pricing {
  padding: 8rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.pricing-card-featured {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-for {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

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

.pricing-monthly {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-highlight {
  margin-top: 0.9rem;
  margin-inline: auto;
  max-width: 640px;
  font-style: italic;
  font-weight: 500;
  color: var(--cyan);
}

.pricing-after {
  margin-top: -1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/0.7rem no-repeat,
    var(--gradient);
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

.pricing-vat {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2.5rem;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.pricing-note a {
  color: var(--blue);
  font-weight: 600;
}

.pricing-note a:hover { text-decoration: underline; }

/* ================================================================
   POGOSTA VPRAŠANJA (FAQ)
   ================================================================ */
.faq {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 26, 0.5), transparent);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color var(--transition);
}

.faq-item[open] { border-color: rgba(59, 130, 246, 0.40); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-secondary);
  padding: 0 0 1.4rem;
  margin: 0;
  line-height: 1.6;
}

/* ================================================================
   FOOTER — razširjena postavitev
   ================================================================ */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 320px; }

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.5;
}

.footer-social { gap: 0.6rem; }

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links-col {
  flex-direction: column;
  gap: 0.7rem;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-company a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-company a:hover { color: var(--text-primary); }

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { max-width: none; }
}

/* ================================================================
   PRAVNE STRANI (Politika zasebnosti ipd.)
   ================================================================ */
.legal {
  padding: calc(var(--nav-height) + 4rem) 0 6rem;
}

.legal-container {
  max-width: 760px;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0.5rem 0 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.legal a {
  color: var(--blue);
}

.legal a:hover { text-decoration: underline; }

.legal-back {
  margin-top: 3rem;
}

/* ================================================================
   Objave — priprava vsebin za družbena omrežja (admin)
   ================================================================ */
.content-hint { color: var(--text-muted); font-size: 0.88rem; margin: -0.25rem 0 1rem; }

.content-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.content-pill {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.content-pill:hover { border-color: var(--border-hover); color: var(--text-primary); }
.content-pill.active { background: var(--gradient); border-color: transparent; color: #fff; }

.content-error {
  margin-top: 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #fca5a5;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
}

/* Rezultat generiranja */
.content-result-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.85rem 0.95rem;
  margin-top: 0.75rem;
}
.content-result-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.content-result-text { font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; color: var(--text-primary); }

.content-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.content-tag {
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* 7-dnevni načrt */
.content-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}
.content-day-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.content-day-name {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.content-day-pillar { font-weight: 600; font-size: 0.86rem; color: var(--text-primary); }
.content-day-idea { font-size: 0.86rem; color: var(--text-secondary); flex: 1; }

/* Knjižnica — seznam */
.content-post {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.95rem;
}
.content-post + .content-post { margin-top: 0.75rem; }
.content-post-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.content-post-pillar { font-weight: 600; font-size: 0.86rem; color: var(--text-primary); }
.content-post-hook { font-weight: 600; margin-bottom: 0.35rem; color: var(--text-primary); }
.content-post-caption { font-size: 0.86rem; white-space: pre-wrap; color: var(--text-secondary); }
.content-post-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.content-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.content-badge.idea { color: #c7cdf0; background: rgba(255, 255, 255, 0.05); }
.content-badge.scheduled { color: #bcd0ff; background: rgba(59, 130, 246, 0.16); border-color: rgba(59, 130, 246, 0.30); }
.content-badge.posted { color: #b6f0c8; background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.30); }

/* Knjižnica — koledar */
.content-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.content-cal-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  min-height: 110px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.content-cal-day.today { border-color: var(--blue); }
.content-cal-date { font-size: 0.72rem; color: var(--text-muted); }
.content-cal-chip {
  font-size: 0.72rem;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  padding: 0.25rem 0.4rem;
  line-height: 1.3;
  cursor: pointer;
}
.content-cal-chip.posted { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.28); }

@media (max-width: 760px) {
  .content-calendar { grid-template-columns: 1fr; }
  .content-cal-day { min-height: auto; }
}

/* Objave — slike (vizuali) */
.content-img-wrap { margin-top: 0.5rem; }
.content-img-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem 0;
}
.content-img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.content-post-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  float: right;
  margin: 0 0 0.5rem 0.75rem;
}
@media (max-width: 560px) {
  .content-post-img { float: none; width: 100%; height: auto; aspect-ratio: 1/1; margin: 0 0 0.6rem; }
}

/* ================================================================
   BLOG — javne kartice (naslovna stran + seznam novic)
   ================================================================ */
.blog-preview { position: relative; }

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(59, 130, 246, 0.40);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image-wrap { position: relative; }

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.blog-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.blog-card-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(6px);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.30);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-meta .dot::before { content: '•'; margin: 0 0.15rem; }

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  transition: gap var(--transition);
}

.blog-card-link:hover { gap: 0.65rem; }

.blog-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

/* ── Seznam novic (blog.html) ──────────────────────────────── */
.blog-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 2rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.blog-filter-pill {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.blog-filter-pill:hover { border-color: var(--border-hover); color: var(--text-primary); }
.blog-filter-pill.active { background: var(--gradient); border-color: transparent; color: #fff; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}

.blog-featured-image-wrap { position: relative; height: 100%; }

.blog-featured-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.blog-featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-featured-body { padding: 2rem 2.5rem 2rem 0; }

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.blog-featured-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.blog-featured-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.blog-load-more { display: flex; justify-content: center; margin-top: 2.5rem; }

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 0 1.5rem 1.75rem; }
  .blog-featured-image-wrap { min-height: 220px; }
}

/* ================================================================
   BLOG — članek (blog-post.html)
   ================================================================ */
.article-wrap {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
}

.article-container { width: min(760px, 100% - 2rem); margin-inline: auto; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color var(--transition), gap var(--transition);
}
.article-back:hover { color: var(--text-primary); gap: 0.6rem; }

.article-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1.25rem;
}

.article-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.article-meta .dot::before { content: '•'; margin: 0 0.15rem; }

.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

/* Tipografija za izrisano vsebino članka */
.article-content {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.85;
}
.article-content > *:first-child { margin-top: 0; }
.article-content h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  line-height: 1.35;
}
.article-content h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
}
.article-content p { margin: 0 0 1.4rem; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--cyan); }
.article-content strong { color: var(--text-primary); }
.article-content ul, .article-content ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 3px solid var(--blue);
  background: rgba(59, 130, 246, 0.06);
  padding: 1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.4rem;
  color: var(--text-primary);
  font-style: italic;
}
.article-content pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
}
.article-content code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.88em;
}
.article-content pre code { background: none; padding: 0; }
.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 0.5rem 0 1.6rem;
}
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.article-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.20);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.article-share-label { font-size: 0.85rem; color: var(--text-muted); margin-right: 0.25rem; }
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-2px); }

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.10));
}
.article-cta h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.article-cta p { color: var(--text-secondary); margin-bottom: 1.25rem; }

.article-related { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.article-related-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.75rem; }

.article-notfound { text-align: center; padding: 5rem 1rem; }
.article-notfound h1 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.article-notfound p { color: var(--text-secondary); margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .article-wrap { padding-top: calc(var(--nav-height) + 1.5rem); }
  .article-cover { max-height: 260px; }
}

/* ================================================================
   ADMIN — Blog seznam & urejevalnik
   ================================================================ */
.admin-blog-list { display: flex; flex-direction: column; gap: 0.75rem; }

.admin-blog-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--transition);
}
.admin-blog-item:hover { border-color: var(--border-hover); }

.admin-blog-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.admin-blog-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.10));
  color: var(--text-muted);
}

.admin-blog-body { flex: 1; min-width: 0; }
.admin-blog-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-blog-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-status.published { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-status.draft     { background: rgba(240, 240, 255, 0.06); color: var(--text-muted); border: 1px solid var(--border); }
.badge-featured {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.blog-modal { width: min(880px, 100%); }

.slug-field-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.slug-field-prefix {
  padding: 0.75rem 0 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.slug-field-wrap input {
  border: none;
  background: none;
  padding: 0.75rem 1rem 0.75rem 0.15rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.char-counter { font-size: 0.75rem; color: var(--text-muted); text-align: right; margin-top: 0.3rem; }
.char-counter.warn { color: #fbbf24; }

/* ── Quill (urejevalnik vsebine) — temna tema ─────────────── */
.quill-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

.ql-toolbar.ql-snow {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid var(--border);
}
.ql-container.ql-snow { border: none; font-family: 'Inter', system-ui, sans-serif; }

.ql-snow .ql-stroke { stroke: var(--text-secondary); }
.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill { fill: var(--text-secondary); }
.ql-snow .ql-picker { color: var(--text-secondary); }
.ql-snow .ql-picker-options {
  background: var(--bg-secondary);
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-card);
}
.ql-snow .ql-tooltip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.ql-snow .ql-tooltip input[type=text] {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke { stroke: var(--blue); }
.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill { fill: var(--blue); }
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active { color: var(--blue); }

.ql-editor {
  min-height: 320px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
}
.ql-editor.ql-blank::before { color: var(--text-muted); font-style: normal; }
.ql-editor blockquote { border-left: 3px solid var(--blue); color: var(--text-secondary); }
.ql-editor pre.ql-syntax { background: rgba(0,0,0,0.35); border-radius: var(--radius); color: var(--text-primary); }
.ql-editor img { max-width: 100%; border-radius: var(--radius); }

@media (max-width: 480px) {
  .admin-blog-item { flex-wrap: wrap; }
  .admin-blog-actions { flex: 1 0 100%; justify-content: flex-end; }
}
