/* ==========================================================================
   ĐIỀU NHỎ BÉ (DIEU-NHO-BE.CSS)
   Aesthetic Parchment Theme + Tempo-Cat Sticker Peel Interactive Cards
   ========================================================================== */

/* --- SECTION 1: NHẶT MỘT ĐIỀU NHỎ CHO MÌNH (HERO ENVELOPE SHOWCASE) --- */
.dnb-hero-section {
  padding: 60px 20px 40px 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.dnb-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  /* background: rgba(253, 249, 243, 0.85); */
  backdrop-filter: blur(10px);
  /* border: 1px solid rgba(220, 200, 180, 0.5); */
  border-radius: 20px;
  padding: 50px 45px;
  /* box-shadow: 0 15px 45px rgba(184, 134, 59, 0.05); */
  position: relative;
  overflow: hidden;
}

.dnb-envelope-base,
.dnb-pen-accent {
  display: none !important;
}

/* Background Leaf Accents */
.dnb-hero-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(200, 149, 71, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dnb-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dnb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a36543;
  background: rgba(163, 101, 67, 0.09);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.dnb-hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  font-weight: 700;
  color: #3d312a;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.dnb-hero-flourish {
  font-size: 16px;
  color: #c49a6c;
  margin-bottom: 18px;
  opacity: 0.8;
  letter-spacing: 6px;
}

.dnb-hero-subtitle {
  font-family: 'Charm', cursive, var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #68584c;
  line-height: 1.75;
  margin: 0;
}

/* Envelope Showcase Right Column */
.dnb-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dnb-envelope-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  /* background: #fdfbf7;
  border: 1px solid #e2d4c3;
  border-radius: 20px; */
  padding: 28px 24px 34px 24px;
  /* box-shadow:
    0 18px 40px rgba(70, 50, 30, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.03); */
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dnb-envelope-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.dnb-letter-paper {
  background-color: #fcf9f2;
  background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(198, 156, 94, 0.2) 31px, rgba(198, 156, 94, 0.2) 32px);
  background-size: 100% 32px;
  border: 1px solid rgba(212, 186, 150, 0.6);
  border-left: 3px double rgba(198, 156, 94, 0.45);
  border-radius: 14px;
  /* padding: 24px 22px 20px 26px; */
  padding: 42px 22px 122px 26px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 0 25px rgba(212, 186, 150, 0.25),
    0 4px 14px rgba(70, 50, 30, 0.05);
  position: relative;
  overflow: hidden;
}

.dnb-letter-paper::before {
  content: '📮 Thư gửi bạn';
  position: absolute;
  top: 18px;
  right: 14px;
  font-family: 'Itim', sans-serif;
  font-size: 11px;
  color: rgba(163, 101, 67, 0.6);
  letter-spacing: 1px;
  pointer-events: none;
}

.dnb-letter-text {
  font-family: 'Charm', 'Dancing Script', cursive, sans-serif;
  font-size: 18px;
  color: #2b231d;
  line-height: 32px;
  /* Perfect match to 32px notebook paper grid */
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 0 1px rgba(43, 35, 29, 0.15);
}

.dnb-letter-author {
  display: block;
  text-align: right;
  font-family: 'Charm', cursive, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #8c6328;
  line-height: 16px;
}

