/* ─────────────────────────────────────────────
   Roomvibes Dashboard – dashboard.css
   ───────────────────────────────────────────── */

:root {
  --rvd-sidebar-bg:   #1a1a1a;
  --rvd-sidebar-w:    220px;
  --rvd-accent:       #c9a84c;
  --rvd-accent-light: #c9a84c22;
  --rvd-bg:           #f4f4f4;
  --rvd-card-bg:      #ffffff;
  --rvd-text:         #1a1a1a;
  --rvd-text-muted:   #6b7280;
  --rvd-border:       #e5e7eb;
  --rvd-radius:       12px;
  --rvd-radius-sm:    8px;
  --rvd-shadow:       0 1px 4px rgba(0,0,0,.08);
  --rvd-shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --rvd-green:        #16a34a;
  --rvd-orange:       #ea7c1e;
  --rvd-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rvd-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset inside wrapper ──────────────────── */
.rvd-dashboard *,
.rvd-dashboard *::before,
.rvd-dashboard *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.rvd-dashboard a { text-decoration: none; }
.rvd-dashboard img { max-width: 100%; display: block; }

/* ── Dashboard shell ───────────────────────── */
.rvd-dashboard {
  display: flex;
  height: 90vh;
  min-height: 600px;
  font-family: var(--rvd-font);
  color: var(--rvd-text);
  border-radius: var(--rvd-radius);
  overflow: hidden;
  box-shadow: var(--rvd-shadow-md);
  background: var(--rvd-bg);
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.rvd-sidebar {
  width: var(--rvd-sidebar-w);
  min-width: var(--rvd-sidebar-w);
  background: var(--rvd-sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  overflow-y: auto;
}

.rvd-sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.rvd-sidebar-logo img { height: 36px; width: auto; }
.rvd-logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  line-height: 1;
}
.rvd-logo-text span {
  display: block;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}

/* Nav */
.rvd-nav {
  flex: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rvd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--rvd-radius-sm);
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.rvd-nav-item svg { flex-shrink: 0; }
.rvd-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.rvd-nav-item.active {
  background: var(--rvd-accent-light);
  color: var(--rvd-accent);
}

/* Sidebar footer */
.rvd-sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 16px;
}
.rvd-contact-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.rvd-contact-box svg { color: rgba(255,255,255,.4); flex-shrink: 0; margin-top: 2px; }
.rvd-contact-box p { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.4; margin-bottom: 6px; }
.rvd-contact-box a {
  display: inline-block;
  background: var(--rvd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════
   MAIN AREA
══════════════════════════════════════════════ */
.rvd-main {
  flex: 1;
  overflow-y: auto;
  background: var(--rvd-bg);
  display: flex;
  flex-direction: column;
}

/* Top bar */
.rvd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 32px 20px;
  background: #fff;
  border-bottom: 1px solid var(--rvd-border);
  flex-shrink: 0;
}
.rvd-greeting { font-size: 22px; font-weight: 700; line-height: 1.2; }
.rvd-greeting-sub { font-size: 13px; color: var(--rvd-text-muted); margin-top: 4px; }
.rvd-topbar-right { display: flex; align-items: center; gap: 12px; }

/* Avatar + chip */
.rvd-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rvd-bg);
  border: 1px solid var(--rvd-border);
  border-radius: 40px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
  font-weight: 500;
}
.rvd-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.rvd-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rvd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvd-logout-btn {
  color: var(--rvd-text-muted);
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: color .15s;
}
.rvd-logout-btn:hover { color: #e11d48; }

/* ── Sections ──────────────────────────────── */
.rvd-section {
  display: none;
  padding: 28px 32px 40px;
  flex: 1;
}
.rvd-section.active { display: block; }

.rvd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.rvd-section-header h2 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rvd-link-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--rvd-accent);
}

/* ── Project Cards Grid ────────────────────── */
.rvd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.rvd-cards-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.rvd-project-card {
  background: var(--rvd-card-bg);
  border-radius: var(--rvd-radius);
  overflow: hidden;
  box-shadow: var(--rvd-shadow);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  position: relative;
}
.rvd-project-card:hover {
  box-shadow: var(--rvd-shadow-md);
  transform: translateY(-2px);
}

/* Badge promocji "odśwież ofertę" */
.rvd-promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(234,88,12,.35);
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  animation: rvdPromoPulse 2.4s ease-in-out infinite;
}
.rvd-promo-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(234,88,12,.45);
}
@keyframes rvdPromoPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(234,88,12,.35); }
  50%      { box-shadow: 0 3px 16px rgba(234,88,12,.55); }
}

.rvd-card-thumb {
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}
.rvd-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rvd-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}
.rvd-card-body { padding: 14px; }
.rvd-card-body h3 { font-size: 14px; font-weight: 700; margin: 6px 0 4px; line-height: 1.3; }
.rvd-card-date { font-size: 12px; color: var(--rvd-text-muted); }
.rvd-preparing { font-size: 12px; color: var(--rvd-text-muted); font-style: italic; margin-top: 6px; }
.rvd-card-counts {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.rvd-card-counts span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--rvd-text-muted);
}

/* ── Status badges ─────────────────────────── */
.rvd-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.rvd-status-done {
  background: #dcfce7;
  color: var(--rvd-green);
}
.rvd-status-in_progress {
  background: #fff7ed;
  color: var(--rvd-orange);
}

