/* ===================================================
   GLOBEONE APP — Faithful Brand Redesign
   Colors: Globe Blue #0033A0 / #0052CC, Red #E8192C
   White-first UI, card-based, clean & modern
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --globe-blue:      #0033A0;
  --globe-blue-mid:  #0052CC;
  --globe-blue-lite: #E8F0FE;
  --globe-blue-soft: #C5D8FF;
  --globe-red:       #E8192C;
  --globe-red-lite:  #FDE8EA;
  --white:    #FFFFFF;
  --bg:       #F5F7FA;
  --card:     #FFFFFF;
  --border:   #E4E9F0;
  --text-1:   #0D1B3E;
  --text-2:   #3D4F6E;
  --text-3:   #8A9BBD;
  --text-4:   #B5C3D8;
  --green:     #00B74A;
  --green-bg:  #E6F9EE;
  --orange:    #FF8C00;
  --orange-bg: #FFF3E0;
  --purple:    #6C3FC5;
  --r-xs: 8px;  --r-sm: 12px;  --r: 16px;  --r-lg: 20px;  --r-xl: 24px;
  --shadow-xs: 0 1px 4px rgba(0,51,160,0.06);
  --shadow-sm: 0 2px 12px rgba(0,51,160,0.08);
  --shadow-md: 0 4px 24px rgba(0,51,160,0.12);
  --shadow-lg: 0 8px 40px rgba(0,51,160,0.16);
  --nav-h: 64px;  --topbar-h: 58px;
  --font: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: #0D1B3E; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px 0; }

/* ─── App Shell ─── */
#app {
  width: 390px; height: 844px;
  background: var(--bg); border-radius: 44px; overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 10px #1a2a5a, 0 0 0 12px #0D1B3E, 0 30px 80px rgba(0,0,0,0.6);
}
#app::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 126px; height: 34px; background: #0D1B3E;
  border-radius: 0 0 18px 18px; z-index: 999;
}

/* ─── Screens ─── */
.screen {
  position: absolute; inset: 0; display: none; flex-direction: column;
  background: var(--bg);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
  transform: translateX(40px); opacity: 0;
}
.screen.active { display: flex; transform: translateX(0); opacity: 1; }
.screen.slide-out { transform: translateX(-20px); opacity: 0; }

/* ─── Topbar ─── */
.topbar {
  height: calc(var(--topbar-h) + 34px);
  background: var(--white);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 10;
}
.topbar-left  { display: flex; align-items: center; gap: 10px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.screen-title { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -0.3px; }

.back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--globe-blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  box-shadow: var(--shadow-xs);
}
.back-btn:active { transform: scale(0.9); background: var(--globe-blue-lite); }
.back-btn svg { width: 16px; height: 16px; }

.screen-body { flex: 1; overflow-y: auto; padding: 14px 16px calc(var(--nav-h) + 16px); scroll-behavior: smooth; }
.screen-body::-webkit-scrollbar { display: none; }

.section-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.09em; margin: 18px 0 9px; }

/* ─── Bottom Nav ─── */
.bottom-nav {
  height: var(--nav-h); background: var(--white);
  display: flex; align-items: center;
  border-top: 1.5px solid var(--border);
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 0 4px;
}
.nav-btn {
  flex: 1; height: 100%; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; color: var(--text-3);
  font-size: 9.5px; font-weight: 600; font-family: var(--font);
  transition: color 0.15s; position: relative;
}
.nav-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.nav-btn.active { color: var(--globe-blue); }
.nav-btn.active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--globe-blue);
  border-radius: 0 0 4px 4px;
}

