/* ==========================================================================
   ANNA'S FOOD UNIVERSE — PINK BRUSHED METAL Y2K PROTOTYPE THEME
   Mac OS X Panther / Tiger Brushed Metal Chassis in Drenched Rose & Candy Aqua
   ========================================================================== */

:root {
  /* Pink Brushed Aluminum Chrome Palette */
  --metal-highlight: #ffffff;
  --metal-light: #fef0f6;
  --metal-mid: #f6d6e6;
  --metal-dark: #dbaec4;
  --metal-shadow: #b27b98;
  --metal-border: #9b5a7d;
  --metal-groove: #783e5f;

  /* Aqua Mint / Cyan High-Contrast Accent */
  --mint-aqua-top: #c5ffef;
  --mint-aqua-mid: #34ebb6;
  --mint-aqua-deep: #109f7a;
  --mint-aqua-dark: #09684f;
  --mint-aqua-glow: rgba(52, 235, 182, 0.65);

  /* Candy Pink & Ruby Gel Colors */
  --ruby-gel-top: #ffe5f1;
  --ruby-gel-mid: #ff75a6;
  --ruby-gel-deep: #d11364;
  --ruby-gel-bottom: #f53485;
  --ruby-heart-shadow: rgba(245, 52, 133, 0.65);

  /* Deep Plum LCD Well */
  --lcd-plum-top: #2c0e22;
  --lcd-plum-bot: #13050f;
  --lcd-border-top: #1b0714;
  --lcd-border-bot: #883967;
  --lcd-text-pink: #ffa8ce;
  --lcd-station-muted: #d48ba8;

  /* Typography & Embossing */
  --metal-text-dark: #22141c;
  --metal-text-muted: #735465;
  --text-emboss-white: 0 1px 0 rgba(255, 255, 255, 0.9);
  --text-emboss-dark: 0 -1px 0 rgba(75, 5, 38, 0.7);

  /* Window Shadow with Rose Ambient Glow */
  --window-shadow: 0 24px 65px rgba(90, 15, 50, 0.48), 0 8px 24px rgba(60, 10, 35, 0.32);

  /* Focus Indicator */
  --focus-ring-pink: #ff52a2;
}

/* ==========================================================================
   SELECTION, SCROLLBARS & FOCUS
   ========================================================================== */
::selection {
  background: #ff5da6;
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  background: #fdf2f7;
  border-left: 1px solid #ebd0df;
  box-shadow: inset 1px 0 0 #f7e1ed;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #dbaec4, #fdf0f6, #c895af);
  border: 1px solid #9c5c7f;
  border-radius: 9999px;
  box-shadow: inset 0 1px 0 #ffffff;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #c895af, #f5d4e5, #b8809e);
}

button:focus-visible,
input:focus-visible,
.clippy-floating-container:focus-visible {
  outline: 3px solid var(--focus-ring-pink);
  outline-offset: 3px;
}

/* Ensure hidden remains authoritative */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   0. PEARLESCENT PINK DESKTOP WALLPAPER
   Using the moodboard-derived prototype-pink-heart.jpg as the authored foundation layer
   Layered with radial gradients for high contrast and zero eye fatigue
   ========================================================================== */
