/* ==========================================================================
   ROUTVELI — Design System / Theme tokens
   ერთი წყარო ყველა ფერისთვის, ზომისთვის და ტიპოგრაფიისთვის.
   იტვირთება ყველა გვერდზე style.css-მდე.
   ========================================================================== */

/* ---------- 1. LIGHT (default) ---------- */
:root {
  color-scheme: light;

  /* surfaces */
  --paper:      #FAF7F2;
  --paper-warm: #F4EFE6;
  --surface:    #FFFFFF;
  --surface-2:  #F5F1EA;
  --surface-3:  #EBE5DA;
  --surface-4:  #E0D8CA;

  /* ink */
  --ink:    #14110E;
  --ink-2:  #4A4238;
  --ink-3:  #7B7367;
  --ink-4:  #A9A093;

  /* lines */
  --line:   #E4DDD1;
  --line-2: #D2C9B9;

  /* accents */
  --accent:       #93672F;
  --accent-hover: #7A5322;
  --accent-2:     #C08F4A;
  --accent-ink:   #FFFFFF;          /* text on accent fill */
  --accent-soft:  rgba(158,111,59,.10);
  --accent-line:  rgba(158,111,59,.28);
  --forest:       #2F4A3B;
  --forest-soft:  rgba(47,74,59,.10);

  /* status */
  --danger:      #B3261E;
  --danger-bg:   #FCECEA;
  --success:     #2C7A55;
  --success-bg:  #E8F4ED;
  --warning:     #9A6B12;
  --warning-bg:  #FBF1DC;

  /* glass (liquid glass cards) */
  --glass-bg:    linear-gradient(150deg, rgba(255,255,255,.97) 0%, rgba(252,249,244,.95) 48%, rgba(245,239,230,.96) 100%);
  --glass-brd:   rgba(255,255,255,.9);
  --glass-ring:  rgba(20,17,14,.10);
  --glass-hi:    rgba(255,255,255,.95);
  --glass-blur:  saturate(160%) blur(22px);
  --glass-shadow: 0 1px 2px rgba(20,17,14,.06), 0 18px 40px -18px rgba(20,17,14,.30);
  /* solid-ish შუშა წაკითხვადი პანელებისთვის (peek, dropdown) */
  --glass-solid: linear-gradient(155deg, rgba(255,255,255,.985) 0%, rgba(250,246,240,.975) 100%);

  /* elevation */
  --shadow-xs: 0 1px 2px rgba(26,23,20,.06);
  --shadow-sm: 0 2px 6px rgba(26,23,20,.07);
  --shadow-md: 0 8px 24px -12px rgba(26,23,20,.22);
  --shadow-lg: 0 24px 60px -28px rgba(26,23,20,.34);
  --shadow-accent: 0 10px 26px -14px rgba(158,111,59,.55);

  /* photo scrim — ჰერო/სურათებზე ტექსტის წასაკითხად */
  --scrim: linear-gradient(180deg, rgba(12,10,9,.62) 0%, rgba(12,10,9,.34) 38%, rgba(12,10,9,.80) 100%);

  /* radii — რბილი, მაგრამ არა "აბი" */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* rhythm */
  --section-y: clamp(64px, 8vw, 112px);
  --container: 1180px;
  --container-wide: 1400px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .18s var(--ease);
  --t: .32s var(--ease);
  --t-slow: .6s var(--ease-out);

  /* type */
  --font-sans: 'Noto Sans Georgian', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Noto Serif Georgian', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --fs-xs: .75rem;   --fs-sm: .8125rem;  --fs-base: .9375rem;
  --fs-md: 1rem;     --fs-lg: 1.125rem;  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.6rem, 2.4vw, 2.05rem);
  --fs-3xl: clamp(2.05rem, 3.8vw, 3rem);
  --fs-4xl: clamp(2.6rem, 6.2vw, 4.5rem);

  --lh-tight: 1.16;
  --lh-snug: 1.35;
  --lh: 1.62;

  --nav-h: 68px;

  /* luxe — ოქროს გრადიენტები და ჰეარლაინები */
  --gold-grad: linear-gradient(135deg, #B98D4E 0%, #93672F 46%, #6E4A1F 100%);
  --gold-sheen: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.55) 48%, transparent 64%);
  --hairline: linear-gradient(90deg, transparent, var(--accent-line) 22%, var(--accent-line) 78%, transparent);

  /* მოძრავი ფონი */
  --aura-1: rgba(190, 148, 88, .26);
  --aura-2: rgba(120, 152, 128, .20);
  --aura-3: rgba(196, 165, 130, .24);
  --aura-4: rgba(158, 122, 92, .18);
  --grain-opacity: .035;
}

