* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #F4F0E4;
  padding: 24px 16px;
}


/* ==========================================
   LOGIN CARD
   ========================================== */

.card {
  width: 100%;
  max-width: 420px;
  margin: 6vh auto 0;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(49, 90, 67, 0.10);
}

.logo {
  width: 110px;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  color: #315A43;
  font-size: 28px;
  font-weight: 700;
}

.subtitle {
  margin: 10px 0 28px;
  color: #777777;
  font-size: 15px;
  line-height: 1.5;
}

.input-label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #315A43;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #D8D8D8;
  border-radius: 14px;
  outline: none;
  font-size: 16px;
  color: #333333;
  background: #FAFAFA;
  transition: 0.2s;
}

input:focus {
  border-color: #315A43;
  background: #FFFFFF;
}

button {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: #315A43;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  opacity: 0.92;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}


/* ==========================================
   MESSAGE
   ========================================== */

.message {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.message.error {
  display: block;
  background: #FCECEC;
  color: #A94442;
}

.message.success {
  display: block;
  background: #EAF4EE;
  color: #315A43;
}


/* ==========================================
   LOGIN FOOTER
   ========================================== */

.footer {
  margin-top: 24px;
  color: #999999;
  font-size: 12px;
}


/* ==========================================
   HOME
   ========================================== */

.home-page {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

.home-page.active {
  display: block;
}


/* ==========================================
   HOME HEADER
   ========================================== */

.home-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.home-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-greeting {
  flex: 1;
}

.home-small-text {
  color: #999999;
  font-size: 13px;
  margin-bottom: 2px;
}

.customer-name {
  color: #315A43;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.home-intro {
  color: #999999;
  font-size: 13px;
  margin: 0 0 28px 68px;
}


/* ==========================================
   HOME SECTION
   ========================================== */

.home-section {
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #315A43;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  margin-top: 4px;
  color: #999999;
  font-size: 12px;
  line-height: 1.4;
}


/* ==========================================
   REMAINING PAYMENT
   ========================================== */

.payment-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(49, 90, 67, 0.06);
}

.payment-label {
  color: #999999;
  font-size: 12px;
  margin-bottom: 7px;
}

.remaining-amount {
  color: #315A43;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}


/* ==========================================
   READY TO CHECKOUT
   ========================================== */

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

.checkout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.checkout-info {
  min-width: 0;
  flex: 1;
}

.checkout-event {
  color: #999999;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.checkout-product {
  color: #315A43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-meta {
  margin-top: 6px;
  color: #999999;
  font-size: 12px;
}

.checkout-price {
  flex-shrink: 0;
  color: #315A43;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}


/* ==========================================
   CHECKOUT LOADING
   ========================================== */

.loading-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  color: #999999;
  font-size: 12px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  border: 2px solid #DED8CA;
  border-top-color: #315A43;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ==========================================
   CHECKOUT EMPTY / ERROR
   ========================================== */

.empty-state {
  padding: 26px 20px;
  border: 1px dashed #D9D4C8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.empty-title {
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

.empty-text {
  margin-top: 5px;
  color: #999999;
  font-size: 12px;
  line-height: 1.5;
}


/* ==========================================
   HOME FOOTER
   ========================================== */

.home-footer {
  text-align: center;
  color: #AAAAAA;
  font-size: 11px;
  margin-top: 34px;
}


/* ==========================================
   CATALOG
   ========================================== */

.catalog-page {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

.catalog-page.active {
  display: block;
}

.catalog-header {
  margin-bottom: 20px;
}

.catalog-title {
  color: #315A43;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-subtitle {
  margin-top: 5px;
  color: #999999;
  font-size: 13px;
}

.catalog-search {
  margin-bottom: 16px;
}

.catalog-search input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E2DED3;
  border-radius: 16px;
  background: #FFFFFF;
  color: #333333;
  font-size: 14px;
  outline: none;
}

.catalog-search input:focus {
  border-color: #315A43;
}

.catalog-list,
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-card,
.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.catalog-card:hover,
.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(49, 90, 67, 0.08);
}

.catalog-card-content,
.product-info {
  min-width: 0;
  flex: 1;
}

.catalog-name {
  color: #315A43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.catalog-state {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #EAF4EE;
  color: #315A43;
  font-size: 11px;
  font-weight: 600;
}

.catalog-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F4F0E4;
  color: #315A43;
  font-size: 16px;
}

.catalog-loading {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  color: #999999;
  font-size: 13px;
}

.catalog-empty {
  background: #FFFFFF;
  border: 1px dashed #D9D9D9;
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
}

.catalog-empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.catalog-empty-title {
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

.catalog-empty-text {
  margin-top: 5px;
  color: #999999;
  font-size: 12px;
}

.catalog-test-button {
  margin-top: 4px;
  background: #FFFFFF;
  color: #315A43;
  border: 1px solid #D9E3DC;
  box-shadow: none;
}

.catalog-test-button:hover {
  background: #F7FAF8;
  opacity: 1;
}


/* ==========================================
   CATALOG PRODUCT VIEW
   ========================================== */

.catalog-product-view,
.product-detail-view {
  display: none;
}

.catalog-back-button {
  width: auto;
  margin: 0 0 18px 0;
  padding: 9px 14px;
  background: #FFFFFF;
  color: #315A43;
  border: 1px solid #E2DED3;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.catalog-back-button:hover {
  background: #F7FAF8;
  opacity: 1;
}

.selected-catalog-name,
.selected-product-name {
  color: #315A43;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}


/* ==========================================
   PRODUCT
   ========================================== */

.product-name {
  color: #315A43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.product-price {
  margin-top: 6px;
  color: #777777;
  font-size: 13px;
  font-weight: 600;
}

.product-stock {
  flex-shrink: 0;
  min-width: 64px;
  text-align: right;
}

.stock-label {
  color: #999999;
  font-size: 10px;
}

.stock-value {
  margin-top: 2px;
  color: #315A43;
  font-size: 18px;
  font-weight: 700;
}


/* ==========================================
   PRODUCT DETAIL
   ========================================== */

.product-detail-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.product-detail-main {
  min-width: 0;
}

.product-detail-price {
  color: #315A43;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-stock {
  color: #777777;
  font-size: 13px;
}


/* ==========================================
   CLAIMED BY
   ========================================== */

.claimed-section {
  margin-top: 4px;
}

.claimed-title {
  color: #315A43;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.claimed-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.claimed-name {
  color: #333333;
  font-size: 14px;
  font-weight: 600;
}


/* ==========================================
   MY ITEMS
   ========================================== */

.my-items-page {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 0 24px;
}

.my-items-page.active {
  display: block;
}

.my-items-header {
  margin-bottom: 20px;
}

.my-items-title {
  color: #315A43;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.my-items-subtitle {
  margin-top: 5px;
  color: #999999;
  font-size: 13px;
}

.my-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-item-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.my-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.my-item-name {
  min-width: 0;
  flex: 1;
  color: #315A43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.my-item-quantity {
  flex-shrink: 0;
  color: #315A43;
  font-size: 13px;
  font-weight: 700;
  background: #EAF4EE;
  padding: 5px 9px;
  border-radius: 999px;
}

.my-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
}

.my-item-row + .my-item-row {
  border-top: 1px solid #F1EEE7;
}

.my-item-label {
  color: #999999;
  font-size: 12px;
}

.my-item-value {
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.my-item-value.remaining {
  color: #315A43;
  font-weight: 700;
}

.my-item-shipped {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #F4F0E4;
  color: #777777;
  font-size: 11px;
  font-weight: 600;
}

.my-items-loading {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  color: #999999;
  font-size: 13px;
}

.my-items-empty {
  background: #FFFFFF;
  border: 1px dashed #D9D9D9;
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
}

.my-items-empty-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.my-items-empty-title {
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

.my-items-empty-text {
  margin-top: 5px;
  color: #999999;
  font-size: 12px;
  line-height: 1.5;
}

.my-items-footer {
  text-align: center;
  color: #AAAAAA;
  font-size: 11px;
  margin-top: 32px;
}


/* ==========================================
   CUSTOMER NAVIGATION
   ========================================== */

.customer-nav {
  display: none;
  position: fixed;
  z-index: 1000;
  background: #F8F5EC;
  border: none;
  box-shadow: 0 2px 10px rgba(49, 90, 67, 0.03);
  align-items: center;
}

.nav-item {
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7B817B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nav-item.active {
  color: #315A43;
  font-weight: 700;
}

.nav-icon {
  font-size: 18px;
}

.nav-label {
  line-height: 1;
}


/* ==========================================
   CONTENT FRAME
   ========================================== */

.home-page,
.catalog-page,
.my-items-page,
.my-payments-page {
  border: 1px solid #DED8CA;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.22);
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 480px) {

  body {
    padding: 16px;
    padding-bottom: 92px;
  }

  .card {
    margin-top: 3vh;
    padding: 32px 22px 26px;
  }

  .logo {
    width: 100px;
    max-height: 100px;
  }

  h1 {
    font-size: 25px;
  }

  .home-page,
  .catalog-page,
  .my-items-page {
    padding: 20px 16px 24px;
    border-radius: 22px;
  }

  .home-logo {
    width: 50px;
    height: 50px;
  }

  .customer-name {
    font-size: 22px;
  }

  .home-intro {
    margin-left: 64px;
  }

  .remaining-amount {
    font-size: 27px;
  }

  .section-title {
    font-size: 17px;
  }

  .checkout-card {
    padding: 15px 16px;
  }

  .checkout-product {
    font-size: 14px;
  }

  .checkout-price {
    font-size: 13px;
  }

  .catalog-title {
    font-size: 22px;
  }

  .catalog-card {
    padding: 15px 16px;
  }

  .my-items-title {
    font-size: 22px;
  }

  .my-item-card {
    padding: 15px 16px;
  }

  .customer-nav {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 64px;
    border-radius: 20px;
    justify-content: space-around;
  }

  .nav-item {
    flex: 1;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }

  .nav-icon {
    font-size: 18px;
  }

  .customer-nav::after {
    content: "";
    position: fixed;
    z-index: -1;
    left: -12px;
    right: -12px;
    bottom: -12px;
    height: 88px;
    background: #EEE9DE;
    pointer-events: none;
  }

}


/* ==========================================
   DESKTOP
   ========================================== */

@media (min-width: 481px) {

  .customer-nav {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 62px;
    justify-content: center;
  }

  .nav-item {
    flex: 0 0 115px;
  }

  .home-page,
  .catalog-page,
  .my-items-page,
  .my-payments-page {
    margin-top: 70px;
  }

  .customer-nav::after {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    left: -100vw;
    width: 200vw;
    height: 62px;
    background: #EEE9DE;
    pointer-events: none;
  }

}


/* ==========================================
   LOGOUT
   ========================================== */

.logout-button {
  width: auto;
  margin: 0;
  padding: 7px 11px;
  background: transparent;
  color: #999999;
  border: 1px solid #E2DED3;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.logout-button:hover {
  background: #F7FAF8;
  color: #315A43;
  opacity: 1;
}


/* ==========================================
   MY PAYMENTS
   ========================================== */

.my-payments-page {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 70px auto 0;
  padding: 20px 24px 24px;
}

.my-payments-page.active {
  display: block;
}

.my-payments-header {
  margin-bottom: 20px;
}

.my-payments-title {
  color: #315A43;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.my-payments-subtitle {
  margin-top: 5px;
  color: #999999;
  font-size: 13px;
}

.payment-form-card,
.payment-history-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.payment-form-title,
.payment-history-title {
  color: #315A43;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.payment-form-group {
  margin-bottom: 18px;
}

.payment-form-group > label:first-child {
  display: block;
  margin-bottom: 7px;
  color: #315A43;
  font-size: 12px;
  font-weight: 600;
}

.payment-form-group input,
.payment-form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #E2DED3;
  border-radius: 14px;
  background: #FAFAFA;
  color: #333333;
  font-size: 14px;
  outline: none;
}

.payment-form-group input:focus,
.payment-form-group select:focus {
  border-color: #315A43;
  background: #FFFFFF;
}

.payment-form-hint {
  margin-top: 6px;
  color: #999999;
  font-size: 11px;
  line-height: 1.4;
}

.payment-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-item-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ECE8DD;
  border-radius: 14px;
  background: #FAFAF7;
  cursor: pointer;
}

.payment-item-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  flex-shrink: 0;
  cursor: pointer;
}

.payment-item-content {
  min-width: 0;
  flex: 1;
}

.payment-item-event {
  color: #999999;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 2px;
}

.payment-item-product {
  color: #315A43;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.payment-item-meta {
  margin-top: 4px;
  color: #777777;
  font-size: 11px;
}

.selected-payment-total {
  margin-top: 10px;
  color: #315A43;
  font-size: 12px;
  font-weight: 600;
}

.payment-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px dashed #D9D9D9;
  border-radius: 14px;
  background: #FAFAF7;
  color: #777777;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.payment-upload:hover {
  background: #F7FAF8;
  color: #315A43;
}

.payment-form-message {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.payment-form-message.success,
.payment-form-message.error {
  display: block;
}

.payment-form-message.success {
  background: #EAF4EE;
  color: #315A43;
}

.payment-form-message.error {
  background: #FCECEC;
  color: #A94442;
}

.payment-form-card button {
  margin-top: 0;
}

.payment-history-section {
  margin-top: 26px;
}

.payment-history-card {
  margin-bottom: 10px;
}

.payment-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.payment-history-date {
  color: #315A43;
  font-size: 13px;
  font-weight: 700;
}

.payment-history-method {
  margin-top: 4px;
  color: #999999;
  font-size: 11px;
}

.payment-history-amount {
  flex-shrink: 0;
  color: #315A43;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.payment-history-status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #EAF4EE;
  color: #315A43;
  font-size: 11px;
  font-weight: 600;
}

.payment-loading,
.payment-empty {
  background: #FFFFFF;
  border: 1px dashed #D9D9D9;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #999999;
  font-size: 12px;
}

.my-payments-footer {
  text-align: center;
  color: #AAAAAA;
  font-size: 11px;
  margin-top: 32px;
}

.payment-proof {
  display: block;
  width: 90px;
  height: 90px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ECE8DD;
  background: #F7F5EF;
}

.payment-proof-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.payment-proof-container {
  margin-top: 12px;
}


/* ==========================================
   CLAIM MODAL
   ========================================== */

.claim-button {
  flex-shrink: 0;
  width: auto;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  background: #315A43;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.claim-button:hover {
  opacity: 0.92;
}

.claim-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.claim-modal.active {
  display: flex;
}

.claim-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.claim-modal-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 400px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16);
}

.claim-modal-title {
  color: #315A43;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.claim-modal-product-name {
  color: #333333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.claim-modal-product-price {
  margin-top: 5px;
  color: #777777;
  font-size: 12px;
}

.claim-modal-available {
  margin-top: 4px;
  color: #999999;
  font-size: 11px;
}

.claim-quantity-label {
  margin-top: 20px;
  margin-bottom: 8px;
  color: #315A43;
  font-size: 12px;
  font-weight: 600;
}

.claim-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.claim-quantity-button {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #DED8CA;
  border-radius: 18px;
  background: #FFFFFF;
  color: #315A43;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.claim-quantity-button:disabled {
  background: #F5F5F2;
  border-color: #EDEAE3;
  color: #D5DCD8;
  cursor: default;
}

.claim-quantity-value {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #315A43;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.claim-total-label {
  margin-top: 20px;
  color: #999999;
  font-size: 11px;
}

.claim-total {
  margin-top: 4px;
  color: #315A43;
  font-size: 20px;
  font-weight: 700;
}

.claim-modal-message {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.claim-modal-message.success {
  display: block;
  background: #EAF4EE;
  color: #315A43;
}

.claim-modal-message.error {
  display: block;
  background: #FCECEC;
  color: #A94442;
}

.claim-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.claim-cancel-button,
.claim-confirm-button {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.claim-cancel-button {
  border: 1px solid #DED8CA;
  background: #FFFFFF;
  color: #777777;
}

.claim-confirm-button {
  border: none;
  background: #315A43;
  color: #FFFFFF;
}

.claim-confirm-button:disabled {
  opacity: 0.55;
  cursor: default;
}


/* ==========================================
   MOBILE FINAL
   ========================================== */

@media (max-width: 480px) {

  .product-detail-card {
    padding: 20px;
  }

  .claim-button {
    padding: 9px 13px;
    font-size: 12px;
  }

  .claim-modal-card {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .my-payments-page {
    margin-top: 0;
  }

}

/* ==================== ADMIN PORTAL ==================== */

.admin-page,
.admin-subpage {
  display: none;
  width: calc(100% - 28px);
  max-width: 1100px;
  margin: 28px auto;
  padding: 32px 28px 40px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #DED8CA;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(49, 90, 67, 0.05);
}

.admin-page.active,
.admin-subpage.active {
  display: block;
}


/* ==========================================
   ADMIN HEADER
   ========================================== */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-greeting {
  min-width: 0;
}

.admin-small-text {
  color: #999999;
  font-size: 13px;
  margin-bottom: 3px;
}

.admin-title {
  color: #315A43;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-intro {
  color: #777777;
  font-size: 13px;
  margin-bottom: 30px;
}


/* ==========================================
   ADMIN SECTION
   ========================================== */

.admin-section {
  margin-bottom: 30px;
}

.admin-section-heading {
  margin-bottom: 14px;
}

.admin-section-title {
  color: #315A43;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-section-subtitle {
  margin-top: 4px;
  color: #999999;
  font-size: 12px;
  line-height: 1.4;
}


/* ==========================================
   ADMIN DASHBOARD
   ========================================== */

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-menu-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 18px;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(49, 90, 67, 0.09);
}

.admin-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #F4F0E4;
  border-radius: 14px;
  font-size: 21px;
}

.admin-menu-info {
  min-width: 0;
}

.admin-menu-title {
  color: #315A43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}

.admin-menu-text {
  color: #999999;
  font-size: 11px;
  line-height: 1.45;
}


/* ==========================================
   ADMIN SUMMARY
   ========================================== */

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-summary-card {
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 18px;
  padding: 17px 18px;
  box-shadow: 0 5px 16px rgba(49, 90, 67, 0.05);
}

.admin-summary-label {
  color: #999999;
  font-size: 11px;
  margin-bottom: 7px;
}

.admin-summary-value {
  color: #315A43;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}


/* ==========================================
   ADMIN SUBPAGE
   ========================================== */

.admin-subpage {
  padding-bottom: 34px;
}

.admin-subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-subpage-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.admin-subpage-title {
  color: #315A43;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-subpage-subtitle {
  margin-top: 5px;
  color: #999999;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.admin-subpage-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.admin-subpage-heading > div {
  min-width: 0;
}

.admin-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #315A43;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.admin-back-button:hover {
  background: transparent;
  opacity: 0.6;
}

.admin-back-button:hover {
  background: #F7F5EF;
  opacity: 1;
}


/* ==========================================
   ADMIN BUTTONS
   ========================================== */

.admin-primary-button,
.admin-secondary-button {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-primary-button {
  border: none;
  background: #315A43;
  color: #FFFFFF;
}

.admin-primary-button:hover {
  opacity: 0.9;
}

.admin-secondary-button {
  border: 1px solid #DED8CA;
  background: #FFFFFF;
  color: #555555;
}

.admin-secondary-button:hover {
  background: #F7F5EF;
}


/* ==========================================
   ADMIN SEARCH
   ========================================== */

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 14px;
}

.admin-search-icon {
  flex-shrink: 0;
  font-size: 15px;
}

.admin-search-box input {
  width: 100%;
  margin: 0;
  padding: 13px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #444444;
  font-size: 13px;
}

.admin-search-box input:focus {
  border: 0;
  background: transparent;
}


/* ==========================================
   ADMIN TABLE
   ========================================== */

.admin-table-wrapper {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #ECE8DD;
  border-radius: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 18px;
  background: #F8F6F0;
  color: #777777;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 18px;
  border-top: 1px solid #F0EDE5;
  color: #555555;
  font-size: 13px;
}

.admin-table tbody tr:hover {
  background: #FCFBF8;
}

.admin-claim-code {
  color: #315A43;
  font-weight: 600;
}

.admin-action-column {
  width: 70px;
  text-align: center !important;
}


/* ==========================================
   ADMIN EDIT BUTTON
   ========================================== */

.admin-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid #ECE8DD;
  border-radius: 11px;
  background: #FFFFFF;
  color: #555555;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.admin-edit-button:hover {
  background: #F4F0E4;
  opacity: 1;
}


/* ==========================================
   ADMIN EMPTY STATE
   ========================================== */

.admin-empty-state {
  display: none;
  padding: 50px 20px;
  text-align: center;
}

.admin-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.admin-empty-title {
  color: #555555;
  font-size: 15px;
  font-weight: 600;
}

.admin-empty-text {
  margin-top: 5px;
  color: #999999;
  font-size: 12px;
  line-height: 1.5;
}


/* ==========================================
   ADMIN MODAL
   ========================================== */

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.admin-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 32px));
  padding: 24px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-modal-title {
  color: #315A43;
  font-size: 19px;
  font-weight: 700;
}

.admin-modal-subtitle {
  margin-top: 4px;
  color: #999999;
  font-size: 11px;
}

.admin-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F4F0E4;
  color: #777777;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover {
  opacity: 1;
  background: #ECE8DD;
}