.dnb-envelope-base {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dnb-wax-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a64b2a, #7a3118);
  box-shadow:
    0 4px 12px rgba(122, 49, 24, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b85735;
}

.dnb-seal-icon {
  font-size: 22px;
  color: #f7e6d5;
}

.dnb-pen-accent {
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 28px;
  transform: rotate(-45deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}


/* --- SECTION 2: CHẠM VÀO MỘT MẪU NHỎ (15 STICKER CARDS) --- */
.dnb-grid-section {
  padding: 50px 20px 80px 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.dnb-grid-header {
  text-align: center;
  margin-bottom: 40px;
}

.dnb-grid-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: #3d312a;
  margin-bottom: 12px;
}

.dnb-grid-subtitle {
  font-size: 15px;
  color: #6d5e54;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 16px auto;
}

.dnb-arrow-down {
  font-size: 22px;
  color: #c49a6c;
  animation: floatArrow 2s ease-in-out infinite alternate;
}

@keyframes floatArrow {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }

  100% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* 15 Cards Grid Layout (5 columns on desktop, 3 on tablet, 2 on mobile) */
.dnb-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

/* Exact Tempo-Cat Sticker Peel Reveal Styling */
.tempo-cat-card {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 38px;
  background-color: #faf6f0;
  color: #323031;
  border: 3px solid #FFC857;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 16px;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.tempo-cat-card:hover {
  transform: translateY(-5px) scale(1.03);
}

/* 5 Pastel Color Variations for Sticker Cards */

/* 1. Golden Warm Sand (Card 1, 6, 11, 16...) */
.tempo-cat-card:nth-child(5n + 1) {
  border-color: #f0be65;
  background: linear-gradient(135deg, #fffdf9 0%, #fdf5e6 100%);
  box-shadow: 0 6px 20px rgba(240, 190, 101, 0.18);
}

.tempo-cat-card:nth-child(5n + 1):hover {
  border-color: #f7cb79;
  box-shadow: 0 14px 30px rgba(240, 190, 101, 0.35);
}

.tempo-cat-card:nth-child(5n + 1)::before {
  background: linear-gradient(135deg, #df9b42 0%, #b87324 100%);
}

.tempo-cat-card:nth-child(5n + 1)::after {
  background-color: #b87324;
  box-shadow: 0px -4px 12px rgba(223, 155, 66, 0.4);
}

.tempo-cat-card:nth-child(5n + 1) .tempo-cat-title {
  color: #b86b19;
}

/* 2. Terracotta Rose (Card 2, 7, 12...) */
.tempo-cat-card:nth-child(5n + 2) {
  border-color: #e59a8c;
  background: linear-gradient(135deg, #fffcfc 0%, #faedea 100%);
  box-shadow: 0 6px 20px rgba(229, 154, 140, 0.18);
}

.tempo-cat-card:nth-child(5n + 2):hover {
  border-color: #f0ac9f;
  box-shadow: 0 14px 30px rgba(229, 154, 140, 0.35);
}

.tempo-cat-card:nth-child(5n + 2)::before {
  background: linear-gradient(135deg, #cf6e5b 0%, #ab4e3d 100%);
}

.tempo-cat-card:nth-child(5n + 2)::after {
  background-color: #ab4e3d;
  box-shadow: 0px -4px 12px rgba(207, 110, 91, 0.4);
}

.tempo-cat-card:nth-child(5n + 2) .tempo-cat-title {
  color: #ab4333;
}

/* 3. Sage Mint Green (Card 3, 8, 13...) */
.tempo-cat-card:nth-child(5n + 3) {
  border-color: #92bfa7;
  background: linear-gradient(135deg, #fafdfb 0%, #e9f5ef 100%);
  box-shadow: 0 6px 20px rgba(146, 191, 167, 0.18);
}

.tempo-cat-card:nth-child(5n + 3):hover {
  border-color: #a7d1bb;
  box-shadow: 0 14px 30px rgba(146, 191, 167, 0.35);
}

.tempo-cat-card:nth-child(5n + 3)::before {
  background: linear-gradient(135deg, #5b9475 0%, #3f7358 100%);
}

.tempo-cat-card:nth-child(5n + 3)::after {
  background-color: #3f7358;
  box-shadow: 0px -4px 12px rgba(91, 148, 117, 0.4);
}

.tempo-cat-card:nth-child(5n + 3) .tempo-cat-title {
  color: #2f664a;
}

/* 4. Soft Morning Blue (Card 4, 9, 14...) */
.tempo-cat-card:nth-child(5n + 4) {
  border-color: #8fb2cc;
  background: linear-gradient(135deg, #f9fcfe 0%, #e7f2f8 100%);
  box-shadow: 0 6px 20px rgba(143, 178, 204, 0.18);
}

.tempo-cat-card:nth-child(5n + 4):hover {
  border-color: #a4c5de;
  box-shadow: 0 14px 30px rgba(143, 178, 204, 0.35);
}

.tempo-cat-card:nth-child(5n + 4)::before {
  background: linear-gradient(135deg, #5582a6 0%, #3a6385 100%);
}

.tempo-cat-card:nth-child(5n + 4)::after {
  background-color: #3a6385;
  box-shadow: 0px -4px 12px rgba(85, 130, 166, 0.4);
}

.tempo-cat-card:nth-child(5n + 4) .tempo-cat-title {
  color: #255478;
}

/* 5. Lavender Plum (Card 5, 10, 15...) */
.tempo-cat-card:nth-child(5n + 5) {
  border-color: #b79bbd;
  background: linear-gradient(135deg, #fdfbfe 0%, #f2e8f5 100%);
  box-shadow: 0 6px 20px rgba(183, 155, 189, 0.18);
}

.tempo-cat-card:nth-child(5n + 5):hover {
  border-color: #caaed0;
  box-shadow: 0 14px 30px rgba(183, 155, 189, 0.35);
}

.tempo-cat-card:nth-child(5n + 5)::before {
  background: linear-gradient(135deg, #8c6492 0%, #6d4673 100%);
}

.tempo-cat-card:nth-child(5n + 5)::after {
  background-color: #6d4673;
  box-shadow: 0px -4px 12px rgba(140, 100, 146, 0.4);
}

.tempo-cat-card:nth-child(5n + 5) .tempo-cat-title {
  color: #633969;
}

/* Centered Golden SVG Icon on Cover with Glowing Circle Badge */
.tempo-cat-card .tempo-svg-icon {
  color: #ffd885;
  fill: #ffd885;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  padding: 10px;
  box-sizing: content-box;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 200, 87, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: opacity 0.6s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.tempo-cat-card:hover .tempo-svg-icon {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 200, 87, 0.85);
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.45);
}

/* Optional Emoji Cover Icon Badge */
.tempo-cat-card .tempo-cover-emoji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 200, 87, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: opacity 0.6s ease, transform 0.3s ease, background 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.tempo-cat-card:hover .tempo-cover-emoji {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 200, 87, 0.85);
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.45);
}

/* Quote/Message Text Revealed Inside */
.tempo-cat-card .tempo-cat-quote {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
  opacity: 0.95;
  padding: 8px;
  box-sizing: border-box;
}

.tempo-cat-card .tempo-cat-title {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #a64b2a;
  margin-bottom: 6px;
  line-height: 1.2;
}

.tempo-cat-card q {
  font-family: 'Charm', cursive, fantasy, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #323031;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  quotes: "“" "”";
}

.tempo-cat-card q::before {
  content: "“";
  color: #FFC857;
  font-weight: 700;
  margin-right: 2px;
}

.tempo-cat-card q::after {
  content: "”";
  color: #FFC857;
  font-weight: 700;
  margin-left: 2px;
}

/* Warm Mocha Espresso Cover Flap ::before (Harmonized with site vibe) */
.tempo-cat-card::before {
  content: "";
  position: absolute;
  height: 314px;
  width: 314px;
  bottom: -120px;
  right: -90px;
  background: linear-gradient(135deg, #4d382e 0%, #36241b 100%);
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  z-index: 3;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Warm Edge Line ::after with Golden Glow */
.tempo-cat-card::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 10px;
  background-color: #36241b;
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  transform: rotate(135deg);
  top: 18px;
  left: -218px;
  box-shadow: 0px -4px 12px rgba(255, 200, 87, 0.35);
  z-index: 4;
  pointer-events: none;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* STICKER PEEL SLIDE REVEAL ANIMATION WHEN OPENED / FOCUS / ACTIVE */
.tempo-cat-card:focus::before,
.tempo-cat-card.active::before,
.tempo-cat-card.opened::before {
  animation: before-effect 2.5s forwards;
  -webkit-animation: before-effect 2.5s forwards;
}

.tempo-cat-card:focus::after,
.tempo-cat-card.active::after,
.tempo-cat-card.opened::after {
  animation: after-effect 2.8s forwards;
  -webkit-animation: after-effect 2.8s forwards;
}

.tempo-cat-card:focus .tempo-svg-icon,
.tempo-cat-card.active .tempo-svg-icon,
.tempo-cat-card.opened .tempo-svg-icon,
.tempo-cat-card:focus .tempo-cover-emoji,
.tempo-cat-card.active .tempo-cover-emoji,
.tempo-cat-card.opened .tempo-cover-emoji {
  animation: icon-fade 1s forwards;
  -webkit-animation: icon-fade 1s forwards;
}

@keyframes before-effect {
  0% {
    transform: translate(0%, 0%) rotate(45deg);
  }

  100% {
    transform: translate(75%, 75%) rotate(45deg);
  }
}

@keyframes after-effect {
  0% {
    top: 18px;
    left: -218px;
  }

  100% {
    top: 450px;
    left: 320px;
  }
}

@keyframes icon-fade {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Random Picker Bar */
.dnb-random-bar {
  background: rgba(245, 238, 228, 0.8);
  border: 1px solid #ebdccb;
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.dnb-random-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #5c4e44;
}

.dnb-random-info .sparkle {
  color: #c89547;
  font-size: 16px;
}

.dnb-random-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c89547, #aa7832);
  color: #ffffff;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 149, 71, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dnb-btn-gold-icon {
  width: 18px;
  height: 18px;
  fill: #FFC857;
  color: #FFC857;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease, fill 0.3s ease;
}

.dnb-random-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 149, 71, 0.45);
  background: linear-gradient(135deg, #d6a152, #b8833b);
}

.dnb-random-btn:hover .dnb-btn-gold-icon {
  transform: rotate(180deg) scale(1.15);
  fill: #fff3d1;
}

/* Bottom Stats Bar */
.dnb-stats-card {
  position: relative;
  background: rgba(247, 242, 234, 0.95);
  border: 1px solid #e8ddd0;
  border-radius: 24px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.dnb-stats-plant-left {
  position: absolute;
  left: 10px;
  top: 0;
  height: 120px;
  width: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  -webkit-filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.dnb-stats-plant-img {
  position: absolute;
  right: 15px;
  bottom: 0;
  height: 125px;
  width: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.dnb-stats-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: #3d312a;
  margin-bottom: 22px;
}

.dnb-stats-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
}

.dnb-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dnb-stat-icon {
  font-size: 22px;
}

.dnb-stat-num {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: #3d312a;
}

.dnb-stat-label {
  font-size: 12.5px;
  color: #7a6a5c;
}

.dnb-stat-action {
  text-align: center;
  position: relative;
  z-index: 5;
  margin-top: 20px;
}

.dnb-view-all-btn {
  position: relative;
  z-index: 10;
  background: #ffffff;
  color: #b07e36;
  border: 1.5px solid #b07e36;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dnb-view-all-btn span {
  position: relative;
  z-index: 2;
}

.dnb-view-all-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #b07e36;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.dnb-view-all-btn:hover::before {
  transform: scaleX(1);
}

.dnb-view-all-btn:hover {
  color: #ffffff;
  border-color: #b07e36;
  box-shadow: 0 6px 18px rgba(61, 49, 42, 0.25);
}


/* --- MODAL POPUP FOR HISTORY SUMMARY --- */
.dnb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(15, 23, 18, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 20px;
}

.dnb-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dnb-modal-box {
  background: #fcf9f2;
  border: 1.5px solid #e5d7c5;
  border-radius: 28px;
  padding: 32px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.dnb-modal-overlay.active .dnb-modal-box {
  transform: scale(1);
}

.dnb-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dnb-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.dnb-modal-icon {
  font-size: 40px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.dnb-modal-title {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: #3d312a;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.dnb-modal-msg {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4a3e35;
  line-height: 1.7;
  max-height: 340px;
  overflow-y: auto;
  text-align: left;
  margin: 10px 0 20px 0;
  padding: 16px;
  background: rgba(243, 235, 224, 0.6);
  border-radius: 18px;
  border: 1px solid #ebdcd0;
  white-space: pre-wrap;
  word-break: break-word;
  flex-grow: 1;
}

.dnb-modal-msg::-webkit-scrollbar {
  width: 6px;
}

.dnb-modal-msg::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.dnb-modal-msg::-webkit-scrollbar-thumb {
  background: #c89547;
  border-radius: 10px;
}

.dnb-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-shrink: 0;
}

.btn-modal-action {
  border: 1px solid #dcd0c0;
  background: #ffffff;
  color: #3d312a;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-modal-action:hover {
  background: #c89547;
  color: #ffffff;
  border-color: #c89547;
}



.tempo-catclick .button {
  height: 250px;
  width: 250px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  color: #323031;
  border: 3px solid #FFC857;
  box-shadow: inset 0 3px 8px #000;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
}

.tempo-catclick i {
  color: #FFC857;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
}

.tempo-catclick q {
  font-family: fantasy;
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
}

.tempo-catclick q::before {
  content: "\f1b0";
  font-family: 'Font Awesome\ 5 Free';
  color: #FFC857;
  font-weight: 800;
  padding-right: 5px;
}

.tempo-catclick q::after {
  content: "\f1b0";
  font-family: 'Font Awesome\ 5 Free';
  color: #FFC857;
  font-weight: 800;
}

.tempo-catclick .button::before {
  content: "";
  color: #FFC857;
  position: absolute;
  height: 400px;
  width: 400px;
  bottom: -120px;
  right: -120px;
  background-color: #323031;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

.tempo-catclick .button::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 10px;
  background-color: #323031;
  border-top-left-radius: 110px;
  border-top-right-radius: 110px;
  transform: rotate(135deg);
  top: 18px;
  left: -218px;
  box-shadow: 0px -5px 10px black;
}

.tempo-catclick .button:focus::before {
  animation: before-effect 3s forwards alternate;
  -webkit-animation: before-effect 3s forwards alternate;
}

.tempo-catclick .button:focus::after {
  animation: after-effect 4s forwards alternate;
  -webkit-animation: after-effect 4s forwards alternate;
}

.tempo-catclick .button:focus i {
  animation: icon 1s forwards alternate;
  -webkit-animation: icon 1s forwards alternate;
}

@keyframes before-effect {
  0% {
    transform: translate(0%, 0%) rotate(45deg);
    -webkit-transform: translate(0%, 0%) rotate(45deg);
    -moz-transform: translate(0%, 0%) rotate(45deg);
    -ms-transform: translate(0%, 0%) rotate(45deg);
    -o-transform: translate(0%, 0%) rotate(45deg);
  }

  100% {
    transform: translate(70%, 70%) rotate(45deg);
    -webkit-transform: translate(70%, 70%) rotate(45deg);
    -moz-transform: translate(70%, 70%) rotate(45deg);
    -ms-transform: translate(70%, 70%) rotate(45deg);
    -o-transform: translate(70%, 70%) rotate(45deg);
  }
}

@keyframes after-effect {
  0% {
    top: 18px;
    left: -218px;
  }

  100% {
    top: 500px;
    left: 335px;
  }
}

@keyframes icon {
  100% {
    color: transparent;
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .dnb-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dnb-hero-container {
    grid-template-columns: 1fr;
    padding: 38px 28px;
  }

  .dnb-stats-card {
    padding: 24px 24px;
  }

  .dnb-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dnb-stat-action {
    grid-column: span 3;
    margin-top: 10px;
  }

  .dnb-stats-plant-img {
    height: 75px;
    top: 10px;
    bottom: auto;
    right: 15px;
    opacity: 0.85;
  }

  .dnb-stats-plant-left {
    height: 70px;
    top: 5px;
    left: 10px;
    opacity: 0.85;
  }
}

@media (max-width: 600px) {
  .dnb-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .dnb-random-bar {
    flex-direction: column;
    text-align: center;
  }

  .dnb-stats-grid {
    grid-template-columns: 1fr;
  }

  .dnb-stat-action {
    grid-column: span 1;
  }

  .dnb-stats-plant-img {
    height: 60px;
    top: 12px;
    bottom: auto;
    right: 10px;
    opacity: 0.65;
  }

  .dnb-stats-plant-left {
    height: 55px;
    top: 8px;
    left: 5px;
    opacity: 0.65;
  }
}