body.osx-desktop-body {
  color: var(--metal-text-dark);
  background-color: #f7a8ca;
  background-image:
    /* Top ambient glow */
    radial-gradient(ellipse at 50% 12%, rgba(255, 235, 245, 0.85) 0%, transparent 55%),
    /* Mid-frame vignette to frame the window */
    radial-gradient(ellipse at 50% 50%, rgba(248, 178, 209, 0.65) 0%, rgba(188, 48, 115, 0.82) 100%),
    /* Authored moodboard heart raster backdrop */
    url('/assets/prototype-pink-heart.jpg'),
    /* Bottom fallback linear gradient */
    linear-gradient(135deg, #fca5cf 0%, #fa71ad 35%, #eb388b 70%, #b8145e 100%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: normal, overlay, normal, normal;
}

/* ==========================================================================
   0.1 MAC OS X TOP MENU BAR (10.3 PANTHER — ROSE ENAMEL FINISH)
   ========================================================================== */
.osx-menubar {
  background: linear-gradient(
    to bottom,
    rgba(255, 245, 250, 0.96) 0%,
    rgba(250, 228, 239, 0.96) 49%,
    rgba(240, 208, 224, 0.96) 50%,
    rgba(228, 192, 212, 0.96) 100%
  );
  border-bottom: 1px solid rgba(145, 60, 98, 0.35);
  box-shadow: 0 1px 3px rgba(110, 20, 60, 0.18);
  color: #2b1120;
}

.apple-logo {
  color: #c71b69;
}

.app-name {
  color: #2b1120;
}

.menu-item {
  color: #421e33;
}

.menu-item:hover {
  background: #d41767;
  color: #ffffff;
}

.menu-widget,
.menu-user {
  color: #421e33;
}

.menu-clock {
  color: #2b1120;
}

/* ==========================================================================
   1. ROSE-ANODIZED BRUSHED ALUMINUM WINDOW FRAME
   Fine horizontal micro-striations + rose gradient profile
   ========================================================================== */
.osx-window-frame {
  border: 1px solid var(--metal-border);
  box-shadow: var(--window-shadow);
  background:
    /* Fine 2px horizontal micro-striations for authentic brushed aluminum */
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.28) 0px,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(130, 45, 80, 0.05) 1px,
      rgba(130, 45, 80, 0.05) 2px
    ),
    /* Rich multi-stop rose brushed aluminum gradient */
    linear-gradient(
      to bottom,
      #fff4f8 0%,
      #fce4ef 4%,
      #f4d3e3 14%,
      #eabed3 40%,
      #dbaac2 75%,
      #cb93b0 100%
    );
}

/* ==========================================================================
   1.1 WINDOW TITLEBAR
   ========================================================================== */
