:root {
  --wine: #58111a;
  --wine-dark: #2a070b;
  --gold: #c9a44c;
  --cream: #f7f1e8;
  --text: #2b1b1b;
  --muted: #8a7a73;
  --soft: #f4e9dd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(
    180deg,
    var(--wine-dark),
    var(--wine) 42%,
    var(--cream) 42%
  );
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--text);
}
a {
  text-decoration: none;
}
.app-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  padding-bottom: 92px;
  box-shadow: 0 0 40px #0004;
}
.app-header {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: #fff;
  padding: 30px 22px 26px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-title {
  font-size: 24px;
  font-weight: 900;
}
.brand-subtitle {
  color: #e8d6c0;
}
.profile-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff22;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.hero-card {
  margin-top: 22px;
  border-radius: 26px;
  padding: 22px;
  min-height: 185px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 16px 34px #0004;
}
.hero-label {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.2px;
}
.hero-title {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}
.hero-text {
  color: #ead7c8;
}
.section {
  padding: 22px;
}
.section-title {
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 16px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.quick-card,
.wine-card,
.form-card,
.profile-box,
.status-row,
.admin-card,
.admin-table-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(88, 17, 26, 0.08);
}
.quick-card {
  padding: 18px;
  color: var(--text);
}
.quick-card i {
  color: var(--gold);
  font-size: 30px;
}
.quick-card h6 {
  font-weight: 900;
  margin-top: 12px;
}
.quick-card p {
  color: var(--muted);
  margin: 0;
}
.wine-card {
  overflow: hidden;
  margin-bottom: 16px;
  color: var(--text);
}
.wine-image {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.wine-tag,
.stock-pill,
.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}
.wine-tag {
  background: var(--gold);
  color: #fff;
}
.wine-image .wine-tag {
  position: absolute;
  top: 12px;
  left: 12px;
}
.wine-body {
  padding: 16px;
}
.wine-name {
  font-weight: 900;
}
.wine-type,
.status-row small {
  color: var(--muted);
  font-size: 13px;
}
.wine-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.wine-price {
  color: var(--wine);
  font-size: 18px;
  font-weight: 900;
}
.stock-pill {
  background: var(--soft);
  color: var(--wine);
}
.form-card,
.profile-box,
.status-row {
  padding: 18px;
  margin-bottom: 14px;
}
.btn-wine {
  background: var(--wine);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
}
.btn-wine:hover {
  background: var(--wine-dark);
  color: #fff;
}
.form-control,
.form-select {
  border-radius: 14px;
  padding: 11px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  width: 100%;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px 12px;
  box-shadow: 0 -8px 24px #0001;
  z-index: 50;
}
.nav-item-demo {
  text-align: center;
  color: #a5968e;
  font-size: 11px;
}
.nav-item-demo i {
  display: block;
  font-size: 21px;
}
.nav-item-demo.active {
  color: var(--wine);
  font-weight: 900;
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--wine-dark), var(--wine));
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--cream);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 45px #0004;
}
.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--wine);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
}
.status-approved,
.status-verified,
.status-active,
.status-success {
  background: #ddf7e6;
  color: #207a3a;
}
.status-pending {
  background: #fff2cc;
  color: #8a6200;
}
.status-rejected {
  background: #fee4e2;
  color: #b42318;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f7f1e8;
}
.admin-sidebar {
  width: 270px;
  background: linear-gradient(180deg, var(--wine-dark), var(--wine));
  color: #fff;
  padding: 24px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}
.admin-logo {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
}
.admin-logo small {
  font-size: 13px;
  color: #e8d6c0;
}
.admin-sidebar a {
  display: flex;
  gap: 10px;
  color: #ead7c8;
  padding: 11px 12px;
  border-radius: 14px;
  margin-bottom: 6px;
}
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #ffffff22;
  color: #fff;
}
.admin-main {
  margin-left: 270px;
  flex: 1;
  padding: 28px;
}
.admin-main-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.admin-card {
  padding: 20px;
  height: 100%;
}
.admin-card i {
  color: var(--gold);
  font-size: 30px;
}
.admin-table-card {
  padding: 22px;
  margin-bottom: 22px;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-wine-image {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.detail-cover {
  height: 220px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(20px);
  background: var(--wine);
  color: #fff;
  padding: 14px 18px;
  border-radius: 18px;
  opacity: 0;
  z-index: 999;
  transition: 0.25s;
}
.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .admin-sidebar {
    position: static;
    width: 100%;
  }
  .admin-layout {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 16px;
  }
}
/* ==========================================================
   Admin Sidebar Layout
   ========================================================== */

.admin-sidebar {
  display: flex;
  flex-direction: column;
}

.admin-menu-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;
  flex-direction: column;
  gap: 6px;
}
