/* GenieHome Account System: My Profile, My Properties, Balance, Favorites */
body {
  background: #f5f7fb;
}

.gh-account-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 46px 28px 90px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}

.gh-account-left {
  display: grid;
  gap: 18px;
  align-content: start;
}

.gh-account-main {
  min-width: 0;
}

.gh-account-mini-card,
.gh-account-menu,
.gh-account-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15,23,42,.06);
}

.gh-account-mini-card {
  padding: 20px;
}

.gh-account-userline {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.gh-account-userline img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.gh-account-userline strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.gh-account-userline span {
  color: #94a3b8;
  font-weight: 800;
}

.gh-account-balance {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  align-items: center;
}

.gh-account-balance span {
  color: #94a3b8;
  font-weight: 850;
}

.gh-account-balance strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.gh-account-balance a {
  grid-row: 1 / 3;
  grid-column: 2;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 950;
}

.gh-account-menu {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.gh-account-menu a {
  padding: 15px 16px;
  border-radius: 15px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 850;
}

.gh-account-menu a.active,
.gh-account-menu a:hover {
  background: #e9f8f0;
  color: #16a34a;
}

.gh-account-menu a.logout {
  border-top: 1px solid #eef2f7;
  margin-top: 8px;
  padding-top: 18px;
}

.gh-account-panel {
  padding: 34px;
  min-width: 0;
}

.gh-mp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}

.gh-mp-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
}

.gh-mp-head p {
  margin: 7px 0 0;
  color: #64748b;
  font-weight: 700;
}

.gh-green-btn {
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  cursor: pointer;
}

.gh-profile-cover {
  height: 210px;
  border-radius: 24px;
  overflow: hidden;
  background: #eef2f7;
  margin-bottom: -58px;
}

.gh-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-profile-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin: 0 0 38px 34px;
}

.gh-profile-avatar {
  width: 126px;
  height: 126px;
  border-radius: 20px;
  border: 4px solid #fff;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15,23,42,.12);
}

.gh-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-profile-top h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 950;
}

.gh-profile-top span {
  color: #64748b;
  font-weight: 800;
}

.gh-profile-form h3 {
  margin: 0 0 22px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.gh-profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gh-profile-form-grid label {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.gh-profile-form-grid input {
  width: 100%;
  height: 54px;
  margin-top: 7px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 16px;
  color: #0f172a;
  background: #fff;
  font-weight: 850;
}

.gh-profile-form-grid input:disabled {
  background: #f8fafc;
  color: #64748b;
}

.gh-profile-save {
  margin-top: 28px;
}

.gh-mp-toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  margin-bottom: 22px;
}

.gh-mp-searchbox {
  display: grid;
  grid-template-columns: 1fr 54px;
}

.gh-mp-searchbox input,
.gh-mp-toolbar select {
  height: 52px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: #0f172a;
  font-weight: 850;
}

.gh-mp-searchbox input {
  border-radius: 14px 0 0 14px;
}

.gh-mp-searchbox button {
  border: 1px solid #dbe3ef;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 22px;
}

.gh-mp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.gh-mp-tabs a {
  padding: 12px 18px;
  border-radius: 15px;
  background: #f2f4f7;
  color: #0f172a;
  text-decoration: none;
  font-weight: 850;
}

.gh-mp-tabs a.active {
  background: #ecfdf5;
  border: 1px solid #22c55e;
  color: #16a34a;
}

.gh-mp-tabs span {
  margin-left: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}

.gh-mp-list {
  display: grid;
}

.gh-mp-row {
  display: grid;
  grid-template-columns: 28px 130px 1fr 220px 150px;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid #eef2f7;
  align-items: center;
}

.gh-mp-photo {
  width: 130px;
  height: 105px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: #f1f5f9;
}

.gh-mp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-mp-id {
  color: #94a3b8;
  font-weight: 850;
  margin-bottom: 5px;
}

.gh-mp-body h2 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
}

.gh-mp-body h2 a {
  color: #0f172a;
  text-decoration: none;
}

.gh-mp-body p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.gh-mp-body strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.gh-mp-badges,
.gh-mp-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.gh-mp-badges span,
.gh-mp-badges em {
  font-style: normal;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-weight: 900;
}

.gh-mp-badges em {
  background: #dcfce7;
  color: #16a34a;
}

.gh-mp-promo button {
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.gh-mp-right {
  display: grid;
  gap: 10px;
  color: #0f172a;
  font-weight: 850;
}

.gh-mp-right a,
.gh-mp-actions a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 900;
}

.gh-mp-line {
  width: 150px;
  height: 6px;
  background: #22c55e;
  border-radius: 999px;
}