.osx-titlebar {
  border-bottom: 1px solid rgba(135, 55, 95, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.window-title-text {
  color: #331525;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
}

.window-toolbar-toggle {
  background: linear-gradient(to bottom, #ffffff 0%, #f6dbe8 50%, #e6bdd2 51%, #f4dbe8 100%);
  border: 1px solid #9c5c7f;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(90, 20, 50, 0.15);
}

.pill-toggle-shape {
  background: #7d3d60;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   1.2 BRUSHED METAL TOOLBAR (GLOSSY GEL SEGMENTED TABS & SEARCH)
   ========================================================================== */
.osx-toolbar {
  border-bottom: 1px solid #b87c9b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Inset rose tray */
.metal-segmented-control {
  background: linear-gradient(to bottom, #dfb4ca 0%, #c492ad 100%);
  border: 1px solid #8e4f71;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 1px 2px rgba(80, 20, 50, 0.3);
}

/* Pearl inactive segmented button */
.segment-btn {
  background: linear-gradient(to bottom, #ffffff 0%, #fbf0f6 50%, #f2dbe8 51%, #f8eaf2 100%);
  border-right: 1px solid #bc89a3;
  box-shadow: inset 0 1px 0 #ffffff, 1px 0 0 rgba(255, 255, 255, 0.6);
  color: #381628;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.segment-btn:hover:not(.active) {
  background: linear-gradient(to bottom, #ffffff 0%, #fff4f9 50%, #f8e5ef 51%, #fff1f8 100%);
  color: #240b19;
}

/* Candy-pink sunken active gel state */
.segment-btn.active {
  background: linear-gradient(
    to bottom,
    #cc1263 0%,
    #f23083 49%,
    #b80c55 50%,
    #e82375 100%
  );
  color: #ffffff;
  text-shadow: var(--text-emboss-dark);
  box-shadow: inset 0 2px 4px rgba(70, 0, 30, 0.65), inset 0 1px 1px rgba(0, 0, 0, 0.3);
  border-right-color: #940a44;
}

/* Recessed Safari Search Capsule */
.search-capsule {
  background: #ffffff;
  border: 1px solid #9e6080;
  box-shadow:
    inset 0 1px 3px rgba(100, 25, 60, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-lens-icon {
  color: #8c4c6e;
}

.search-capsule input {
  color: #240b19;
}

.search-capsule input::placeholder {
  color: #9e7087;
}

.search-clear-btn {
  color: #995276;
}

.search-clear-btn:hover {
  color: #3b1026;
}

/* ==========================================================================
   1.3 INSET CONTENT WELL (PLATINUM-ROSE SHEET)
   ========================================================================== */
.osx-content-well {
  background: #fffcfd;
  background-image: repeating-linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 22px,
    #fcf2f7 22px,
    #fcf2f7 44px
  );
  border: 1px solid #b8829f;
  border-top-color: #8c4a6e;
  border-bottom-color: #ffffff;
  box-shadow:
    inset 0 2px 5px rgba(90, 20, 55, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   QUICKTIME / ITUNES BRUSHED METAL LCD DISPLAY (DEEP PLUM / PINK TRANSLUCENT)
   ========================================================================== */
/* ==========================================================================
   Y2K AUTHENTIC DIECUT STICKERS
   Tactile skeuomorphic vinyl sticker decorations with subtle drop shadow
   ========================================================================== */
.y2k-diecut-sticker {
  display: block;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.y2k-diecut-sticker img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: filter 0.24s ease;
}

.y2k-diecut-sticker:hover img {
  filter: drop-shadow(0 6px 14px rgba(216, 27, 96, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* 1. Puppy Sticker in Toolbar */
.sticker-puppy-toolbar {
  flex-shrink: 0;
  width: 76px;
  margin: 0 10px;
  transform: rotate(-1.5deg);
}

.sticker-puppy-toolbar:hover {
  transform: rotate(-3deg) scale(1.1);
}

/* 2. Chef Hamster in QuickTime LCD Display */
.quicktime-lcd-display {
  background: linear-gradient(to bottom, var(--lcd-plum-top) 0%, var(--lcd-plum-bot) 100%);
  border: 1px solid #541e40;
  border-top-color: var(--lcd-border-top);
  border-bottom-color: var(--lcd-border-bot);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.lcd-content-wrapper {
  flex: 1;
  min-width: 0;
}

.sticker-chef-hamster {
  flex-shrink: 0;
  width: 74px;
  transform: rotate(2.5deg);
  margin-right: 4px;
}

.sticker-chef-hamster:hover {
  transform: rotate(0deg) scale(1.1);
}

/* Standalone perched hamster when LCD display box is removed */
#tab-offers {
  position: relative;
}

.sticker-chef-hamster-offers {
  position: absolute;
  top: -12px;
  right: 16px;
  z-index: 10;
  transform: rotate(3deg);
}

#tab-offers .cards-grid {
  margin-top: 36px;
}

.quicktime-lcd-display.fav-lcd {
  background: linear-gradient(to bottom, #330b23 0%, #15030e 100%);
  border-bottom-color: #992c69;
}

.quicktime-lcd-display.recipe-lcd {
  background: linear-gradient(to bottom, #191c12 0%, #0c1008 100%);
  border-bottom-color: #496e30;
}

/* High-contrast Aqua / Mint LCD Badge for Deals */
.lcd-badge {
  color: #062e22;
  background: linear-gradient(to bottom, #98ffe5 0%, var(--mint-aqua-mid) 100%);
  box-shadow: 0 0 8px var(--mint-aqua-glow);
  font-weight: 800;
}

/* Ruby Pink LCD Badge for Favorites */
.lcd-badge.fav-badge {
  background: linear-gradient(to bottom, #ffbedc 0%, #f72c7f 100%);
  color: #38041a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 8px rgba(247, 44, 127, 0.65);
}

/* Mint LCD Badge for Recipes */
.lcd-badge.recipe-badge {
  background: linear-gradient(to bottom, #aefac8 0%, #2bd26d 100%);
  color: #092e17;
  box-shadow: 0 0 8px rgba(43, 210, 109, 0.6);
}

.lcd-station {
  color: var(--lcd-station-muted);
}

.lcd-headline {
  color: var(--lcd-text-pink);
  text-shadow: 0 0 10px rgba(255, 120, 180, 0.7);
}

.fav-lcd .lcd-headline {
  color: #ffa1c9;
  text-shadow: 0 0 10px rgba(255, 100, 165, 0.75);
}

.recipe-lcd .lcd-headline {
  color: #88ffad;
  text-shadow: 0 0 10px rgba(136, 255, 173, 0.7);
}

.lcd-body-text {
  color: #f0c5da;
}

.fav-lcd .lcd-body-text {
  color: #f7bfd7;
}

.recipe-lcd .lcd-body-text {
  color: #bce9cb;
}

/* ==========================================================================
   OFFER & RECIPE CARDS (POLISHED SILVER-PINK HARDWARE PLAQUES)
   ========================================================================== */
.offer-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
}

.card-thumb-wrap {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  background: #ffffff;
  border: 1px solid #d4a9bf;
  border-top-color: #ebd0de;
  border-bottom-color: #b785a2;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 3px rgba(80, 15, 45, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.offer-card:hover .card-thumb-img {
  transform: scale(1.05);
}

.card-thumb-fallback-icon {
  display: none;
  font-size: 28px;
  user-select: none;
}

.card-thumb-wrap.has-fallback .card-thumb-img {
  display: none;
}

.card-thumb-wrap.has-fallback .card-thumb-fallback-icon {
  display: block;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.offer-card,
.recipe-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fef5f9 55%, #f4e3ed 100%);
  border: 1px solid #c89eb6;
  border-top-color: #ebd0de;
  border-bottom-color: #a87391;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 3px rgba(90, 20, 55, 0.12),
    0 3px 8px rgba(90, 20, 55, 0.05);
}

.offer-card:hover,
.recipe-card:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 6px rgba(110, 20, 65, 0.22),
    0 6px 14px rgba(110, 20, 65, 0.1);
}

/* Enamel Store Hardware Badge */
.chain-badge {
  background: linear-gradient(to bottom, #ffffff 0%, #fcedf4 100%);
  border: 1px solid #c295ad;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 1px rgba(90, 20, 55, 0.12);
  color: #3b1528;
}

/* Chrome-Heart / Ruby Favorite Button */
.heart-btn {
  border: 1px solid #b37d9a;
  background: linear-gradient(to bottom, #ffffff 0%, #fcedf5 50%, #eed5e3 51%, #f6e6ef 100%);
  box-shadow:
    inset 0 1px 1px #ffffff,
    0 1px 2px rgba(80, 15, 45, 0.22);
}

.heart-btn:active {
  transform: scale(1.2);
}

/* Active Ruby Jewel State */
.heart-btn.is-fav {
  background: radial-gradient(
    circle at 50% 30%,
    #ffa3c9 0%,
    #f72886 48%,
    #b80a59 50%,
    #e81774 100%
  );
  border-color: #85043d;
  box-shadow:
    inset 0 1px 1px #ffffff,
    0 0 10px var(--ruby-heart-shadow);
}

.item-title {
  color: #240c1a;
}

.current-price {
  color: #260a19;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
}

.before-price {
  color: #8a6479;
}

/* Mint / Aqua High-Contrast Savings Tag */
.savings-tag {
  background: linear-gradient(
    to bottom,
    var(--mint-aqua-top) 0%,
    var(--mint-aqua-mid) 48%,
    var(--mint-aqua-deep) 50%,
    #23d9a5 100%
  );
  border: 1px solid var(--mint-aqua-dark);
  color: #042e22;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(9, 104, 79, 0.25);
}

.reason-text {
  color: #5c384c;
}

/* Candy-Pink Aqua Gel Primary Action Buttons */
.aqua-pill-btn,
.recipe-ask-btn {
  background: linear-gradient(
    to bottom,
    var(--ruby-gel-top) 0%,
    var(--ruby-gel-mid) 48%,
    var(--ruby-gel-deep) 50%,
    var(--ruby-gel-bottom) 100%
  );
  border: 1px solid #940a44;
  color: #ffffff;
  text-shadow: var(--text-emboss-dark);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(90, 0, 35, 0.4),
    0 2px 4px rgba(90, 15, 50, 0.3);
}

/* Loading & Empty States */
.loading-state,
.empty-state {
  background: rgba(255, 250, 253, 0.9);
  border: 1px solid #ccaec0;
  box-shadow: inset 0 1px 3px rgba(90, 20, 55, 0.08);
}

/* ==========================================================================
   1.4 BRUSHED METAL STATUS BAR
   ========================================================================== */
.osx-statusbar {
  background: linear-gradient(to bottom, #f5dce8 0%, #e5c4d6 100%);
  border-top: 1px solid #b87d9d;
  box-shadow: inset 0 1px 0 #ffffff;
  color: #3b172a;
}

.sb-section {
  border-right: 1px solid #c99db5;
  box-shadow: 1px 0 0 #ffffff;
}

/* Mint / Aqua LED Indicator */
.aqua-led-indicator {
  background: radial-gradient(circle at 40% 35%, #8cffe3 0%, var(--mint-aqua-mid) 55%, var(--mint-aqua-deep) 100%);
  border: 1px solid var(--mint-aqua-dark);
  box-shadow: 0 0 6px var(--mint-aqua-mid);
}

.sb-user-badge {
  color: #632d4a;
}

/* ==========================================================================
   2. FLOATING PRINCESS AGENT
   ========================================================================== */
.clippy-floating-container,
.princess-floating-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 6px 18px rgba(160, 16, 76, 0.45));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.18s ease;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}

.clippy-floating-container:hover,
.princess-floating-container:hover {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 10px 24px rgba(255, 111, 169, 0.65));
}

.princess-character {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.princess-floating-img {
  width: 96px;
  height: 120px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

.clippy-speech-bubble,
.princess-speech-bubble {
  background: #fff2f7;
  border: 1.5px solid #ff6fa9;
  border-radius: 9px;
  padding: 4px 10px;
  font-family: 'Comic Neue', cursive, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #4a152d;
  box-shadow: 0 3px 8px rgba(160, 16, 76, 0.25);
  margin-bottom: 4px;
  position: relative;
  text-transform: lowercase;
}

.clippy-speech-bubble::after,
.princess-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #fff2f7 transparent;
  display: block;
  width: 0;
}

.clippy-speech-bubble::before,
.princess-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 19px;
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: #ff6fa9 transparent;
  display: block;
  width: 0;
}

.chat-header-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  border: 1.5px solid #ffffff;
  margin-right: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bot-bubble-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -4px;
  margin-right: 6px;
  border: 1px solid #ff6fa9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   3. ICHAT AV STYLE BRUSHED METAL CHAT WINDOW
   ========================================================================== */
.osx-modal-overlay {
  background: rgba(50, 12, 32, 0.65);
}

.osx-chat-window {
  border: 1px solid var(--metal-border);
  box-shadow: 0 28px 75px rgba(70, 10, 40, 0.7), 0 10px 30px rgba(50, 5, 25, 0.4);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.28) 0px,
      rgba(255, 255, 255, 0.28) 1px,
      rgba(130, 45, 80, 0.05) 1px,
      rgba(130, 45, 80, 0.05) 2px
    ),
    linear-gradient(
      to bottom,
      #fff4f8 0%,
      #fce4ef 4%,
      #f4d3e3 14%,
      #eabed3 40%,
      #dbaac2 75%,
      #cb93b0 100%
    );
}

.osx-chat-feed {
  background: #fffcfd;
  background-image: repeating-linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 22px,
    #fcf2f7 22px,
    #fcf2f7 44px
  );
  border: 1px solid #9c5c7f;
  border-top-color: #783e5f;
  border-bottom-color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(90, 20, 55, 0.25);
}

.chat-bubble.bot {
  background: linear-gradient(to bottom, #ffffff 0%, #faedf4 100%);
  border: 1px solid #cba7bc;
  color: #240c1a;
}

.chat-bubble.user {
  background: linear-gradient(
    to bottom,
    var(--ruby-gel-top) 0%,
    var(--ruby-gel-mid) 48%,
    var(--ruby-gel-deep) 50%,
    var(--ruby-gel-bottom) 100%
  );
  border: 1px solid #940a44;
  color: #ffffff;
  text-shadow: var(--text-emboss-dark);
}

.bubble-speaker {
  color: #451b32;
}

.chat-bubble.user .bubble-speaker {
  color: #ffffff;
}

.osx-chat-controls {
  border-top: 1px solid #ad7393;
  box-shadow: inset 0 1px 0 #ffffff;
}

.chat-input-wrapper {
  background: #ffffff;
  border: 1px solid #9e6080;
  box-shadow:
    inset 0 1px 3px rgba(100, 25, 60, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.chat-input-wrapper input {
  color: #240b19;
}

/* ==========================================================================
   MOBILE & VIEWPORT SPECIFICATIONS (390x844 & Small Devices)
   All interactive touch targets >= 44x44px, zero horizontal overflow
   ========================================================================== */
@media (max-width: 600px) {
  .osx-window-frame {
    margin: 0;
    border-radius: 0;
    border: none;
    min-height: calc(100vh - 22px);
  }

  .osx-titlebar {
    height: 48px;
    padding: 0 8px;
  }

  .traffic-light {
    width: 44px;
    height: 44px;
  }

  .window-title-box {
    left: 130px;
    padding: 0 42px 0 0;
  }

  .window-title-text {
    font-size: 11px;
  }

  .segment-btn {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .search-capsule {
    height: 44px;
    padding: 0 12px;
  }

  .search-clear-btn {
    width: 44px;
    height: 44px;
  }

  .quicktime-lcd-display {
    padding: 12px;
    gap: 10px;
  }

  .sticker-puppy-toolbar {
    width: 62px;
    margin: -2px auto;
    transform: rotate(-1deg);
  }

  .sticker-chef-hamster {
    width: 62px;
    margin-right: 0;
  }

  .card-thumb-wrap {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 4px;
  }

  .offer-card {
    gap: 10px;
    padding: 10px;
  }

  .heart-btn {
    width: 44px;
    height: 44px;
  }

  .recipe-ask-btn,
  .osx-chat-controls .aqua-pill-btn {
    min-height: 44px;
  }

  .osx-statusbar {
    min-height: 34px;
    height: auto;
  }

  .chat-input-wrapper {
    height: 44px;
  }
}

/* ==========================================================================
   DESKTOP FLOATING WIDGETS & TOY SHELF (Quirky Y2K Details)
   ========================================================================== */
.floating-widgets-container {
  position: fixed;
  top: 48px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 450;
  pointer-events: auto;
}

.widget-card {
  background: rgba(255, 240, 248, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(130, 20, 60, 0.22);
  overflow: hidden;
  user-select: none;
}

/* 1. Translucent Sunburst Digital Clock */
.sunburst-clock-widget {
  width: 210px;
  padding: 14px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(255, 235, 245, 0.85) 0%, rgba(255, 175, 210, 0.6) 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.sunburst-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.clock-display {
  font-family: 'VT323', monospace;
  font-size: 34px;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(130, 0, 50, 0.8), 0 0 10px #ff3388;
  line-height: 1;
  margin-bottom: 2px;
}

.clock-day {
  font-family: 'Comic Neue', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(90, 0, 40, 0.7);
}

.clock-date {
  font-size: 11px;
  font-weight: 700;
  color: #fff0f6;
  text-shadow: 1px 1px 2px rgba(80, 0, 30, 0.7);
  margin-top: 1px;
}

.clock-tagline {
  font-size: 9px;
  font-weight: 800;
  color: #ffe0ef;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(80, 0, 30, 0.6);
}

/* 2. Weather Sun Widget */
.weather-sun-widget {
  width: 210px;
  padding: 12px;
  background: rgba(255, 245, 250, 0.68);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.weather-sun-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}

.glowing-pink-sun {
  font-size: 36px;
  filter: drop-shadow(0 0 12px #ff4090);
  animation: pulseSun 3s ease-in-out infinite;
}

@keyframes pulseSun {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.fluffy-cloud-cluster {
  position: absolute;
  bottom: -4px;
  display: flex;
  align-items: center;
  gap: -4px;
}

.cloud-bubble {
  font-size: 20px;
  opacity: 0.9;
}

.cloud-heart {
  font-size: 14px;
  margin-left: 2px;
}

.weather-summary-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f2a8c8;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
}

.weather-sum-header {
  font-weight: 700;
  color: #bf1565;
  margin-bottom: 2px;
  font-size: 11px;
}

.weather-sum-detail {
  font-size: 10px;
  color: #4a1934;
  line-height: 1.3;
}

/* 3. Bottom Floating Sticker / Toy Shelf */
.bottom-sticker-shelf {
  position: fixed;
  bottom: 16px;
  right: 130px;
  background: rgba(255, 245, 250, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(100, 10, 40, 0.22);
  padding: 6px 12px;
  z-index: 750;
}

.shelf-items {
  display: flex;
  gap: 10px;
  align-items: center;
}

.shelf-toy {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 3px 4px rgba(100, 0, 40, 0.25));
}

.shelf-toy:hover {
  transform: translateY(-8px) scale(1.25);
}

.shelf-toy:focus-visible {
  outline: 2px solid var(--focus-ring-pink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Floating sparkle emoji particle animation */
.floating-sparkle-emoji {
  position: fixed;
  font-size: 26px;
  pointer-events: none;
  z-index: 99999;
  user-select: none;
  transition: all 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hide desktop widgets and shelf on screens under 1320px to prevent window overlap */
@media (max-width: 1320px) {
  .floating-widgets-container,
  .bottom-sticker-shelf {
    display: none !important;
  }
}
