.mo-page {
  background: #f5f8fb;
  color: #172b4d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.mo-page *,
.mo-page *::before,
.mo-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.mo-page button,
.mo-page input {
  font-family: inherit;
}

.page-wrapper {
  width: 100%;
  padding: 18px 0;
}

.mo-container {
  max-width: 960px;
  margin: 0 auto;
}

/* HEADER */
.page-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  min-height: 54px;
}

.header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 24px;
  font-weight: 750;
  line-height: 1.15;
  color: #172b4d;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-subtitle {
  color: #61728e;
  font-size: 13px;
  line-height: 1.5;
}

/* HEADER ILLUSTRATION */
.header-illustration {
  position: relative;
  width: 90px;
  height: 64px;
  margin-right: 10px;
}

.bag {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 16px;
  bottom: 3px;
  background: #4f7fd8;
  border-radius: 4px 4px 6px 6px;
  box-shadow: 0 5px 10px rgba(44, 89, 160, 0.22);
}

.bag:before {
  content: "";
  position: absolute;
  width: 17px;
  height: 13px;
  left: 12px;
  top: -12px;
  border: 4px solid #77a1e7;
  border-bottom: none;
  border-radius: 13px 13px 0 0;
}

.package {
  position: absolute;
  width: 20px;
  height: 24px;
  left: 10px;
  bottom: 1px;
  background: #e9c9a9;
  border-radius: 3px;
  box-shadow: 0 3px 7px rgba(120, 89, 62, 0.15);
}

.leaf {
  position: absolute;
  width: 26px;
  height: 12px;
  right: -2px;
  bottom: 7px;
  background: #66ccd0;
  border-radius: 100% 10% 100% 10%;
  transform: rotate(-40deg);
}

/* CARDS */
.mo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(33, 56, 85, 0.08);
  border: 1px solid rgba(230, 237, 245, 0.7);
}

/* NEW ORDER CARD */
.new-order-card {
  position: relative;
  padding: 16px 18px 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.new-order-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #30c3da;
  border-radius: 10px 0 0 10px;
}

.new-order-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* CART ICON */
.cart-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6f8fb;
  color: #30c3da;
  font-size: 18px;
}

/* ORDER CONTENT */
.order-content {
  flex: 1;
  min-width: 0;
}

.section-title {
  color: #172b4d;
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 3px;
}

.section-description {
  color: #687b99;
  font-size: 12px;
  margin-bottom: 10px;
}

/* INPUT GROUP */
.input-row {
  display: flex;
  width: 100%;
  height: 40px;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #30c3da;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #ffffff;
  transition: 0.2s ease;
}

.input-wrapper:focus-within {
  box-shadow: 0 0 0 2px rgba(48, 195, 218, 0.15);
}

.phone-icon {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #41536f;
}

.phone-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 12px;
  color: #263b59;
  padding: 0 10px 0 0;
  background: transparent;
}

.phone-input::placeholder {
  color: #8391a9;
}

/* SEND OTP BUTTON */
.otp-button {
  width: 120px;
  border: none;
  border-radius: 0 6px 6px 0;
  background: #30c3da;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.otp-button:hover {
  background: #1fa5bb;
}

.otp-button:active {
  transform: scale(0.99);
}

.otp-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.send-icon {
  font-size: 12px;
}

/* INFO MESSAGE */
.otp-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #8795aa;
  font-size: 11px;
}

.otp-info a {
  color: #30c3da;
  text-decoration: none;
  font-weight: 600;
}

.otp-info a:hover {
  text-decoration: underline;
}

.info-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid #30c3da;
  border-radius: 50%;
  color: #30c3da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

/* PHP MESSAGE */
.server-message {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.server-message.success {
  background: #eaf8ef;
  color: #277646;
}

.server-message.error {
  background: #fff0f1;
  color: #c43c48;
}

/* ORDERS CARD */
.orders-card {
  padding: 14px 14px 12px;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.orders-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orders-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffe9ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb3a6b;
  font-size: 13px;
}

.orders-title {
  font-size: 15px;
  font-weight: 750;
  color: #172b4d;
}

/* VIEW ALL BUTTON */
.view-all-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #ffc9d8;
  background: #ffffff;
  color: #fb3a6b;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s ease;
}

.view-all-button:hover {
  background: #fff4f7;
}

.arrow {
  font-size: 12px;
}

/* TOOLBAR: SEARCH + FILTERS */
.orders-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.orders-search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 340px;
}

.orders-search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #93a1b5;
  pointer-events: none;
}

.orders-search-field input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 31px;
  font-size: 12px;
  font-weight: 500;
  color: #172b4d;
  background: #f7f9fc;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.orders-search-field input::placeholder {
  color: #9aa7b8;
  font-weight: 500;
}

.orders-search-field input:focus {
  background: #ffffff;
  border-color: #fb3a6b;
  box-shadow: 0 0 0 3px rgba(251, 58, 107, 0.12);
}

.orders-search-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #fb3a6b;
  border: 1px solid #fb3a6b;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.orders-search-btn:hover {
  background: #e12c5b;
  box-shadow: 0 3px 10px rgba(251, 58, 107, 0.28);
}

