/* ============================================================
   Vukašin Mobile — Main Stylesheet
   Modern, professional phone buy/sell business design
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:        #0f2744;
  --primary-mid:    #1e3a5f;
  --primary-light:  #2563eb;
  --accent:         #10b981;
  --accent-hover:   #059669;
  --danger:         #ef4444;
  --warning:        #f59e0b;

  --bg:             #f8fafc;
  --bg-alt:         #f1f5f9;
  --bg-dark:        #0a1628;
  --surface:        #ffffff;
  --surface-hover:  #f8fafc;
  --surface-dark:   #1e293b;

  --text:           #1e293b;
  --text-light:     #64748b;
  --text-muted:     #94a3b8;

  --border:         #e2e8f0;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow:     0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.06);

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
  --max-width:  1440px;
  --nav-height: 68px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.section    { padding: 5rem 0; }
.section-alt{ background: var(--bg-alt); }
.section-dark { background: var(--primary); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(37,99,235,0.09);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  height: var(--nav-height);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; font-weight: 800; font-size: 1.25rem;
  text-decoration: none;
}
.nav-logo:hover { color: #fff; opacity: 0.92; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  color: rgba(255,255,255,0.78);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.93rem;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.12);
}
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.72rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.93rem;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1;
  font-family: inherit;
}
.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-mid); border-color: var(--primary-mid); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent    { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning   { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 600; }

/* ── Phone Sale Cards ────────────────────────────────────── */
.phone-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.phone-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.phone-card-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.phone-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }

.phone-card-badge {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.22rem 0.6rem; border-radius: var(--radius-full);
}
.badge-available { background: #dcfce7; color: #15803d; }
.badge-sold      { background: #fee2e2; color: #b91c1c; }

.phone-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.phone-card-brand { font-size: 0.74rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.phone-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.phone-card-storage { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.4rem; }
.phone-card-condition { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.phone-card-desc {
  font-size: 0.84rem; color: var(--text-light); flex: 1; margin-bottom: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.phone-card-price { font-size: 1.45rem; font-weight: 800; color: var(--primary); margin-bottom: 0.75rem; }
.phone-card-price span { font-size: 0.88rem; font-weight: 500; color: var(--text-light); }

/* ── Buy Price Cards ─────────────────────────────────────── */
.buy-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
}
.buy-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); transform: translateY(-2px); }
.buy-card-link { display: block; color: inherit; text-decoration: none; }
.buy-card-link:hover { color: inherit; }
.buy-card-visual {
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; overflow: hidden;
}
.buy-card-visual img { width: 100%; height: 100%; object-fit: contain; padding: 0.35rem; }
.buy-card-brand { font-size: 0.72rem; color: var(--primary-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.buy-card-model { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.15rem; }
.buy-card-storage { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.65rem; }
.buy-card-price { font-size: 1.45rem; font-weight: 800; color: var(--accent); }
.buy-card-price small { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.buy-card-open {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.9rem; font-size: 0.82rem; font-weight: 700;
  color: var(--primary-light);
}
.buy-card-open::after { content: "→"; }

/* ── Buy Phone Detail / 360 Viewer ───────────────────────── */
.buy-detail-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 2rem; align-items: center;
}
.buy-viewer-stage {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none;
  box-shadow: var(--shadow-sm);
}
.buy-viewer[data-spin-viewer] .buy-viewer-stage {
  aspect-ratio: 3 / 2;
  min-height: 0;
  background: #fff;
  border-color: #e5e7eb;
}
.buy-viewer-stage img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  user-select: none;
}
[data-spin-viewer] .buy-viewer-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.08);
}
.phone-gallery-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem; margin-top: 1rem;
}
.phone-gallery-thumb {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.45rem;
  cursor: pointer; transition: var(--transition);
  color: var(--text-light); font-family: inherit; font-weight: 700;
}
.phone-gallery-thumb:hover,
.phone-gallery-thumb.active { border-color: var(--primary-light); color: var(--primary); box-shadow: var(--shadow-sm); }
.phone-gallery-thumb img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain; display: block; margin-bottom: 0.35rem;
}
.phone-gallery-thumb span { display: block; font-size: 0.72rem; line-height: 1.2; }
.image-folder-note { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.8rem; text-align: center; }
.buy-viewer-controls {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 0.75rem; align-items: center; margin-top: 1rem;
}
.buy-viewer-controls input[type="range"] { width: 100%; accent-color: var(--accent); }
.viewer-step {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--primary); font-size: 1.8rem; line-height: 1;
  cursor: pointer; transition: var(--transition);
}
.viewer-step:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-spin-viewer] .buy-viewer-stage { cursor: grab; }
[data-spin-viewer] .buy-viewer-stage:active { cursor: grabbing; }
.buy-detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.buy-detail-panel h2 { margin-bottom: 0.45rem; }
.buy-detail-spec { color: var(--text-light); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #080f1e 0%, #0f2744 45%, #173360 75%, #0a2255 100%);
  color: #fff; padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; left: -5%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  color: #6ee7b7; font-size: 0.83rem; font-weight: 600;
  padding: 0.33rem 0.85rem; border-radius: var(--radius-full); margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 span { color: #60a5fa; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.78); margin-bottom: 2rem; max-width: 550px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-num { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 0.2rem; }
.hero-stat-label { font-size: 0.77rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Benefits ────────────────────────────────────────────── */
.benefit-card { text-align: center; padding: 2rem 1.5rem; }
.benefit-icon {
  width: 62px; height: 62px; margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem; color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,0.22);
}
.benefit-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.benefit-card p { color: var(--text-light); font-size: 0.93rem; line-height: 1.6; }

/* ── Steps ───────────────────────────────────────────────── */
.step-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.step-content h4 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.step-content p { color: var(--text-light); font-size: 0.88rem; line-height: 1.5; }

/* ── Why Us ──────────────────────────────────────────────── */
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.why-card-icon { font-size: 2rem; margin-bottom: 0.9rem; }
.why-card h4 { color: #fff; margin-bottom: 0.45rem; }
.why-card p { color: rgba(255,255,255,0.68); font-size: 0.88rem; line-height: 1.6; }
.section-dark h2 { color: #fff; }
.section-dark .section-label { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: #fff; padding: 4rem 0; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 0.9rem; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2rem; }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff; padding: 3.5rem 0;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.73); font-size: 1.05rem; max-width: 600px; }

/* ── Flash messages ──────────────────────────────────────── */
.flash-messages {
  position: fixed; top: calc(var(--nav-height) + 12px);
  right: 1rem; z-index: 999;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 380px;
}
.flash {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.88rem;
  box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease;
}
.flash-success { background: #dcfce7; color: #15803d; border-left: 4px solid #22c55e; }
.flash-error   { background: #fee2e2; color: #b91c1c; border-left: 4px solid #ef4444; }
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 2.5rem;
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 0.45rem; }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.93rem; font-family: inherit; color: var(--text);
  background: var(--surface); transition: var(--transition); appearance: none;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.28rem; }
.form-note {
  background: #eff6ff; border-left: 4px solid var(--primary-light);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.87rem; color: var(--text-light); margin: 1.5rem 0;
}
.form-section-title { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 1.75rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); margin-bottom: 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 150px; flex: 1; }
.filter-label { font-size: 0.77rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Table ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th { background: var(--surface-hover); padding: 0.9rem 1.1rem; text-align: left; font-weight: 600; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-hover); }
.table .actions { display: flex; gap: 0.4rem; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 0.22rem 0.6rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-layout { min-height: 100vh; background: #f1f5f9; }
.admin-header { background: var(--primary); color: #fff; padding: 1.5rem 0; }
.admin-header h1 { color: #fff; font-size: 1.45rem; }

.admin-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.admin-nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.admin-nav-link { padding: 0.48rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--text-light); transition: var(--transition); text-decoration: none; }
.admin-nav-link:hover, .admin-nav-link.active { background: var(--primary); color: #fff; }

.admin-content { padding: 2rem 0; }

.stat-card { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-align: center; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-num { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.88rem; color: var(--text-light); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 2000;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; animation: modalIn 0.25s ease; }
@keyframes modalIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--text-light); padding: 0.2rem; line-height: 1; transition: var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-info-card { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-item-text strong { display: block; color: rgba(255,255,255,0.6); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-item-text span, .contact-item-text a { color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.contact-item-text a:hover { color: #fff; }
.map-placeholder { background: var(--surface-hover); border-radius: var(--radius); border: 1px solid var(--border); height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-top: 1.5rem; gap: 0.5rem; }

/* ── Admin login page ────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-dark), var(--primary)); padding: 2rem; }
.login-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 2.5rem; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon { width: 56px; height: 56px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 0.75rem; }
.login-logo h2 { font-size: 1.3rem; color: var(--text); }
.login-logo p { font-size: 0.85rem; color: var(--text-muted); }

/* ── AI Chat Widget ──────────────────────────────────────── */
.chat-widget-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; color: #fff;
  box-shadow: 0 4px 22px rgba(37,99,235,0.45);
  transition: var(--transition);
}
.chat-widget-btn:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(37,99,235,0.55); }
.chat-badge {
  position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; background: var(--accent);
  border-radius: var(--radius-full); font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface); color: #fff;
}

.chat-box {
  position: fixed; bottom: 5.25rem; right: 1.5rem; z-index: 500;
  width: 360px; max-height: 530px;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: scale(0.94) translateY(12px); opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}
.chat-box.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-box-header {
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.chat-name { color: #fff; font-weight: 700; font-size: 0.88rem; }
.chat-status { color: rgba(255,255,255,0.65); font-size: 0.73rem; display: flex; align-items: center; gap: 0.3rem; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; display: inline-block; }
.chat-close-btn { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.65); font-size: 1.2rem; padding: 0.2rem; line-height: 1; transition: var(--transition); margin-left: auto; }
.chat-close-btn:hover { color: #fff; }

.chat-messages { flex: 1; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.65rem; max-height: 340px; scroll-behavior: smooth; }
.chat-msg { max-width: 86%; animation: fadeMsg 0.2s ease; }
.chat-msg-user { align-self: flex-end; }
.chat-msg-bot  { align-self: flex-start; }
@keyframes fadeMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.chat-bubble { padding: 0.62rem 0.95rem; border-radius: 16px; font-size: 0.855rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-msg-user .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-bot  .chat-bubble { background: #f1f5f9; color: var(--text); border-bottom-left-radius: 4px; }
.chat-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.22rem; padding: 0 0.22rem; }
.chat-msg-user .chat-time { text-align: right; }

.chat-typing { align-self: flex-start; }
.chat-typing .chat-bubble { background: #f1f5f9; display: flex; gap: 4px; align-items: center; padding: 0.7rem 1rem; }
.typing-dot { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typingBounce 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

.chat-input-area { padding: 0.7rem; border-top: 1px solid var(--border); display: flex; gap: 0.45rem; align-items: center; }
.chat-input { flex: 1; padding: 0.58rem 0.95rem; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 0.855rem; font-family: inherit; outline: none; transition: var(--transition); background: var(--bg); }
.chat-input:focus { border-color: var(--primary-light); }
.chat-send { width: 37px; height: 37px; background: var(--primary); border: none; border-radius: var(--radius-full); cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); flex-shrink: 0; }
.chat-send:hover { background: var(--primary-light); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.65); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.9rem; }
.footer-brand-icon { width: 30px; height: 30px; background: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.48); margin-bottom: 1.1rem; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.83rem; }

/* ── Inquiry detail ──────────────────────────────────────── */
.inquiry-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.inquiry-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.inquiry-detail dt { font-weight: 600; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.inquiry-detail dd { font-size: 0.9rem; color: var(--text); }

/* ── Procena / Kontakt sidebar layout ───────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* ── How-it-works 2-kolona layout (index) ───────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .how-grid > div:last-child { display: none; } /* sakrij dekorativni blok na mobilnom */
}

/* ── Steps grid (otkup stranica) ────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-col .step-content { text-align: center; }

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-col { flex-direction: row; text-align: left; }
  .step-col .step-content { text-align: left; }
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-success { color: var(--accent) !important; }
.text-danger  { color: var(--danger) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-light   { color: var(--text-light) !important; }
.fw-bold      { font-weight: 700; }
.divider      { height: 1px; background: var(--border); margin: 1.5rem 0; }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 0.9rem; }
.empty-state h3 { color: var(--text-light); margin-bottom: 0.5rem; }

/* ── Responsive ──────────────────────────────────────────── */

/* 1200px – grid-4 ide na 3 kolone */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3,1fr); }
}

/* 1024px – tablet landscape */
@media (max-width: 1024px) {
  .grid-4      { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  .grid-3      { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section     { padding: 4rem 0; }
}

/* 768px – tablet portrait / veliki mobilni */
@media (max-width: 768px) {
  /* Navbar ostaje sticky, dropdown postaje fixed */
  .navbar { position: sticky; overflow: visible; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.8rem 1rem; font-size: 0.97rem; }
  .nav-cta  { margin-top: 0.35rem; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }

  /* Gridovi */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .buy-detail-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .buy-viewer-stage { border-radius: var(--radius); }
  .phone-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .buy-detail-panel { padding: 1.4rem; }

  /* Forme */
  .form-row  { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }

  /* Hero */
  .hero         { padding: 3rem 0 2.5rem; }
  .hero-content { max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .hero-stats   { gap: 1.75rem; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Sekcije */
  .section        { padding: 2.75rem 0; }
  .section-header { margin-bottom: 2rem; }
  .page-header    { padding: 2.5rem 0; }
  .cta-section    { padding: 2.75rem 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer      { padding: 2.75rem 0 1.75rem; }

  /* Chat widget */
  .chat-widget-btn { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  .chat-box {
    width: calc(100vw - 1.5rem);
    right: 0.75rem; left: 0.75rem;
    bottom: 4.75rem;
    max-height: min(520px, calc(100dvh - 7rem));
  }

  /* Flash poruke */
  .flash-messages { right: 0.75rem; left: 0.75rem; max-width: 100%; }

  /* Tabele */
  .table td, .table th { padding: 0.7rem 0.85rem; font-size: 0.83rem; }
  .table .actions { flex-wrap: wrap; gap: 0.3rem; }

  /* Filteri */
  .filter-bar   { flex-direction: column; gap: 0.75rem; padding: 1rem; }
  .filter-group { width: 100%; min-width: 0; flex: none; }

  /* Inquiry detalji */
  .inquiry-detail dl { grid-template-columns: 1fr; }

  /* Admin header */
  .admin-header .flex-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .admin-header .flex-between > div:last-child { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .admin-nav-link { font-size: 0.82rem; padding: 0.42rem 0.75rem; }

  /* Stat kartice 2 kolone */
  .admin-content .grid-3 { grid-template-columns: repeat(2,1fr) !important; }

  /* Kontakt 2-kolona sekcija */
  .contact-info-card { padding: 1.75rem; }
}

/* 480px–768px: kartice telefona 2 po redu */
@media (min-width: 480px) and (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; gap: 1rem; }
}

/* 480px – mali mobilni */
@media (max-width: 480px) {
  .container  { padding: 0 0.875rem; }
  .form-card  { padding: 1.1rem; }
  .section    { padding: 2.25rem 0; }
  .section-header { margin-bottom: 1.5rem; }

  /* Hero */
  .hero       { padding: 2.5rem 0 2rem; }
  .hero h1    { font-size: 1.6rem; }
  .hero p     { font-size: 0.95rem; }
  .hero-tag   { font-size: 0.77rem; }
  .hero-stat-num   { font-size: 1.35rem; }
  .hero-stat-label { font-size: 0.69rem; }
  .hero-stats { gap: 1.25rem; }

  /* Dugmad */
  .btn-lg { padding: 0.8rem 1.4rem; font-size: 0.97rem; }
  .btn    { min-height: 44px; } /* touch target */
  .btn-sm { min-height: 36px; }

  /* Kartice */
  .buy-card       { padding: 1rem; }
  .buy-card-price { font-size: 1.3rem; }
  .phone-card-price { font-size: 1.3rem; }
  .benefit-card   { padding: 1.5rem 0.875rem; }

  /* Modal */
  .modal         { border-radius: var(--radius); max-height: 95dvh; }
  .modal-header,
  .modal-body,
  .modal-footer  { padding: 1rem; }

  /* Chat */
  .chat-widget-btn { bottom: 0.75rem; right: 0.75rem; width: 50px; height: 50px; font-size: 1.25rem; }
  .chat-box { width: calc(100vw - 1rem); right: 0.5rem; left: 0.5rem; bottom: 4.5rem; }
  .chat-messages  { max-height: 260px; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer        { padding: 2.25rem 0 1.5rem; }

  /* Admin */
  .stat-num { font-size: 2.2rem; }
  .admin-content .grid-3 { grid-template-columns: 1fr !important; }
  .page-header h1 { font-size: 1.55rem; }
  .page-header    { padding: 2rem 0; }
}
