/* BASE - DO NOT EDIT WITHOUT COORDINATION */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #f4f7f6;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* SHARED LAYOUT - DO NOT EDIT WITHOUT COORDINATION */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #d8e0df;
  box-shadow: 0 2px 12px rgba(31, 41, 51, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f766e;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #425466;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e6f4f1;
  color: #0f766e;
}

.page {
  padding: 36px 0 56px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: #111827;
}

.page-heading p {
  max-width: 720px;
  margin: 0;
  color: #52606d;
}

.eyebrow {
  margin-bottom: 8px;
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel,
.item-card,
.summary-card,
.transaction-card {
  background: #ffffff;
  border: 1px solid #d8e0df;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.panel {
  padding: 22px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.summary-card {
  padding: 18px;
}

.summary-card span {
  display: block;
  color: #52606d;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.summary-card strong {
  display: block;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1.2;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 700;
  color: #344054;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5d1;
  border-radius: 6px;
  padding: 11px 12px;
  background: #ffffff;
  color: #1f2933;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #b7e4dc;
  border-color: #0f766e;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.primary {
  background: #0f766e;
  color: #ffffff;
}

.button.secondary {
  background: #e8eef2;
  color: #23313f;
}

.button.danger {
  background: #b42318;
  color: #ffffff;
}

.message {
  display: none;
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.message.show {
  display: block;
}

.message.success {
  color: #065f46;
  background: #dff7ec;
  border: 1px solid #9ee6c1;
}

.message.error {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fda4af;
}

.message.info {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.available,
.badge.success {
  color: #067647;
  background: #dff7ec;
}

.badge.process,
.badge.pending {
  color: #92400e;
  background: #fef3c7;
}

.badge.failed {
  color: #9f1239;
  background: #ffe4e6;
}

.empty-state {
  padding: 22px;
  color: #52606d;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #aebfbc;
  border-radius: 8px;
}

.hidden {
  display: none;
}

.site-footer {
  padding: 24px 16px;
  color: #52606d;
  text-align: center;
  border-top: 1px solid #d8e0df;
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

/* ALDO - CATALOG SECTION ONLY */
.catalog-toolbar {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.item-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.item-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #111827;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #52606d;
  font-size: 0.92rem;
}

.item-price {
  color: #0f766e;
  font-size: 1.25rem;
  font-weight: 800;
}

.item-description {
  margin: 0;
  color: #52606d;
}

/* ABDIL - ACCOUNT SECTION ONLY */
.account-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.account-status p {
  margin: 0 0 12px;
  color: #425466;
  font-weight: 700;
}

/* IBRAHIM - UPLOAD SECTION ONLY */



.upload-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.image-preview {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  color: #52606d;
  text-align: center;
  background: #eef4f3;
  border: 1px dashed #9db2ae;
  border-radius: 8px;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.inventory-list {
  display: grid;
  gap: 12px;
}

.inventory-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbfa;
  border: 1px solid #d8e0df;
  border-radius: 8px;
}

.inventory-item h3 {
  margin: 0;
  font-size: 1rem;
}

.inventory-item p {
  margin: 0;
  color: #52606d;
}

.inventory-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* FAIZ - SWAP SECTION ONLY */
.swap-layout {
  margin-bottom: 22px;
}

.selected-item-box,
.checkout-summary,
.radio-list {
  display: grid;
  gap: 12px;
}

.radio-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e0df;
  border-radius: 8px;
  background: #f8fbfa;
  cursor: pointer;
}

.radio-option input {
  width: auto;
  margin-top: 5px;
}

.checkout-panel {
  margin-bottom: 18px;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5ecea;
  padding-bottom: 8px;
}

.checkout-row strong {
  text-align: right;
}

/* INDRA - TRACK SECTION ONLY */
.tracking-toolbar {
  grid-template-columns: 260px auto;
  justify-content: space-between;
}

.transaction-list {
  display: grid;
  gap: 14px;
}

.transaction-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.transaction-card h3 {
  margin: 0;
}

.transaction-card p {
  margin: 0;
  color: #52606d;
}

/* RESPONSIVE - DO NOT EDIT WITHOUT COORDINATION */
@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .page {
    padding-top: 28px;
  }

  .summary-grid,
  .card-grid,
  .two-column,
  .toolbar,
  .catalog-toolbar,
  .tracking-toolbar {
    grid-template-columns: 1fr;
  }

  .summary-card strong {
    font-size: 1.35rem;
  }

  .panel {
    padding: 18px;
  }

  .checkout-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .checkout-row strong {
    text-align: left;
  }
}