/* ── Quick Access ──────────────────────────── */
.rvd-quick-access {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.rvd-quick-card {
  background: var(--rvd-card-bg);
  border-radius: var(--rvd-radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--rvd-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.rvd-quick-card:hover { box-shadow: var(--rvd-shadow-md); transform: translateY(-2px); }
.rvd-quick-card svg { width: 28px; height: 28px; }
.rvd-quick-card strong { font-size: 13px; font-weight: 700; display: block; }
.rvd-quick-card span { font-size: 11px; color: var(--rvd-text-muted); }

.rvd-quick-photos_web svg { color: #7c3aed; }
.rvd-quick-photos_hd  svg { color: #ea580c; }
.rvd-quick-video      svg { color: #16a34a; }
.rvd-quick-plan       svg { color: #0284c7; }
.rvd-quick-extra      svg { color: #e11d48; }

/* ── CTA Banner ────────────────────────────── */
.rvd-cta-banner {
  background: linear-gradient(120deg, #1a1a1a 60%, #2d2d2d);
  border-radius: var(--rvd-radius);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.rvd-cta-text h3 { color: #fff; font-size: 18px; font-weight: 700; }
.rvd-cta-text p  { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 4px; }

/* ── Buttons ───────────────────────────────── */
.rvd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}
.rvd-btn:hover { opacity: .88; transform: translateY(-1px); }
.rvd-btn-primary {
  background: var(--rvd-accent);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
}
.rvd-btn-gold {
  background: var(--rvd-accent);
  color: #fff;
  white-space: nowrap;
}

/* ── Files section ─────────────────────────── */
.rvd-files-block {
  background: var(--rvd-card-bg);
  border-radius: var(--rvd-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--rvd-shadow);
}
.rvd-files-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rvd-border);
}
.rvd-files-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.rvd-files-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.rvd-files-list { display: flex; flex-direction: column; gap: 2px; }

.rvd-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: var(--rvd-radius-sm);
  transition: background .12s;
}
.rvd-file-item:hover { background: var(--rvd-bg); }

.rvd-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rvd-fi-photos_web { background: #ede9fe; color: #7c3aed; }
.rvd-fi-photos_hd  { background: #ffedd5; color: #ea580c; }
.rvd-fi-video      { background: #dcfce7; color: #16a34a; }
.rvd-fi-plan_2d,
.rvd-fi-plan_3d    { background: #e0f2fe; color: #0284c7; }
.rvd-fi-extra      { background: #ffe4e6; color: #e11d48; }

.rvd-file-info { flex: 1; }
.rvd-file-info strong { font-size: 14px; font-weight: 600; display: block; }
.rvd-file-info span   { font-size: 12px; color: var(--rvd-text-muted); }

.rvd-file-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.rvd-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--rvd-border);
  color: var(--rvd-text);
  background: #fff;
  transition: border-color .15s, background .15s;
}
.rvd-btn-download:hover {
  border-color: var(--rvd-accent);
  background: var(--rvd-accent-light);
  color: var(--rvd-accent);
}
.rvd-btn-open { border-color: #0284c7; color: #0284c7; }
.rvd-btn-open:hover { background: #e0f2fe; border-color: #0284c7; color: #0284c7; }

/* Caretaker */
.rvd-caretaker {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rvd-border);
}
.rvd-caretaker > strong { font-size: 11px; text-transform: uppercase; color: var(--rvd-text-muted); letter-spacing: .06em; }
.rvd-caretaker-inner {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: flex-start;
}
.rvd-caretaker-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rvd-caretaker-info { display: flex; flex-direction: column; gap: 2px; }
.rvd-caretaker-info strong { font-size: 14px; font-weight: 700; }
.rvd-ct-role { font-size: 12px; color: var(--rvd-text-muted); }
.rvd-caretaker-info a { font-size: 13px; color: var(--rvd-text); }

.rvd-download-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--rvd-text-muted);
  margin-top: 14px;
}

/* ── Empty state ───────────────────────────── */
.rvd-empty {
  text-align: center;
  padding: 48px;
  color: var(--rvd-text-muted);
}
.rvd-empty svg { margin: 0 auto 12px; opacity: .3; width: 40px; height: 40px; }

/* ══════════════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════════════ */
.rvd-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 40px 16px;
  font-family: var(--rvd-font);
}
.rvd-login-card {
  background: #fff;
  border-radius: var(--rvd-radius);
  box-shadow: var(--rvd-shadow-md);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
}
.rvd-login-logo { margin-bottom: 28px; }
.rvd-login-logo img { height: 40px; }
.rvd-login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.rvd-login-sub { font-size: 14px; color: var(--rvd-text-muted); margin-bottom: 24px; }
.rvd-form-group { margin-bottom: 16px; }
.rvd-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rvd-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rvd-font);
  outline: none;
  transition: border-color .15s;
}
.rvd-form-group input:focus { border-color: var(--rvd-accent); }
.rvd-login-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.rvd-login-msg.error   { background: #ffe4e6; color: #be123c; }
.rvd-login-msg.success { background: #dcfce7; color: #15803d; }
.rvd-login-help {
  text-align: center;
  font-size: 13px;
  color: var(--rvd-text-muted);
  margin-top: 14px;
}
.rvd-login-help a { color: var(--rvd-accent); font-weight: 600; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   HAMBURGER + MOBILE SIDEBAR
══════════════════════════════════════════════ */

/* Przycisk hamburger — widoczny tylko na mobile */
.rvd-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #ffffff;
  flex-shrink: 0;
  transition: background .15s;
}
.rvd-hamburger:hover { background: #333; }
.rvd-hamburger svg { width: 20px; height: 20px; stroke: #ffffff; }

/* Overlay za sidebarem */
.rvd-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.rvd-sidebar-overlay.active { display: block; }

@media (max-width: 900px) {
  /* Dashboard — pełna wysokość, bez flex kolumnowego */
  .rvd-dashboard {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  /* Sidebar — chowany po lewej, wysuwa się jako drawer */
  .rvd-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    width: 260px;
    min-width: 0;
    flex-direction: column;
    padding: 24px 0;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }
  .rvd-sidebar.open {
    transform: translateX(0);
  }

  /* Main — zajmuje całą szerokość */
  .rvd-main {
    width: 100%;
    overflow-y: auto;
    height: 100%;
  }

  /* Topbar na mobile — logo + hamburger po lewej */
  .rvd-topbar {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
  }
  .rvd-topbar-left { flex: 1; min-width: 0; }
  .rvd-greeting { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rvd-greeting-sub { display: none; }

  /* Hamburger widoczny */
  .rvd-hamburger { display: flex; }

  /* User chip — ukryj tekst, zostaw tylko avatar */
  .rvd-user-chip span { display: none; }
  .rvd-user-chip { padding: 4px; }

  /* Sekcje */
  .rvd-section { padding: 16px 14px 32px; }
  .rvd-cards-grid { grid-template-columns: 1fr; }
  .rvd-quick-access { grid-template-columns: repeat(2, 1fr); }
  .rvd-cta-banner { flex-direction: column; padding: 20px 16px; }
  .rvd-file-item { flex-wrap: wrap; }

  /* Alert baner */
  .rvd-alert { font-size: 13px; }

  /* Boczna kolumna dashboardu — pod główną treścią */
  .rvd-dashboard-cols { flex-direction: column; }
  .rvd-dashboard-side { width: 100%; min-width: 0; position: static; max-height: none; }
}

@media (max-width: 480px) {
  .rvd-quick-access { grid-template-columns: repeat(2, 1fr); }
  .rvd-photo-grid { grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap:5px; }
  .rvd-invoice-row { flex-wrap: wrap; gap: 8px; }
  .rvd-settings-grid { grid-template-columns: 1fr; }
  .rvd-help-grid { grid-template-columns: 1fr; }
  .rvd-service-grid { grid-template-columns: 1fr; }
  .rvd-modal { max-height: 95vh; }
}

.rvd-fi-tour { background: #f0fdf4; color: #15803d; }

/* ══════════════════════════════════════════════
   SIATKA ZDJĘĆ
══════════════════════════════════════════════ */
.rvd-photo-section {
  margin-bottom: 4px;
}

.rvd-photo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: var(--rvd-radius-sm);
  margin-bottom: 12px;
}
.rvd-photo-header .rvd-file-info { flex: 1; }

.rvd-btn-zip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--rvd-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  flex-shrink: 0;
}
.rvd-btn-zip:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.rvd-btn-zip svg { width: 15px; height: 15px; }

/* Siatka miniaturek */
.rvd-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.rvd-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #f0f0f0;
  cursor: pointer;
}
.rvd-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.rvd-photo-thumb:hover img { transform: scale(1.04); }

.rvd-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s;
  color: #fff;
}
.rvd-photo-overlay svg { width: 22px; height: 22px; }
.rvd-photo-thumb:hover .rvd-photo-overlay { opacity: 1; }

@media (max-width: 600px) {
  .rvd-photo-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
  .rvd-photo-header { flex-wrap: wrap; }
  .rvd-btn-zip { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════
   MODAL ZAMÓWIENIA
══════════════════════════════════════════════ */
.rvd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.rvd-modal {
  background: #fff;
  border-radius: var(--rvd-radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: rvdModalIn .18s ease;
}
@keyframes rvdModalIn {
  from { opacity:0; transform:translateY(12px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.rvd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rvd-border);
}
.rvd-modal-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.rvd-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--rvd-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .12s, background .12s;
}
.rvd-modal-close:hover { background: var(--rvd-bg); color: var(--rvd-text); }

.rvd-modal-body { padding: 20px 24px 24px; }

/* Siatka usług */
.rvd-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.rvd-service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.rvd-service-chip input {
  /* Ukryte wizualnie, ale nie przez display:none — żeby 'change' event działał */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.rvd-service-chip:hover { border-color: var(--rvd-accent); background: var(--rvd-accent-light); }
.rvd-service-chip.selected {
  border-color: var(--rvd-accent);
  background: var(--rvd-accent-light);
  color: #92700a;
}
.rvd-service-chip.selected::before {
  content: '✓';
  font-weight: 700;
  color: var(--rvd-accent);
  flex-shrink: 0;
}

/* Pola formularza modalu */
.rvd-modal-body .rvd-form-group { margin-bottom: 16px; }
.rvd-modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--rvd-text);
}
.rvd-req { color: #e11d48; }
.rvd-modal-body input[type="text"],
.rvd-modal-body input[type="date"],
.rvd-modal-body textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rvd-font);
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .15s;
}
.rvd-modal-body input:focus,
.rvd-modal-body textarea:focus { border-color: var(--rvd-accent); }

/* Result message in modal */
#rvd-order-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
#rvd-order-result.success { background: #dcfce7; color: #15803d; }
#rvd-order-result.error   { background: #ffe4e6; color: #be123c; }

/* Nav order link accent */
.rvd-nav-order { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.rvd-nav-order:hover { color: var(--rvd-accent) !important; }

@media (max-width: 500px) {
  .rvd-service-grid { grid-template-columns: 1fr; }
  .rvd-modal-body { padding: 16px; }
}

/* ══════════════════════════════════════════════
   AUTH SCREEN (logowanie / rejestracja / reset)
══════════════════════════════════════════════ */
.rvd-auth-screen {
  display: flex;
  min-height: 100vh;
  font-family: var(--rvd-font);
}

/* Lewa kolumna – ciemna */
.rvd-auth-left {
  width: 45%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.rvd-auth-left::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 70%);
  pointer-events: none;
}
.rvd-auth-left::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 70%);
  pointer-events: none;
}
.rvd-auth-left-inner { position: relative; z-index: 1; width: 100%; max-width: 360px; }

.rvd-auth-logo { margin-bottom: 48px; }
.rvd-auth-logo img { height: 40px; width: auto; }
.rvd-auth-logo .rvd-logo-text { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: #fff; }
.rvd-auth-logo .rvd-logo-text span { display: block; font-size: 9px; font-weight: 400; letter-spacing: .22em; color: rgba(255,255,255,.4); margin-top: 3px; }

.rvd-auth-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.rvd-auth-headline em {
  font-style: normal;
  color: var(--rvd-accent);
}
.rvd-auth-desc {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0 0 36px;
}
.rvd-auth-features { display: flex; flex-direction: column; gap: 12px; }
.rvd-auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.rvd-auth-feature svg { color: var(--rvd-accent); flex-shrink: 0; }

/* Prawa kolumna – jasna */
.rvd-auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #f9f9f9;
}

/* Panele (login / register / forgot / reset) */
.rvd-auth-panel {
  display: none;
  width: 100%;
  max-width: 400px;
}
.rvd-auth-panel.active { display: block; }

.rvd-auth-panel h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.rvd-auth-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 28px;
}
.rvd-auth-sub a {
  color: var(--rvd-accent);
  font-weight: 600;
  text-decoration: none;
}
.rvd-auth-sub a:hover { text-decoration: underline; }

.rvd-auth-field { margin-bottom: 18px; }
.rvd-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.rvd-hint { font-weight: 400; color: #9ca3af; font-size: 12px; }
.rvd-auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--rvd-font);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  color: #1a1a1a;
}
.rvd-auth-field input:focus {
  border-color: var(--rvd-accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}

/* Password wrapper */
.rvd-pass-wrap { position: relative; }
.rvd-pass-wrap input { padding-right: 44px; }
.rvd-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  opacity: .5;
  transition: opacity .15s;
}
.rvd-toggle-pass:hover { opacity: 1; }

.rvd-auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -10px 0 18px;
}
.rvd-forgot-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}
.rvd-forgot-link:hover { color: var(--rvd-accent); }

/* Submit button */
.rvd-auth-btn {
  width: 100%;
  padding: 13px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--rvd-font);
  transition: background .15s, transform .1s;
  margin-top: 4px;
}
.rvd-auth-btn:hover { background: #2d2d2d; transform: translateY(-1px); }
.rvd-auth-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }

/* Messages */
.rvd-auth-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.rvd-auth-msg.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rvd-auth-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.rvd-auth-back { text-align: center; margin-top: 16px; }
.rvd-auth-back a { font-size: 13px; color: #6b7280; text-decoration: none; }
.rvd-auth-back a:hover { color: var(--rvd-accent); }
.rvd-req { color: #e11d48; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .rvd-auth-screen { flex-direction: column; min-height: auto; }
  .rvd-auth-left {
    width: 100%;
    padding: 40px 24px;
  }
  .rvd-auth-headline { font-size: 28px; }
  .rvd-auth-features { display: none; }
  .rvd-auth-right { padding: 32px 24px; }
  .rvd-auth-panel { max-width: 100%; }
}

/* ══════════════════════════════════════════════
   BANER ALERTU
══════════════════════════════════════════════ */
.rvd-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid;
  animation: rvdAlertIn .2s ease;
  flex-shrink: 0;
}
@keyframes rvdAlertIn {
  from { opacity:0; transform: translateY(-6px); }
  to   { opacity:1; transform: translateY(0); }
}
.rvd-alert-icon { flex-shrink: 0; margin-top: 1px; }
.rvd-alert-text { flex: 1; }
.rvd-alert-text a { font-weight: 600; text-decoration: underline; }
.rvd-alert-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: .5;
  padding: 0 0 0 8px;
  flex-shrink: 0;
  line-height: 1;
  align-self: center;
  transition: opacity .12s;
}
.rvd-alert-close:hover { opacity: 1; }

/* Typy */
.rvd-alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.rvd-alert-info .rvd-alert-text a { color: #1d4ed8; }

.rvd-alert-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.rvd-alert-warning .rvd-alert-text a { color: #92400e; }

.rvd-alert-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}
.rvd-alert-success .rvd-alert-text a { color: #15803d; }

.rvd-alert-holiday {
  background: #fdf4ff;
  border-color: #a855f7;
  color: #7e22ce;
}
.rvd-alert-holiday .rvd-alert-text a { color: #7e22ce; }

/* ══════════════════════════════════════════════
   DASHBOARD TWO-COLUMN LAYOUT
══════════════════════════════════════════════ */
.rvd-dashboard-cols {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.rvd-dashboard-main { flex: 1; min-width: 0; }
.rvd-dashboard-side {
  width: 300px;
  min-width: 300px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Right sidebar card */
.rvd-side-card {
  background: #fff;
  border-radius: var(--rvd-radius);
  overflow: hidden;
  box-shadow: var(--rvd-shadow);
}
.rvd-side-card-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #1a1a1a;
}
.rvd-side-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.rvd-side-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.rvd-side-card-overlay h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

/* Side file rows */
.rvd-side-files { padding: 8px 0; }
.rvd-side-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background .12s;
}
.rvd-side-file-row:hover { background: var(--rvd-bg); }
.rvd-side-file-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rvd-side-file-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.rvd-side-file-info span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvd-side-file-info small { font-size: 11px; color: var(--rvd-text-muted); }
.rvd-side-dl {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--rvd-accent);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.rvd-side-dl:hover { opacity: .75; }
.rvd-side-dl svg { width: 13px; height: 13px; }

/* Hint block */
.rvd-side-hint {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--rvd-bg);
  border-top: 1px solid var(--rvd-border);
  font-size: 12px; color: var(--rvd-text-muted);
}
.rvd-side-hint svg { flex-shrink:0; margin-top:1px; opacity:.5; }
.rvd-side-hint strong { display:block; color: var(--rvd-text); font-size:12px; margin-bottom:2px; }
.rvd-side-hint p { margin:0; line-height:1.4; }

/* Opiekun w prawej kolumnie */
.rvd-side-caretaker { padding: 16px; }
.rvd-side-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rvd-text-muted); margin: 0 0 10px; }
.rvd-side-ct-inner { display: flex; gap: 12px; align-items: flex-start; }
.rvd-side-ct-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rvd-side-ct-initials {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rvd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.rvd-side-ct-inner > div { display: flex; flex-direction: column; gap: 2px; }
.rvd-side-ct-inner strong { font-size: 14px; font-weight: 700; }
.rvd-ct-contact {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--rvd-text-muted); text-decoration: none;
}
.rvd-ct-contact:hover { color: var(--rvd-accent); }
.rvd-ct-contact svg { width:13px; height:13px; flex-shrink:0; }

/* ══════════════════════════════════════════════
   FAKTURY
══════════════════════════════════════════════ */
.rvd-invoices-list { display: flex; flex-direction: column; gap: 8px; }
.rvd-invoice-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--rvd-radius-sm);
  padding: 14px 16px;
  box-shadow: var(--rvd-shadow);
}
.rvd-inv-icon { color: #1d4ed8; flex-shrink: 0; }
.rvd-inv-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rvd-inv-info strong { font-size: 14px; font-weight: 700; }
.rvd-inv-info span { font-size: 13px; color: var(--rvd-text-muted); }
.rvd-inv-info small { font-size: 11px; color: #9ca3af; }
.rvd-inv-amount { font-size: 15px; font-weight: 700; white-space: nowrap; }
.rvd-inv-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.rvd-inv-issued   { background:#eff6ff; color:#1d4ed8; }
.rvd-inv-paid     { background:#dcfce7; color:#15803d; }
.rvd-inv-overdue  { background:#fee2e2; color:#dc2626; }
.rvd-inv-cancelled{ background:#f3f4f6; color:#6b7280; }

/* ══════════════════════════════════════════════
   USTAWIENIA KONTA
══════════════════════════════════════════════ */
.rvd-settings-card {
  background: #fff; border-radius: var(--rvd-radius);
  padding: 28px; box-shadow: var(--rvd-shadow);
  max-width: 640px;
}
.rvd-settings-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.rvd-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rvd-settings-field { display: flex; flex-direction: column; gap: 6px; }
.rvd-settings-field label { font-size: 13px; font-weight: 600; color: #374151; }
.rvd-settings-field input {
  padding: 10px 13px; border: 1.5px solid var(--rvd-border);
  border-radius: 8px; font-size: 14px; font-family: var(--rvd-font);
  outline: none; transition: border-color .15s;
}
.rvd-settings-field input:focus { border-color: var(--rvd-accent); }
.rvd-settings-divider { border: none; border-top: 1px solid var(--rvd-border); margin: 24px 0; }
#rvd-settings-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
#rvd-settings-msg.success { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
#rvd-settings-msg.error   { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

/* ══════════════════════════════════════════════
   POMOC
══════════════════════════════════════════════ */
.rvd-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.rvd-help-card {
  background: #fff; border-radius: var(--rvd-radius);
  padding: 20px; box-shadow: var(--rvd-shadow);
}
.rvd-help-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.rvd-help-icon svg { width: 22px; height: 22px; }
.rvd-help-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.rvd-help-card p { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }
.rvd-help-contact { background: #1a1a1a; }
.rvd-help-contact h4, .rvd-help-contact p { color: rgba(255,255,255,.8); }
.rvd-help-contact h4 { color: #fff; }

/* Nav divider */
.rvd-nav-divider {
  height: 1px; background: rgba(255,255,255,.08);
  margin: 8px 12px;
}

/* Remove text-decoration from nav items */
.rvd-nav-item { text-decoration: none !important; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .rvd-dashboard-cols { flex-direction: column; }
  .rvd-dashboard-side { width: 100%; min-width: 0; position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .rvd-side-card { flex: 1; min-width: 280px; }
}
@media (max-width: 600px) {
  .rvd-settings-grid { grid-template-columns: 1fr; }
  .rvd-invoice-row { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   MOJE ZAMÓWIENIA
══════════════════════════════════════════════ */
.rvd-orders-list { display: flex; flex-direction: column; gap: 12px; }
.rvd-order-card {
  background: #fff; border-radius: var(--rvd-radius);
  padding: 16px 20px; box-shadow: var(--rvd-shadow);
}
.rvd-order-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
.rvd-order-card-header > div { display: flex; flex-direction: column; gap: 3px; }
.rvd-order-card-header strong { font-size: 15px; font-weight: 700; }
.rvd-order-meta { font-size: 13px; color: var(--rvd-text-muted); }
.rvd-order-actions {
  display: flex; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--rvd-border);
  flex-wrap: wrap;
}
.rvd-btn-reschedule, .rvd-btn-cancel {
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: 1.5px solid;
  background: #fff; font-family: var(--rvd-font);
  transition: background .15s, color .15s;
}
.rvd-btn-reschedule { border-color: #0284c7; color: #0284c7; }
.rvd-btn-reschedule:hover { background: #e0f2fe; }
.rvd-btn-cancel { border-color: #dc2626; color: #dc2626; }
.rvd-btn-cancel:hover { background: #fee2e2; }

/* Status badges for orders */
.rvd-ord-pending   { background:#fff7ed; color:#ea7c1e; }
.rvd-ord-confirmed { background:#e0f2fe; color:#0284c7; }
.rvd-ord-done      { background:#dcfce7; color:#16a34a; }
.rvd-ord-cancelled { background:#f3f4f6; color:#6b7280; }

/* Przycisk płatności przy fakturze */
.rvd-btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rvd-btn-pay:hover { background: #15803d; transform: translateY(-1px); color: #fff; }
.rvd-btn-pay svg { width: 14px; height: 14px; }

/* Notka pod przyciskiem płatności */
.rvd-pay-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.rvd-pay-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  max-width: 160px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.rvd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rvd-lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvd-lb-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  transition: opacity .2s;
}
.rvd-lb-img.loading { opacity: 0; }
.rvd-lb-loader {
  position: absolute;
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rvdSpin .7s linear infinite;
  display: none;
}
.rvd-lb-loader.active { display: block; }
@keyframes rvdSpin { to { transform: rotate(360deg); } }

.rvd-lb-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 28px;
  cursor: pointer; z-index: 1;
  line-height: 1; padding: 4px 8px;
  opacity: .7; transition: opacity .15s;
}
.rvd-lb-close:hover { opacity: 1; }

.rvd-lb-prev, .rvd-lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  font-size: 36px; line-height: 1;
  cursor: pointer; padding: 12px 16px;
  border-radius: 8px;
  transition: background .15s;
  z-index: 1;
}
.rvd-lb-prev { left: 16px; }
.rvd-lb-next { right: 16px; }
.rvd-lb-prev:hover, .rvd-lb-next:hover { background: rgba(255,255,255,.25); }

.rvd-lb-footer {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.rvd-lb-counter { color: rgba(255,255,255,.6); font-size: 13px; }
.rvd-lb-download {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; background: var(--rvd-accent);
  text-decoration: none; padding: 8px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
}
.rvd-lb-download:hover { opacity: .85; color: #fff; }

/* ══════════════════════════════════════════════
   OCENY REALIZACJI
══════════════════════════════════════════════ */
.rvd-rating-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rvd-border);
}
.rvd-rating-prompt p { font-size: 13px; color: var(--rvd-text-muted); margin: 0 0 8px; }

.rvd-stars-input { display: flex; gap: 4px; cursor: pointer; margin-bottom: 10px; }
.rvd-star {
  font-size: 28px;
  color: #d1d5db;
  transition: color .1s, transform .1s;
  line-height: 1;
  user-select: none;
}
.rvd-star.active, .rvd-star.hover { color: #c9a84c; transform: scale(1.1); }

.rvd-rating-comment-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.rvd-rating-comment-input {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px; font-size: 13px;
  font-family: var(--rvd-font);
  resize: vertical; outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.rvd-rating-comment-input:focus { border-color: var(--rvd-accent); }
.rvd-btn-submit-rating {
  align-self: flex-start;
  padding: 8px 18px; border-radius: 8px;
  background: var(--rvd-accent); color: #fff;
  border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--rvd-font);
  transition: opacity .15s;
}
.rvd-btn-submit-rating:hover { opacity: .85; }
.rvd-rating-result { font-size: 13px; color: #15803d; font-weight: 600; margin: 4px 0 0; }

/* Wyświetlenie wystawionej oceny */
.rvd-rating-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rvd-rating-stars-display { font-size: 22px; line-height: 1; }
.rvd-star-filled { color: #c9a84c; }
.rvd-star-empty  { color: #d1d5db; }
.rvd-rating-label { font-size: 12px; color: var(--rvd-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rvd-rating-comment { font-size: 13px; color: #555; font-style: italic; margin: 6px 0 0; width: 100%; }

/* ══════════════════════════════════════════════
   PLACEHOLDER ZDJĘCIA
══════════════════════════════════════════════ */
.rvd-thumb-placeholder {
  width: 100%;
  height: 100%;
}
.rvd-placeholder-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.rvd-placeholder-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(201,168,76,.15) 0%, transparent 60%);
}
.rvd-placeholder-icon {
  color: rgba(201,168,76,.7);
  position: relative;
  z-index: 1;
}
.rvd-placeholder-icon svg { width: 36px; height: 36px; }
.rvd-placeholder-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-align: center;
  line-height: 1.4;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   PASEK POSTĘPU Z ETAPAMI
══════════════════════════════════════════════ */
.rvd-progress-wrap { margin: 12px 0 8px; }

.rvd-dashboard .rvd-progress-track {
  height: 6px !important;
  background: #e5e7eb !important;
  border-radius: 99px !important;
  margin-bottom: 12px !important;
  position: relative !important;
  overflow: hidden !important;
}

.rvd-dashboard .rvd-progress-fill {
  height: 6px !important;
  border-radius: 99px !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(90deg, #b8943e, #c9a84c, #e8c96a, #c9a84c, #b8943e) !important;
  background-size: 300% 100% !important;
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.rvd-dashboard .rvd-progress-step-0 { width: 0% !important; }
.rvd-dashboard .rvd-progress-step-1 { width: 33% !important; }
.rvd-dashboard .rvd-progress-step-2 { width: 66% !important; }
.rvd-dashboard .rvd-progress-step-3 { width: 100% !important; background: linear-gradient(90deg, #16a34a, #22c55e) !important; }

.rvd-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.6) 45%,
    rgba(255,255,255,.6) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: rvdShimmer 1.8s ease-in-out infinite;
}
@keyframes rvdShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.rvd-dashboard .rvd-progress-steps {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rvd-dashboard .rvd-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  flex: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rvd-dashboard .rvd-step-dot {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid #d1d5db !important;
  background: #fff !important;
  color: #9ca3af !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: border-color .4s, background .4s, box-shadow .4s;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.rvd-dashboard .rvd-step.active .rvd-step-dot {
  border-color: #c9a84c !important;
  background: #c9a84c !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.25) !important;
}
.rvd-dashboard .rvd-step.done .rvd-step-dot {
  border-color: #16a34a !important;
  background: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,.2) !important;
}
.rvd-dashboard .rvd-step > span {
  display: block !important;
  font-size: 10px !important;
  color: #9ca3af !important;
  font-weight: 500 !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rvd-dashboard .rvd-step.active > span { color: #c9a84c !important; font-weight: 700 !important; }
.rvd-dashboard .rvd-step.done   > span { color: #16a34a !important; font-weight: 700 !important; }

/* ══════════════════════════════════════════════
   ANIMACJE WEJŚCIA KART
══════════════════════════════════════════════ */
.rvd-card-animate {
  opacity: 0;
  transform: translateY(18px);
  animation: rvdCardIn .45s ease forwards;
}
.rvd-cards-grid .rvd-card-animate:nth-child(1) { animation-delay: .05s; }
.rvd-cards-grid .rvd-card-animate:nth-child(2) { animation-delay: .12s; }
.rvd-cards-grid .rvd-card-animate:nth-child(3) { animation-delay: .19s; }
.rvd-cards-grid .rvd-card-animate:nth-child(4) { animation-delay: .26s; }
.rvd-cards-grid .rvd-card-animate:nth-child(5) { animation-delay: .33s; }
.rvd-cards-grid .rvd-card-animate:nth-child(6) { animation-delay: .40s; }

@keyframes rvdCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover lift z subtelnym glow */
.rvd-project-card:hover {
  box-shadow: 0 8px 28px rgba(201,168,76,.15), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

/* Status accepted */
.rvd-status-accepted {
  background: #e0f2fe;
  color: #0284c7;
}

/* ── Wirtualny spacer ─────────────────────── */
.rvd-tour-actions { flex-wrap: wrap; gap: 6px; }

.rvd-tour-modal-inner {
  max-width: 900px;
  width: 95vw;
}
.rvd-tour-iframe-wrap {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  background: #111;
  position: relative;
  overflow: hidden;
}
.rvd-tour-iframe-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}
.rvd-tour-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  gap: 12px;
}
.rvd-tour-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: rvdSpin .7s linear infinite;
}

/* Przycisk kopiuj — feedback */
.rvd-btn-copy-url.copied,
.rvd-btn-copy-embed.copied {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

/* ── Dropdown kopiowania ─────────────────── */
.rvd-copy-dropdown { position: relative; display: inline-block; }

.rvd-copy-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1.5px solid var(--rvd-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 190px;
  z-index: 100;
  overflow: hidden;
  animation: rvdDropIn .15s ease;
}
@keyframes rvdDropIn {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.rvd-copy-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--rvd-font);
  color: var(--rvd-text);
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.rvd-copy-option:hover {
  background: #fffbf0;
  color: #c9a84c !important;
}
.rvd-copy-option:hover svg { color: #c9a84c; }
.rvd-copy-option + .rvd-copy-option { border-top: 1px solid var(--rvd-border); }
.rvd-copy-option svg { flex-shrink: 0; color: var(--rvd-text-muted); }

/* Zapamiętaj mnie */
.rvd-remember-wrap {
  margin: 12px 0 16px;
}
.rvd-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.rvd-remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #c9a84c;
  cursor: pointer;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CZAT PRZY REALIZACJI
══════════════════════════════════════════════ */
.rvd-chat-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rvd-border);
}

.rvd-chat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--rvd-text);
  font-family: var(--rvd-font);
}
.rvd-chat-toggle span:first-of-type { flex: 0; }
.rvd-chat-toggle > span:nth-child(2) { flex: 1; text-align: left; }
.rvd-chat-badge {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}
.rvd-chat-arrow {
  font-size: 11px;
  color: var(--rvd-text-muted);
  transition: transform .2s;
}
.rvd-chat-toggle.open .rvd-chat-arrow { transform: rotate(180deg); }

.rvd-chat-panel {
  background: var(--rvd-bg);
  border-radius: var(--rvd-radius-sm);
  padding: 14px;
  margin-top: 4px;
}

.rvd-chat-messages {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 4px;
}
.rvd-chat-empty {
  text-align: center;
  color: var(--rvd-text-muted);
  font-size: 12px;
  padding: 16px 0;
  margin: 0;
}

.rvd-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 3px;
}
.rvd-chat-msg.from-client { align-self: flex-end; align-items: flex-end; }
.rvd-chat-msg.from-admin  { align-self: flex-start; align-items: flex-start; }

.rvd-chat-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.rvd-chat-msg.from-client .rvd-chat-bubble {
  background: var(--rvd-accent);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.rvd-chat-msg.from-admin .rvd-chat-bubble {
  background: #fff;
  color: var(--rvd-text);
  border: 1px solid var(--rvd-border);
  border-radius: 14px 14px 14px 4px;
}
.rvd-chat-bubble img {
  max-width: 220px;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}
.rvd-chat-time {
  font-size: 10px;
  color: var(--rvd-text-muted);
  padding: 0 4px;
}

.rvd-chat-input-row { display: flex; flex-direction: column; gap: 8px; }

.rvd-chat-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
}
.rvd-chat-preview img { width: 100%; height: 100%; object-fit: cover; }
.rvd-chat-remove-img {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rvd-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--rvd-border);
  border-radius: 12px;
  padding: 6px 8px;
}
.rvd-chat-attach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--rvd-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.rvd-chat-attach:hover { background: var(--rvd-bg); color: var(--rvd-accent); }
.rvd-chat-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 13px;
  font-family: var(--rvd-font);
  padding: 7px 4px;
  max-height: 100px;
  background: transparent;
}
.rvd-chat-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rvd-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
}
.rvd-chat-send:hover { opacity: .85; }
.rvd-chat-send:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 600px) {
  .rvd-chat-msg { max-width: 90%; }
  .rvd-chat-bubble img { max-width: 160px; }
}

/* ══════════════════════════════════════════════
   GENERATOR GRAFIK SOCIAL MEDIA
══════════════════════════════════════════════ */
.rvd-graphics-intro {
  color: var(--rvd-text-muted);
  font-size: 14px;
  margin: -4px 0 20px;
  max-width: 640px;
  line-height: 1.5;
}

.rvd-gfx-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

/* ── Lewa kolumna: formularz ──────────────────────── */
.rvd-gfx-form {
  background: var(--rvd-card-bg);
  border-radius: var(--rvd-radius);
  padding: 24px;
  box-shadow: var(--rvd-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rvd-gfx-field { display: flex; flex-direction: column; gap: 8px; }
.rvd-gfx-field > label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rvd-text);
}

.rvd-gfx-field select,
.rvd-gfx-field input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--rvd-font);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.rvd-gfx-field select:focus,
.rvd-gfx-field input[type="text"]:focus {
  border-color: var(--rvd-accent);
}

.rvd-gfx-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rvd-gfx-hint {
  font-size: 12px;
  color: var(--rvd-text-muted);
  margin: 0;
  padding: 12px 0;
  text-align: center;
}

/* Siatka miniaturek zdjęć */
.rvd-gfx-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
}
.rvd-gfx-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color .15s;
}
.rvd-gfx-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rvd-gfx-photo-thumb:hover { border-color: rgba(201,168,76,.4); }
.rvd-gfx-photo-thumb.active { border-color: var(--rvd-accent); }
.rvd-gfx-order-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--rvd-accent);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.rvd-gfx-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--rvd-text-muted);
  margin-left: 6px;
}
.rvd-gfx-hint-small {
  font-size: 11px;
  color: var(--rvd-text-muted);
  margin: -2px 0 4px;
}

/* Szablony */
.rvd-gfx-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rvd-gfx-tpl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 2px solid var(--rvd-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
}
.rvd-gfx-tpl:hover { border-color: rgba(201,168,76,.5); }
.rvd-gfx-tpl.active { border-color: var(--rvd-accent); background: var(--rvd-accent-light); }
.rvd-gfx-tpl span { font-size: 11px; font-weight: 600; color: var(--rvd-text); }

.rvd-gfx-tpl-preview {
  width: 100%;
  height: 56px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.rvd-tpl-minimal-prev {
  background: linear-gradient(to bottom, #888 0%, #888 50%, rgba(0,0,0,.8) 100%);
}
.rvd-tpl-minimal-prev::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 6px;
  width: 60%; height: 8px;
  background: #c9a84c;
  border-radius: 2px;
}
.rvd-tpl-editorial-prev {
  background: #faf8f4;
  border: 1px solid #e5e0d5;
}
.rvd-tpl-editorial-prev::before {
  content: '';
  position: absolute;
  top: 14px; left: 6px; right: 6px;
  height: 24px;
  background: #ccc;
  border-radius: 3px;
}
.rvd-tpl-editorial-prev::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 6px;
  width: 55%; height: 10px;
  background: #1f1d1a;
  border-radius: 2px;
}
.rvd-tpl-showcase-prev {
  background: linear-gradient(to bottom, #888 0%, #888 100%);
}
.rvd-tpl-showcase-prev::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 6px; right: 6px;
  height: 22px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Kontrolki wyglądu: kolory i czcionka */
.rvd-gfx-style-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.rvd-gfx-style-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rvd-gfx-style-item--wide { flex: 1; min-width: 140px; }
.rvd-gfx-style-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--rvd-text-muted);
}
.rvd-gfx-style-item input[type="color"] {
  width: 44px;
  height: 36px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
}
.rvd-gfx-style-item select {
  padding: 9px 10px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rvd-font);
  width: 100%;
  background: #fff;
}

/* Format tabs */
.rvd-gfx-format-tabs {
  display: flex;
  gap: 6px;
}
.rvd-gfx-format {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--rvd-text-muted);
  cursor: pointer;
  transition: all .15s;
}
.rvd-gfx-format:hover { border-color: rgba(201,168,76,.5); }
.rvd-gfx-format.active {
  background: var(--rvd-accent);
  border-color: var(--rvd-accent);
  color: #fff;
}

/* ── Prawa kolumna: podgląd canvas ────────────────── */
.rvd-gfx-preview-wrap {
  position: sticky;
  top: 0;
}
.rvd-gfx-canvas-frame {
  background: #f0f0f0;
  border-radius: var(--rvd-radius);
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--rvd-shadow);
}
.rvd-gfx-canvas-frame canvas {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  display: none;
}
.rvd-gfx-canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #b0b0b0;
  text-align: center;
}
.rvd-gfx-canvas-empty svg { width: 48px; height: 48px; opacity: .4; }
.rvd-gfx-canvas-empty p { font-size: 13px; margin: 0; line-height: 1.5; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .rvd-gfx-layout { grid-template-columns: 1fr; }
  .rvd-gfx-preview-wrap { position: static; order: -1; }
  .rvd-gfx-canvas-frame { max-height: 420px; }
}
@media (max-width: 500px) {
  .rvd-gfx-grid-2 { grid-template-columns: 1fr; }
  .rvd-gfx-template-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rvd-gfx-form { padding: 16px; }
}

/* ── Badge BETA ────────────────────────────────────── */
.rvd-beta-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  padding: 2px 6px;
  border-radius: 99px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}
.rvd-nav-item .rvd-beta-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.rvd-beta-badge--header {
  font-size: 10px;
  padding: 3px 9px;
  margin-left: 10px;
}

/* ══════════════════════════════════════════════
   GENERATOR OPISU AI
══════════════════════════════════════════════ */
.rvd-ai-section {
  background: linear-gradient(135deg, #fef9f0 0%, #fdf6ed 100%);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 12px;
  padding: 16px;
}
.rvd-ai-section > label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rvd-ai-section select,
.rvd-ai-section input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rvd-font);
  box-sizing: border-box;
}

.rvd-btn-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--rvd-font);
  transition: opacity .15s, transform .1s;
}
.rvd-btn-ai:hover { opacity: .9; transform: translateY(-1px); }
.rvd-btn-ai:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.rvd-ai-result {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rvd-ai-result textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rvd-font);
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  background: #fff;
}
.rvd-ai-result-actions {
  display: flex;
  gap: 8px;
}
.rvd-ai-copy-btn,
.rvd-ai-regenerate-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--rvd-text);
  cursor: pointer;
  font-family: var(--rvd-font);
  transition: border-color .15s, color .15s;
}
.rvd-ai-copy-btn:hover,
.rvd-ai-regenerate-btn:hover {
  border-color: var(--rvd-accent);
  color: #92700a;
}