/* ─── Buttons ─── */
.btn-primary {
  width: 100%; height: 50px; background: var(--globe-blue); color: var(--white);
  border: none; border-radius: 100px; font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(0,51,160,0.3);
}
.btn-primary:active { background: #002888; transform: scale(0.98); }
.btn-outline {
  width: 100%; height: 50px; background: none; border: 2px solid var(--globe-blue);
  color: var(--globe-blue); border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.btn-outline:active { background: var(--globe-blue-lite); }
.btn-danger {
  flex: 1; height: 50px; background: var(--globe-red); color: var(--white);
  border: none; border-radius: 100px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-text-link { background: none; border: none; color: var(--globe-blue); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); padding: 0; }
.btn-sm { padding: 7px 16px; border: none; border-radius: 100px; background: var(--globe-blue); color: var(--white); font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-renew { width: 100%; height: 42px; background: var(--globe-blue-lite); color: var(--globe-blue); border: none; border-radius: 100px; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; }

/* ─── Inputs ─── */
.input-wrap {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 0 14px; height: 50px; background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap:focus-within { border-color: var(--globe-blue); box-shadow: 0 0 0 3px rgba(0,82,204,0.12); }
.input-icon { font-size: 16px; margin-right: 10px; flex-shrink: 0; color: var(--text-3); }
.input-wrap input { border: none; background: none; outline: none; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-1); flex: 1; width: 100%; }
.input-wrap input::placeholder { color: var(--text-4); }
.input-group { margin-bottom: 14px; }
.input-group label { font-size: 12px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 6px; }
.divider { text-align: center; margin: 16px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { position: relative; background: var(--white); padding: 0 12px; font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ═══ LOGIN SCREEN ═══ */
.screen#screen-login { background: var(--white); }
.login-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,51,160,0.07) 0%, rgba(232,25,44,0.05) 40%, rgba(0,51,160,0.03) 80%, transparent 100%);
  top: -180px; left: -100px; animation: spinSlow 22s linear infinite;
}
.login-blob2 { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(0,51,160,0.04); bottom: 80px; right: -80px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.login-content { position: relative; z-index: 1; height: 100%; overflow-y: auto; padding: 60px 26px 36px; display: flex; flex-direction: column; }
.login-content::-webkit-scrollbar { display: none; }
.logo-wrap { text-align: center; margin-bottom: 36px; }
.globe-logo { width: 80px; height: 80px; margin: 0 auto 14px; }
.globe-logo svg { width: 100%; height: 100%; }
.app-name { font-size: 30px; font-weight: 900; color: var(--globe-blue); letter-spacing: -1px; }
.app-name span { color: var(--globe-red); }
.app-tagline { font-size: 13px; color: var(--text-3); margin-top: 5px; font-weight: 500; }
.login-card { background: var(--white); border-radius: var(--r-xl); padding: 28px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card h2 { font-size: 22px; font-weight: 800; color: var(--text-1); letter-spacing: -0.5px; }
.login-card .subtitle { font-size: 13px; color: var(--text-2); margin-top: 4px; margin-bottom: 22px; }
.forgot-row { text-align: right; margin: -6px 0 18px; }
.forgot-link { font-size: 12px; color: var(--globe-blue); font-weight: 600; text-decoration: none; }
.register-text { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 16px; }
.register-text a { color: var(--globe-blue); font-weight: 700; text-decoration: none; }

/* ═══ HOME — special blue topbar ═══ */
#screen-home .topbar { background: var(--globe-blue); border-bottom: none; }
.user-greeting { display: flex; flex-direction: column; }
.greeting-text { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 500; }
.user-name { font-size: 16px; font-weight: 800; color: var(--white); letter-spacing: -0.3px; }
.notif-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.notif-btn svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.9); }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--globe-red); border-radius: 50%; border: 2px solid var(--globe-blue); }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.2); color: var(--white); font-size: 12px; font-weight: 800; cursor: pointer; }

