/* KAMUS AKUPUNKTUR INDONESIA - MODERN CSS SYSTEM */
:root {
  --primary: #0f5132;
  --primary-light: #198754;
  --primary-dark: #0a3622;
  --primary-subtle: #d1e7dd;
  --accent: #d4af37;
  --accent-light: #f7e07f;
  --accent-dark: #997404;
  --bg-main: #f4f7f6;
  --surface: #ffffff;
  --surface-secondary: #f8faf9;
  --border: #e2e8e5;
  --text-main: #1f2d27;
  --text-muted: #5a6e65;
  --danger: #dc3545;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(15,81,50,0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* APP SHELL */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-secondary) 100%);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  padding: 14px 10px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-item:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15,81,50,0.25);
}

.nav-icon {
  font-size: 1.15rem;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  background: var(--surface-secondary);
}

/* MAIN WRAPPER */
.main-wrapper {
  flex: 1;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.top-search-box {
  display: flex;
  align-items: center;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  width: 380px;
  transition: all 0.2s ease;
}

.top-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
  background: #ffffff;
}

.top-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  margin-left: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.topbar-organ-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(25,135,84,0.2);
}

.organ-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* CONTENT AREA */
.content-area {
  padding: 24px;
  flex: 1;
}

.tab-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO CARD */
.hero-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 850px;
  line-height: 1.6;
}

.hero-clock-box {
  background: rgba(0,0,0,0.22);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-lbl {
  font-size: 0.78rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* HOME CATEGORIES CONTAINER (ANDROID REPLICA) */
.home-sections-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.cat-icon {
  font-size: 1.8rem;
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.cat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.cat-pill-item {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cat-pill-item:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(3px);
}

.cat-pill-item.highlight-pill {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.4);
  color: var(--accent-dark);
}

.pill-dot {
  color: var(--primary-light);
  font-size: 0.65rem;
}

/* FILTER WRAPPER & PILLS */
.filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.search-field input {
  width: 100%;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
}

.pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* POINTS GRID */
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.point-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.point-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.point-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.point-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.point-badge {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.point-badge.tung {
  background: #fef3c7;
  color: #92400e;
}

.point-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.point-card-loc {
  font-size: 0.84rem;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.point-card-indications {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

/* CASES GRID */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.case-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.case-card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* TEORI (IN-APP READER & TOOLS GRID) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.tool-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.tool-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.tool-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.tool-link-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* TEORI IN-APP READER CONTAINER */
.teori-reader-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.reader-toolbar {
  padding: 14px 20px;
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-back-reader {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-back-reader:hover {
  background: var(--primary-dark);
}

.reader-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex: 1;
  text-align: center;
}

.btn-reader-action {
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.btn-reader-action:hover {
  background: var(--surface);
}

.teori-frame-box {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 650px;
  background: #ffffff;
}

.teori-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* TONGUE AI */
.tongue-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tongue-upload-card {
  border: 2px dashed var(--primary-light);
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tongue-upload-card:hover {
  background: var(--primary-subtle);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.tongue-preview-img {
  max-width: 280px;
  max-height: 280px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.zone-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.zone-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.zone-state {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* DR TAN SIMULATOR */
.tan-meridians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.meridian-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meridian-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.meridian-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tan-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.system-card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.system-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.system-name {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.system-target {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* SCALP TAB */
.scalp-selector-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.scalp-content-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* TIMERS */
.timers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.timer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.timer-patient-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.timer-digits {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin: 10px 0;
  font-family: monospace;
}

.timer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-timer {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-timer:hover { opacity: 0.9; }
.btn-timer.start { background: var(--primary); color: #ffffff; }
.btn-timer.reset { background: var(--surface-secondary); border: 1px solid var(--border); color: var(--text-main); }

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--surface);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.25s ease forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-secondary);
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  line-height: 1.6;
}

.detail-section {
  margin-bottom: 14px;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.detail-text {
  font-size: 0.92rem;
  color: var(--text-main);
}

.modal-img-container {
  text-align: center;
  margin-bottom: 16px;
  background: var(--surface-secondary);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.img-toggle-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

/* ABOUT BOX */
.about-card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .menu-toggle {
    display: block;
  }
  .top-search-box {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0 14px;
  }
  .content-area {
    padding: 14px;
  }
  .top-search-box {
    display: none;
  }
  .hero-card {
    padding: 20px;
  }
  .hero-title {
    font-size: 1.35rem;
  }
}


/* =====================================================
   LICENSE & PAYMENT SYSTEM STYLES (1-DEVICE AUTO-LOCK)
   ===================================================== */
.topbar-license-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-license-badge.trial {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.topbar-license-badge.active {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  box-shadow: 0 2px 8px rgba(15,81,50,0.15);
}

.topbar-license-badge.expired {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.btn-license-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-license-activate {
  background: var(--primary);
  color: white;
}
.btn-license-activate:hover {
  background: var(--primary-dark);
}

.btn-license-buy {
  background: var(--accent);
  color: #1b4332;
  font-weight: 700;
}
.btn-license-buy:hover {
  background: #c29d28;
}

.btn-admin-shortcut {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid var(--border);
  font-size: 0.78rem;
}
.btn-admin-shortcut:hover {
  background: #e9ecef;
}

/* Sidebar License Widget */
.sidebar-license-card {
  margin: 12px 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f0f7f4 0%, #e3ede7 100%);
  border-radius: var(--radius-sm);
  border: 1px solid #c2dbcd;
  text-align: center;
}

.sidebar-license-card h4 {
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.sidebar-license-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.sidebar-license-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Modals & Forms */
.license-modal-box {
  max-width: 600px !important;
}

.package-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.package-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}

.package-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.package-card.selected {
  border-color: var(--primary);
  background: #f0f7f4;
  box-shadow: 0 4px 12px rgba(15,81,50,0.12);
}

.package-badge-tag {
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--accent);
  color: #1b4332;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.package-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.package-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.package-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bank-info-box {
  background: #f8faf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.bank-copy-btn {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
}

.bank-copy-btn:hover {
  background: #c8e6c9;
}

.qris-container {
  text-align: center;
  margin-top: 14px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.qris-app-img {
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 10px auto;
  display: block;
}

.license-info-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

.license-info-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.license-info-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}
