/* Shvilebi.ge Interactive Tools v2 */
.shv-gb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.shv-gb button,
.shv-gb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 12px;
  border: 1px solid #76bbb3;
  border-radius: 18px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.shv-gb button:hover,
.shv-gb a:hover {
  border-color: #2e7d4f;
  background: #f4faf7;
}

.shv-gb .shv-cp {
  background: #2e7d4f;
  border-color: #2e7d4f;
  color: #fff;
  font-weight: 600;
}

.shv-gb .shv-cp:hover {
  background: #23623d;
  border-color: #23623d;
}

.shv-gb .shv-ec-btn {
  background: #fff8e7;
  border-color: #c9a050;
  color: #6b4e16;
  font-weight: 600;
}

.shv-gb .shv-ec-btn:hover {
  background: #faecc8;
  border-color: #b18836;
}

.shv-tool {
  background: #faf6e8;
  border: 1px solid #ece3c8;
  border-radius: 16px;
  padding: 18px;
  margin: 22px 0;
  box-shadow: 0 3px 12px rgba(30, 41, 59, 0.06);
  color: #1e293b;
}

.shv-tool * {
  box-sizing: border-box;
}

.shv-tool h2 {
  margin: 0 0 10px;
  font-size: 1.28em;
  color: #1e293b;
  line-height: 1.35;
}

.shv-tool h3 {
  margin: 12px 0 8px;
  font-size: 1.05em;
  color: #1e293b;
}

.shv-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.shv-tool select,
.shv-tool input,
.shv-tool textarea {
  flex: 1 1 140px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #76bbb3;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: #1e293b;
  min-height: 44px;
}

.shv-tool input[type="search"],
.shv-tool input[type="date"],
.shv-tool input[type="text"] {
  display: block;
  margin: 6px 0;
}

.shv-tool select:focus,
.shv-tool input:focus,
.shv-tool textarea:focus {
  outline: 2px solid rgba(46, 125, 79, 0.25);
  border-color: #2e7d4f;
}

.shv-tool button,
.shv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #2e7d4f;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.shv-tool button:hover,
.shv-cta-btn:hover {
  background: #23623d;
  color: #fff;
}

.shv-tool button.shv-sec-btn {
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.shv-tool button.shv-sec-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.shv-tool button.shv-gold-btn {
  background: #c9a050;
  color: #111;
}

.shv-tool button.shv-gold-btn:hover {
  background: #b58c3c;
  color: #111;
}

.shv-res {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  max-height: 440px;
  overflow: auto;
}

.shv-res li {
  margin: 6px 0;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #e6e2d3;
  border-radius: 10px;
  line-height: 1.5;
}

.shv-cnt,
.shv-note {
  font-size: 0.88em;
  color: #475569;
  margin: 8px 0;
}

.shv-score {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 8px 0;
}

/* E-Card Launcher Banner */
.shv-ec-banner {
  background: linear-gradient(135deg, #fffaf0 0%, #f5efe0 100%);
  border: 1px solid #e5d2a4;
  border-left: 5px solid #c9a050;
}

.shv-ec-banner p {
  margin: 0 0 12px;
  color: #334155;
  line-height: 1.55;
}

/* E-Card Studio Modal */
.shv-ec-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}

.shv-ec-backdrop[hidden] {
  display: none;
}

.shv-ec-modal {
  background: #fff;
  color: #1e293b;
  width: 100%;
  max-width: 880px;
  max-height: 94vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  position: relative;
}

.shv-ec-modal * {
  box-sizing: border-box;
}

.shv-ec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.shv-ec-head h2 {
  margin: 0;
  font-size: 1.2em;
  color: #1e293b;
}

.shv-ec-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shv-ec-close:hover {
  background: #e2e8f0;
}

.shv-ec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 768px) {
  .shv-ec-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.shv-ec-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.shv-ec-preview canvas {
  display: block;
  width: 100%;
  max-width: 380px;
  max-height: 58vh;
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.shv-ec-controls label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0 4px;
  color: #1e293b;
}

.shv-ec-controls label:first-child {
  margin-top: 0;
}

.shv-ec-controls input,
.shv-ec-controls textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: #1e293b;
  min-height: 44px;
}

.shv-ec-controls textarea {
  min-height: 96px;
  resize: vertical;
}

.shv-ec-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.shv-ec-theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shv-ec-theme.is-active {
  border-color: #2e7d4f;
  background: #f0fdf4;
}