/* ---------- 2. DARK ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper:      #100E0C;
    --paper-warm: #16130F;
    --surface:    #1A1613;
    --surface-2:  #221D19;
    --surface-3:  #2B2520;
    --surface-4:  #362E28;

    --ink:    #F7F2E9;
    --ink-2:  #B9B0A4;
    --ink-3:  #8A8175;
    --ink-4:  #625A51;

    --line:   #2C2621;
    --line-2: #3B342D;

    --accent:       #D9AE6C;
    --accent-hover: #E8C489;
    --accent-2:     #F0D6A6;
    --accent-ink:   #17130F;
    --accent-soft:  rgba(208,163,101,.12);
    --accent-line:  rgba(208,163,101,.30);
    --forest:       #7FA98F;
    --forest-soft:  rgba(127,169,143,.12);

    --danger:      #F08A80;
    --danger-bg:   #2C1614;
    --success:     #77C79B;
    --success-bg:  #15251C;
    --warning:     #E3B95F;
    --warning-bg:  #2A2013;

    --glass-bg:    linear-gradient(150deg, rgba(48,41,34,.92) 0%, rgba(34,29,25,.94) 48%, rgba(26,22,19,.95) 100%);
    --glass-brd:   rgba(255,255,255,.13);
    --glass-ring:  rgba(0,0,0,.55);
    --glass-hi:    rgba(255,255,255,.22);
    --glass-blur:  saturate(170%) blur(24px);
    --glass-shadow: 0 1px 1px rgba(0,0,0,.45), 0 24px 52px -20px rgba(0,0,0,.85);
    --glass-solid: linear-gradient(155deg, rgba(40,34,29,.985) 0%, rgba(28,24,20,.985) 100%);

    --shadow-xs: 0 1px 2px rgba(0,0,0,.5);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.45);
    --shadow-md: 0 10px 28px -14px rgba(0,0,0,.8);
    --shadow-lg: 0 28px 64px -30px rgba(0,0,0,.9);
    --shadow-accent: 0 10px 28px -14px rgba(208,163,101,.4);

    --scrim: linear-gradient(180deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,.3) 38%, rgba(8,7,6,.88) 100%);

    --gold-grad: linear-gradient(135deg, #F0D6A6 0%, #D9AE6C 48%, #A87C3C 100%);
    --gold-sheen: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.28) 48%, transparent 64%);
    --hairline: linear-gradient(90deg, transparent, var(--accent-line) 22%, var(--accent-line) 78%, transparent);

    --aura-1: rgba(184, 140, 74, .30);
    --aura-2: rgba(64, 104, 84, .28);
    --aura-3: rgba(122, 88, 56, .30);
    --aura-4: rgba(52, 62, 88, .22);
    --grain-opacity: .05;
  }
}

/* ---------- 3. Explicit toggle wins in both directions ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:      #100E0C;
  --paper-warm: #16130F;
  --surface:    #1A1613;
  --surface-2:  #221D19;
  --surface-3:  #2B2520;
  --surface-4:  #362E28;

  --ink:    #F1EBE2;
  --ink-2:  #A9A096;
  --ink-3:  #7C736A;
  --ink-4:  #5A524A;

  --line:   #2C2621;
  --line-2: #3B342D;

  --accent:       #D0A365;
  --accent-hover: #E0B87E;
  --accent-2:     #E8CB98;
  --accent-ink:   #17130F;
  --accent-soft:  rgba(208,163,101,.12);
  --accent-line:  rgba(208,163,101,.30);
  --forest:       #7FA98F;
  --forest-soft:  rgba(127,169,143,.12);

  --danger:      #F08A80;
  --danger-bg:   #2C1614;
  --success:     #77C79B;
  --success-bg:  #15251C;
  --warning:     #E3B95F;
  --warning-bg:  #2A2013;

  --glass-bg:    linear-gradient(150deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.045) 45%, rgba(255,255,255,.02) 100%);
  --glass-brd:   rgba(255,255,255,.14);
  --glass-ring:  rgba(0,0,0,.5);
  --glass-hi:    rgba(255,255,255,.28);
  --glass-blur:  saturate(160%) blur(20px);
  --glass-shadow: 0 1px 1px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.75);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.45);
  --shadow-md: 0 10px 28px -14px rgba(0,0,0,.8);
  --shadow-lg: 0 28px 64px -30px rgba(0,0,0,.9);
  --shadow-accent: 0 10px 28px -14px rgba(208,163,101,.4);

  --scrim: linear-gradient(180deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,.3) 38%, rgba(8,7,6,.88) 100%);

  --gold-grad: linear-gradient(135deg, #F0D6A6 0%, #D9AE6C 48%, #A87C3C 100%);
  --gold-sheen: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.28) 48%, transparent 64%);
  --hairline: linear-gradient(90deg, transparent, var(--accent-line) 22%, var(--accent-line) 78%, transparent);

  --aura-1: rgba(184, 140, 74, .30);
  --aura-2: rgba(64, 104, 84, .28);
  --aura-3: rgba(122, 88, 56, .30);
  --aura-4: rgba(52, 62, 88, .22);
  --grain-opacity: .05;
}

/* ---------- 4. Legacy aliases ---------- */
/* ძველი გვერდების CSS ამ სახელებს იყენებს — აქ გადმოებმება ახალ სისტემას,
   ასე რომ ყველა გვერდი ავტომატურად იღებს ღია/მუქ თემას. */