.rvd-ai-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 12px;
}

@media (max-width: 500px) {
  .rvd-ai-result-actions { flex-direction: column; }
}

/* ══════════════════════════════════════════════
   BANER PROGRAMU PARTNERSKIEGO (topbar)
══════════════════════════════════════════════ */
.rvd-referral-banner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 20px;
  min-width: 0;
}
.rvd-referral-banner a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.rvd-referral-banner a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.rvd-referral-banner img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .rvd-referral-banner { display: none; } /* Ukryj na mniejszych ekranach, żeby nie rozpychało layoutu */
}

/* ── Czcionka nagłówkowa — stosowana globalnie do tytułów ── */
.rvd-dashboard h1,
.rvd-dashboard h2,
.rvd-dashboard h3,
.rvd-dashboard .rvd-greeting,
.rvd-dashboard .rvd-section-header h2,
.rvd-auth-screen h1,
.rvd-auth-screen h2 {
  font-family: var(--rvd-font-heading);
}

/* ══════════════════════════════════════════════
   PROGRAM LOJALNOŚCIOWY
══════════════════════════════════════════════ */
.rvd-points-balance-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: var(--rvd-radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.rvd-points-balance-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
}
.rvd-points-balance-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201,168,76,.15);
  color: var(--rvd-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.rvd-points-balance-icon svg { width: 28px; height: 28px; }
.rvd-points-balance-info { display: flex; flex-direction: column; position: relative; z-index: 1; }
.rvd-points-balance-num { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.rvd-points-balance-label { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px; }
.rvd-points-balance-hint {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 1;
}

/* Nagrody */
.rvd-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rvd-reward-card {
  background: #fff;
  border-radius: var(--rvd-radius);
  padding: 18px;
  box-shadow: var(--rvd-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: border-color .15s, transform .15s;
}
.rvd-reward-card.rvd-reward-unlocked {
  border-color: rgba(201,168,76,.4);
}
.rvd-reward-card:hover { transform: translateY(-2px); }
.rvd-reward-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--rvd-accent-light);
  color: var(--rvd-accent);
  display: flex; align-items: center; justify-content: center;
}
.rvd-reward-icon svg { width: 18px; height: 18px; }
.rvd-reward-card h4 { font-size: 14px; font-weight: 700; margin: 0; }
.rvd-reward-desc { font-size: 12px; color: var(--rvd-text-muted); line-height: 1.4; margin: 0; }

.rvd-reward-progress-track {
  height: 5px;
  background: var(--rvd-bg);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}
.rvd-reward-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rvd-accent), #e8c96a);
  border-radius: 99px;
  transition: width .4s ease;
}
.rvd-reward-points-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--rvd-text);
}
.rvd-reward-progress-label { color: var(--rvd-text-muted); font-weight: 500; }

