/**
 * DPBOSS.LOL - Mobile Redesign Design System
 * Based on authentic mobile redesign specification (Nov 2026)
 */

:root {
  --pink: #ec008c;
  --hot: #ff01a2;
  --deep: #b3007a;
  --peach: #ffcc99;
  --peach2: #fbd8b2;
  --white: #ffffff;
  --blue: #0a2fbf;
  --red: #8f0100;
  --yellow: #ffe900;
  --text: #231724;
  --muted: #71636f;
  --line: #f3d9e0;
  --surface: #ffffff;
  --bg: #fff8f6;
  --soft: #fff0f5;
  --cardshadow: 0 8px 24px rgba(121, 28, 68, 0.065);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 9999px;
  color-scheme: light;
}

[data-theme="dark"],
body.dark {
  --surface: #1a101b;
  --bg: #120913;
  --soft: #261625;
  --text: #f7eef5;
  --muted: #bda5b4;
  --line: #3d2435;
  --cardshadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-group(dpboss-top-bar),
::view-transition-group(dpboss-bottom-nav) {
  animation: none;
  z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--dp-root-font-size, clamp(15px, calc(13.5px + 0.55vw), 17px));
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  overscroll-behavior-x: none;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  color: var(--text);
  font: 1rem/1.46 Inter, "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

[data-theme="dark"] body,
body.dark {
  background: var(--bg) !important;
}

button, input, select {
  font: inherit;
}

a, button, [role="button"], input, select, textarea, summary {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: max(16px, 1rem);
  }
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

a {
  text-decoration: none;
  color: inherit;
}

svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* App Shell Container */
.app {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100dvh;
  margin: 0 !important;
  background: var(--bg);
  position: relative;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-bottom: 95px;
}

[data-theme="dark"] .app,
body.dark .app {
  box-shadow: none !important;
  background: var(--bg);
}

/* Top App Bar Header */
.top-app-bar {
  height: 74px;
  position: sticky;
  z-index: 50;
  top: 0;
  margin: 0;
  width: 100%;
  view-transition-name: dpboss-top-bar;
  border-radius: 0 !important;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 249, 248, 0.94);
  border-bottom: 1px solid rgba(246, 216, 222, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .top-app-bar,
body.dark .top-app-bar {
  background: rgba(26, 16, 27, 0.94);
  border-bottom-color: rgba(61, 36, 53, 0.74);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 174px;
  height: auto;
  display: block;
  max-height: 52px;
  object-fit: contain;
}

.brand-icon {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.grow {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-btn {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #fce8ef;
  display: grid;
  place-items: center;
  color: #331d2c;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background-color: var(--soft);
  }
}

[data-theme="dark"] .icon-btn,
body.dark .icon-btn {
  background: #331a2c;
  color: #ff85c2;
}

.pink-icon {
  color: var(--pink);
}

.dp-vip-head-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ec008d, #b3007a);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(236, 0, 141, 0.25);
}

/* Secondary Quick Subnav */
.dp-sub-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.dp-sub-nav::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"] .dp-sub-nav,
body.dark .dp-sub-nav {
  background: rgba(26, 16, 27, 0.7);
  border-bottom-color: var(--line);
}

.dp-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.dp-sub-link:hover,
.dp-sub-link.active {
  background: #ffe0ec;
  color: var(--deep);
  border-color: #f7bbd4;
}

[data-theme="dark"] .dp-sub-link:hover,
[data-theme="dark"] .dp-sub-link.active,
body.dark .dp-sub-link:hover,
body.dark .dp-sub-link.active {
  background: #381a30;
  color: #ff99cc;
  border-color: #552749;
}

/* Search Box */
.searchbox {
  max-width: 760px;
  margin: 0 auto 10px;
  background: var(--surface);
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  padding: 8px 12px;
  box-shadow: var(--cardshadow);
}

.searchbox.visible {
  display: flex;
}

.searchbox input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 4px 8px;
  min-width: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.searchbox .clear {
  border: 0;
  background: #fff0f5;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  color: #7e4965;
  display: grid;
  place-items: center;
}

[data-theme="dark"] .searchbox .clear,
body.dark .searchbox .clear {
  background: #381a30;
  color: #ff99cc;
}

/* Page Content */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 15px 10px;
}

.small-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a84300;
}

[data-theme="dark"] .small-eyebrow,
body.dark .small-eyebrow {
  color: #ffa040;
}

/* Hero Section */
.hero {
  border-radius: 28px;
  padding: 22px 19px 19px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(118deg, #ffefdd 0%, #ffd1ce 52%, #ffa2bd 100%);
  border: 1px solid #ffe2da;
  min-height: 167px;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .hero,
body.dark .hero {
  background: linear-gradient(118deg, #3d2320 0%, #381622 52%, #421028 100%);
  border-color: #55273b;
}

.hero:after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -96px;
  top: -105px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(236, 0, 141, 0.40) 0%, rgba(236, 0, 141, 0.10) 60%, transparent 72%);
}

.hero:before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -36px;
  bottom: -92px;
  border: 26px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: 31px;
  line-height: 1.04;
  letter-spacing: -1.1px;
  font-weight: 870;
  margin: 10px 0 7px;
  max-width: 290px;
}