.gh-mp-actions {
  display: grid;
  gap: 12px;
}

.gh-empty {
  padding: 60px;
  text-align: center;
  background: #f8fafc;
  border-radius: 22px;
}

.gh-empty h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.gh-empty p {
  color: #64748b;
  font-weight: 700;
}

.gh-empty a {
  margin-top: 14px;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 950;
}

@media (max-width: 1150px) {
  .gh-account-shell {
    grid-template-columns: 1fr;
  }

  .gh-mp-row {
    grid-template-columns: 28px 110px 1fr;
  }

  .gh-mp-right,
  .gh-mp-actions {
    grid-column: 3;
  }
}

@media (max-width: 700px) {
  .gh-account-shell {
    padding: 24px 14px 60px;
  }

  .gh-account-panel {
    padding: 22px;
  }

  .gh-mp-head,
  .gh-profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .gh-mp-toolbar,
  .gh-profile-form-grid {
    grid-template-columns: 1fr;
  }

  .gh-mp-row {
    grid-template-columns: 1fr;
  }

  .gh-mp-check {
    display: none;
  }

  .gh-mp-photo {
    width: 100%;
    height: 210px;
  }

  .gh-mp-right,
  .gh-mp-actions {
    grid-column: auto;
  }
}

/* ==============================
   GenieHome Balance Page
   ============================== */
.gh-balance-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 10px 0 30px;
}

.gh-balance-card {
  min-height: 150px;
  background: #f8fafc;
  border: 1px solid #edf0f3;
  border-radius: 22px;
  padding: 24px;
}

.gh-balance-card.primary {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #fff;
  border-color: transparent;
}

.gh-balance-card span {
  display: block;
  color: #64748b;
  font-weight: 850;
  margin-bottom: 8px;
}

.gh-balance-card.primary span,
.gh-balance-card.primary p {
  color: rgba(255,255,255,.82);
}

.gh-balance-card strong {
  display: block;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
  margin-bottom: 10px;
}

.gh-balance-card.primary strong {
  color: #fff;
}

.gh-balance-card p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  line-height: 1.6;
}

.gh-topup-box {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #edf0f3;
  border-radius: 24px;
  background: #f8fafc;
}

.gh-topup-head h2,
.gh-section-title h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 950;
}

.gh-topup-head p,
.gh-section-title p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.gh-topup-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.gh-topup-amounts button {
  height: 46px;
  padding: 0 18px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
}

.gh-topup-amounts button:hover,
.gh-topup-amounts button.is-active {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #16a34a;
}

.gh-topup-form label {
  display: block;
  color: #0f172a;
  font-weight: 900;
  margin-bottom: 16px;
}

.gh-money-input {
  display: grid;
  grid-template-columns: 1fr 54px;
  max-width: 360px;
  margin-top: 8px;
}

.gh-money-input input {
  height: 54px;
  border: 1px solid #dbe3ef;
  border-radius: 14px 0 0 14px;
  padding: 0 16px;
  font-weight: 900;
  background: #fff;
}

.gh-money-input span {
  border: 1px solid #dbe3ef;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: #64748b;
  font-weight: 950;
}

.gh-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 20px;
}

.gh-payment-methods label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.gh-payment-methods input {
  margin: 0;
}

.gh-topup-submit {
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  background: #16a34a;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.gh-payment-note {
  color: #94a3b8;
  font-weight: 700;
  margin: 16px 0 0;
}

.gh-transactions {
  margin-top: 30px;
}

.gh-transactions-table {
  margin-top: 18px;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.gh-tr-row {
  display: grid;
  grid-template-columns: 90px 130px 120px 1fr 120px 150px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-weight: 800;
}

.gh-tr-row:last-child {
  border-bottom: 0;
}

.gh-tr-row.head {
  background: #f8fafc;
  color: #64748b;
  font-weight: 950;
}

.gh-tr-row .plus {
  color: #16a34a;
  font-weight: 950;
}

.gh-tr-row .minus {
  color: #dc2626;
  font-weight: 950;
}

.gh-tr-row em {
  font-style: normal;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .gh-tr-row {
    grid-template-columns: 1fr 1fr;
  }

  .gh-tr-row.head {
    display: none;
  }
}

@media (max-width: 900px) {
  .gh-balance-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gh-payment-methods,
  .gh-topup-amounts {
    flex-direction: column;
  }

  .gh-payment-methods label,
  .gh-topup-amounts button {
    width: 100%;
    justify-content: center;
  }

  .gh-tr-row {
    grid-template-columns: 1fr;
  }
}