:root {
  --gold:        var(--accent);
  --gold-light:  var(--accent-2);
  --gold-l:      var(--accent-2);
  --gold-dark:   var(--accent-hover);
  --gold-d:      var(--accent-hover);

  --bg:   var(--paper);
  --bg2:  var(--surface);
  --bg3:  var(--surface-2);
  --bg4:  var(--surface-3);
  --bg5:  var(--surface-4);
  --card: var(--surface);

  --text:  var(--ink);
  --text2: var(--ink-2);
  --text3: var(--ink-3);

  --border:  var(--line);
  --border2: var(--line-2);

  --radius:    var(--r-md);
  --radius-lg: var(--r-lg);
  --r:         var(--r-md);

  --shadow:       var(--shadow-md);
  --shadow-gold:  var(--shadow-accent);

  --transition: var(--t);
  --tr:         var(--t-fast);

  --font: var(--font-sans);

  --sw: 264px;
  --sidebar-w: 248px;
}

/* ---------- 5. Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

html { background: var(--paper); }

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--paper); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ---------- საერთო ხაზოვანი იკონები (ყველა გვერდზე) ---------- */
.ui-ic {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -3px;
}
.ui-ic-lg { width: 30px; height: 30px; stroke-width: 1.4; }
svg:not([width]):not([height]):not([class]) { width: 1em; height: 1em; }

/* ==========================================================================
   RV-SELECT — ლამაზი ჩამოსაშლელი სია (ყველა გვერდზე)
   ========================================================================== */
.rv-select { position: relative; width: 100%; }
.rv-select .rvs-native {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.rvs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-base);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.rvs-trigger:hover { border-color: var(--ink-4); }
.rv-select.is-open .rvs-trigger,
.rvs-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.rv-select.is-disabled { opacity: .55; pointer-events: none; }

