/* ==========================================================================
   Human-Crafted Editorial Portfolio + Physics Lanyard
   Zero Gradients, High-Contrast Neutral Palette
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg: #fcfcfa;
  --surface: #f4f4f1;
  --surface-hover: #eeeeea;
  --ink: #111111;
  --ink-secondary: #52524e;
  --ink-muted: #82827c;
  --border: #e6e5e0;
  --border-active: #111111;
  --link-underline: #c8c7c0;
  --strap-color: #1c1c1a;
  --strap-stitch: #3a3a36;
  --clip-metal: #71716c;
  --card-bg: #ffffff;
  --card-back-bg: #161615;
  --card-back-ink: #f4f4f1;
  --card-back-muted: #9e9e98;
  --phone-body: #161615;
  --phone-inner: #ffffff;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-hover: #1b1b1b;
  --ink: #ededec;
  --ink-secondary: #a1a19e;
  --ink-muted: #6e6e6a;
  --border: #232322;
  --border-active: #ededec;
  --link-underline: #454542;
  --strap-color: #242422;
  --strap-stitch: #474743;
  --clip-metal: #8a8a84;
  --card-bg: #161615;
  --card-back-bg: #ededec;
  --card-back-ink: #111111;
  --card-back-muted: #5c5c57;
  --phone-body: #1a1a19;
  --phone-inner: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif-italic {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  padding: 26px 0 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.identity {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.identity span {
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.header-nav a,
.header-nav .nav-link-btn {
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 0 0 1px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-nav a:hover,
.header-nav .nav-link-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.mode-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.mode-toggle:hover {
  border-color: var(--border-active);
  color: var(--ink);
}

/* Intro + Interactive Lanyard Stage */
.intro-band {
  display: grid;
  grid-template-columns: 1.25fr 320px;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.intro-band > *,
.workspace > * {
  min-width: 0;
  max-width: 100%;
}

.intro-copy {
  padding: 20px 0 12px;
}

.intro-headline {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 610px;
}

.intro-headline .serif-italic {
  font-size: 1.09em;
}

.intro-bio {
  margin: 0 0 20px;
  max-width: 570px;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.intro-meta {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.intro-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  display: inline-block;
}

/* Lanyard Physics Stage */
.lanyard-stage {
  position: relative;
  height: 430px;
  width: 100%;
  user-select: none;
  touch-action: pan-y;
  overflow: visible;
}

.lanyard-anchor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 8px;
  background-color: var(--ink);
  border-radius: 0 0 4px 4px;
  z-index: 3;
}

.lanyard-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* Draggable 3D Flippable ID Badge */
.badge-pivot {
  position: absolute;
  top: 0;
  left: 0;
  width: 224px;
  height: 296px;
  transform-origin: 50% 10px;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  z-index: 4;
  perspective: 1000px;
}

.badge-pivot:active {
  cursor: grabbing;
}

.badge-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-pivot.is-flipped .badge-flipper {
  transform: rotateY(180deg);
}

.badge-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-active);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge-front {
  background-color: var(--card-bg);
  color: var(--ink);
}

.badge-back {
  background-color: var(--card-back-bg);
  color: var(--card-back-ink);
  transform: rotateY(180deg);
}

.badge-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-slot {
  width: 36px;
  height: 7px;
  border-radius: 99px;
  background-color: var(--bg);
  border: 1px solid var(--border-active);
  margin: 0 auto;
}

.badge-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.badge-back .badge-top-meta {
  color: var(--card-back-muted);
  border-bottom-color: var(--card-back-muted);
}

.badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.badge-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.badge-name {
  margin: 12px 0 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.badge-role {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.badge-bottom {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}

.badge-back .badge-bottom {
  border-top-color: var(--card-back-muted);
}

.badge-kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge-kv span:first-child {
  color: var(--ink-muted);
}

.badge-back .badge-kv span:first-child {
  color: var(--card-back-muted);
}

.badge-back-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  margin: 10px 0;
}

.badge-back-item strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--card-back-muted);
  margin-bottom: 2px;
}