.hero h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 12px;
  max-width: 260px;
  color: #5b4556;
}

[data-theme="dark"] .hero p,
body.dark .hero p {
  color: #d1b5ca;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 243, 246, 0.85);
  color: var(--deep);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

[data-theme="dark"] .hero-badge,
body.dark .hero-badge {
  background: rgba(55, 20, 40, 0.85);
  color: #ff99cc;
}

.hero-stars {
  font-size: 55px;
  line-height: 1;
  text-shadow: 0 7px 24px #e76b81;
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 1;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: var(--pink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  padding: 9px 15px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover {
    background: var(--hot);
  }
}

.snapshot-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 11px 3px 0;
  color: #7d6574;
  font-size: 10.5px;
  line-height: 1.35;
}

[data-theme="dark"] .snapshot-note,
body.dark .snapshot-note {
  color: #bda5b4;
}

.snapshot-note svg {
  width: 14px;
  height: 14px;
  color: var(--deep);
  flex: none;
}

/* Quick Navigation Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 23px;
}

.quick {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid #fce5e9;
  box-shadow: var(--cardshadow);
  padding: 12px 4px 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 720;
  transition: transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .quick:hover {
    border-color: var(--pink);
  }
}

[data-theme="dark"] .quick,
body.dark .quick {
  border-color: var(--line);
}

.quick .qico {
  width: 43px;
  height: 43px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #ffe1ec;
  color: var(--pink);
}

.quick:nth-child(2) .qico {
  background: #e8ebff;
  color: var(--blue);
}

.quick:nth-child(3) .qico {
  background: #fff1d4;
  color: #c87500;
}

.quick:nth-child(4) .qico {
  background: #f4e5ff;
  color: #8b30bd;
}

.quick .qico svg {
  width: 23px;
  height: 23px;
}

/* Section Containers & Headers */
.section {
  margin-top: 21px;
  scroll-margin-top: 88px;
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.section-title {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.45px;
  font-weight: 830;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  color: var(--pink);
}

.section-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}

.linklike {
  font-size: 12px;
  color: var(--deep);
  font-weight: 760;
  border: 0;
  background: none;
  padding: 5px 0;
  white-space: nowrap;
}

[data-theme="dark"] .linklike,
body.dark .linklike {
  color: #ff85c2;
}

.card {
  background: var(--surface);
  border-radius: 23px;
  border: 1px solid #f4e0e3;
  overflow: hidden;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .card,
body.dark .card {
  border-color: var(--line);
}

/* Today Lucky Number */
.lucky-card {
  display: flex;
  background: linear-gradient(125deg, #ffecda, #fff1e6);
  border-color: #ffdfcd;
  gap: 0;
  padding: 16px 13px;
}

[data-theme="dark"] .lucky-card,
body.dark .lucky-card {
  background: linear-gradient(125deg, #2c1a1f, #22141a);
  border-color: #4a2935;
}

.lucky-cell {
  width: 50%;
  text-align: center;
}

.lucky-cell + .lucky-cell {
  border-left: 1px solid #f0b9ad;
}

[data-theme="dark"] .lucky-cell + .lucky-cell,
body.dark .lucky-cell + .lucky-cell {
  border-left-color: #55273b;
}

.lucky-label {
  color: #826073;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.2px;
}

[data-theme="dark"] .lucky-label,
body.dark .lucky-label {
  color: #d1b5ca;
}

.lucky-number {
  font-size: 29px;
  color: var(--pink);
  font-weight: 890;
  letter-spacing: -1px;
  line-height: 1.22;
  margin-top: 3px;
}

.lucky-sub {
  font-size: 12px;
  color: #261525;
  font-weight: 840;
  margin-top: 6px;
}

[data-theme="dark"] .lucky-sub,
body.dark .lucky-sub {
  color: #ffd8ec;
}

.mini-pill {
  display: inline-flex;
  background: #ffe0ec;
  color: #a90063;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

[data-theme="dark"] .mini-pill,
body.dark .mini-pill {
  background: #421833;
  color: #ff85c2;
}

/* Kalyan Jackpot Live Card */
.jackpot-card {
  border: 1px solid #f5dbac;
  background: linear-gradient(120deg, #fffbed, #fff8cf);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .jackpot-card,
body.dark .jackpot-card {
  border-color: #553c25;
  background: linear-gradient(120deg, #2b1f13, #22170f);
}

.live-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #20b86d;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(32, 184, 109, 0.11);
  margin-right: 5px;
  animation: dpLivePulse 1.8s infinite;
}

@keyframes dpLivePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.6; }
}

.jack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jack-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 11px 0 14px;
}

.jack-result {
  border-radius: 15px;
  padding: 11px 17px;
  background: var(--surface);
  border: 1px solid #ffe6a5;
  min-width: 118px;
  text-align: center;
  color: #24204c;
  font-size: 27px;
  font-weight: 900;
}

[data-theme="dark"] .jack-result,
body.dark .jack-result {
  border-color: #553c25;
  color: #fff1db;
}

.jack-result small {
  display: block;
  color: #a18570;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 850;
}

.jack-meta {
  font-size: 11px;
  color: #665568;
}

[data-theme="dark"] .jack-meta,
body.dark .jack-meta {
  color: #c9b7c7;
}

.jack-meta strong {
  font-size: 13px;
  color: #28203d;
}

[data-theme="dark"] .jack-meta strong,
body.dark .jack-meta strong {
  color: #ffeedb;
}

.recent-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0 5px;
}

.recent-chips::-webkit-scrollbar {
  display: none;
}

.recent-chip {
  background: var(--surface);
  border: 1px solid #f3dda7;
  flex: none;
  border-radius: 13px;
  padding: 8px 11px;
  text-align: center;
  min-width: 62px;
}

[data-theme="dark"] .recent-chip,
body.dark .recent-chip {
  background: #251622;
  border-color: #4d332a;
}

.recent-chip b {
  display: block;
  font-size: 15px;
  color: #28203d;
}

[data-theme="dark"] .recent-chip b,
body.dark .recent-chip b {
  color: #ffeedb;
}

.recent-chip small {
  font-size: 9px;
  color: #76676f;
}

[data-theme="dark"] .recent-chip small,
body.dark .recent-chip small {
  color: #bda5b4;
}

/* Live Market Results */
.market-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 13px;
  border-radius: 17px;
  background: var(--surface);
  border: 1px solid #f4e0e3;
  box-shadow: var(--cardshadow);
  transition: transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .result-row:hover {
    border-color: rgba(236, 0, 141, 0.4);
  }
}

[data-theme="dark"] .result-row,
body.dark .result-row {
  border-color: var(--line);
}

.result-circle {
  width: 38px;
  height: 38px;
  background: #fff0df;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  color: #c96808;
}

[data-theme="dark"] .result-circle,
body.dark .result-circle {
  background: #36201b;
  color: #ffaa55;
}

.result-circle svg {
  width: 20px;
  height: 20px;
}

.result-name {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  margin-bottom: 3px;
}

.result-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.result-card-link:hover .result-name {
  color: var(--accent-pink-text);
}

.result-value {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1px;
  color: #a84300;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.result-value .val-side {
  font-size: 0.9em;
  font-weight: 700;
  opacity: 0.95;
}

.result-value .val-jodi {
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.result-value .val-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0.88;
  white-space: nowrap;
  margin-left: 3px;
  display: inline;
}

[data-theme="dark"] .result-value,
body.dark .result-value {
  color: #ffa040;
}

.refresh-btn {
  margin-left: auto;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fde3f0;
  color: var(--pink);
  flex: none;
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .refresh-btn:hover {
    background: #fbcfe8;
  }
}

[data-theme="dark"] .refresh-btn,
body.dark .refresh-btn {
  background: #3c182c;
  color: #ff85c2;
}

.refresh-btn svg {
  width: 17px;
  height: 17px;
}

.result-open {
  display: none;
}

.show-all .result-open {
  display: flex;
}

/* Promotional CTA Banner */
.ad-banner {
  margin-top: 18px;
  border-radius: 20px;
  background: linear-gradient(120deg, #a70417, #e90a49);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 13px;
  position: relative;
  overflow: hidden;
}

.ad-banner:after {
  content: "";
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  position: absolute;
  right: -60px;
  top: -50px;
}

.ad-banner svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.ad-banner strong {
  font-size: 14px;
  display: block;
}

.ad-banner small {
  font-size: 10px;
  opacity: 0.9;
  display: block;
  line-height: 1.4;
}

.ad-banner .ad-info {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.ad-banner .dp-app-btn-styled {
  z-index: 1;
  background: var(--yellow);
  color: #241606;
  border: 0;
  border-radius: 100px;
  font-weight: 850;
  font-size: 11px;
  padding: 9px 12px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

/* Notices & Accordions */
.notice {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid #f8dde1;
  overflow: hidden;
  margin-top: 8px;
}

[data-theme="dark"] .notice,
body.dark .notice {
  border-color: var(--line);
}

.notice .notice-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  cursor: pointer;
}

.notice .notice-symbol {
  width: 37px;
  height: 37px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: #ffe9ef;
  font-size: 14px;
}

[data-theme="dark"] .notice .notice-symbol,
body.dark .notice .notice-symbol {
  background: #3c182c;
  color: #ff85c2;
}

.notice .notice-top strong {
  font-size: 12px;
  display: block;
}

.notice .notice-top small {
  font-size: 10px;
  color: var(--muted);
}

.notice .notice-chevron {
  margin-left: auto;
  color: #a8778b;
  transition: transform 0.2s ease;
}

.notice.open .notice-chevron {
  transform: rotate(180deg);
}

.notice-details {
  display: none;
  padding: 0 14px 15px;
  font-size: 11.3px;
  line-height: 1.55;
  color: #5c4c57;
}

[data-theme="dark"] .notice-details,
body.dark .notice-details {
  color: #d1b5ca;
}

.notice.open .notice-details {
  display: block;
}

.notice-details ul {
  padding-left: 18px;
  margin: 8px 0;
}

.notice.highlight {
  background: linear-gradient(110deg, #fff1da, #fff8f3);
}

[data-theme="dark"] .notice.highlight,
body.dark .notice.highlight {
  background: linear-gradient(110deg, #2b1f14, #241820);
}

/* All Market Results Cards */
.market-card {
  border: 1px solid #f3e1e5;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--surface);
  margin-bottom: 0;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .market-card,
body.dark .market-card {
  border-color: var(--line);
}

.market-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}

.market-card-top strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  flex: 1;
}

.market-result-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  justify-content: center;
  background: #fce8ef;
  color: var(--pink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 880;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.market-result-chip .chip-side {
  font-size: 0.9em;
  font-weight: 700;
  opacity: 0.92;
}

.market-result-chip .chip-jodi {
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.market-result-chip .chip-status {
  font-size: 10.5px;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0.88;
  white-space: nowrap;
  margin-left: 3px;
}

[data-theme="dark"] .market-result-chip,
body.dark .market-result-chip {
  background: #33152c;
  color: #ff85cc;
}

.market-result-chip.holiday {
  background: #fff0d8;
  color: #9c5400;
  font-size: 12px;
  font-weight: 800;
}

.market-code {
  font-size: 20px;
  color: #1a234e;
  font-weight: 880;
  letter-spacing: 0.25px;
  margin: 5px 0 8px;
}

[data-theme="dark"] .market-code,
body.dark .market-code {
  color: #ffd8ec;
}

.market-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed #f0d9dc;
  padding-top: 5px;
  color: #7c6e76;
  font-size: 10px;
}

[data-theme="dark"] .market-time,
body.dark .market-time {
  border-top-color: var(--line);
  color: #bda5b4;
}

.market-time-values {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  line-height: 1.25;
}

.market-time-values .time-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.market-time b {
  color: #4b3d4a;
}

[data-theme="dark"] .market-time b,
body.dark .market-time b {
  color: #f7eef5;
}

.market-actions {
  margin-left: auto;
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.market-action {
  font-size: 10px;
  border-radius: 99px;
  background: #fce5ef;
  color: #b8006e;
  padding: 3px 8px;
  border: 0;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.market-action.alt {
  background: #e9ebff;
  color: #283bb3;
}

[data-theme="dark"] .market-action,
body.dark .market-action {
  background: #3e1b30;
  color: #ff77c4;
}

[data-theme="dark"] .market-action.alt,
body.dark .market-action.alt {
  background: #1c2355;
  color: #8fa0ff;
}

@media (max-width: 540px) {
  .market-time .time-label {
    display: none !important;
  }

  .market-time-values {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    line-height: 1.25;
  }

  .market-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 320px) {
  .market-time-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .market-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .market-action {
    min-width: 40px;
    text-align: center;
  }
}

.notice-blue {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f0f2ff;
  color: #24327e;
  font-size: 11px;
  margin-bottom: 12px;
}

[data-theme="dark"] .notice-blue,
body.dark .notice-blue {
  background: #1b203d;
  color: #b0c0ff;
}

.notice-blue svg {
  width: 18px;
  height: 18px;
}

/* Starline & Tabular Results */
.table-card {
  padding: 4px 12px 13px;
}

.segmented {
  display: flex;
  background: #f6edf2;
  border-radius: 100px;
  padding: 4px;
  gap: 3px;
  margin: 6px 0 13px;
}

[data-theme="dark"] .segmented,
body.dark .segmented {
  background: #281726;
}

.segmented button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #7d6372;
  flex: 1;
  padding: 8px 5px;
  font-size: 11px;
  font-weight: 770;
}

[data-theme="dark"] .segmented button,
body.dark .segmented button {
  color: #bda5b4;
}

.segmented button.selected {
  background: var(--surface);
  color: var(--deep);
  box-shadow: 0 2px 8px rgba(78, 27, 57, 0.12);
}

[data-theme="dark"] .segmented button.selected,
body.dark .segmented button.selected {
  background: #3b2238;
  color: #ff85c2;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}

.mini-table th {
  font-size: 10px;
  color: #94808c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 9px 5px;
  border-bottom: 1px solid #eee0e4;
}

[data-theme="dark"] .mini-table th,
body.dark .mini-table th {
  border-bottom-color: var(--line);
  color: #bda5b4;
}

.mini-table td {
  padding: 9px 5px;
  border-bottom: 1px solid #f8eff1;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .mini-table td,
body.dark .mini-table td {
  border-bottom-color: var(--line);
}

.mini-table td:last-child {
  font-weight: 830;
  color: #2d2446;
}

[data-theme="dark"] .mini-table td:last-child,
body.dark .mini-table td:last-child {
  color: #ffd8ec;
}

.mini-table tr:last-child td {
  border: 0;
}

/* 36 Bazar Wheel Graphic */
.chart-wheel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px;
}

.wheel {
  position: relative;
  height: 115px;
  width: 115px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(#2c52db 0 36deg, #ffcc24 36deg 72deg, #ed359d 72deg 108deg, #3dbc86 108deg 144deg, #e53c37 144deg 180deg, #9d66d9 180deg 216deg, #ffca1c 216deg 252deg, #18afc5 252deg 288deg, #ed397c 288deg 324deg, #e9ba36 324deg 360deg);
  border: 7px solid #ffffff;
  box-shadow: 0 5px 20px rgba(126, 21, 67, 0.1);
}

[data-theme="dark"] .wheel,
body.dark .wheel {
  border-color: #2b1828;
}

.wheel:after {
  content: "158–4";
  position: absolute;
  inset: 26px;
  background: #fff5e0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #222749;
  font-weight: 850;
  font-size: 15px;
}

[data-theme="dark"] .wheel:after,
body.dark .wheel:after {
  background: #251622;
  border-color: #3d2435;
  color: #ffd8ec;
}

.wheel-info h3 {
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 5px;
}

.wheel-info p {
  font-size: 11px;
  color: #71616d;
  margin: 0 0 8px;
}

.wheel-info b {
  font-size: 19px;
  color: var(--deep);
}

[data-theme="dark"] .wheel-info b,
body.dark .wheel-info b {
  color: #ff85c2;
}

/* Feature Links (Game Zone) */
.feature-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-link {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid #f2dce3;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 770;
  box-shadow: var(--cardshadow);
  min-width: 0;
  transition: transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-link:hover {
    border-color: var(--pink);
  }
}

[data-theme="dark"] .feature-link,
body.dark .feature-link {
  border-color: var(--line);
}

.feature-link svg {
  height: 20px;
  width: 20px;
  color: var(--pink);
  flex: none;
}

/* Weekly Patti Card */
.weekly-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--cardshadow);
  border: 1px solid #f0dfe4;
  overflow: hidden;
  padding: 15px 16px;
}

[data-theme="dark"] .weekly-card,
body.dark .weekly-card {
  border-color: var(--line);
}

.weekly-dates {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #796473;
  font-size: 10px;
  margin: 2px 0 10px;
}

.weekly-code {
  background: #fff5e6;
  border-radius: 13px;
  text-align: center;
  padding: 13px 8px;
  font-weight: 850;
  color: #292049;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.7;
  word-spacing: 4px;
}

[data-theme="dark"] .weekly-code,
body.dark .weekly-code {
  background: #251622;
  color: #ffd8ec;
}

.weekly-footer {
  font-size: 10.3px;
  color: #86717c;
  margin: 10px 0 0;
}

/* Free Guessing Grid */
.guess-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.guess {
  border: 1px solid #f0dbe0;
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .guess,
body.dark .guess {
  border-color: var(--line);
}

.guess .gtitle {
  background: #f7dce8;
  padding: 9px 10px;
  color: #b8006e;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}

[data-theme="dark"] .guess .gtitle,
body.dark .guess .gtitle {
  background: #3c1a2e;
  color: #ff77c4;
}

.guess .gdata {
  padding: 11px 9px;
  text-align: center;
  color: #22214a;
  font-weight: 800;
  line-height: 1.55;
  font-size: 11px;
}

[data-theme="dark"] .guess .gdata,
body.dark .guess .gdata {
  color: #f7eef5;
}

.guess .gdata small {
  display: block;
  color: #817380;
  line-height: 1.5;
}

/* Accordion Charts */
.charts-accordion {
  border: 1px solid #f0dce2;
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 9px;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .charts-accordion,
body.dark .charts-accordion {
  border-color: var(--line);
}

.charts-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  font-size: 12px;
  font-weight: 850;
}

.charts-accordion summary::-webkit-details-marker {
  display: none;
}

.charts-accordion summary svg:first-child {
  color: var(--pink);
}

.charts-accordion summary .chev {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #a07d8c;
  transition: transform 0.2s ease;
}

.charts-accordion[open] summary .chev {
  transform: rotate(180deg);
}

.chart-items {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.chart-item {
  background: #fff5f8;
  border-radius: 10px;
  padding: 10px 7px;
  color: #6c3959;
  font-size: 10.3px;
  font-weight: 720;
  line-height: 1.3;
  text-align: center;
  display: block;
  transition: background-color 0.15s ease;
}

.chart-item:hover {
  background: #fee7f1;
}

[data-theme="dark"] .chart-item,
body.dark .chart-item {
  background: #2b1725;
  color: #ffb8df;
}

/* SEO Section & FAQs */
.dp-seo-section {
  background: var(--surface);
  border: 1px solid #f4e0e3;
  border-radius: 20px;
  padding: 18px 16px;
  margin: 24px 0 16px;
  box-shadow: var(--cardshadow);
}

[data-theme="dark"] .dp-seo-section,
body.dark .dp-seo-section {
  border-color: var(--line);
}

.dp-seo-section h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--deep);
  margin: 0 0 10px;
  line-height: 1.3;
}

[data-theme="dark"] .dp-seo-section h2,
body.dark .dp-seo-section h2 {
  color: #ff85c2;
}

.dp-seo-section h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 14px 0 6px;
}

.dp-seo-section p,
.dp-seo-section li {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.dp-seo-section ul {
  padding-left: 18px;
  margin: 6px 0;
}

.dp-faq-item {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.dp-faq-q {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 4px;
}

.dp-faq-a {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* Legal Disclaimer */
.disclaimer {
  margin-top: 24px;
  text-align: center;
  color: #806c77;
  font-size: 10px;
  line-height: 1.65;
  padding: 14px 12px 20px;
}

[data-theme="dark"] .disclaimer,
body.dark .disclaimer {
  color: #bda5b4;
}

.disclaimer img {
  width: 29px;
  vertical-align: middle;
  margin-right: 4px;
  border-radius: 50%;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(68px + env(safe-area-inset-bottom, 0px));
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 251, 0.98);
  border-top: 1px solid #f3dae3;
  box-shadow: 0 -5px 22px rgba(165, 27, 76, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 !important;
}

.bottom-nav .navitem {
  max-width: 120px;
}

[data-theme="dark"] .bottom-nav,
body.dark .bottom-nav {
  background: rgba(26, 16, 27, 0.98);
  border-top-color: #3d2435;
  box-shadow: 0 -5px 22px rgba(0, 0, 0, 0.4);
}

.navitem {
  flex: 1;
  border: 0;
  background: none;
  color: #736270;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  min-width: 0;
}

[data-theme="dark"] .navitem,
body.dark .navitem {
  color: #bda5b4;
}

.nav-icon {
  height: 34px;
  width: 60px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}

.navitem.active {
  color: #b8006e;
  font-weight: 840;
}

[data-theme="dark"] .navitem.active,
body.dark .navitem.active {
  color: #ff77c4;
}

.navitem.active .nav-icon {
  background: #ffdaeb;
}

[data-theme="dark"] .navitem.active .nav-icon,
body.dark .navitem.active .nav-icon {
  background: #3e1b30;
}

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

/* Toast Message */
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  bottom: 95px;
  max-width: calc(100vw - 42px);
  width: max-content;
  border-radius: 14px;
  background: #2d2431;
  color: #ffffff;
  font-size: 12px;
  padding: 12px 16px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden-search {
  display: none !important;
}

/* Dedicated Chart View Pages */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 14px 0 24px;
  box-shadow: var(--cardshadow);
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.chart-table tr:first-child td,
.chart-table th {
  background: #f7dce8;
  color: var(--deep);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 4px;
  border: 1px solid var(--line);
}

[data-theme="dark"] .chart-table tr:first-child td,
[data-theme="dark"] .chart-table th,
body.dark .chart-table tr:first-child td,
body.dark .chart-table th {
  background: #381a30;
  color: #ff99cc;
}

.chart-table td {
  padding: 8px 4px;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* Responsive Media Queries */
@media (min-width: 570px) {
  .app {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .top-app-bar {
    border-radius: 0 !important;
  }

  .bottom-nav {
    border-radius: 0 !important;
  }
}

@media (max-width: 375px) {
  .top-app-bar {
    gap: 7px;
    padding-inline: 12px;
  }

  .brand-logo {
    width: 147px;
  }

  .brand-icon {
    height: 38px;
    width: 38px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 19px;
  }

  .result-name {
    font-size: 13px;
  }

  .result-value {
    font-size: 17px;
  }
}

/* Google-recommended mobile typography & full-width fit (320px Pixel .. 440px iPhone 16 Pro Max; panel charts keep compact fit) */
@media (max-width: 480px) {
  .content,
  .md-page {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .md-segmented {
    height: auto;
    min-height: 42px;
  }
  .md-seg {
    font-size: clamp(12.5px, 3.4vw, 14.5px);
    padding: 8px 6px;
    white-space: nowrap;
  }
  .hero p,
  .hero-cta,
  .dp-sub-link,
  .linklike,
  .notice .notice-top strong,
  .section-sub {
    font-size: clamp(13px, 3.4vw, 15px);
  }
  .result-name {
    font-size: clamp(13px, 3.4vw, 15px);
  }
  .navitem {
    font-size: 11.5px;
  }
}

@media (min-width: 410px) and (max-width: 767px) {
  .result-name {
    font-size: 14.5px;
  }
  .result-value {
    font-size: 19px;
  }
  .market-card-top strong {
    font-size: 16.5px;
  }
  .hero p {
    font-size: 14px;
  }
}

body.drawer-open .m3-navigation-drawer:not(.right-drawer),
body.drawer-open #navDrawer {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

body.drawer-open:not(.notices-open) .m3-navigation-drawer.right-drawer,
body.drawer-open:not(.notices-open) #noticesDrawer {
  visibility: hidden !important;
  transform: translateX(100%) !important;
}

body.notices-open:not(.drawer-open) .m3-navigation-drawer:not(.right-drawer),
body.notices-open:not(.drawer-open) #navDrawer {
  visibility: hidden !important;
  transform: translateX(-100%) !important;
}

.m3-navigation-drawer.right-drawer {
  left: auto;
  right: 0;
  border-radius: 24px 0 0 24px;
  border-right: none;
  border-left: 1px solid var(--outline, #e0d0d8);
  transform: translateX(100%);
  visibility: hidden;
}

body.notices-open .m3-navigation-drawer.right-drawer {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

body.notices-open .m3-drawer-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* Profile Icon & Dropdown (top-right header) */
.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.icon-btn.nav-profile-btn {
  padding: 0;
  position: relative;
  overflow: visible;
}

.nav-profile-img-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(236, 0, 140, 0.35);
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
}

.nav-profile-img-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-profile-img-wrapper.guest-avatar {
  border-color: transparent;
}

.nav-profile-img-wrapper.guest-avatar svg {
  width: 20px;
  height: 20px;
}

.nav-profile-diamond {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: var(--surface, #ffffff);
  color: var(--text-main, var(--text, #231724));
  border: 1px solid var(--outline, var(--line, #f3d9e0));
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.16);
  padding: 6px 0;
  z-index: 1200;
}

.profile-dropdown[hidden] {
  display: none !important;
}

[data-theme="dark"] .profile-dropdown,
body.dark .profile-dropdown {
  background: var(--surface-card, #181b24);
  border-color: var(--outline, #2b3242);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.dropdown-username {
  padding: 10px 16px 8px;
  font-size: 16px;
  font-weight: 700;
}

.dropdown-username a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--outline, var(--line, #f3d9e0));
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: inherit;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(236, 0, 140, 0.08);
  color: var(--pink, #ec008c);
}

.dropdown-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted, var(--muted, #71636f));
  flex-shrink: 0;
}

.dropdown-item:hover svg {
  color: var(--pink, #ec008c);
}

.nav-theme-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 10px 12px;
}

.nav-theme-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px;
  border-radius: 13px;
  border: 1.5px solid var(--outline, var(--line, #e5dce0));
  background: transparent;
  color: var(--text-muted, var(--muted, #71636f));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nav-theme-options button svg {
  width: 19px;
  height: 19px;
}

.nav-theme-options button.active {
  border-color: var(--pink, #ec008d);
  background: rgba(236, 0, 141, 0.1);
  color: var(--pink, #ec008d);
}

[data-theme="dark"] .nav-theme-options button.active,
body.dark .nav-theme-options button.active {
  color: #ff6ec4;
  border-color: #ff4fb8;
  background: rgba(236, 0, 141, 0.18);
}

/* Pure OLED Black Mode */
html.black-mode,
body.black-mode {
  --bg: #000000;
  --surface: #0a0a0c;
  --soft: #121216;
  --line: #202026;
  --surface-bg: #000000;
  --surface-bg-end: #000000;
  --surface-card: #0a0a0c;
  --surface-card-subtle: #121216;
  --surface-card-high: #18181d;
  --outline: #222228;
  background: #000000 !important;
}

.black-mode .top-app-bar,
.black-mode .bottom-nav,
.black-mode .profile-dropdown {
  background: rgba(8, 8, 10, 0.98);
  border-color: #222228;
}

/* Bottom Nav Center Refresh Button */
.bottom-nav button.nav-refresh-btn {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

@keyframes dpNavSpin {
  to {
    transform: rotate(360deg);
  }
}

.nav-refresh-spinning {
  animation: dpNavSpin 0.65s linear infinite;
}

/* Right Notifications Drawer Sticky Footer + Notification Cards + Centered Modal + /updates Page */
#noticesDrawer .m3-drawer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px;
}

.m3-drawer-sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--outline, var(--line, #f3d9e0));
  background: var(--surface, #ffffff);
  flex-shrink: 0;
}

[data-theme="dark"] .m3-drawer-sticky-footer,
body.dark .m3-drawer-sticky-footer {
  background: var(--surface-card, #141923);
  border-top-color: var(--outline, #2b3242);
}

.black-mode .m3-drawer-sticky-footer {
  background: #0a0a0c;
  border-top-color: #222228;
}

.m3-see-all-updates-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec008d, #ff5e00);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(236, 0, 141, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .m3-see-all-updates-btn:hover {
    opacity: 0.96;
  }
}

.m3-see-all-updates-btn svg {
  width: 17px;
  height: 17px;
}

.dp-notice-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  margin-bottom: 10px;
  border-radius: 15px;
  border: 1px solid var(--outline, var(--line, #f1dce3));
  background: var(--surface, #ffffff);
  color: var(--text-main, var(--text, #231724));
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.dp-notice-card:hover {
  border-color: rgba(236, 0, 141, 0.45);
  background: rgba(236, 0, 141, 0.04);
}

[data-theme="dark"] .dp-notice-card,
body.dark .dp-notice-card {
  background: var(--surface-card, #171d29);
  border-color: var(--outline, #2a3346);
  color: var(--text-main, #eef2f7);
}

[data-theme="dark"] .dp-notice-card:hover,
body.dark .dp-notice-card:hover {
  background: rgba(236, 0, 141, 0.1);
  border-color: rgba(255, 92, 184, 0.5);
}

.black-mode .dp-notice-card {
  background: #0a0a0c;
  border-color: #222228;
}

.dp-notice-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  background: rgba(236, 0, 141, 0.1);
  color: var(--pink, #ec008d);
}

.dp-notice-icon.is-push {
  background: rgba(255, 110, 26, 0.13);
  color: #e65c00;
}

[data-theme="dark"] .dp-notice-icon.is-push,
body.dark .dp-notice-icon.is-push {
  color: #ffa15c;
}

.dp-notice-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dp-notice-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dp-notice-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(236, 0, 141, 0.12);
  color: #c20073;
}

.dp-notice-badge.is-push {
  background: rgba(255, 110, 26, 0.14);
  color: #c84b00;
}

[data-theme="dark"] .dp-notice-badge,
body.dark .dp-notice-badge {
  color: #ff77c4;
  background: rgba(236, 0, 141, 0.22);
}

[data-theme="dark"] .dp-notice-badge.is-push,
body.dark .dp-notice-badge.is-push {
  color: #ffb074;
  background: rgba(255, 110, 26, 0.2);
}

.dp-notice-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, var(--muted, #71636f));
}

.dp-notice-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.dp-notice-preview {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted, var(--muted, #6a5b68));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-notice-arrow {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  align-self: center;
  color: var(--pink, #ec008d);
}

/* Centered Notification Modal */
.dp-notice-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 18, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dp-notice-modal-backdrop[hidden] {
  display: none !important;
}

.dp-notice-modal-card {
  width: min(460px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--surface, #ffffff);
  color: var(--text-main, var(--text, #231724));
  border: 1px solid var(--outline, var(--line, #f1dce3));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .dp-notice-modal-card,
body.dark .dp-notice-modal-card {
  background: var(--surface-card, #171d29);
  border-color: var(--outline, #2b3446);
  color: var(--text-main, #eef2f7);
}

.black-mode .dp-notice-modal-card {
  background: #0a0a0c;
  border-color: #26262e;
}

.dp-notice-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dp-notice-modal-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 0, 141, 0.12);
  color: #ec008d;
}

[data-theme="dark"] .dp-notice-modal-badge,
body.dark .dp-notice-modal-badge {
  color: #ff77c4;
  background: rgba(236, 0, 141, 0.22);
}

.dp-notice-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.dp-notice-modal-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, var(--muted, #71636f));
  margin-bottom: 14px;
}

.dp-notice-modal-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: inherit;
  word-break: break-word;
}

/* /updates Page Layout */
.dp-updates-page-header {
  padding: 16px 18px;
  margin-bottom: 14px;
}

.dp-updates-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dp-updates-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(236, 0, 141, 0.12);
  color: var(--pink, #ec008d);
  flex-shrink: 0;
}

.dp-updates-head-text {
  flex: 1 1 200px;
  min-width: 0;
}

.dp-updates-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.dp-updates-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-muted, var(--muted, #71636f));
}

.dp-updates-loader {
  margin: 14px 0 6px;
  text-align: center;
}

.dp-updates-spinner,
.dp-updates-end {
  text-align: center;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, var(--muted, #71636f));
}