.rvs-label {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500;
}
.rvs-label.is-ph { color: var(--ink-3); font-weight: 400; }

.rvs-chev {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: var(--ink-3); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s var(--ease-out), stroke .16s;
}
.rv-select.is-open .rvs-chev { transform: rotate(180deg); stroke: var(--accent); }

/* ---------- panel ---------- */
.rvs-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 0; right: 0;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--glass-solid, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-ring);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transform-origin: top center;
  animation: rvsIn .2s cubic-bezier(.16,1,.3,1);
}
.rv-select.drop-up .rvs-panel {
  top: auto; bottom: calc(100% + 8px);
  transform-origin: bottom center;
}
@keyframes rvsIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.rvs-list { max-height: 280px; overflow-y: auto; display: grid; gap: 2px; }
.rvs-sheet-head { display: none; }

.rvs-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--fs-base);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.rvs-opt:hover, .rvs-opt:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
.rvs-opt.is-sel { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rvs-opt.is-off { opacity: .4; cursor: not-allowed; }
.rvs-opt > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rvs-check {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s, transform .22s var(--ease-out);
}
.rvs-opt.is-sel .rvs-check { opacity: 1; transform: none; }

/* ---------- მობილურზე: ქვედა ფურცელი ---------- */
body.rvs-lock { overflow: hidden; }
@media (max-width: 600px) {
  .rv-select.is-sheet.is-open::before {
    content: "";
    position: fixed; inset: 0; z-index: 1190;
    background: rgba(10,8,7,.5);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: rvsFade .2s ease;
  }
  .rv-select.is-sheet .rvs-panel {
    position: fixed;
    z-index: 1200;
    inset: auto 0 0 0;
    top: auto;
    padding: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    animation: rvsSheet .3s cubic-bezier(.16,1,.3,1);
  }
  .rv-select.is-sheet .rvs-sheet-head {
    display: flex; justify-content: center;
    padding: 10px 0 8px;
  }
  .rvs-grip { width: 38px; height: 4px; border-radius: 3px; background: var(--line-2); }
  .rv-select.is-sheet .rvs-list { max-height: min(56svh, 420px); gap: 3px; }
  .rv-select.is-sheet .rvs-opt { padding: 14px 14px; font-size: var(--fs-md); }
}
@keyframes rvsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rvsSheet { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rvs-panel, .rv-select.is-sheet .rvs-panel { animation: none; }
}

/* ქვედა ფურცლის სათაური */
.rvs-sheet-title { display: none; }
@media (max-width: 600px) {
  .rv-select.is-sheet .rvs-sheet-head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
  .rv-select.is-sheet .rvs-sheet-title {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

/* ==========================================================================
   RV-ATTACH — გაზიარებული ტურის ბარათი
   ========================================================================== */
.rv-attach {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.rv-attach:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.rva-media {
  display: block;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  min-height: 108px;
}
.rva-media-blank {
  background-image: linear-gradient(140deg, var(--surface-3), var(--surface-4));
}
.rva-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  min-width: 0;
}
.rva-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.rva-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rva-desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rva-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--fs-xs);
}
.rva-meta { color: var(--ink-3); }
.rva-price {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--accent);
}
.rva-post { margin-top: 13px; }
.rva-msg {
  grid-template-columns: 84px minmax(0, 1fr);
  margin-bottom: 6px;
  border-radius: var(--r-sm);
  min-width: 232px;
}
.rva-msg .rva-media { min-height: 84px; }
.rva-msg .rva-body { padding: 10px 12px; gap: 3px; }
.rva-msg .rva-name { font-size: .92rem; -webkit-line-clamp: 2; }
.rva-msg .rva-desc { display: none; }
.msg-bubble-wrap.mine .rva-msg { border-color: rgba(255,255,255,.35); }