.lanyard-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-muted);
  white-space: normal;
  pointer-events: none;
  z-index: 1;
}

/* Main Workspace — Master List (Left) + Live Preview (Right) */
.workspace {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  padding: 36px 0 56px;
  align-items: start;
}

.list-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.col-label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.filter-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: 12px;
}

.filter-link {
  background: transparent;
  border: none;
  padding: 0 0 2px;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.filter-link:hover {
  color: var(--ink);
}

.filter-link.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.project-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 10px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  transition: background-color 0.12s ease;
}

.project-row:hover,
.project-row.active {
  background-color: var(--surface);
}

.project-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.project-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.project-row.active .project-row-title::before {
  content: "→";
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}

.project-row-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-row-year {
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.hint-keyboard {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Right Column: Quiet Stage + Concise Notes */
.preview-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stage-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-shell {
  width: 268px;
  height: 528px;
  background-color: var(--phone-body);
  border-radius: 32px;
  padding: 10px;
  border: 1px solid #2c2c2a;
  display: flex;
  flex-direction: column;
}

.phone-viewport {
  background-color: var(--phone-inner);
  color: #111111;
  border-radius: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-top {
  height: 26px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #111111;
  border-bottom: 1px solid #f1f1ef;
  position: relative;
}

.phone-speaker {
  width: 56px;
  height: 4px;
  background-color: #262624;
  border-radius: 99px;
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
}

.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background-color: #fafaf8;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.phone-bottom {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-top: 1px solid #f1f1ef;
}

.phone-bottom span {
  width: 76px;
  height: 3.5px;
  border-radius: 99px;
  background-color: #d4d4d0;
}

.browser-shell {
  width: 100%;
  max-width: 540px;
  height: 380px;
  background-color: var(--phone-body);
  border-radius: 7px;
  padding: 1px;
  border: 1px solid #2c2c2a;
  display: flex;
  flex-direction: column;
}

.browser-top {
  height: 32px;
  background-color: #1c1c1a;
  border-radius: 6px 6px 0 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #464642;
}

.browser-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #a1a19c;
  background-color: #121211;
  padding: 2px 9px;
  border-radius: 3px;
}

.browser-body {
  flex: 1;
  background-color: #ffffff;
  color: #111111;
  border-radius: 0 0 6px 6px;
  padding: 16px;
  overflow-y: auto;
}

.screen-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.screen-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.screen-tab {
  background: transparent;
  border: none;
  padding: 2px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.screen-tab:hover {
  color: var(--ink);
}

.screen-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.pager-btn:hover {
  border-color: var(--border-active);
  color: var(--ink);
}

.case-note {
  padding-top: 4px;
}

.case-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.case-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.case-role {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.case-desc {
  margin: 0 0 14px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.case-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.case-meta-line span,
.case-meta-line a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.case-meta-line a {
  color: var(--ink);
  border-bottom: 1px solid var(--link-underline);
}

.case-meta-line a:hover {
  border-bottom-color: var(--ink);
}

/* Screen Primitives inside Device */
.sc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid #e6e5e0;
  font-size: 11.5px;
  font-weight: 600;
}

.sc-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #d4d4cf;
  color: #52524e;
  background-color: #f4f4f1;
}

.sc-tag-ok {
  background-color: #eef6f0;
  border-color: #b7d7c0;
  color: #215732;
}

.sc-card {
  background-color: #ffffff;
  border: 1px solid #e6e5e0;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 11px;
}

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

.sc-muted {
  color: #73736e;
  font-size: 10px;
}

.sc-btn {
  background-color: #161615;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 500;
  width: 100%;
  text-align: center;
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.sc-table th,
.sc-table td {
  text-align: left;
  padding: 5px 4px;
  border-bottom: 1px solid #ecebe6;
}

.sc-table th {
  color: #73736e;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
}

@media (max-width: 880px) {
  .intro-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 22px;
  }

  .lanyard-stage {
    height: 400px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .site-header {
    padding: 18px 0 12px;
    gap: 10px 14px;
  }

  .header-nav {
    gap: 10px 14px;
    font-size: 13px;
  }

  .intro-copy {
    padding: 10px 0 4px;
  }

  .lanyard-stage {
    height: 386px;
    max-width: 100%;
  }

  .badge-pivot {
    width: 212px;
    height: 282px;
  }

  .list-col-head {
    gap: 8px;
  }

  .filter-inline {
    gap: 10px;
  }

  .stage-box {
    padding: 18px 12px 16px;
  }

  .phone-shell {
    width: 256px;
    max-width: 100%;
    height: 508px;
  }

  .browser-shell {
    height: 340px;
  }

  .browser-body {
    padding: 12px;
  }
}

/* ==========================================================================
   Theme Switch Left-to-Right Editorial Sweep (~2.4s total)
   Zero Gradients, GPU-composited transform
   ========================================================================== */
.theme-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.theme-curtain.is-active {
  visibility: visible;
  pointer-events: all;
}

.theme-curtain[data-target="dark"] {
  --curtain-bg: #0a0a0a;
  --curtain-ink: #ededec;
  --curtain-muted: #787873;
  --curtain-line: #2a2a28;
}

.theme-curtain[data-target="light"] {
  --curtain-bg: #fcfcfa;
  --curtain-ink: #111111;
  --curtain-muted: #6e6e68;
  --curtain-line: #dcdad3;
}

.curtain-sweep {
  position: fixed;
  inset: 0;
  background-color: var(--curtain-bg);
  border-left: 1px solid var(--curtain-line);
  border-right: 1px solid var(--curtain-line);
  transform: translate3d(-102%, 0, 0);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-curtain.is-closing .curtain-sweep {
  transform: translate3d(0, 0, 0);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}

.theme-curtain.is-closed .curtain-sweep {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.theme-curtain.is-opening .curtain-sweep {
  transform: translate3d(102%, 0, 0);
  transition: transform 0.95s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-curtain.is-closed .curtain-stamp {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.theme-curtain.is-opening .curtain-stamp {
  opacity: 0;
  transform: translate3d(16px, 0, 0);
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.curtain-stamp-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background-color: var(--curtain-bg);
  border: 1px solid var(--curtain-line);
  border-radius: 4px;
  color: var(--curtain-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curtain-stamp-mark {
  font-weight: 600;
}

.curtain-stamp-sep {
  width: 18px;
  height: 1px;
  background-color: var(--curtain-muted);
}

.curtain-stamp-mode {
  color: var(--curtain-muted);
}

.curtain-progress {
  width: 132px;
  height: 1px;
  background-color: var(--curtain-line);
  overflow: hidden;
}

.curtain-progress-fill {
  width: 100%;
  height: 100%;
  background-color: var(--curtain-ink);
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-curtain.is-closed .curtain-progress-fill {
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   YadRi (DMG Mobile) Authentic Flutter UI Primitives
   Colors & Widgets from /Users/jaya/yadri-main (Poppins, #8163F6, #F9F9F9, #EEEEFF)
   ========================================================================== */
.yd-screen {
  margin: -12px;
  min-height: calc(100% + 24px);
  background-color: #f9f9f9;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

.yd-screen-purple {
  background-color: #8163f6;
}

.yd-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yd-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* EHome Header (e_home.dart) */
.yd-ehome-top {
  background-color: #8163f6;
  padding: 13px 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.yd-ehome-hi {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.yd-ehome-date {
  font-size: 9.5px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 3px;
}

.yd-notif-box {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8163f6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* #F9F9F9 Rounded Sheet */
.yd-sheet {
  background-color: #f9f9f9;
  border-radius: 15px 15px 0 0;
  margin-top: -10px;
  padding: 10px 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Search Bar & Filter Row (e_home.dart & all_transactions.dart) */
.yd-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.yd-search-box {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #eeeeff;
  border-radius: 9px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yd-filter-btn {
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  border: 1px solid #eeeeff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* dashBoardTiles (dashboard_tiles.dart) */
.yd-sec-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #000000;
  margin: 1px 0;
}

.yd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.yd-tile {
  background-color: #ffffff;
  border: 1px solid #eeeeff;
  border-radius: 9px;
  padding: 7px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 50px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.yd-tile[data-goto-screen] {
  cursor: pointer;
}

.yd-tile[data-goto-screen]:hover {
  border-color: #8163f6;
  transform: translateY(-1px);
}

.yd-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.yd-tile-title {
  font-size: 8.8px;
  font-weight: 700;
  color: #8163f6;
  line-height: 1.15;
}

.yd-tile-icon {
  color: #8163f6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.yd-tile-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.1;
  margin-top: 4px;
}

.yd-tile-sub {
  font-size: 8px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.65);
}

/* Left-Aligned Label Divider (e_home.dart line 601) */
.yd-label-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6px;
  margin: 2px 0;
}

.yd-label-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background-color: rgba(153, 153, 153, 0.3);
}

.yd-label-pill {
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  border: 1.5px solid rgba(153, 153, 153, 0.3);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 8px;
  font-weight: 600;
  color: #000000;
}

/* Floating BottomNavBar (bottom_nav_bar.dart) */
.yd-bnav-wrap {
  padding: 4px 8px 6px;
  background-color: #f9f9f9;
}

.yd-bnav {
  background-color: #ffffff;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 40px;
  padding: 2px 4px;
}

.yd-bnav-item {
  border: none;
  background: transparent;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 7.8px;
  font-weight: 500;
  color: #8d8da8;
}

.yd-bnav-item.active {
  color: #8163f6;
  font-weight: 600;
}

/* Purple CustomAppBar (custom_app_bar.dart & back_button.dart) */
.yd-appbar {
  background-color: #8163f6;
  padding: 10px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.yd-appbar-flat {
  padding-bottom: 10px;
}

.yd-appbar-back {
  border: none;
  background: transparent;
  padding: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 20px;
}

.yd-appbar-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  flex: 1;
}

.yd-appbar-spacer {
  width: 20px;
}

/* TransaksiDetailWidget (transaksi_detail_widget.dart) */
.yd-showing-txt {
  font-size: 8.5px;
  color: #000000;
  padding: 0 2px;
}

.yd-tx-card {
  background-color: #ffffff;
  border: 1px solid #eeeeff;
  border-radius: 9px;
  padding: 8px 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yd-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.yd-tx-code {
  font-size: 9.8px;
  font-weight: 500;
  color: #1a1a1a;
}

.yd-tx-vessel {
  font-size: 9px;
  font-weight: 500;
  color: #1a1a1a;
}

.yd-tx-cargo {
  font-size: 8.5px;
  font-weight: 500;
  color: #1a1a1a;
}

.yd-pill {
  font-size: 8px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 50px;
}

.yd-pill.orange {
  background-color: rgba(255, 179, 90, 0.14);
  color: #e68a00;
}

.yd-pill.green {
  background-color: rgba(7, 221, 167, 0.14);
  color: #05a87e;
}

.yd-progress-track {
  height: 5.5px;
  background-color: #f4f4ff;
  border-radius: 50px;
  position: relative;
  margin: 3px 0;
}

.yd-progress-fill {
  height: 100%;
  border-radius: 50px;
  position: relative;
}

.yd-progress-fill.orange {
  background-color: #ffb35a;
}

.yd-progress-fill.green {
  background-color: #07dda7;
}

.yd-progress-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.yd-progress-thumb.orange {
  background-color: #ffb35a;
}

.yd-progress-thumb.green {
  background-color: #07dda7;
}

.yd-tally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 2px;
}

.yd-lbl-grey {
  font-size: 7.5px;
  color: rgba(0, 0, 0, 0.5);
}

.yd-val-blk {
  font-size: 8.5px;
  font-weight: 500;
  color: #000000;
}

.yd-tx-divider {
  height: 1.5px;
  background-color: #eff5fa;
  margin: 1px 0;
}

.yd-tx-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #7373a0;
}

/* Transaction Dashboard (transaction_details_dashboard_fd.dart & tabs/report.dart) */
.yd-td-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yd-td-code {
  font-size: 11px;
  font-weight: 500;
  color: #8163f6;
}

.yd-td-div {
  height: 1px;
  background-color: #ded9ef;
  margin: 2px 0;
}

.yd-td-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  color: rgba(0, 0, 0, 0.68);
  padding: 1px 0;
}

.yd-td-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 3px 0;
}

.yd-td-tab {
  height: 25px;
  border-radius: 8px;
  border: 1px solid #999999;
  background-color: #f9f9f9;
  color: #999999;
  font-size: 8.8px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yd-td-tab.active {
  background-color: #8163f6;
  border-color: #8163f6;
  color: #ffffff;
  font-weight: 500;
}

.yd-btn-sync {
  width: 100%;
  border: none;
  background-color: #07dda7;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.yd-rep-card {
  background-color: #ffffff;
  border: 1px solid #ded9ef;
  border-radius: 9px;
  padding: 7px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yd-rep-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.yd-rep-title {
  font-size: 8.8px;
  font-weight: 700;
  color: #000000;
}

.yd-rep-val {
  font-size: 8.5px;
  color: #7373a0;
  margin-top: 1px;
}

.yd-rep-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #000000;
}

.yd-icon-btn {
  border: none;
  background: transparent;
  padding: 2px;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yd-btn-issued {
  width: 100%;
  border: none;
  background-color: #f46d43;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Initial DSR & TSR Form (reports/initial.dart, section_header_widget.dart, data_table_widget.dart) */
.yd-form-body {
  background-color: #ffffff;
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.yd-btn-purple {
  width: 100%;
  border: none;
  background-color: #8163f6;
  color: #ffffff;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 8.8px;
  font-weight: 500;
  text-align: center;
}

.yd-sec-purple {
  font-size: 9.5px;
  font-weight: 600;
  color: #8163f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.yd-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yd-field-lbl {
  font-size: 7.8px;
  font-weight: 500;
  color: #000000;
}

.yd-field-box {
  border: 1px solid #ded9ef;
  border-radius: 6px;
  padding: 3.5px 6px;
  font-size: 8.2px;
  color: #000000;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yd-field-box.readonly {
  background-color: #f2f2f7;
  color: rgba(0, 0, 0, 0.65);
}

.yd-double-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.yd-dtable-wrap {
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  overflow: hidden;
}

.yd-dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 7.5px;
}

.yd-dtable th {
  background-color: #f5f5f5;
  font-weight: 700;
  color: #000000;
  padding: 3.5px 3px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.yd-dtable td {
  padding: 3px 3px;
  text-align: center;
  color: #000000;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.yd-dtable th:last-child,
.yd-dtable td:last-child {
  border-right: none;
}

.yd-dtable tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   CV POPUP MODAL WITH ZOOM IN / OUT
   ========================================================= */

.cv-modal[hidden] {
  display: none;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 11, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(90vh, 920px);
  background-color: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.cv-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.cv-modal-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.cv-modal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-modal-sub {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.cv-modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cv-zoom-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background-color: var(--bg);
  overflow: hidden;
}

.cv-tool-btn,
.cv-zoom-readout,
.cv-close-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cv-tool-btn {
  width: 30px;
  height: 28px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv-tool-btn:hover:not(:disabled) {
  background-color: var(--surface);
}

.cv-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cv-zoom-readout {
  height: 28px;
  min-width: 52px;
  padding: 0 8px;
  font-size: 11.5px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv-zoom-readout:hover {
  background-color: var(--surface);
}

.cv-action-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cv-action-link:hover {
  background-color: var(--surface);
  border-color: var(--ink);
}

.cv-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv-close-btn:hover {
  background-color: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.cv-viewport {
  flex: 1 1 auto;
  overflow: auto;
  background-color: var(--bg);
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.cv-sheet-wrap {
  margin: 0 auto;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: width 0.12s ease-out;
}

.cv-sheet-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.cv-sheet-img.is-zoomed {
  cursor: zoom-out;
}

@media (max-width: 600px) {
  .cv-modal {
    padding: 8px;
  }

  .cv-modal-dialog {
    height: 92vh;
    border-radius: 10px;
  }

  .cv-modal-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .cv-modal-title-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .cv-modal-tools {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .cv-action-link {
    padding: 0 8px;
    font-size: 11.5px;
  }

  .cv-viewport {
    padding: 12px;
  }
}

/* =========================================================
   RENTAL MOBIL FLUTTER UI REPLICA (5 INTERACTIVE SCREENS)
   ========================================================= */

.rn-screen {
  margin: -12px;
  min-height: calc(100% + 24px);
  background-color: #f8fafc;
  color: #0f172a;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.rn-landing {
  flex: 1;
  min-height: 416px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px 22px;
}

.rn-landing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rn-landing-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.08) 0%,
    rgba(2, 6, 23, 0.28) 52%,
    rgba(2, 6, 23, 0.72) 100%
  );
}

.rn-landing-title {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  color: #ffffff;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.7px;
}

.rn-btn-sky {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 12px;
  background-color: #38bdf8;
  color: #020617;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.rn-btn-sky:hover {
  filter: brightness(0.96);
}

.rn-btn-sky:active {
  transform: scale(0.985);
}

.rn-scroll {
  flex: 1;
  padding: 12px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rn-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rn-icon-card {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.rn-icon-card.bordered {
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

.rn-loc-sub {
  font-size: 9px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.2;
}

.rn-loc-main {
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.rn-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  margin-left: auto;
  flex-shrink: 0;
}

.rn-h1 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.45px;
  color: #0f172a;
}

.rn-search {
  height: 36px;
  border-radius: 99px;
  background-color: #ffffff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.rn-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #0f172a;
}

.rn-search input::placeholder {
  color: #64748b;
}

.rn-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.rn-sec-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

.rn-sec-act {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.rn-brands {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.rn-brands::-webkit-scrollbar {
  display: none;
}

.rn-brand-card {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  cursor: pointer;
}

.rn-brand-card.active {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.rn-cars {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.rn-cars::-webkit-scrollbar {
  display: none;
}

.rn-car-card {
  width: 196px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.rn-car-card img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  display: block;
}

.rn-car-card-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rn-car-title {
  font-size: 10.8px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.rn-car-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 8.5px;
  color: #64748b;
}

.rn-car-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.rn-car-price {
  color: #0f172a;
  font-weight: 700;
  font-size: 9px;
  white-space: nowrap;
}

.rn-car-price span {
  color: #64748b;
  font-weight: 500;
  font-size: 8px;
}

.rn-bnav {
  background-color: #ffffff;
  height: 42px;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  flex-shrink: 0;
}

.rn-bnav-btn {
  height: 100%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rn-bnav-btn.active {
  color: #38bdf8;
}

.rn-placeholder {
  flex: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 7px;
}

.rn-hero-card {
  height: 128px;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.rn-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rn-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.rn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.rn-dot.active {
  background: #38bdf8;
}

.rn-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.06);
}

.rn-card.bordered {
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: none;
}

.rn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rn-chip {
  background-color: #ffffff;
  border-radius: 9px;
  padding: 6px 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #0f172a;
}

.rn-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.rn-spec-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 8px 5px;
  text-align: center;
}

.rn-spec-lbl {
  font-size: 8px;
  font-weight: 500;
  color: #64748b;
}

.rn-spec-val {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.rn-spec-val span {
  font-size: 8.5px;
  font-weight: 500;
  color: #64748b;
}

.rn-bar-cta {
  height: 40px;
  border-radius: 12px;
  background-color: #38bdf8;
  color: #020617;
  padding: 0 12px;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.rn-switch {
  width: 34px;
  height: 20px;
  border-radius: 99px;
  background-color: #cbd5e1;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.rn-switch.on {
  background-color: #38bdf8;
  justify-content: flex-end;
}

.rn-switch-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.rn-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rn-cal-nav {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background-color: #e2e8f0;
  color: #0f172a;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rn-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.rn-cal-wday {
  font-size: 8.5px;
  font-weight: 600;
  color: #64748b;
  padding-bottom: 4px;
}

.rn-cal-day {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rn-cal-day.in-range {
  background-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.rn-cal-day.selected {
  background-color: #38bdf8;
  color: #ffffff;
}

.rn-map-wrap {
  position: relative;
  height: 132px;
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 34px;
}

.rn-map-canvas {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
}

.rn-map-float {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  background-color: #38bdf8;
  color: #020617;
  border-radius: 13px;
  padding: 9px 11px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rn-pay-opt {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rn-pay-opt.active {
  border-color: #38bdf8;
  background-color: #f0f9ff;
}

.rn-pay-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: #e2e8f0;
  color: #0f172a;
  font-size: 8.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rn-toast {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 9px;
  text-align: center;
}

/* =========================================================
   YADRI WEB (LARAVEL HYPER CREATIVE ADMIN REPLICA)
   ========================================================= */

.yw-screen {
  margin: -16px;
  min-height: calc(100% + 32px);
  background-color: #f4f5f7;
  color: #313a46;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
}

.yw-topbar {
  background-color: #313a46;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yw-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yw-brand img {
  height: 15px;
  width: auto;
  display: block;
}

.yw-brand-tag {
  font-size: 9.5px;
  color: #aab8c5;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 8px;
}

.yw-user-pill {
  font-size: 9.5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #eef2f7;
  padding: 3px 8px;
  border-radius: 99px;
}

.yw-topnav {
  background-color: #ffffff;
  border-bottom: 1px solid #e3eaef;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.yw-nav-btn {
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.yw-nav-btn.active {
  color: #3688fc;
  border-bottom-color: #3688fc;
}

.yw-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yw-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.yw-page-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #313a46;
  letter-spacing: 0.02em;
}

.yw-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yw-pill-select {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9.5px;
  color: #495057;
}

.yw-btn-green {
  background-color: #0acf97;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 600;
}

.yw-btn-blue {
  background-color: #3688fc;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 600;
}

.yw-sec-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #6c757d;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.yw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.yw-card {
  background-color: #ffffff;
  border: 1px solid #e7ebf0;
  border-radius: 5px;
  padding: 9px 10px;
  box-shadow: 0 1px 3px rgba(49, 58, 70, 0.05);
}

.yw-tile-lbl {
  font-size: 8px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
}

.yw-tile-val {
  margin: 4px 0 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.yw-tile-sub {
  font-size: 8.2px;
  color: #6c757d;
  line-height: 1.35;
}

.yw-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.yw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 600;
  padding: 2.5px 6px;
  border-radius: 4px;
  background-color: #eef2f7;
  color: #313a46;
}

.yw-badge.primary {
  background-color: rgba(54, 136, 252, 0.14);
  color: #3688fc;
}

.yw-badge.success {
  background-color: rgba(10, 207, 151, 0.16);
  color: #099870;
}

.yw-badge.warning {
  background-color: rgba(255, 188, 0, 0.2);
  color: #9e7400;
}

.yw-table-wrap {
  background-color: #ffffff;
  border: 1px solid #e7ebf0;
  border-radius: 5px;
  overflow-x: auto;
}

.yw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.yw-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 700;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
}

.yw-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eef2f7;
  color: #313a46;
  white-space: nowrap;
}

.yw-table tr:nth-child(even) td {
  background-color: #fafbfc;
}

@media (max-width: 600px) {
  .yw-screen {
    margin: -12px;
    min-height: calc(100% + 24px);
  }

  .yw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .yw-grid-2 {
    grid-template-columns: 1fr;
  }
}