.rvd-btn-redeem {
  margin-top: 4px;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: var(--rvd-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--rvd-font);
  transition: opacity .15s;
}
.rvd-btn-redeem:hover { opacity: .88; }
.rvd-btn-redeem:disabled {
  background: var(--rvd-bg);
  color: var(--rvd-text-muted);
  cursor: not-allowed;
}

/* Moje wymiany */
.rvd-redemptions-list, .rvd-loyalty-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rvd-redemption-row, .rvd-loyalty-history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--rvd-radius-sm);
  padding: 10px 16px;
  box-shadow: var(--rvd-shadow);
  font-size: 13px;
}
.rvd-redemption-name, .rvd-loyalty-history-note { flex: 1; font-weight: 600; }
.rvd-redemption-points { font-weight: 700; color: #dc2626; white-space: nowrap; }
.rvd-redemption-status {
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.rvd-rd-pending   { background: #fff7ed; color: #ea7c1e; }
.rvd-rd-fulfilled { background: #dcfce7; color: #16a34a; }
.rvd-rd-rejected  { background: #fee2e2; color: #dc2626; }
.rvd-redemption-date, .rvd-loyalty-history-date { color: var(--rvd-text-muted); font-size: 12px; white-space: nowrap; }

.rvd-loyalty-history-points { font-weight: 700; white-space: nowrap; }
.rvd-loyalty-history-points.positive { color: #16a34a; }
.rvd-loyalty-history-points.negative { color: #dc2626; }

@media (max-width: 600px) {
  .rvd-points-balance-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .rvd-points-balance-hint { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
  .rvd-redemption-row, .rvd-loyalty-history-row { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   UDOSTĘPNIANIE MATERIAŁÓW (publiczny link)
══════════════════════════════════════════════ */
.rvd-share-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rvd-border);
}

.rvd-share-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--rvd-text);
  font-family: var(--rvd-font);
}
.rvd-share-toggle > span:nth-child(2) { flex: 1; text-align: left; }
.rvd-share-toggle.open .rvd-chat-arrow { transform: rotate(180deg); }

.rvd-share-panel {
  background: var(--rvd-bg);
  border-radius: var(--rvd-radius-sm);
  padding: 16px;
  margin-top: 4px;
}

.rvd-share-hint {
  font-size: 12px;
  color: var(--rvd-text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.rvd-share-url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.rvd-share-url-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  background: #fff;
  color: var(--rvd-text);
  outline: none;
}
.rvd-share-url-input:focus {
  border-color: var(--rvd-accent);
  box-shadow: 0 0 0 2px var(--rvd-accent-light);
}
.rvd-share-url-input::selection {
  background: var(--rvd-accent-light);
  color: var(--rvd-text);
}
.rvd-share-copy-btn {
  padding: 9px 14px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--rvd-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--rvd-font);
  transition: border-color .15s, background .15s, color .15s;
  outline: none;
}
.rvd-share-copy-btn:hover {
  border-color: var(--rvd-accent);
  background: var(--rvd-accent-light);
  color: #92700a;
}
.rvd-share-copy-btn:focus {
  border-color: var(--rvd-accent);
  box-shadow: 0 0 0 2px var(--rvd-accent-light);
}

.rvd-share-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 14px;
  cursor: pointer;
}
.rvd-share-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--rvd-accent);
  cursor: pointer;
  outline: none;
}

.rvd-share-password-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.rvd-share-password-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--rvd-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--rvd-font);
  background: #fff;
  outline: none;
}
.rvd-share-password-input:focus {
  border-color: var(--rvd-accent);
  box-shadow: 0 0 0 2px var(--rvd-accent-light);
}
.rvd-share-save-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: var(--rvd-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--rvd-font);
  transition: opacity .15s;
  outline: none;
}
.rvd-share-save-btn:hover { opacity: .88; }
.rvd-share-save-btn:focus { box-shadow: 0 0 0 2px var(--rvd-accent-light); }