/* ==========================================================================
   RV-SHARE — გაზიარების ფანჯარა
   ========================================================================== */
.rv-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10,8,7,.58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.rv-share-overlay.is-in { opacity: 1; }
.rv-share {
  width: min(440px, 100%);
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  transition: transform .28s var(--ease-out);
}
.rv-share-overlay.is-in .rv-share { transform: none; }
.rvsh-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.rvsh-head h3 {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.rvsh-grip { display: none; }
.rvsh-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background .16s, color .16s;
}
.rvsh-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rvsh-close:hover { background: var(--surface-2); color: var(--ink); }
.rvsh-body { padding: 18px; overflow-y: auto; }
.rvsh-preview { margin-bottom: 14px; }
.rvsh-preview .rv-attach { margin-top: 0; }
.rvsh-note {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.55;
  resize: vertical;
}
.rvsh-note:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.rvsh-acts { display: grid; gap: 6px; }
.rvsh-act {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.rvsh-act svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rvsh-act .rvsh-fill { fill: var(--accent); stroke: none; }
.rvsh-act:hover { background: var(--accent-soft); border-color: var(--accent-line); transform: translateX(2px); }
.rvsh-act.is-busy { opacity: .6; pointer-events: none; }

.rvsh-back {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px; padding: 6px 10px 6px 4px;
  border-radius: var(--r-sm);
  color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600;
}
.rvsh-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rvsh-back:hover { color: var(--accent); }
.rvsh-search {
  width: 100%; padding: 10px 13px; margin-bottom: 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink); font-size: var(--fs-base);
}
.rvsh-search:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.rvsh-users { display: grid; gap: 3px; max-height: 44svh; overflow-y: auto; }
.rvsh-user {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 9px 11px;
  border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: var(--fs-base); text-align: left; cursor: pointer;
  transition: background .16s;
}
.rvsh-user:hover { background: var(--surface-2); }
.rvsh-user > span { flex: 1; min-width: 0; }
.rvsh-user strong { font-weight: 600; }
.rvsh-send-ic { flex: none !important; }
.rvsh-send-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rvsh-user.is-busy { opacity: .55; pointer-events: none; }
.rvsh-empty, .rvsh-loading { padding: 28px 10px; text-align: center; color: var(--ink-3); font-size: var(--fs-base); }

/* toast */
.rv-toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 18px);
  z-index: 1400;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-base); font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .22s var(--ease), transform .28s var(--ease-out);
  max-width: calc(100vw - 32px);
}
.rv-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .rv-share-overlay { padding: 0; place-items: end center; }
  .rv-share {
    width: 100%;
    max-height: 88svh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
  }
  .rvsh-head { padding-top: 8px; flex-wrap: wrap; justify-content: center; }
  .rvsh-grip { display: block; width: 100%; }
  .rvsh-grip::after {
    content: ""; display: block; width: 38px; height: 4px;
    margin: 0 auto 10px; border-radius: 3px; background: var(--line-2);
  }
  .rvsh-act { padding: 14px; }
}

/* ==========================================================================
   RV-DOCK — ცოცხალი ჩატი (მარცხნივ ქვემოთ)
   ========================================================================== */
.rv-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}
.rv-dock > * { pointer-events: auto; }

/* --- ბუშტები --- */
.rvd-bubbles {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}
.rvd-bubbles:empty { display: none; }

.rvd-bub {
  position: relative;
  width: 52px; height: 52px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--surface-3);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  animation: rvdPop .42s cubic-bezier(.34,1.56,.64,1);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.rvd-bub:hover { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-lg); }
.rvd-bub .user-avatar,
.rvd-bub .user-avatar-letter {
  width: 100% !important; height: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 1.05rem;
}
@keyframes rvdPop {
  0% { opacity: 0; transform: scale(.4) translateY(10px); }
  100% { opacity: 1; transform: none; }
}

