:root {
  --purple: #2AABEE;
  --purple-dark: #1C8AC4;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --dark: #180f33;
  --dark-2: #241848;
  --bg: #F5FAFE;
  --text: #1a1230;
  --muted: #6b6483;
  --border: #e8e1fa;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pyidaungsu", "Noto Sans Myanmar", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--purple); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; }
img { max-width: 100%; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; position: relative; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--text); display: flex; align-items: center; gap: 6px; }
.brand span { background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px; margin: -8px;
  flex-direction: column; gap: 4px; z-index: 30;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { color: var(--purple); }
.btn-nav { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff !important; padding: 9px 18px; border-radius: 30px; font-weight: 700; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden;
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(24,15,51,.08);
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--border); width: 100%; }
  .btn-nav { border-radius: 0; text-align: center; }
}

.btn { display: inline-block; padding: 13px 26px; border-radius: 30px; font-weight: 700; cursor: pointer; border: none; font-size: 1rem; text-align: center; touch-action: manipulation; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; box-shadow: 0 6px 18px rgba(42,171,238,.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(42,171,238,.5); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 55%, var(--pink) 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.hero-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0 0 14px; }
.hero .accent { color: var(--gold); }
.hero .lead { font-size: 1.05rem; opacity: .95; max-width: 520px; }
.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero-card { font-size: clamp(4rem, 12vw, 6rem); filter: drop-shadow(0 0 26px rgba(255,255,255,.55)); animation: float 3.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 640px) { .hero-wrap { flex-direction: column; text-align: center; } .cta-row { justify-content: center; } }

.why, .packages, .seo-content { padding: 44px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 800px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }
.feature, .stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.feature .icon { font-size: 1.9rem; margin-bottom: 8px; }
.feature h3 { margin: 6px 0; }
.stat-card { text-align: left; }
.stat-num { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 20px; }
.package-card {
  background: #fff; border: 2px solid var(--border); border-top: 4px solid var(--purple);
  border-radius: var(--radius); padding: 18px 10px; text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(42,171,238,.22); border-color: var(--pink); }
.package-diamond { font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; }
.package-price { color: var(--pink-dark); font-weight: 800; }

.seo-content p { color: #332e47; max-width: 800px; }
.muted { color: var(--muted); }

.latest-orders { padding: 12px 0 44px; }
.order-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.order-feed-item {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px;
}
.order-feed-icon { font-size: 1.4rem; }
.order-feed-body { flex: 1; min-width: 0; }
.order-feed-line { font-size: .95rem; }
.order-feed-line strong { color: var(--purple-dark); }
.order-feed-time { font-size: .78rem; color: var(--muted); margin-top: 2px; }

.order-page h1 { margin-bottom: 6px; }
.notice { padding: 12px 16px; border-radius: 10px; background: #f2ecff; border: 1px solid #ddc9ff; margin: 14px 0; }
.notice.error { background: #fdecec; border-color: #f5c2c2; color: var(--red); }
.notice.success { background: #eafaf0; border-color: #b9ecc9; color: var(--green); }
.order-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
@media (max-width: 480px) { .order-form { padding: 16px; } }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; font-weight: 700; margin-bottom: 10px; }
.package-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.package-select-btn {
  background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 14px 6px;
  cursor: pointer; font-size: .95rem; font-family: inherit; min-height: 64px; touch-action: manipulation;
}
.package-select-btn.selected { border-color: var(--purple); background: linear-gradient(135deg, #f2ecff, #fce7f6); box-shadow: 0 4px 12px rgba(42,171,238,.2); }
.package-select-btn small { color: var(--muted); }
input[type=text], input[type=number], input[type=email], input[type=password], select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.order-summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px dashed var(--border); margin: 10px 0 18px; font-size: 1.15rem; }
#order-total { color: var(--pink-dark); font-weight: 800; }

.auth-page { max-width: 420px; padding-top: 32px; padding-bottom: 60px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.divider { text-align: center; color: var(--muted); margin: 18px 0; position: relative; }

/* ---- Payment method cards ---- */
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 6px;
}
@media (max-width: 480px) {
  .pay-method-grid { grid-template-columns: repeat(2, 1fr); }
}
.pay-method-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 18px 10px 14px;
  border-radius: var(--radius); border: 2px solid var(--border);
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; text-align: center; min-height: 90px;
}
.pay-method-item:hover { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(42,171,238,.08); }
.pay-method-item input[type=radio] { display: none; }
.pay-method-item.pay-method-selected { border-color: var(--purple); background: #f5f0ff; box-shadow: 0 0 0 3px rgba(42,171,238,.12); }
.pay-method-icon { line-height: 1; margin-bottom: 2px; }
.pm-badge {
  display: inline-block; padding: 4px 10px; border-radius: 8px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.pm-badge.kbz     { background: #005baa; }
.pm-badge.wave    { background: #6b21a8; }
.pm-badge.aya     { background: #c0002a; }
.pm-badge.uab     { background: #1a5276; }
.pm-badge.generic { background: var(--purple); }
.pay-method-name   { font-weight: 700; font-size: .88rem; color: var(--text); }
.pay-method-bal    { font-size: .78rem; color: var(--purple-dark); font-weight: 600; }
.pay-method-detail { font-size: .75rem; color: var(--muted); }
.pay-info-box { margin-top: 4px; }
.pay-info-inner { padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; font-size: .95rem; line-height: 1.7; }
.pay-info-inner strong { color: var(--gold); }

.wallet-balance-card { background: linear-gradient(135deg, var(--dark), var(--purple), var(--pink)); color: #fff; border-radius: var(--radius); padding: 24px; margin: 16px 0 28px; }
.balance-amount { font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 800; margin-top: 6px; color: var(--gold); }

.file-upload { position: relative; }
.file-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px; cursor: pointer; text-align: center;
  border: 2px dashed rgba(255,255,255,.28); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  transition: border-color .15s, background .15s;
}
.file-upload-label:hover { border-color: var(--pink); }
.file-upload-icon { color: #C5E3F6; }
.file-upload-icon svg { display: block; }
.file-upload-text { display: flex; flex-direction: column; gap: 4px; }
.file-upload-text strong { color: #fff; font-size: .98rem; font-weight: 600; }
.file-upload-text small { color: #8FB3CC; }
.file-upload.has-file .file-upload-label { display: none; }
.file-upload-preview {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 2px dashed rgba(255,255,255,.28); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
}
.file-upload-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); }
.file-upload-preview span { font-size: .88rem; color: #C5E3F6; word-break: break-all; }

.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; border-radius: var(--radius); overflow: hidden; min-width: 480px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.data-table th { background: #EAF5FD; }
.data-table td.actions-cell { white-space: normal; }
.actions-cell .action-btns { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 260px; }
.user-panel { width: 100%; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-completed, .badge-approved { background: #eafaf0; color: var(--green); }
.badge-processing, .badge-pending { background: #fff7e6; color: var(--amber); }
.badge-failed, .badge-cancelled, .badge-rejected { background: #fdecec; color: var(--red); }

.admin-tabs { display: flex; gap: 6px; margin: 16px 0 24px; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 16px; border-radius: 30px; background: #fff; border: 1px solid var(--border); color: var(--text); }
.admin-tabs a.active { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; border-color: transparent; }

.container.admin-wide { max-width: 1400px; }
.data-table td.select-cell, .data-table th.select-cell { width: 34px; text-align: center; padding-left: 10px; padding-right: 10px; }
.data-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--purple, #2AABEE); }
.bulk-actions-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0; min-height: 34px; }
.bulk-actions-bar .btn-small[disabled] { opacity: .5; cursor: not-allowed; }

.pwa-install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 9999;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-width: 460px; margin: 0 auto;
  animation: pwaSlideUp .35s ease;
}
@keyframes pwaSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pwa-install-icon img { border-radius: 10px; display: block; }
.pwa-install-text { flex: 1; font-size: .86rem; line-height: 1.35; }
.pwa-install-sub { color: var(--muted, #6b7280); font-size: .78rem; }
.pwa-install-btn {
  background: linear-gradient(135deg, var(--purple, #2AABEE), var(--pink, #ec4899));
  color: #fff; border: none; border-radius: 10px; padding: 8px 14px;
  font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap;
}
.pwa-install-close {
  background: none; border: none; color: var(--muted, #9ca3af); font-size: 1.3rem;
  line-height: 1; cursor: pointer; padding: 0 4px; align-self: flex-start;
}
@media (max-width: 480px) {
  .pwa-install-bar { left: 8px; right: 8px; bottom: 10px; padding: 8px 10px; }
}
.btn-small { padding: 7px 14px; border-radius: 20px; border: none; font-weight: 700; cursor: pointer; font-size: .82rem; }
.btn-approve { background: var(--green); color: #fff; }
.btn-reject { background: var(--red); color: #fff; }

.site-footer { background: var(--dark); color: #C5E3F6; margin-top: 60px; padding-top: 40px; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
@media (max-width: 700px) { .footer-wrap { grid-template-columns: 1fr; text-align: center; } }
.footer-wrap h4 { color: #fff; }
.footer-wrap a { display: block; color: #C5E3F6; margin-bottom: 6px; }
.footer-wrap a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #362a5c; padding: 16px 20px; text-align: center; font-size: .85rem; color: #8FB3CC; }
.footer-love { font-size: 1rem; color: #e879a0; font-weight: 600; margin: 10px 0 6px; }
.footer-gnk-link { display: inline-flex !important; align-items: center; color: #8FB3CC !important; font-size: .85rem; margin-top: 4px; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .why, .packages, .seo-content { padding: 32px 0; }
  .btn { width: 100%; }
  .cta-row .btn { width: auto; flex: 1 1 auto; }
}

/* ---- Member-login modal (guest checkout disabled) ---- */
.order-page-locked { filter: blur(4px); pointer-events: none; user-select: none; }

.login-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 10, 40, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: loginModalFade .25s ease;
}
@keyframes loginModalFade { from { opacity: 0; } to { opacity: 1; } }

.login-modal-card {
  position: relative;
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: loginModalPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes loginModalPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.login-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #EAF5FD; border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1.3rem; line-height: 1;
  color: var(--muted, #6b7280); cursor: pointer;
}
.login-modal-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 8px 20px rgba(42,171,238,.35);
}
.login-modal-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.login-modal-sub { color: var(--muted, #6b7280); font-size: .9rem; margin: 0 0 14px; }
.login-modal-badges { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.login-modal-badges span {
  background: #EAF5FD; color: var(--purple-dark, #1C8AC4);
  font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 30px;
}
.login-modal-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted, #9ca3af); font-size: .78rem; margin: 14px 0;
}
.login-modal-divider::before, .login-modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border, #e5e7eb);
}
.login-modal-dismiss {
  background: none; border: none; color: var(--muted, #6b7280);
  font-size: .88rem; margin-top: 14px; cursor: pointer; text-decoration: underline;
}
.login-modal-terms { font-size: .72rem; color: var(--muted, #9ca3af); margin: 16px 0 0; line-height: 1.5; }

@media (max-width: 480px) {
  .login-modal-card { padding: 26px 20px 20px; }
}

/* Keep Google/Telegram login widgets visually consistent - centered, same
   max-width, same vertical rhythm - regardless of their internal chrome. */
.social-login-row {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.social-login-row > div { max-width: 100%; }