/* Balance Card */
.balance-card { background: var(--globe-blue); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; position: relative; margin-top: -1px; }
.balance-card::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: rgba(255,255,255,0.07); border-radius: 50%; pointer-events: none; }
.balance-card::before { content: ''; position: absolute; bottom: -40px; left: -30px; width: 160px; height: 160px; background: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none; }
.balance-card-inner { padding: 18px 20px 24px; position: relative; z-index: 1; }
.balance-label { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.balance-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.balance-value { font-size: 48px; font-weight: 900; color: var(--white); letter-spacing: -3px; line-height: 1; margin-top: 2px; }
.balance-unit { font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 0; }
.signal-icon svg { width: 28px; height: 28px; }
.balance-bar-wrap { margin-bottom: 18px; }
.balance-bar { height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.balance-fill { height: 100%; background: #7FCCFF; border-radius: 3px; transition: width 1.2s ease; }
.balance-exp { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }
.balance-sub-row { display: flex; align-items: center; }
.sub-stat { flex: 1; }
.sub-val { display: block; font-size: 13px; font-weight: 700; color: var(--white); }
.sub-lbl { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.sub-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.2); margin: 0 16px; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.qa-btn { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; transition: transform 0.12s; box-shadow: var(--shadow-xs); }
.qa-btn:active { transform: scale(0.94); }
.qa-icon { width: 40px; height: 40px; background: var(--globe-blue-lite); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.qa-btn span { font-size: 11px; font-weight: 700; color: var(--text-2); }

/* Active Promo */
.active-promo-card { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.promo-badge { display: inline-flex; align-items: center; padding: 3px 10px; background: var(--green-bg); color: var(--green); border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.promo-badge::before { content: '●'; margin-right: 4px; font-size: 7px; }
.promo-detail-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.promo-name { font-size: 16px; font-weight: 800; color: var(--text-1); letter-spacing: -0.3px; }
.promo-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.promo-days { font-size: 12px; font-weight: 700; color: var(--orange); background: var(--orange-bg); padding: 3px 8px; border-radius: 100px; }
.promo-usage-bar { height: 5px; background: var(--border); border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.promo-usage-bar div { height: 100%; background: linear-gradient(90deg, var(--globe-blue), #5B8DEF); border-radius: 3px; }

/* Usage Summary */
.usage-summary-card { background: var(--white); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; transition: transform 0.1s; }
.usage-summary-card:active { transform: scale(0.98); }
.usage-left { flex-shrink: 0; }
.usage-circle { position: relative; width: 76px; height: 76px; }
.usage-circle svg { width: 76px; height: 76px; }
.usage-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--globe-blue); }
.usage-right { flex: 1; }
.usage-stat { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.u-num { font-size: 14px; font-weight: 800; color: var(--text-1); }
.u-lbl { font-size: 11px; color: var(--text-3); font-weight: 500; }

/* News Card */
.news-card { background: linear-gradient(135deg, #EEF3FF 0%, #F5F0FF 100%); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--globe-blue-soft); }
.news-chip { display: inline-block; padding: 2px 9px; background: var(--globe-blue); color: var(--white); border-radius: 100px; font-size: 10px; font-weight: 700; margin-bottom: 7px; letter-spacing: 0.04em; }
.news-text { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 8px; font-weight: 500; }

/* ═══ PROMOS ═══ */
.promo-filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.promo-filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; padding: 7px 16px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.filter-chip.active { background: var(--globe-blue); color: var(--white); border-color: var(--globe-blue); box-shadow: 0 2px 10px rgba(0,51,160,0.25); }
.promo-list { display: flex; flex-direction: column; gap: 9px; }
.promo-item { background: var(--white); border-radius: var(--r-lg); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.pi-left { display: flex; align-items: center; gap: 12px; }
.pi-icon { font-size: 20px; width: 44px; height: 44px; background: var(--globe-blue-lite); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pi-name { font-size: 14px; font-weight: 800; color: var(--text-1); letter-spacing: -0.2px; }
.pi-desc { font-size: 11px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.pi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pi-price { font-size: 17px; font-weight: 900; color: var(--globe-blue); letter-spacing: -0.5px; }
.btn-subscribe { padding: 6px 16px; border: none; border-radius: 100px; background: var(--globe-blue); color: var(--white); font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.15s; box-shadow: 0 2px 8px rgba(0,51,160,0.2); }
.btn-subscribe:active { background: #002888; }
.btn-subscribe.subscribed { background: var(--green); }

/* ═══ LOAD ═══ */
.load-card { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.load-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.load-amounts { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.load-amt { height: 52px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--white); font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--text-1); cursor: pointer; transition: all 0.15s; }
.load-amt.selected { border-color: var(--globe-blue); background: var(--globe-blue-lite); color: var(--globe-blue); box-shadow: 0 0 0 2px rgba(0,82,204,0.15); }
.load-summary { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: 14px; }
.ls-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight: 500; }
.ls-row:last-child { border-bottom: none; }
.ls-total { font-weight: 800; font-size: 15px; color: var(--text-1); }

/* ═══ BILLS ═══ */
.bill-card { background: var(--globe-blue); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-lg); margin-bottom: 8px; position: relative; overflow: hidden; }
.bill-card::after { content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.bill-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; position: relative; z-index: 1; }
.bill-acct { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; }
.bill-name { font-size: 16px; font-weight: 800; color: var(--white); }
.bill-status-chip { padding: 4px 12px; background: var(--orange-bg); color: var(--orange); border-radius: 100px; font-size: 11px; font-weight: 700; }
.bill-amount-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; position: relative; z-index: 1; }
.bill-lbl { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; }
.bill-amount { font-size: 34px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.bill-due-row { display: flex; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.bill-due-lbl { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; }
.bill-due-date { font-size: 13px; font-weight: 700; color: #FFD580; }
.bill-card .btn-primary { background: var(--white); color: var(--globe-blue); box-shadow: 0 4px 16px rgba(0,0,0,0.15); position: relative; z-index: 1; }
.pay-history { background: var(--white); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.ph-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.ph-item:last-child { border-bottom: none; }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ph-dot.paid { background: var(--green); }
.ph-info { flex: 1; }
.ph-info > span:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--text-1); }
.ph-status { font-size: 11px; font-weight: 600; }
.ph-status.paid { color: var(--green); }
.ph-amt { font-size: 14px; font-weight: 800; color: var(--text-1); }

/* ═══ REWARDS ═══ */
.rewards-banner { background: linear-gradient(135deg, #6C3FC5, #4A27A8); border-radius: var(--r-xl); padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 24px rgba(108,63,197,0.3); }
.rw-icon { font-size: 40px; }
.rw-pts { font-size: 30px; font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -1px; }
.rw-lbl { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; font-weight: 500; }
.btn-redeem { margin-left: auto; padding: 9px 18px; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.35); color: var(--white); border-radius: 100px; font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.earn-tips { background: var(--white); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.earn-tip { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight: 500; }
.earn-tip:last-child { border-bottom: none; }
.et-icon { font-size: 20px; width: 36px; text-align: center; }
.earn-tip b { color: var(--globe-blue); font-weight: 700; }
.reward-items { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.ri-card { background: var(--white); border-radius: var(--r-sm); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.ri-img { font-size: 28px; margin-bottom: 6px; }
.ri-name { font-size: 11px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; line-height: 1.3; }
.ri-pts { font-size: 11px; color: var(--globe-blue); font-weight: 700; margin-bottom: 8px; }

/* ═══ PROFILE ═══ */
.profile-hero { background: var(--globe-blue); border-radius: var(--r-xl); padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.profile-hero::after { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.profile-avatar { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.2); color: var(--white); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2.5px solid rgba(255,255,255,0.4); flex-shrink: 0; position: relative; z-index: 1; }
.profile-name { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.4px; position: relative; z-index: 1; }
.profile-num { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 2px; font-weight: 500; position: relative; z-index: 1; }
.plan-chip { display: inline-block; margin-top: 8px; padding: 4px 12px; background: rgba(255,255,255,0.18); color: var(--white); border-radius: 100px; font-size: 11px; font-weight: 600; position: relative; z-index: 1; }
.profile-menu { margin-top: 18px; }
.pm-group { margin-bottom: 14px; }
.pm-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; padding: 0 4px; }
.pm-item { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--white); border: none; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-1); cursor: pointer; text-align: left; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.pm-item:first-of-type { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.pm-item:last-of-type  { border-radius: 0 0 var(--r-sm) var(--r-sm); border-bottom: none; }
.pm-item:only-of-type  { border-radius: var(--r-sm); border-bottom: none; }
.pm-item:active { background: var(--globe-blue-lite); }
.pm-item svg { color: var(--text-3); }
.btn-logout { width: 100%; height: 50px; margin-top: 8px; margin-bottom: 20px; background: var(--globe-red-lite); color: var(--globe-red); border: 2px solid #FFCDD2; border-radius: 100px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; }

/* ═══ HELP ═══ */
.help-search { display: flex; align-items: center; background: var(--white); border-radius: 100px; padding: 0 16px; height: 48px; box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); margin-bottom: 4px; }
.help-input { border: none; background: none; outline: none; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-1); flex: 1; margin-left: 8px; }
.faq-list { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); cursor: pointer; }
.faq-item:last-child { border-bottom: none; }
.faq-q { padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--text-1); display: flex; justify-content: space-between; align-items: center; }
.faq-arrow { color: var(--text-3); font-size: 16px; transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--globe-blue); }
.faq-a { display: none; padding: 0 16px 14px; font-size: 13px; color: var(--text-2); line-height: 1.6; font-weight: 500; }
.faq-item.open .faq-a { display: block; }

/* ═══ CHAT ═══ */
.online-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(0,183,74,0.25); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.chat-body::-webkit-scrollbar { display: none; }
.chat-bubble { display: flex; gap: 8px; align-items: flex-end; }
.chat-bubble.user { flex-direction: row-reverse; }
.cb-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--globe-blue); color: var(--white); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cb-msg { max-width: 72%; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); font-size: 13px; font-weight: 500; color: var(--text-1); box-shadow: var(--shadow-xs); line-height: 1.55; border: 1px solid var(--border); }
.chat-bubble.user .cb-msg { background: var(--globe-blue); color: var(--white); border-radius: 16px 16px 4px 16px; border-color: var(--globe-blue); }
.chat-input-row { display: flex; gap: 9px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--border); }
.chat-input { flex: 1; height: 44px; border: 1.5px solid var(--border); border-radius: 100px; padding: 0 16px; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-1); outline: none; background: var(--bg); }
.chat-input:focus { border-color: var(--globe-blue); background: var(--white); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--globe-blue); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,51,160,0.3); }
.chat-send svg { width: 17px; height: 17px; stroke: var(--white); }

/* ═══ eSIM ═══ */
.esim-hero { text-align: center; padding: 24px 16px 16px; }
.esim-icon { font-size: 60px; margin-bottom: 12px; display: block; }
.esim-hero h2 { font-size: 22px; font-weight: 900; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.5px; }
.esim-hero p { font-size: 13px; color: var(--text-2); line-height: 1.6; font-weight: 500; }
.esim-steps { background: var(--white); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 20px; }
.es-step { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); font-weight: 500; }
.es-step:last-child { border-bottom: none; }
.es-num { width: 28px; height: 28px; border-radius: 50%; background: var(--globe-blue); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ═══ USAGE HISTORY ═══ */
.usage-big-card { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.ubc-top { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ubc-date { color: var(--globe-blue); }
.usage-bar-big { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.ubig-fill { height: 100%; background: linear-gradient(90deg, var(--globe-blue), #5B8DEF); border-radius: 4px; }
.ubc-stats { display: flex; justify-content: space-around; }
.ubc-val { display: block; font-size: 16px; font-weight: 900; color: var(--text-1); text-align: center; letter-spacing: -0.5px; }
.ubc-lbl { font-size: 10px; color: var(--text-3); text-align: center; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.daily-usage { background: var(--white); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.du-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.du-row:last-child { border-bottom: none; }
.du-day { font-size: 12px; font-weight: 600; color: var(--text-2); width: 72px; flex-shrink: 0; }
.du-bar-wrap { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.du-bar { height: 100%; background: linear-gradient(90deg, var(--globe-blue), #5B8DEF); border-radius: 4px; }
.du-val { font-size: 11px; font-weight: 700; color: var(--text-1); width: 60px; text-align: right; }

/* ═══ MODALS ═══ */
.modal-overlay { position: absolute; inset: 0; background: rgba(13,27,62,0.55); backdrop-filter: blur(6px); display: flex; align-items: flex-end; z-index: 100; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { background: var(--white); border-radius: 24px 24px 0 0; padding: 26px 20px 40px; width: 100%; animation: slideUp 0.28s cubic-bezier(.4,0,.2,1); border-top: 1px solid var(--border); }
.modal-card::before { content: ''; display: block; width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 20px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-title { font-size: 18px; font-weight: 900; color: var(--text-1); margin-bottom: 16px; letter-spacing: -0.4px; }
.modal-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); }
.modal-total { border-bottom: none; font-weight: 800; font-size: 16px; color: var(--text-1); }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pay-method { height: 46px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--white); font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-1); cursor: pointer; text-align: left; padding: 0 16px; transition: all 0.15s; }
.pay-method.active { border-color: var(--globe-blue); background: var(--globe-blue-lite); color: var(--globe-blue); box-shadow: 0 0 0 2px rgba(0,82,204,0.12); }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-outline { flex: 1; }
.modal-actions .btn-primary { flex: 2; }

/* ═══ TOAST ═══ */
.toast { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--text-1); color: var(--white); padding: 11px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 200; box-shadow: var(--shadow-md); max-width: 300px; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════
   SEARCH BAR + HISTORY DROPDOWN
════════════════════════════════════ */
.search-wrap {
  position: relative;
  z-index: 50;
  margin-bottom: 4px;
}

.search-bar {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0 14px;
  height: 46px;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
  border-color: var(--globe-blue);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}
.search-icon {
  width: 18px; height: 18px;
  flex-shrink: 0; color: var(--text-3);
}
.search-bar input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--text-1);
}
.search-bar input::placeholder { color: var(--text-4); }
.search-clear {
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.search-clear svg { width: 12px; height: 12px; color: var(--text-2); }

/* Dropdown panel */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sd-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 6px;
}
.sd-label {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sd-clear-all {
  font-size: 12px; font-weight: 600; color: var(--globe-blue);
  background: none; border: none; cursor: pointer; font-family: var(--font);
}

/* History items */
.sd-history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.sd-history-item:last-child { border-bottom: none; }
.sd-history-item:active { background: var(--globe-blue-lite); }
.sd-history-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sd-history-icon svg { width: 14px; height: 14px; color: var(--text-3); }
.sd-history-text { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-1); }
.sd-history-del {
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-4);
  font-size: 16px; line-height: 1;
  transition: color 0.1s, background 0.1s;
}
.sd-history-del:hover { color: var(--globe-red); background: var(--globe-red-lite); }

.sd-empty {
  padding: 14px 16px;
  font-size: 13px; color: var(--text-3); font-weight: 500;
  text-align: center;
}

/* Search result items */
.sd-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.1s;
}
.sd-result-item:last-child { border-bottom: none; }
.sd-result-item:active { background: var(--globe-blue-lite); }
.sd-result-icon {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  background: var(--globe-blue-lite); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sd-result-info { flex: 1; }
.sd-result-name { font-size: 13px; font-weight: 700; color: var(--text-1); }
.sd-result-cat { font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.sd-result-arrow { color: var(--text-4); }
.sd-result-arrow svg { width: 14px; height: 14px; }

/* No results */
.sd-no-results {
  padding: 16px; text-align: center;
  font-size: 13px; color: var(--text-3); font-weight: 500;
}

/* Popular chips */
.sd-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 8px 16px 14px;
}
.sd-chip {
  padding: 6px 14px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-2);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.sd-chip:active { background: var(--globe-blue-lite); border-color: var(--globe-blue); color: var(--globe-blue); }

/* Dark overlay behind dropdown */
.search-overlay {
  position: absolute;
  top: 0; left: -16px; right: -16px;
  bottom: calc(-100vh);
  z-index: 40;
  background: transparent;
}