.rvd-share-password-hint {
  font-size: 11px;
  color: var(--rvd-text-muted);
  margin: 0 0 14px;
  line-height: 1.4;
}

.rvd-share-views {
  font-size: 12px;
  color: var(--rvd-text-muted);
  margin-bottom: 10px;
}

.rvd-share-regen-btn {
  width: 100%;
  padding: 9px;
  border: 1.5px dashed var(--rvd-border);
  border-radius: 8px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--rvd-text-muted);
  cursor: pointer;
  font-family: var(--rvd-font);
  transition: border-color .15s, color .15s;
  outline: none;
}
.rvd-share-regen-btn:hover { border-color: #dc2626; color: #dc2626; }
.rvd-share-regen-btn:focus { box-shadow: 0 0 0 2px rgba(220,38,38,.15); }

.rvd-share-feedback {
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 500px) {
  .rvd-share-url-row, .rvd-share-password-row { flex-direction: column; }
}

/* ── Powiadomienia Push ───────────────────────────── */
.rvd-settings-hint {
  font-size: 13px;
  color: var(--rvd-text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 560px;
}
#rvd-push-toggle-btn.rvd-push-active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
#rvd-push-toggle-btn.rvd-push-active:hover {
  background: #15803d;
}

/* ── Instrukcja instalacji PWA na iOS ─────────────── */
.rvd-ios-install-box {
  background: linear-gradient(135deg, #fef9f0 0%, #fdf6ed 100%);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--rvd-radius);
  padding: 18px 20px;
  max-width: 480px;
}
.rvd-ios-install-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--rvd-text);
}
.rvd-ios-install-steps {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--rvd-text);
}
.rvd-ios-install-steps li { margin-bottom: 4px; }
.rvd-ios-icon { font-size: 14px; }
.rvd-ios-install-note {
  font-size: 12px;
  color: var(--rvd-text-muted);
  margin: 0;
  line-height: 1.5;
}