.rvd-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 2px solid var(--surface);
  background: #E03B3B;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(224,59,59,.45);
  animation: rvdPulse 2.4s ease-in-out infinite;
}
@keyframes rvdPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(224,59,59,.45); }
  50% { box-shadow: 0 2px 8px rgba(224,59,59,.45), 0 0 0 6px rgba(224,59,59,.14); }
}

.rvd-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 11px;
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-xs); font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .22s var(--ease-out);
}
.rvd-bub:hover .rvd-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

.rvd-more {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.rvd-more:hover { color: var(--accent); border-color: var(--accent-line); }

.rvd-hide {
  position: absolute;
  top: -8px; left: 38px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-3); color: var(--ink-3);
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity .18s;
  z-index: 2;
}
.rvd-hide svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.rvd-bubbles:hover .rvd-hide { opacity: 1; }
.rvd-hide:hover { color: var(--danger); }

/* --- პანელი --- */
.rvd-panel {
  width: 344px;
  height: 460px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-ring);
  overflow: hidden;
  animation: rvdIn .32s cubic-bezier(.16,1,.3,1);
}
.rvd-panel[hidden] { display: none; }
@keyframes rvdIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.rvd-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.rvd-head-av { flex: none; }
.rvd-head-av .user-avatar, .rvd-head-av .user-avatar-letter {
  width: 34px !important; height: 34px !important;
  border-radius: 50%; object-fit: cover;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.rvd-head-name {
  flex: 1; min-width: 0;
  font-size: var(--fs-base); font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rvd-all, .rvd-x {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: background .16s, color .16s;
}
.rvd-all svg, .rvd-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rvd-all:hover, .rvd-x:hover { background: var(--surface-3); color: var(--ink); }

.rvd-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 13px;
  background:
    radial-gradient(46% 34% at 18% 6%, var(--accent-soft), transparent 70%),
    var(--surface);
  scroll-behavior: smooth;
}
.rvd-row { display: flex; max-width: 86%; }
.rvd-row.mine { margin-left: auto; justify-content: flex-end; }
.rvd-bubble {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 13px;
  border-radius: 15px 15px 15px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--fs-base); line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
  animation: rvdBub .2s var(--ease-out);
}
.rvd-row.mine .rvd-bubble {
  border-radius: 15px 15px 4px 15px;
  background: var(--gold-grad, var(--accent));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}
.rvd-bubble time { font-size: 10px; opacity: .6; align-self: flex-end; }
.rvd-bubble .rv-attach { background: var(--surface); }
@keyframes rvdBub { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.rvd-empty, .rvd-loading { margin: auto; color: var(--ink-3); font-size: var(--fs-base); text-align: center; }

.rvd-form {
  display: flex; gap: 8px; align-items: center;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.rvd-input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-base);
}
.rvd-input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.rvd-send {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-grad, var(--accent));
  color: var(--accent-ink);
  transition: filter .16s, transform .16s;
}
.rvd-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rvd-send:hover { filter: brightness(1.08); transform: scale(1.06); }
.rvd-send:disabled { opacity: .5; transform: none; }

/* --- მობილური: სრული ეკრანი --- */
@media (max-width: 600px) {
  .rv-dock { left: 14px; bottom: 14px; }
  .rvd-bub { width: 48px; height: 48px; }
  .rvd-tip { display: none; }
  .rv-dock.is-open { left: 0; right: 0; bottom: 0; }
  .rvd-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    animation: rvdSheet .3s cubic-bezier(.16,1,.3,1);
  }
  .rvd-head { padding: 14px 14px calc(14px); padding-top: max(14px, env(safe-area-inset-top, 0px)); }
  .rvd-form { padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px)); }
  .rv-dock.is-open .rvd-bubbles { display: none; }
  body.rvd-open { overflow: hidden; }
}
@keyframes rvdSheet { from { transform: translateY(100%); } to { transform: none; } }

