* { box-sizing: border-box; }
:root {
  --bg: #f7f4ef;
  --card: rgba(255, 255, 255, 0.88);
  --line: #eadfce;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #b86a47;
  --primary-dark: #8f4e32;
  --gold: #d6b15a;
  --surface: #fffdf9;
  --shadow: 0 20px 50px rgba(45, 29, 13, 0.10);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { text-decoration: none; }
.text-secondary { color: var(--muted) !important; }

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #c78b5e 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}
.brand-mark.large {
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
}
.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-title.large { font-size: 1.5rem; }
.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.auth-background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(214, 177, 90, 0.25), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(184, 106, 71, 0.22), transparent 25%),
    linear-gradient(135deg, #faf7f2 0%, #f2ece1 50%, #fff 100%);
  z-index: -2;
}
.auth-showcase {
  padding-right: 2rem;
}
.showcase-grid {
  display: grid;
  gap: 1rem;
}
.showcase-card {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.showcase-card i {
  font-size: 1.35rem;
  color: var(--primary);
}
.showcase-card h3 {
  font-size: 1rem;
  margin: 0 0 .3rem;
}
.showcase-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(184, 106, 71, 0.10);
  color: var(--primary-dark);
  padding: .45rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.form-label { font-weight: 600; }
.form-control, .form-select, .form-control:focus, .form-select:focus {
  border-radius: 16px;
  box-shadow: none;
  border-color: #e5d8c6;
}
.btn {
  border-radius: 14px;
  font-weight: 600;
  padding: .75rem 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #c27b56 100%);
  border: 0;
}
.btn-primary:hover { background: linear-gradient(135deg, #a85835 0%, #b7704c 100%); }
.btn-dark { background: #201914; border-color: #201914; }
.btn-outline-secondary { border-color: #d8d0c4; color: #63584b; }

.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214,177,90,0.16), transparent 25%),
    linear-gradient(180deg, #faf7f2 0%, #f5efe6 100%);
}
.portal-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}
.portal-sidebar {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(228, 215, 197, 0.8);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: .35rem .15rem;
}
.portal-nav {
  display: grid;
  gap: .45rem;
}
.portal-nav-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #40362e;
  padding: .95rem 1rem;
  border-radius: 18px;
  transition: .2s ease;
}
.portal-nav-link:hover,
.portal-nav-link.active {
  background: linear-gradient(135deg, rgba(184,106,71,0.14), rgba(214,177,90,0.18));
  color: #241b16;
}
.portal-nav-link i { font-size: 1.05rem; }
.sidebar-card {
  margin-top: auto;
  background: linear-gradient(180deg, #fff 0%, #fbf4e8 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
}

.portal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.portal-topbar {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234,223,206,0.9);
}
.page-kicker {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
}
.page-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  padding: .65rem .85rem;
  border-radius: 999px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}
.portal-content {
  padding: 1.5rem;
}

.stat-card, .surface-card, .public-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(234,223,206,0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(214,177,90,0.20), transparent 62%);
}
.stat-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(184,106,71,0.12);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  color: var(--muted);
  margin-top: .35rem;
}
.surface-card { padding: 1.4rem; }
.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .9rem;
}
.table-modern > :not(caption) > * > * {
  padding: .95rem .75rem;
  background: transparent;
}
.table-modern tbody tr {
  border-top: 1px solid #f0e8dc;
}
.table-modern tbody tr:hover {
  background: rgba(250,247,242,0.74);
}
.table-modern td, .table-modern th { vertical-align: middle; }
.data-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(214,177,90,0.12);
  color: #7b5f22;
  font-size: .85rem;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.5);
}

.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.media-title {
  font-weight: 700;
  margin-bottom: .2rem;
}
.meta-preview {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.meta-chip {
  background: rgba(184,106,71,0.09);
  color: #7a4c35;
  border: 1px solid rgba(184,106,71,0.10);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .84rem;
}
.form-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(234,223,206,0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.form-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .9rem;
}
.upload-tile {
  background: linear-gradient(180deg, #fff 0%, #fcf7ef 100%);
  border: 1px dashed #d8c2a4;
  border-radius: 24px;
  padding: 1rem;
}

.public-body {
  background:
    radial-gradient(circle at top left, rgba(214,177,90,0.12), transparent 22%),
    linear-gradient(180deg, #fbf8f2 0%, #f5eee4 100%);
}
.public-hero {
  padding: 1.25rem 0 2rem;
}
.public-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.hero-panel {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(234,223,206,0.95);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,106,71,0.18), transparent 62%);
}
.eyebrow {
  display: inline-flex;
  background: rgba(184,106,71,0.10);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .75rem;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-description {
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.05rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}
.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  padding: .55rem .8rem;
  border-radius: 999px;
}
.hero-side-card {
  background: linear-gradient(180deg, #fff, #fcf8f1);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed #e8dfd1;
}
.detail-row:last-child { border-bottom: 0; }
.public-note {
  border-radius: 18px;
  padding: .85rem 1rem;
  background: rgba(214,177,90,0.12);
  color: #6f5620;
}
.public-main { padding-bottom: 2rem; }
.catalog-toolbar {
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.public-card { padding: 1rem; height: 100%; }
.public-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.public-product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.price-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(214,177,90,0.16);
  color: #765718;
  padding: .45rem .75rem;
  font-weight: 700;
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  background: rgba(184,106,71,0.10);
  color: var(--primary-dark);
  padding: .4rem .7rem;
  font-size: .85rem;
}
.public-footer {
  border-top: 1px solid rgba(234,223,206,0.95);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}
.public-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.5rem;
}
.product-hero-image {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.detail-grid {
  display: grid;
  gap: 1rem;
}
.detail-item {
  background: linear-gradient(180deg, #fff 0%, #fdf8ef 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
}
.detail-item-label {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: .35rem;
}
.detail-item-value {
  color: #332820;
  white-space: pre-wrap;
}
.dashboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px dashed #ebdfcf;
}
.dashboard-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1199px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .portal-sidebar.open { transform: translateX(0); }
}
@media (max-width: 991px) {
  .auth-showcase { padding-right: 0; margin-bottom: 2rem; }
  .public-product-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .portal-content, .portal-topbar { padding-left: 1rem; padding-right: 1rem; }
  .hero-panel { padding: 1.25rem; }
  .auth-card { padding: 1.35rem; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .user-pill { display: none; }
}
.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

