/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.


 */

/* ── color tokens (always dark) ── */
:root {
  --bg:          #2a2d2b;
  --bg-card:     rgba(24, 29, 32, 0.45);
  --bg-input:    rgba(30, 37, 40, 0.4);
  --text:        #e4e8e6;
  --text-muted:  #8a9e97;
  --text-label:  #7aaa96;
  --accent:      #7aaa96;
  --accent-hover:#8bbea8;
  --border:      #252d2a;
  --border-card: #2a3530;
  --shiba-brown: #b87840;
  --shiba-brown-hover: rgba(184, 120, 64, 0.15);
  --accent-hover-bg:   rgba(122, 170, 150, 0.15);
  --flash-bg:    #2a2000;
  --flash-text:  #f0c040;
  --flash-border:#5a4000;
}

/* ── neon flicker animation ── */
@keyframes neon-flicker {
  0%, 86%   { opacity: 1; }
  87%       { opacity: 0.06; }
  87.4%     { opacity: 1; }
  88.2%     { opacity: 0.1; }
  88.8%     { opacity: 0; }
  90%       { opacity: 1; }
  90.6%     { opacity: 0.5; }
  91.2%     { opacity: 1; }
  100%      { opacity: 1; }
}

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

html {
  font-family: 'Klee One', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.8) 0%, transparent 22%, transparent 78%, rgba(10, 10, 10, 0.8) 100%),
    radial-gradient(ellipse 28% 70% at 50% -5%,  rgba(255, 130, 0, 0.18)  0%, transparent 100%),
    radial-gradient(ellipse 18% 10% at 50% 108%, rgba(255, 90,  0, 0.07)  0%, transparent 100%),
    radial-gradient(ellipse at 8% 5%,            rgba(20, 55, 130, 0.14)  0%, transparent 48%),
    radial-gradient(ellipse at 92% 92%,           rgba(10, 120, 110, 0.1)  0%, transparent 44%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

/* ── nav ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-icon-link:hover {
  color: var(--accent);
  background: var(--border);
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-icon-feature {
  width: 30px;
  height: 30px;
}

.nav-external {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-name {
  font-family: 'New Tegomin', serif;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-deco {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.85;
}

/* ── flash ── */
.flash-alert {
  background: var(--flash-bg);
  color: var(--flash-text);
  border-bottom: 1px solid var(--flash-border);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
}

/* ── icons ── */
.icon-placeholder {
  display: block;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

.landing-mascot {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.page-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.page-mascot {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── landing ── */
.landing {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.landing {
  position: relative;
}

.landing-glow {
  position: absolute;
  top: 0;
  left: -24px;
  right: -24px;
  height: 75%;
  background: radial-gradient(ellipse 30% 100% at 50% 0%, rgba(255, 120, 0, 0.13) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: neon-flicker 10s infinite;
}

.landing-hero,
.feature-cards,
.osinagaki {
  position: relative;
  z-index: 1;
}

.landing-title {
  font-family: 'New Tegomin', serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: #fff5e0;
  line-height: 1.1;
  text-shadow:
    0 0 4px  rgba(255, 248, 240, 0.95),
    0 0 12px rgba(255, 224, 102, 0.75),
    0 0 26px rgba(255, 170, 0,  0.55),
    0 0 55px rgba(255, 119, 0,  0.35),
    0 0 90px rgba(255, 90,  0,  0.2);
}

.neon-flicker {
  display: inline-block;
  animation: neon-flicker 10s infinite;
}

@media (max-width: 600px) {
  .landing-title {
    font-size: 36px;
  }

  .greeting-text {
    font-size: 14px;
  }

  .greeting-supplement {
    text-align: left;
  }

  .supplement-heading {
    font-size: 13px;
  }

  .supplement-tagline {
    font-size: 13px;
  }

  .supplement-body {
    font-size: 13px;
  }
}

.landing-subtitle {
  font-family: 'Klee One', cursive;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 28px;
  border: none;
  border-image: linear-gradient(to right, transparent, var(--border) 25%, var(--border) 75%, transparent) 1;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

/* ── 薬剤師の挨拶 ── */
.pharmacist-greeting {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  justify-content: center;
}

.pharmacist-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 0 12px 4px rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.greeting-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: left;
}

.greeting-supplement {
  text-align: center;
  margin-bottom: 52px;
  opacity: 0.8;
}

.greeting-supplement p {
  line-height: 2;
  color: #b8a888;
}

.greeting-supplement p + p {
  margin-top: 20px;
}

.supplement-heading-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.supplement-icon {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.supplement-heading {
  display: inline-block;
  font-size: 14px;
  color: #fff5e0;
}

.supplement-tagline {
  display: inline-block;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 245, 224, 0.25);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.supplement-body {
  font-size: 13px;
}

.greeting-text strong {
  color: var(--text);
}

.feature-greeting {
  margin-bottom: 24px;
  justify-content: flex-start;
}

.feature-greeting .greeting-text {
  flex: 1;
  max-width: none;
}

/* ── お品書き（ライトボックス + 手製紙） ── */
@keyframes sign-glow {
  0%, 85%   { box-shadow: 0 0 14px rgba(200,230,210,0.55), 0 0 40px rgba(180,220,195,0.25), 0 0 70px rgba(160,210,180,0.12), 0 6px 32px rgba(0,0,0,0.85); }
  86%       { box-shadow: 0 0 3px rgba(200,230,210,0.12), 0 6px 32px rgba(0,0,0,0.85); }
  87%       { box-shadow: 0 0 14px rgba(200,230,210,0.55), 0 0 40px rgba(180,220,195,0.25), 0 0 70px rgba(160,210,180,0.12), 0 6px 32px rgba(0,0,0,0.85); }
  88%       { box-shadow: 0 0 5px rgba(200,230,210,0.18), 0 6px 32px rgba(0,0,0,0.85); }
  90%       { box-shadow: 0 0 14px rgba(200,230,210,0.55), 0 0 40px rgba(180,220,195,0.25), 0 0 70px rgba(160,210,180,0.12), 0 6px 32px rgba(0,0,0,0.85); }
  100%      { box-shadow: 0 0 14px rgba(200,230,210,0.55), 0 0 40px rgba(180,220,195,0.25), 0 0 70px rgba(160,210,180,0.12), 0 6px 32px rgba(0,0,0,0.85); }
}

.osinagaki-wrap {
  position: relative;
  display: inline-block;
  max-width: 440px;
  width: 100%;
}

.osinagaki-pole {
  display: none;
}

/* ライトボックス本体 */
.osinagaki {
  background: rgba(195, 225, 205, 0.28);
  border: 2px solid rgba(200, 230, 210, 0.5);
  border-radius: 4px;
  box-shadow:
    0 0 14px rgba(200, 230, 210, 0.55),
    0 0 40px rgba(180, 220, 195, 0.25),
    0 0 70px rgba(160, 210, 180, 0.12),
    0 6px 32px rgba(0, 0, 0, 0.85);
  padding: 16px;
  position: relative;
  animation: sign-glow 9s ease-in-out infinite;
}

/* 手製紙：光を遮る暗い面、周囲16pxに光が漏れる */
.osinagaki-paper {
  background:
    radial-gradient(ellipse 55% 45% at 22% 38%, rgba(10,14,12,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 42% 55% at 72% 65%, rgba(10,14,12,0.32) 0%, transparent 65%),
    radial-gradient(ellipse 38% 35% at 58% 18%, rgba(10,14,12,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 15% 80%, rgba(10,14,12,0.22) 0%, transparent 55%),
    rgba(10, 14, 12, 0.42);
  padding: 28px 36px;
  transform: rotate(0.6deg) translate(3px, -2px);
  color: #c8e0d4;
}

.osinagaki-header {
  font-family: 'New Tegomin', serif;
  font-size: 18px;
  letter-spacing: 0.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #c8e0d4;
}

.osinagaki-divider {
  border: none;
  border-top: 1px solid #3a6050;
  margin: 16px 0;
  opacity: 0.5;
}

.osinagaki-item {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.osinagaki-item:hover {
  opacity: 0.75;
}

.osinagaki-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.osinagaki-icon {
  width: 36px;
  height: 36px;
  color: #7aaa96;
  flex-shrink: 0;
}

.osinagaki-name {
  font-family: 'New Tegomin', serif;
  font-size: 26px;
  font-weight: 400;
  color: #e0f0e8;
}

.osinagaki-desc {
  font-family: 'New Tegomin', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #c8e0d4;
  margin-bottom: 10px;
  padding-left: 30px;
}

.osinagaki-link {
  display: inline-block;
  font-size: 13px;
  font-family: 'New Tegomin', serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #7aaa96;
  padding-left: 30px;
  transition: opacity 0.15s;
}

.osinagaki-link:hover {
  opacity: 1;
}

/* ── メニューカード（2枚横並び） ── */
.menu-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-card {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 155px;
  transition: transform 0.15s, opacity 0.15s;
}

.menu-card:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.menu-card-light {
  background: rgba(195, 225, 205, 0.28);
  border: 2px solid rgba(200, 230, 210, 0.5);
  border-radius: 4px;
  box-shadow:
    0 0 10px rgba(200, 230, 210, 0.45),
    0 0 28px rgba(180, 220, 195, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.75);
  padding: 10px;
  animation: sign-glow 9s ease-in-out infinite;
}

.menu-card-light--alt {
  animation-delay: 1.5s;
}

.menu-card-paper {
  background:
    radial-gradient(ellipse 60% 50% at 30% 35%, rgba(10,14,12,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 70% 70%, rgba(10,14,12,0.3) 0%, transparent 65%),
    rgba(10, 14, 12, 0.42);
  padding: 20px 14px 18px;
  text-align: center;
  transform: rotate(0.5deg) translate(2px, -1px);
}

.menu-card-paper--alt {
  transform: rotate(-0.7deg) translate(-1px, -2px);
}

.menu-card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: cover;
  border-radius: 8px;
}

.menu-card-name {
  font-family: 'New Tegomin', serif;
  font-size: 13px;
  font-weight: 400;
  color: #e0f0e8;
  margin-bottom: 6px;
  line-height: 1.5;
  word-break: break-all;
}

.menu-card-sub {
  font-size: 12px;
  color: var(--text-label);
  letter-spacing: 0.08em;
}

.feature-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 32px 24px;
  width: 280px;
  text-align: left;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-label);
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.feature-btn {
  display: inline-block;
  padding: 9px 20px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}

.feature-btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ── topic / side-effect form pages ── */
.topic-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 28px 28px 24px;
  margin-bottom: 28px;
}

.topic-section {
  padding: 8px 0 24px;
  margin-bottom: 0;
}

.topic-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin-bottom: 28px;
}

.topic-category {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-label);
  margin-bottom: 10px;
}

.topic-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.topic-rule {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.topic-question {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
}

.topic-hint-wrap {
  margin-top: 24px;
  display: inline-block;
  max-width: 72%;
  position: relative;
  transform: rotate(-0.6deg);
}

.topic-hint {
  padding: 14px 16px 18px;
  background: rgba(240, 230, 200, 0.06);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.topic-hint-curl {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.topic-hint-curl svg {
  display: block;
}

.hint-curl-shadow {
  fill: rgba(0, 0, 0, 0.4);
}

.hint-curl-back {
  fill: #3a3028;
}

.topic-hint-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a08858;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.topic-hint-body {
  font-size: 14px;
  color: #c8b07a;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ── chat input layout ── */
.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.chat-input-area {
  flex: 1;
  margin-bottom: 0;
}

.textarea-wrapper {
  position: relative;
}

.btn-clear-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.15s;
  border-radius: 3px;
}

.btn-clear-icon:hover {
  opacity: 1;
}

.btn-clear-icon svg {
  width: 11px;
  height: 11px;
}

.chat-input-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 34px;
}

.chat-user-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 0 12px 4px rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  margin-left: auto;
  transition: background 0.15s;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.chat-send-btn:hover {
  background: var(--accent-hover);
}

/* ── form ── */
.input-section {
  margin-bottom: 20px;
}

.input-section label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.input-section textarea {
  width: 100%;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--accent);
  outline: 1px solid rgba(122, 170, 150, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: box-shadow 0.2s, outline-color 0.2s;
  box-shadow:
    0 0 8px  rgba(122, 170, 150, 0.25),
    0 0 18px rgba(122, 170, 150, 0.12);
}

.input-section textarea:focus {
  outline-color: rgba(122, 170, 150, 0.9);
  box-shadow:
    0 0 10px rgba(122, 170, 150, 0.6),
    0 0 24px rgba(122, 170, 150, 0.35),
    0 0 48px rgba(122, 170, 150, 0.15);
}

.input-section textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

input[type="submit"] {
  display: block;
  margin: 0 auto;
  padding: 11px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-clear {
  padding: 11px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, color 0.15s;
}

.btn-clear:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

input[type="submit"]:hover {
  background: var(--accent-hover);
}

/* ── result pages ── */
.prescription-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

.original-topic {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.original-topic-flat {
  padding: 8px 4px;
  margin-bottom: 8px;
}

.original-topic-flat .user-answer {
  border-top: none;
}

.user-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.answer-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-label);
  margin-bottom: 6px;
}

.answer-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

.prescription-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 28px;
}

.prescription-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

.prescription-text p + p {
  margin-top: 12px;
}

.prescription-title {
  font-family: 'New Tegomin', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.prescription-formal {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
}

.prescription-formal p + p {
  margin-top: 10px;
}

.pharmacist-result-comment {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.pharmacist-result-body {
  flex: 1;
}

.card-share-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-share-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-share-sm .x-icon,
.btn-share-sm .line-icon {
  width: 12px;
  height: 12px;
}

.prescription-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-retry {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-forward {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-forward:hover {
  background: var(--accent-hover-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-back {
  border-color: var(--shiba-brown);
  color: var(--shiba-brown);
}

.btn-back:hover {
  background: var(--shiba-brown-hover);
  border-color: var(--shiba-brown);
  color: var(--shiba-brown);
}

.btn-share-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.btn-share-x:hover {
  background: #1a1a1a;
  border-color: #555;
  color: #fff;
}

.x-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-share-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #06C755;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}

.btn-share-line:hover {
  background: #05b34b;
  color: #fff;
}

.line-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── loading overlay ── */
@keyframes pulse-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50%       { transform: translateY(-10px) scale(1.06); opacity: 1; }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(42, 45, 43, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-pharmacist {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), 0 0 24px 6px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: pulse-float 2s ease-in-out infinite;
}

.loading-message {
  font-family: 'Klee One', cursive;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