/* ჩატის გახსნისას მარჯვენა ღილაკები არ უნდა ეჯახებოდეს */
@media (max-width: 420px) {
  .rv-dock:not(.is-open) { bottom: 76px; }
}

/* ტურის ბარათი ვიწრო ჩატში */
.rvd-row:has(.rv-attach) { max-width: 96%; }
.rvd-bubble:has(.rv-attach) { padding: 7px 7px 6px; }
.rvd-bubble .rva-msg {
  min-width: 0;
  grid-template-columns: 74px minmax(0, 1fr);
  border-radius: var(--r-sm);
  margin-bottom: 4px;
}
.rvd-bubble .rva-msg .rva-media { min-height: 78px; }
.rvd-bubble .rva-msg .rva-body { padding: 9px 11px; }
.rvd-bubble .rva-msg .rva-name { font-size: .86rem; }
.rvd-bubble .rva-msg .rva-foot { flex-wrap: wrap; gap: 4px 8px; padding-top: 5px; }
.rvd-bubble .rva-msg .rva-price { font-size: .88rem; }
.rvd-row.mine .rvd-bubble .rva-msg { border-color: rgba(255,255,255,.32); }
.rvd-bubble .rvd-text { padding-inline: 6px; }
.rvd-bubble:has(.rv-attach) time { padding-inline: 6px; }

/* შეტყობინების გვერდზეც */
.msg-bubble:has(.rv-attach) { padding: 7px 7px 6px; }
.msg-bubble .rva-msg { min-width: 0; grid-template-columns: 84px minmax(0, 1fr); }
.msg-bubble .rva-msg .rva-foot { flex-wrap: wrap; gap: 4px 8px; }
.msg-bubble-wrap:has(.rv-attach) { max-width: 92%; }

