/* ============================================================
   style.css — Prototipe Lelang Pegadaian CP Manado Selatan
   Tema: Hijau Pegadaian + Gold Aksen
   ============================================================ */

:root {
  --color-primary: #00923f;
  --color-navy: #005a25;
  --color-navy-dark: #003d18;
  --color-gold: #c9a84c;
  --color-gold-light: #e8c97e;
  --color-bg: #f5faf7;
  --color-surface: #ffffff;
  --color-text: #1c2a1e;
  --color-text-muted: #687a6d;
  --color-border: #dde8e1;
  --font-base: 'Inter', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 8px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
a {
  color: var(--color-navy);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* Utilities */
.text-gold {
  color: var(--color-gold) !important;
}
.bg-gold {
  background-color: var(--color-gold) !important;
}
.text-navy {
  color: var(--color-navy) !important;
}
.bg-navy {
  background-color: var(--color-navy) !important;
}
.text-primary-green {
  color: var(--color-primary) !important;
}

/* Buttons */
.btn-gold {
  background-color: var(--color-gold);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.btn-gold:hover {
  background-color: var(--color-gold-light);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn-navy {
  background-color: var(--color-navy);
  color: #fff;
  border: none;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-navy:hover {
  background-color: var(--color-navy-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-navy {
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-navy:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-outline-gold {
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #fff;
}

.btn-hero-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* Navbar */
.bg-navbar {
  background-color: var(--color-navy) !important;
}
.navbar-brand {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0.9rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--color-gold);
}

/* Mobile drawer navbar */
.custom-toggler {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  box-shadow: none !important;
}

.custom-toggler:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.55);
}

.mobile-offcanvas {
  background: linear-gradient(160deg, #004d22 0%, #003618 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  width: min(74vw, 280px);
}

.mobile-offcanvas .offcanvas-header {
  padding: 1.2rem 1.1rem 0.9rem;
}

.mobile-offcanvas .offcanvas-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.mobile-offcanvas .offcanvas-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}

.mobile-offcanvas .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

.mobile-divider {
  height: 1px;
  margin: 0 1.1rem;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.mobile-nav-list {
  padding: 1rem 0.9rem 0.5rem;
}

.mobile-nav-list .nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.45rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-list .nav-link i {
  width: 18px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-list .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.mobile-nav-list .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-nav-list .nav-link.active .mobile-nav-dot {
  opacity: 1;
  transform: scale(1);
}

.mobile-auth-box {
  margin-top: auto;
  padding: 1rem 0.9rem 1.15rem;
}

.mobile-user-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.mobile-auth-box .btn {
  border-radius: 12px;
  font-weight: 600;
}

@media (max-width: 430px) {
  .mobile-offcanvas {
    width: min(82vw, 280px);
  }

  .mobile-nav-list .nav-link {
    padding: 0.88rem 0.95rem;
    font-size: 0.96rem;
  }
}

@media (min-width: 992px) {
  .mobile-offcanvas {
    display: none !important;
  }
}

/* Footer */
.bg-footer {
  background-color: var(--color-navy-dark) !important;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, #006b2e 55%, var(--color-navy-dark) 100%);
  color: #fff;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.2rem;
}
.hero-headline {
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1rem;
  opacity: 0.82;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 520px;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 0.28rem 0.75rem;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 56px 0 48px;
  }
  .hero-headline {
    font-size: 1.75rem;
  }
}

/* Hero feature card (kanan) */
.hero-feature-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(8px);
}
.hfc-header {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.hfc-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hfc-row:last-child {
  border-bottom: none;
}
.hfc-num {
  width: 22px;
  height: 22px;
  background: var(--color-gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.hfc-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.hfc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.1rem;
}
.hfc-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* Stats strip */
.stats-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}
.stats-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stats-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 2.5rem;
}
.stats-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}
.stats-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats-strip-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .stats-strip-item {
    padding: 0.5rem 1.2rem;
  }
  .stats-num {
    font-size: 1.3rem;
  }
}

/* Section titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.section-title-center {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}
.section-title-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Process steps */
.process-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.process-step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 130px;
  padding: 0 0.5rem;
}
.process-step-circle {
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.process-num {
  position: absolute;
  top: -0px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--color-gold);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.process-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}
.process-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}
.process-connector {
  padding-top: 16px;
  color: var(--color-border);
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .process-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .process-connector {
    display: none;
  }
  .process-step-wrap {
    min-width: 40%;
  }
}

/* Item cards */
.item-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.item-img-wrap {
  position: relative;
  overflow: hidden;
  background: #edf4f0;
}
.item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.item-card:hover .item-img {
  transform: scale(1.04);
}
.item-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #b0c8b8;
}
.item-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.item-badge-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
}
.item-card .card-body {
  padding: 1.1rem;
  flex: 1;
}
.item-price-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}
.item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}
.item-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}
.item-cta-hint {
  opacity: 0.35;
  transition: opacity 0.2s;
}
.item-card:hover .item-cta-hint {
  opacity: 1;
}

/* Info payment banner */
.info-payment-banner {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

/* Auth pages */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-navy) 0%, #006b2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.auth-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.3rem;
}
.auth-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* Admin */
.admin-body {
  background-color: #ebf2ed;
}
.bg-admin-nav {
  background-color: var(--color-navy-dark) !important;
}
.admin-wrapper {
  min-height: calc(100vh - 56px);
}
.admin-sidebar {
  width: 230px;
  min-height: 100%;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  flex-shrink: 0;
}
.sidebar-link {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar-link:hover,
.sidebar-link.active {
  background-color: var(--color-navy);
  color: #fff !important;
}
.sidebar-link.active {
  font-weight: 600;
}
.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 0 0.75rem;
  text-transform: uppercase;
}
.admin-content {
  overflow-x: auto;
}
@media (max-width: 991px) {
  .admin-sidebar {
    display: none !important;
  }
}

/* Admin table */
.table-admin {
  font-size: 0.875rem;
}
.table-admin th {
  background-color: var(--color-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.75rem 1rem;
}
.table-admin td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

/* Stat cards */
.stat-card {
  border: none;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  font-size: 2rem;
  opacity: 0.85;
}
.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

/* Forms */
.form-control,
.form-select {
  border-color: var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 146, 63, 0.15);
}
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Alerts */
.alert {
  border-radius: var(--radius);
  border: none;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}
.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}
.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}
.alert-info {
  background: #f0faf5;
  color: #065f46;
  border-left: 4px solid #00923f;
}

/* Badge */
.badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

/* Cards */
.card {
  border-radius: var(--radius);
}
.card-header {
  font-size: 0.9rem;
}

/* Countdown */
.countdown-box {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.countdown-unit {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.4s ease both;
}