/* ==========================================
   ADMIN FORM
   ========================================== */

.admin-form-group {
  margin-bottom: 17px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 7px;
  color: #555555;
  font-size: 12px;
  font-weight: 600;
}

.admin-form-group input {
  width: 100%;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #DED8CA;
  border-radius: 12px;
  outline: none;
  color: #444444;
  font-size: 13px;
  background: #FFFFFF;
}

.admin-form-group input:focus {
  border-color: #315A43;
  background: #FFFFFF;
}

.admin-form-message {
  min-height: 18px;
  margin-top: 4px;
  color: #C94A4A;
  font-size: 11px;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}


/* ==========================================
   ADMIN FOOTER
   ========================================== */

.admin-footer {
  text-align: center;
  color: #AAAAAA;
  font-size: 11px;
  margin-top: 38px;
}


/* ==========================================
   ADMIN RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

  .admin-page,
  .admin-subpage {
    width: calc(100% - 20px);
    margin: 18px auto;
    padding: 24px 18px 32px;
  }

  .admin-title {
    font-size: 22px;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-subpage-header {
    gap: 16px;
  }

  .admin-subpage-heading {
    gap: 12px;
  }

  .admin-subpage-title {
    font-size: 22px;
  }

  .admin-subpage-subtitle {
    font-size: 12px;
  }

}


@media (max-width: 480px) {

  .admin-page,
  .admin-subpage {
    width: calc(100% - 12px);
    margin: 12px auto;
    padding: 20px 14px 28px;
    border-radius: 22px;
  }

  .admin-header {
    gap: 10px;
  }

  .admin-title {
    font-size: 20px;
  }

  .admin-intro {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-menu-card {
    padding: 16px;
  }

  .admin-summary-card {
    padding: 15px;
  }

  .admin-summary-value {
    font-size: 18px;
  }

  .admin-subpage-header {
    align-items: flex-start;
    gap: 14px;
  }

  .admin-subpage-heading {
    width: 100%;
    gap: 10px;
  }

  .admin-subpage-subtitle {
    white-space: normal;
  }

  .admin-back-button {
    padding: 7px 10px;
    font-size: 11px;
  }

  .admin-subpage-title {
    font-size: 21px;
  }

  .admin-subpage-subtitle {
    white-space: normal;
  }

  .admin-primary-button {
    width: auto;
    align-self: flex-start;
  }

  .admin-table th,
  .admin-table td {
    padding: 13px 14px;
  }

  .admin-modal-card {
    width: calc(100% - 24px);
    padding: 20px;
  }

}