/* გაზიარების ბადე — სოციალური ქსელები */
.rvsh-group-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 10px;
}
.rvsh-group-label + .rvsh-grid { margin-bottom: 20px; }
.rvsh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}
.rvsh-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .18s, background .18s, color .18s;
}
.rvsh-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rvsh-tile .rvsh-fill { fill: currentColor; stroke: none; }
.rvsh-tile:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--surface); color: var(--ink); }
.rvsh-fb:hover    { color: #1877F2; border-color: rgba(24,119,242,.4); }
.rvsh-ig:hover    { color: #D6336C; border-color: rgba(214,51,108,.4); }
.rvsh-wa:hover    { color: #1FA855; border-color: rgba(31,168,85,.4); }
.rvsh-tg:hover    { color: #2AABEE; border-color: rgba(42,171,238,.4); }
.rvsh-x:hover     { color: var(--ink); border-color: var(--ink-4); }
.rvsh-tile span { line-height: 1.2; text-align: center; }

.rvsh-note { margin-bottom: 10px; }
.rvsh-preview { margin-bottom: 18px; }

@media (max-width: 420px) {
  .rvsh-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rvsh-tile { padding: 12px 4px 9px; font-size: 10.5px; }
  .rvsh-tile svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   ჩატის მედია — ფოტო / ვიდეო / ხმოვანი + რეაქციები
   ========================================================================== */
.rv-media-photo, .rv-media-video {
  display: block; width: 100%;
  max-width: 260px; max-height: 300px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  cursor: zoom-in;
}
.rv-media-video { cursor: default; }

.rv-voice { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 2px 2px 2px 0; }
.rv-voice audio { display: none; }
.rv-voice-play {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .16s var(--ease);
}
.rv-voice-play:hover { transform: scale(1.07); }
.rv-voice-play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rv-voice-play .ic-pause { display: none; }
.rv-voice.is-playing .ic-play { display: none; }
.rv-voice.is-playing .ic-pause { display: block; }
.rv-voice-wave {
  position: relative; flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 26px; min-width: 90px; overflow: hidden;
}
.rv-voice-wave > span { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .32; }
.rv-voice-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: currentColor; opacity: .28; border-radius: 3px;
  pointer-events: none; transition: width .1s linear;
}
.rv-voice time { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .7; }

.rv-react {
  position: absolute; right: 8px; bottom: -11px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 11px; line-height: 1.2;
  animation: rvPop .3s cubic-bezier(.34,1.56,.64,1);
}
.rv-react b { font-weight: 700; color: var(--ink-2); }
@keyframes rvPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

.rvd-row, .msg-bubble-wrap { position: relative; }
.rvd-bubble, .msg-bubble { position: relative; }
.rvd-heart, .msg-heart {
  align-self: center;
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-4);
  opacity: 0; transform: scale(.7);
  transition: opacity .18s, transform .22s var(--ease-out), color .16s;
}
.rvd-heart svg, .msg-heart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rvd-row:hover .rvd-heart, .msg-bubble-wrap:hover .msg-heart { opacity: 1; transform: none; }
.rvd-heart:hover, .msg-heart:hover { color: #E0466A; }
.rvd-heart:hover svg, .msg-heart:hover svg { fill: #E0466A; stroke: #E0466A; }
@media (hover: none) { .rvd-heart, .msg-heart { opacity: .45; transform: none; } }

.rvd-uploading { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); opacity: .8; }
.rvd-uploading::before {
  content: ""; width: 13px; height: 13px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: rvSpin .7s linear infinite;
}
@keyframes rvSpin { to { transform: rotate(360deg); } }

.rvd-rec, .msg-rec {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  font-size: var(--fs-sm); color: var(--ink-2);
}
.rvd-rec[hidden], .msg-rec[hidden] { display: none; }
.rvd-rec-dot, .msg-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #E03B3B; animation: rvBlink 1.1s ease-in-out infinite; }
@keyframes rvBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.rvd-rec-time, .msg-rec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.rvd-rec-hint, .msg-rec-hint { flex: 1; }
.rvd-rec-cancel, .msg-rec-cancel { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.rvd-rec-cancel svg, .msg-rec-cancel svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rvd-rec-cancel:hover, .msg-rec-cancel:hover { background: var(--surface-2); color: var(--danger); }

.rvd-attach, .rvd-mic, .msg-attach, .msg-mic {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-3);
  transition: color .16s, background .16s, transform .16s;
}
.rvd-attach svg, .rvd-mic svg, .msg-attach svg, .msg-mic svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.rvd-attach:hover, .rvd-mic:hover, .msg-attach:hover, .msg-mic:hover { color: var(--accent); background: var(--surface-2); }
.rvd-mic.is-rec, .msg-mic.is-rec { color: #fff; background: #E03B3B; animation: rvRecPulse 1.4s ease-in-out infinite; }
@keyframes rvRecPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(224,59,59,.45); }
  50% { box-shadow: 0 0 0 7px rgba(224,59,59,0); }
}

.rvd-bubble.has-photo, .rvd-bubble.has-video,
.msg-bubble.has-photo, .msg-bubble.has-video { padding: 5px 5px 4px; }
.rvd-bubble.has-audio, .msg-bubble.has-audio { padding: 7px 12px 5px; }
.rvd-bubble.has-photo time, .rvd-bubble.has-video time,
.msg-bubble.has-photo time, .msg-bubble.has-video time { padding-inline: 6px; }

/* ჩატის ფონის ლაქა — რბილად, არა ლაქად */
.rvd-msgs { background: var(--surface) !important; }
.msg-messages { background: var(--surface) !important; }

/* ნაწილებად ჩატვირთვადი მედია */
.rv-lazy, .rv-loading {
  min-width: 180px; min-height: 120px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: rvShim 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes rvShim { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.rv-failed {
  min-width: 180px; min-height: 90px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  animation: none;
}
.rv-failed::after { content: "ფაილი ვერ ჩაიტვირთა"; font-size: var(--fs-sm); color: var(--ink-3); }
audio.rv-lazy, audio.rv-loading, audio.rv-failed { min-width: 0; min-height: 0; background: none; animation: none; border: none; }