.shv-ec-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.shv-ec-tabs {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.shv-ec-tab {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.shv-ec-tab.is-active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.shv-ec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shv-ec-actions button {
  flex: 1 1 160px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.shv-ec-dl {
  background: #2e7d4f;
  color: #fff;
}

.shv-ec-dl:hover {
  background: #23623d;
}

.shv-ec-sh {
  background: #c9a050;
  color: #111;
}

.shv-ec-sh:hover {
  background: #b58c3c;
}

.shv-ec-sorgo {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fffaf0;
  border: 1px solid #ead9b0;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

.shv-ec-sorgo a {
  color: #8a6f35;
  font-weight: 700;
  text-decoration: underline;
}

/* Dream Search Enhancements */
.shv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.shv-tool button.shv-chip {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 18px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #76bbb3;
  font-size: 13px;
  font-weight: 600;
}

.shv-tool button.shv-chip:hover {
  background: #2e7d4f;
  color: #fff;
  border-color: #2e7d4f;
}

.shv-dream-item {
  display: block;
}

.shv-dream-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.shv-dream-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.shv-dream-m {
  font-size: 0.94em;
  color: #334155;
}

.shv-tool mark {
  background: #fef08a;
  color: #1e293b;
  padding: 0 2px;
  border-radius: 3px;
}

/* Shared Mode Tabs */
.shv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shv-tool button.shv-tab {
  flex: 1 1 160px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  min-height: 44px;
}

.shv-tool button.shv-tab.is-active {
  background: #2e7d4f;
  color: #fff;
  border-color: #2e7d4f;
}

/* Pregnancy Calculator */
.shv-preg-out {
  margin-top: 14px;
}

.shv-preg-hero {
  background: #fff;
  border: 1px solid #d1e7dd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.shv-preg-week {
  font-size: 1.45em;
  font-weight: 700;
  color: #2e7d4f;
  margin: 0 0 8px;
}

.shv-progress-bar {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0;
}

.shv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #76bbb3 0%, #2e7d4f 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.shv-preg-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}

@media (min-width: 640px) {
  .shv-preg-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shv-stat-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.shv-stat-lbl {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.shv-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.shv-stat-sub {
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

.shv-milestones {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.shv-milestones li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.shv-milestones li:last-child {
  border-bottom: 0;
}

.shv-milestones li.is-done strong {
  color: #2e7d4f;
}

/* Astrology & Numerology Calculator */
.shv-astro-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 10px;
}

@media (min-width: 720px) {
  .shv-astro-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shv-astro-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shv-astro-card.is-featured {
  border: 2px solid #c9a050;
  background: #fffdf7;
}

.shv-astro-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.shv-astro-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shv-astro-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  background: #2e7d4f;
  color: #fff;
  font-weight: 700;
}

.shv-astro-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 10px;
}

.shv-astro-steps {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.shv-astro-links {
  font-size: 14px;
  font-weight: 600;
}

.shv-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

/* Baby Names Favorites */
.shv-fav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.shv-fav-btn {
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  margin-left: 6px;
}

.shv-fav-btn.is-fav {
  background: #fff1f2 !important;
  border-color: #fb7185 !important;
  color: #be123c !important;
}

/* Homepage Dynamic Sections */
.shv-home-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shv-ht-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e6e2d3;
  border-top: 4px solid #2e7d4f;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.shv-ht-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.1);
  border-color: #c9a050;
}

.shv-ht-card--gold {
  border-top-color: #c9a050;
}

.shv-ht-card--teal {
  border-top-color: #76bbb3;
}

.shv-ht-card--rose {
  border-top-color: #d98c78;
}

.shv-ht-ico {
  font-size: 1.75rem;
  line-height: 1;
}

.shv-ht-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #1e293b;
}

.shv-ht-sub {
  font-size: 0.87rem;
  line-height: 1.45;
  color: #475569;
}

.shv-daily-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shv-daily-card {
  background: #faf6e8;
  border: 1px solid #e8dfc4;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.05);
}

.shv-daily-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #2e7d4f;
  margin-bottom: 4px;
}

.shv-daily-head {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.35;
}

.shv-daily-body {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

.shv-daily-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #ebe3cc;
  font-size: 0.88rem;
  font-weight: 600;
}

.shv-daily-foot a {
  color: #2e7d4f;
  text-decoration: none;
}

.shv-daily-foot a:hover {
  text-decoration: underline;
}

.shv-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 18px;
  border: 1px solid #76bbb3;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shv-mini-btn:hover {
  background: #2e7d4f;
  border-color: #2e7d4f;
  color: #fff;
}

.shv-recent-date {
  padding: 0 12px 10px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 900px) {
  .shv-home-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .shv-daily-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shv-home-tools-grid {
    grid-template-columns: 1fr;
  }
}