.orders-search-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.orders-search-clear:hover {
  color: #172b4d;
  background: #f1f5f9;
  border-color: #c9d6e5;
}

.orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.orders-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 650;
  color: #5a6b83;
  background: #f2f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.orders-filter:hover {
  color: #fb3a6b;
  background: #fff1f5;
  border-color: #ffd3e0;
}

.orders-filter.is-active {
  color: #ffffff;
  background: #fb3a6b;
  border-color: #fb3a6b;
  box-shadow: 0 2px 8px rgba(251, 58, 107, 0.26);
}

.orders-filter.is-active:hover {
  color: #ffffff;
  background: #e12c5b;
}

/* TABLE */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #ffffff;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.orders-table thead {
  background: #e6f8fb;
}

.orders-table th {
  padding: 9px 12px;
  text-align: left;
  color: #14899e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.orders-table td {
  padding: 10px 12px;
  color: #536782;
  border-top: 1px solid #edf1f5;
  font-size: 11px;
}

.orders-table td .pay-link,
.orders-table td .ticket-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s ease;
}

.orders-table td .pay-link {
  background: #fff0f4;
  color: #fb3a6b;
}

.orders-table td .pay-link:hover {
  background: #ffe3eb;
}

.orders-table td .ticket-link {
  background: #e6f8fb;
  color: #14899e;
}

.orders-table td .ticket-link:hover {
  background: #d0f1f5;
}

/* STATUS BADGES */
.orders-table td .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 750;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.orders-table td .status-pending {
  background: #fff6e6;
  color: #b37400;
}

.orders-table td .status-paid {
  background: #eaf8ef;
  color: #277646;
}

.orders-table td .status-failed,
.orders-table td .status-cancelled,
.orders-table td .status-expired {
  background: #fff0f1;
  color: #c43c48;
}

.orders-table td .status-refunded {
  background: #f1f2ff;
  color: #4f5bd5;
}

/* EMPTY STATE */
.empty-state {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 18px 12px;
}

/* EMPTY BOX ICON */
.empty-box {
  position: relative;
  width: 44px;
  height: 30px;
  margin-bottom: 12px;
}

.box-body {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 30px;
  height: 22px;
  background: #a8c5ed;
  clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
  border-radius: 3px;
}

.box-top-left {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 18px;
  background: #c6d9f4;
  clip-path: polygon(0 35%, 100% 0, 80% 100%);
}

.box-top-right {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 22px;
  height: 18px;
  background: #90b5e8;
  clip-path: polygon(0 0, 100% 35%, 20% 100%);
}

.sparkle {
  position: absolute;
  color: #9ec1f2;
  font-size: 9px;
}

.sparkle-one {
  top: -7px;
  left: 5px;
}

.sparkle-two {
  top: -11px;
  right: 7px;
}

.sparkle-three {
  top: 3px;
  right: -3px;
}

.empty-title {
  font-size: 14px;
  font-weight: 750;
  color: #172b4d;
  margin-bottom: 3px;
}

.empty-description {
  color: #8190a7;
  font-size: 11px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-wrapper {
    padding: 16px 0;
  }

  .page-title {
    font-size: 21px;
  }

  .header-illustration {
    display: none;
  }

  .new-order-content {
    gap: 10px;
  }

  .cart-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .input-row {
    height: auto;
    flex-direction: column;
    gap: 6px;
  }

  .input-wrapper {
    min-height: 40px;
    border-right: 1px solid #30c3da;
    border-radius: 6px;
  }

  .otp-button {
    width: 100%;
    height: 38px;
    border-radius: 6px;
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 14px 0;
  }

  .page-header {
    margin-bottom: 14px;
  }

  .page-title {
    font-size: 19px;
  }

  .page-subtitle {
    font-size: 11px;
  }

  .new-order-card {
    padding: 14px 12px;
  }

  .new-order-content {
    flex-direction: column;
  }

  .cart-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

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

  .section-description {
    font-size: 11px;
  }

  .phone-icon {
    width: 34px;
  }

  .phone-input {
    font-size: 12px;
  }

  .orders-card {
    padding: 14px 10px 10px;
  }

  .orders-header {
    align-items: flex-start;
  }

  .orders-search-field {
    flex: 1 1 100%;
    max-width: none;
  }

  .orders-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .orders-filters::-webkit-scrollbar {
    display: none;
  }

  .orders-filter {
    flex: 0 0 auto;
  }

  .orders-title-wrapper {
    gap: 8px;
  }

  .orders-title {
    font-size: 14px;
  }

  .orders-icon {
    width: 24px;
    height: 24px;
  }

  .view-all-button {
    font-size: 10px;
    padding: 6px 8px;
  }

  .view-all-button {
    display: none;
  }

  .empty-title {
    font-size: 13px;
  }

  .empty-description {
    font-size: 10px;
  }
}

/* Orders phone ad layout */
.orders-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  grid-template-areas: "main ad";
  gap: 20px;
  align-items: start;
}

.orders-main { grid-area: main; }
.orders-ad {
  grid-area: ad;
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .orders-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ad"
      "main";
    gap: 14px;
  }
  .orders-ad {
    position: relative;
    top: auto;
  }
}
