/* ========================================
   GinMargin — Shared Design System
   ======================================== */

/* Variables */
:root {
  --orange: #EE4D2D;
  --orange-light: #FF6B47;
  --orange-pale: #FFF3F0;
  --orange-bg: #FFF5F5;
  --star-color: #F5A623;
  --star-bg: #FFFBF0;
  --mall-color: #6C3CE1;
  --mall-bg: #F5F0FF;
  --dark: #1A1A2E;
  --mid: #4A4A68;
  --light: #F8F8FC;
  --border: #E8E8F0;
  --white: #FFFFFF;
  --green: #00B14F;
  --red: #EE4D2D;
  --indigo: #5A67D8;
  --amber: #D69E2E;
  --rose: #E53E3E;
  --emerald: #38A169;
}

.hidden {
  display: none !important;
}

.header-bar {
  background: linear-gradient(135deg, var(--orange) 0%, #C93B1E 100%);
  margin-bottom: 24px;
}

.header-hero {
  margin-bottom: 10px;
}

.header-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.header-hero p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.801);
}

.header-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px 20px;
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  background-color:#ff978221;
  border-radius: 50%;
  border: 1.5px solid #eb938180 ;
  justify-content: center;
  color: #EE4D2D;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.apps-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  background-color:#ff978221;
  border-radius: 50%;
  border: 1.5px solid #eb938180 ;
  justify-content: center;
  color: #EE4D2D;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}


.back-btn:hover {
  background: #EE4D2D;
  color: white;
}


.header-logo {
  height: 28px;
}

.main {
  background: var(--light);
  padding: 0 24px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid);
  font-weight: 700;
  font-size: 14px;
}

.input-with-icon .input-field {
  padding-left: 40px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--light);
  border-radius: 14px;
  margin-bottom: 8px;
}

.toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.toggle-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* Toggle Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E2E8F0;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--orange);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Result Cards */
.result-card {
  background: var(--white);
  border-radius: 24px;
  border: 1.5px solid var(--border);
  padding: 24px;
}

.settlement-card {
  background: linear-gradient(135deg, var(--orange) 0%, #C93B1E 100%);
  border-radius: 24px;
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(238, 77, 45, 0.25);
}

.settlement-card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-chip {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.result-chip span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.result-chip strong {
  font-size: 15px;
  font-weight: 700;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.breakdown-row span:first-child {
  color: var(--mid);
}

.breakdown-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
}

.insight-card {
  padding: 16px;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.insight-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insight-title {
  font-weight: 700;
}

.insight-rose {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  color: #C53030;
}

.insight-amber {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.insight-emerald {
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  color: #065F46;
}

@media (max-width: 991px) {
  .sticky-col {
    position: static !important;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
}

/* ========================================
   Hero Navigation Pills
   ======================================== */
.hero-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
}

.hero-nav-item .material-symbols-outlined {
  font-size: 18px;
}

.hero-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.hero-nav-item.active {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ========================================
   Hero Header
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, #C93B1E 100%);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: #FFE0D9;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 16px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

/* ========================================
   Shared Utilities
   ======================================== */
.shopee-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, #C93B1E 100%);
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* ========================================
   Responsive
   ======================================== */
/* ========================================
   Responsive
   ======================================== */
@media (max-width: 600px) {
  .hero {
    padding: 28px 16px;
  }
}

/* ========================================
   Calculator Specific (index.html)
   ======================================== */
.glass-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}

.input-focus:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.dot {
  transition: all 0.3s ease-in-out;
  position: relative;
}

input:checked~.dot {
  transform: translateX(100%);
  background-color: white;
}

input:checked~.block {
  background-color: var(--orange);
}

.section-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   Admin Fee Specific (adminfee.html)
   ======================================== */
.pill-switch {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
}

.pill-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  transition: all 0.2s;
  background: transparent;
  color: var(--mid);
}

.pill-btn:hover {
  background: var(--light);
}

.pill-btn.active {
  background: var(--orange);
  color: white;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.pill-btn .pill-icon {
  font-size: 16px;
}

.pill-btn .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 100px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 700;
}

.pill-btn:not(.active) .pill-badge {
  background: var(--light);
  color: var(--mid);
}

.pill-btn.store-type {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  justify-content: center;
  background: white;
  width: 100%;
}

.pill-btn.store-type:hover {
  border-color: var(--btn-color, var(--orange));
  background: var(--orange-pale);
}

.pill-btn.store-type.active {
  border-color: var(--btn-color, var(--orange));
  background: var(--btn-color, var(--orange));
  color: white;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.star-badge {
  background: var(--star-color) !important;
  color: white !important;
}

.mall-badge {
  background: var(--mall-color) !important;
  color: white !important;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  background: white;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  border-color: var(--orange);
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--mid);
  pointer-events: none;
}

.search-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-pale);
}



.sort-select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  background: white;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--orange);
}

.stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stat-chip strong {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
}

.stat-chip span {
  color: var(--mid);
  font-size: 12px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cat-card.star-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
}

.cat-card.mall-card:hover {
  border-color: rgba(108, 60, 225, 0.4);
}

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  outline: none;
  transition: background 0.2s;
}

.cat-header:focus-visible {
  background: var(--light);
  box-shadow: inset 0 0 0 2px var(--orange);
}


.cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.star-card .cat-icon {
  background: var(--star-bg);
}

.mall-card .cat-icon {
  background: var(--mall-bg);
}

.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.cat-count {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

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

.rate-range {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.chevron, .expand-icon {
  color: var(--mid);
  font-size: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.cat-card.open .chevron,
.cat-card.open .expand-icon {
  transform: rotate(180deg);
}

.cat-body {
  display: none;
  padding: 0 0 12px;
}

.cat-card.open .cat-body {
  display: block;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sub-table thead tr {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sub-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sub-table th:nth-child(1),
.sub-table td:nth-child(1) {
  width: 180px;
  min-width: 180px;
}

.sub-table th:nth-child(3),
.sub-table td:nth-child(3) {
  width: 120px;
  min-width: 120px;
  text-align: right;
}

.sub-table th:nth-child(2),
.sub-table td:nth-child(2) {
  width: auto;
}


.sub-table td {
  padding: 10px 20px;
  vertical-align: top;
  border-bottom: 1px solid #F2F2F8;
  color: var(--dark);
  line-height: 1.5;
}

.sub-table tr:last-child td {
  border-bottom: none;
}

.sub-table tr:hover td {
  background: #FAFAFA;
}

.admin-pill {
  display: inline-flex;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 60px;
}


.star-pill {
  background: var(--star-bg);
  color: #B8860B;
}

.mall-pill {
  background: var(--mall-bg);
  color: var(--mall-color);
}

.high-rate {
  background: #FFF0F0;
  color: #C0392B;
}

.low-rate {
  background: #F0FFF8;
  color: #1E8449;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--mid);
}

.no-results .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {

  .sub-table th:nth-child(2),
  .sub-table td:nth-child(2) {
    display: none;
  }
}

/* Search Dropdown */
.search-dropdown-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-dropdown-wrap > input {
  width: 100%;
}

.search-dropdown-wrap .input-with-icon {
  flex: 1;
  position: relative;
}

.search-dropdown-wrap .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
}

.admin-type-select {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-rate-badge {
  background: var(--star-bg);
  color: #B8860B;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.gox-rate-badge {
  background: #E2E8F0;
  color: #A0AEC0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.rate-badges-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 576px) {
  .header-nav { padding-left: 0; padding-right: 0; }
  .header-hero { padding-left: 0; padding-right: 0; text-align: center; }
  .header-hero h1 { font-size: 32px; }
  .search-dropdown-wrap .input-field {
    margin-bottom: 8px;
  }
  .rate-badges-wrap {
    flex-wrap: wrap;
  }
  .admin-rate-badge,
  .gox-rate-badge {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  max-height: 350px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  gap: 12px;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--light);
}

.dropdown-item.no-results {
  color: var(--mid);
  cursor: default;
  justify-content: center;
  font-size: 13px;
  padding: 20px;
}

.dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dropdown-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-jenis {
  font-size: 11px;
  color: var(--mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-rate {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-more {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  border-top: 1px solid var(--border);
  background: var(--light);
}

.site-footer {
  padding: 24px 16px;
  margin: 40px auto 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1140px;
}

@media (max-width: 576px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

.site-footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}