/* U2IS AFFILIATES - brand: emerald #16b98c on dark navy #16262c */
:root{
	--brand:#16b98c; --brand-dark:#0e9a73; --navy:#16262c; --navy-2:#1e333b;
	--bg:#f4f7f6; --card:#ffffff; --text:#22313a; --muted:#7a8b93; --line:#e2eae7;
	--neg:#d64545;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans JP","Noto Sans KR",sans-serif;
	background:var(--bg);color:var(--text);font-size:15px;line-height:1.55}
a{color:var(--brand-dark);text-decoration:none}
a:hover{text-decoration:underline}
code{background:#eef3f1;border:1px solid var(--line);border-radius:4px;padding:1px 6px;font-size:13px;word-break:break-all}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.main{min-height:calc(100vh - 160px);padding-top:24px;padding-bottom:48px}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.hl{color:var(--brand-dark);font-weight:700}
.neg{color:var(--neg)}
.num{text-align:right;font-variant-numeric:tabular-nums}
.right{float:right}

/* top bar */
.topbar{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.topbar-in{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{display:flex;align-items:center;gap:10px;color:#fff}
.brand:hover{text-decoration:none}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;
	background:var(--brand);color:var(--navy);font-weight:800;font-size:14px;letter-spacing:.5px}
.brand-name{font-weight:700;letter-spacing:.4px}
.brand-name em{font-style:normal;color:var(--brand);font-weight:600}
.nav{display:flex;align-items:center;gap:18px}
.nav a{color:#d7e2e0;font-weight:500}
.nav a:hover{color:#fff;text-decoration:none}
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}

/* buttons */
.btn{display:inline-block;padding:8px 18px;border-radius:8px;border:1px solid transparent;font-weight:600;cursor:pointer;font-size:14px}
.btn:hover{text-decoration:none;filter:brightness(1.05)}
.btn-primary{background:var(--brand);color:#fff !important;border-color:var(--brand)}
.btn-primary:hover{background:var(--brand-dark)}
.btn-ghost{background:transparent;color:inherit;border-color:rgba(127,140,141,.45)}
.nav .btn-ghost{color:#fff}
.btn-block{display:block;width:100%;text-align:center}
.btn-lg{padding:12px 26px;font-size:16px}
.btn-sm{padding:4px 12px;font-size:12.5px}

/* hero / landing */
.hero{text-align:center;padding:56px 8px 40px}
.hero h1{font-size:40px;margin:0 0 14px;color:var(--navy)}
.hero .hl{color:var(--brand-dark)}
.hero-sub{max-width:620px;margin:0 auto 26px;color:var(--muted);font-size:17px}
.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px}
.card-num{width:32px;height:32px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:10px}
.card h3{margin:0 0 6px}
.checks{list-style:none;padding:0;margin:0}
.checks li{padding:7px 0 7px 28px;position:relative}
.checks li:before{content:"\2713";position:absolute;left:2px;color:var(--brand);font-weight:800}
.formula{background:var(--navy);color:#fff;border-radius:10px;padding:16px 20px;font-weight:600;margin:14px 0;text-align:center}
.steps{padding-left:20px}
.steps li{margin:8px 0}

/* panels & stats */
.page-title{color:var(--navy);margin:6px 0 18px;font-size:26px}
.page-title small{font-size:14px;font-weight:400;margin-left:8px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px;margin:0 0 22px}
.panel h1{margin-top:0;color:var(--navy)}
.panel h2{margin:0 0 14px;font-size:18px;color:var(--navy)}
.panel h3{font-size:14px;margin:0 0 8px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 22px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 18px}
.stat-hl{background:var(--navy);border-color:var(--navy);color:#fff}
.stat-hl .stat-value{color:var(--brand)}
.stat-label{font-size:12.5px;color:var(--muted)}
.stat-hl .stat-label{color:#b8c8c4}
.stat-value{font-size:24px;font-weight:800;margin-top:4px;color:var(--navy)}
.stat-value small{font-size:13px;font-weight:600}

/* tables */
.table{width:100%;border-collapse:collapse}
.table th{background:#f0f5f3;color:var(--navy);font-size:12.5px;text-transform:uppercase;letter-spacing:.4px;padding:10px 12px;text-align:left;border-bottom:2px solid var(--line)}
.table td{padding:10px 12px;border-bottom:1px solid var(--line);font-size:14px}
.table tbody tr:hover{background:#fafcfb}
.table th:last-child,.table td.num{text-align:right}
.table th:nth-child(n+2){text-align:right}
.table th:first-child{text-align:left}

/* key-value lists */
.kv{list-style:none;margin:0;padding:0}
.kv li{display:flex;justify-content:space-between;padding:7px 2px;border-bottom:1px dashed var(--line)}
.kv-wide li{padding:9px 2px}
.kv span{color:var(--muted)}

/* forms */
.form{margin:0}
.field{display:block;margin:0 0 14px}
.field>span{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:5px}
.field input,.field select,.form select,.form input{width:100%;padding:10px 12px;border:1px solid #cfdad6;border-radius:8px;font-size:14.5px;background:#fff;color:var(--text)}
.field input:focus,.field select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(22,185,140,.15)}
.field input[readonly]{background:#f0f5f3;font-weight:700}
.static-value{padding:10px 12px;background:#f0f5f3;border-radius:8px;font-weight:700}
.form-inline{display:flex;gap:10px;align-items:center;margin:0 0 20px;flex-wrap:wrap}
.form-inline select{width:auto}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.auth-box{max-width:420px;margin:30px auto;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:30px}
.auth-box-wide{max-width:640px}
.auth-box h1{margin:0 0 18px;color:var(--navy);font-size:24px;text-align:center}
.auth-alt{text-align:center;margin-top:16px}

/* redeem totals */
.totals{margin-top:18px;border-top:2px solid var(--line);padding-top:14px}
.totals-row{display:flex;justify-content:space-between;padding:6px 2px;font-size:15px}
.totals-main{font-size:18px}
.notice{background:#fff7e6;border:1px solid #f0dcae;border-radius:8px;padding:12px 16px;margin-top:16px}
.redeem-form{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}


/* ============================================================
   Account page — mirrors the U2IS admin "/setting/grouplevel" look
   (card + card-header, small labels, badges, info tiles).
   Self-contained: prefixed .gl-* so no other page is affected.
   ============================================================ */
.gl { font-size: 14px; }
.gl-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 16px }
.gl-head h1 { font-size:22px; margin:0; color:var(--navy) }

.gl-card { background:#fff; border:1px solid #dee2e6; border-radius:8px; margin:0 0 16px }
.gl-card-header {
	background:#f8f9fa; border-bottom:1px solid #dee2e6; border-radius:8px 8px 0 0;
	padding:8px 16px; font-weight:600; color:#212529;
	display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.gl-card-body { padding:16px }
.gl-card-body > p:first-child { margin-top:0 }

.gl-badge {
	display:inline-block; padding:.28em .55em; font-size:11.5px; font-weight:700;
	line-height:1; border-radius:4px; white-space:nowrap; vertical-align:middle;
}
.gl-badge-primary   { background:var(--brand); color:#fff }
.gl-badge-light     { background:#f8f9fa; color:#495057; border:1px solid #dee2e6 }
.gl-badge-secondary { background:#6c757d; color:#fff }

/* identity strip */
.gl-hero { background:var(--navy); color:#fff; border-radius:8px; padding:14px 16px;
	display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 16px }
.gl-avatar { width:46px; height:46px; border-radius:50%; flex:none; background:var(--brand);
	color:var(--navy); display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800 }
.gl-hero-id { flex:1 1 200px; min-width:0 }
.gl-hero-name { font-weight:600 }
.gl-hero-mail { color:rgba(255,255,255,.68); font-size:12.5px; word-break:break-all }
.gl-hero-badges { display:flex; gap:6px; flex-wrap:wrap }

/* info tiles */
.gl-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:12px }
.gl-item { border:1px solid #dee2e6; border-radius:6px; background:#f8f9fa; padding:9px 12px; min-width:0 }
.gl-k { display:block; font-size:11.5px; color:#6c757d; margin-bottom:2px }
.gl-v { display:block; font-weight:600; color:#212529; word-break:break-all }
.gl-v-lg { font-size:19px; color:var(--brand-dark); font-variant-numeric:tabular-nums }
.gl-span2 { grid-column:span 2 }

/* invite blocks */
.gl-invite { border:1px solid #dee2e6; border-radius:6px }
.gl-invite + .gl-invite { margin-top:10px }
.gl-invite-head { background:#f8f9fa; border-bottom:1px solid #dee2e6; border-radius:6px 6px 0 0;
	padding:8px 12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.gl-invite-code { background:#fff; border:1px solid #dee2e6; border-radius:4px; padding:2px 7px;
	font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; word-break:break-all }
.gl-invite-body { padding:2px 12px }
.gl-link-row { display:flex; align-items:center; gap:10px; padding:9px 0 }
.gl-link-row + .gl-link-row { border-top:1px dashed #e9ecef }
.gl-link {
	flex:1; min-width:0; cursor:pointer;
	font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; color:#212529;
	background:#fff; border:1px solid #dee2e6; border-radius:5px; padding:7px 10px;
	overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.gl-link:hover { border-color:var(--brand); color:var(--brand-dark) }
.gl-btn {
	flex:none; cursor:pointer; font-size:12.5px; font-weight:600; line-height:1;
	padding:7px 12px; border-radius:5px; border:1px solid var(--brand);
	background:#fff; color:var(--brand-dark);
}
.gl-btn:hover { background:var(--brand); color:#fff }
.gl-btn.copied { background:var(--brand); color:#fff }
.gl-note { background:#fff8e6; border:1px solid #f0dcae; border-radius:6px; padding:10px 14px; font-size:13px }
.gl-muted { color:#6c757d }
.gl-small { font-size:12.5px }

@media (max-width: 991px) {
	.gl-grid { grid-template-columns:repeat(2, 1fr) }
	.gl-span2 { grid-column:span 2 }
}
@media (max-width: 575px) {
	.gl-grid { grid-template-columns:1fr }
	.gl-span2 { grid-column:span 1 }
	.gl-link { white-space:normal; word-break:break-all }
	.gl-link-row { flex-wrap:wrap }
}


/* ---- language switcher ---- */
.langsel{position:relative}
.langsel-btn{display:inline-flex;align-items:center;gap:6px;background:transparent;color:#fff;
	border:1px solid rgba(255,255,255,.22);border-radius:8px;padding:7px 12px;font-size:13px;
	font-weight:600;cursor:pointer;font-family:inherit}
.langsel-btn:hover{background:rgba(255,255,255,.1)}
.langsel-caret{font-size:10px;opacity:.8}
.langsel-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:60;
	background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;margin:0;
	list-style:none;min-width:170px;box-shadow:0 8px 24px rgba(0,0,0,.16);max-height:60vh;overflow:auto}
.langsel.open .langsel-menu{display:block}
.langsel-menu a{display:block;padding:8px 12px;border-radius:6px;color:var(--text);font-size:14px}
.langsel-menu a:hover{background:#f0f5f3;text-decoration:none}
.langsel-menu a.cur{background:var(--brand);color:#fff;font-weight:700}

@media (max-width:991px){
	.langsel{width:100%;margin-top:6px}
	.langsel-btn{width:100%;justify-content:space-between}
	.langsel-menu{position:static;width:100%;box-shadow:none;margin-top:6px}
}


/* ---- phone + SMS verification ---- */
.phone-row{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.phone-row select{flex:0 0 auto;width:auto;min-width:150px;max-width:100%}
.phone-row input{flex:1 1 140px;min-width:0}
.phone-row .btn{flex:0 0 auto;white-space:nowrap}
.field small.muted{display:block;margin-top:5px;font-size:12px}
.verify-msg{border-radius:8px;padding:9px 12px;margin:0 0 14px;font-size:13.5px}
.verify-msg.is-ok{background:#e8f8f2;border:1px solid #a8e3cd;color:#0c6b50}
.verify-msg.is-err{background:#fdecec;border:1px solid #f3c2c2;color:#a12727}
@media (max-width:520px){
	.phone-row select{width:100%;flex:1 1 100%}
	.phone-row .btn{flex:1 1 100%}
}

/* pager */
.pager{display:flex;gap:6px;justify-content:center;margin-top:18px;flex-wrap:wrap}
.pager a,.pager .cur{min-width:32px;text-align:center;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:#fff}
.pager .cur{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:700}

/* faq */
details{border:1px solid var(--line);border-radius:8px;margin:0 0 10px;background:#fff}
details summary{cursor:pointer;padding:12px 16px;font-weight:600;color:var(--navy)}
details p{padding:0 16px 14px;margin:0}

/* footer */
.footer{background:var(--navy);color:#9fb2ae;font-size:13px}
.footer-in{display:flex;justify-content:space-between;align-items:center;height:70px;flex-wrap:wrap}
.footer-links a{color:#c9d6d3;margin-left:16px}

/* responsive: tables collapse to cards under 992px */
@media (max-width:991px){
	.stats{grid-template-columns:repeat(2,1fr)}
	.cards3{grid-template-columns:1fr}
	.grid2{grid-template-columns:1fr}
	.nav{display:none;position:absolute;top:60px;left:0;right:0;background:var(--navy-2);flex-direction:column;align-items:stretch;padding:12px 16px;gap:4px}
	.nav a{padding:10px 6px;border-bottom:1px solid rgba(255,255,255,.06)}
	body.nav-open .nav{display:flex}
	.nav-toggle{display:block}

	.table-cards thead{display:none}
	.table-cards,.table-cards tbody,.table-cards tr,.table-cards td{display:block;width:100%}
	.table-cards tr{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;background:#fff;padding:6px 0}
	.table-cards td{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed var(--line);padding:8px 14px;text-align:right}
	.table-cards td:last-child{border-bottom:0}
	.table-cards td:before{content:attr(data-label);color:var(--muted);font-size:12.5px;font-weight:600;text-align:left}
}
@media (max-width:520px){
	.hero h1{font-size:30px}
	.stats{grid-template-columns:1fr 1fr}
	.stat-value{font-size:19px}
}


/* ---- Account Summary modal (mypage/players) ---- */
.amodal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.amodal[hidden]{display:none}
.amodal-backdrop{position:absolute;inset:0;background:rgba(22,38,44,.55)}
.amodal-box{position:relative;background:var(--card);border:1px solid var(--line);border-radius:12px;
	width:100%;max-width:460px;max-height:86vh;display:flex;flex-direction:column;
	box-shadow:0 18px 48px rgba(0,0,0,.24)}
.amodal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
	padding:14px 18px;border-bottom:1px solid var(--line);background:var(--navy);
	border-radius:12px 12px 0 0}
.amodal-head h2{margin:0;font-size:15px;color:#fff;letter-spacing:.02em}
.amodal-x{background:transparent;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;
	padding:0 4px;opacity:.8;font-family:inherit}
.amodal-x:hover{opacity:1}
.amodal-body{padding:16px 18px 18px;overflow:auto}
.amodal-who{margin:0 0 12px;font-weight:700;font-size:14px;word-break:break-all}
.amodal-msg{margin:0 0 10px;font-size:13.5px;color:var(--muted)}
.amodal-msg:empty{display:none}
.amodal-foot{margin:12px 0 0;font-size:12px}
.amodal-foot:empty{display:none}
.amodal-table{width:100%;border-collapse:collapse}
.amodal-table th,.amodal-table td{padding:9px 2px;border-bottom:1px solid var(--line);font-size:13.5px}
.amodal-table th{text-align:left;font-weight:600;color:var(--muted);white-space:nowrap}
.amodal-table td{text-align:right;font-variant-numeric:tabular-nums}
.amodal-table tr:last-child th,.amodal-table tr:last-child td{border-bottom:0}
body.amodal-open{overflow:hidden}

/* ---- settlement comparison table (landing + howtoearn) ---- */
.cmp-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:16px 0 8px;
	border:1px solid var(--line);border-radius:10px;background:var(--card)}
.cmp{width:100%;min-width:660px;border-collapse:collapse;font-size:13px}
.cmp th,.cmp td{padding:9px 10px;text-align:center;border-bottom:1px solid var(--line);white-space:nowrap}
.cmp thead th{background:#eef3f1;color:var(--navy);font-weight:700;font-size:12px;line-height:1.35;
	white-space:normal;min-width:74px}
.cmp th:first-child,.cmp td:first-child{text-align:left;position:sticky;left:0;background:var(--card);
	z-index:1;min-width:104px;font-weight:600}
.cmp thead th:first-child{background:#eef3f1}
.cmp tbody tr:last-child td{border-bottom:0}
.cmp__yes,.cmp__no{display:inline-block;min-width:34px;padding:2px 7px;border-radius:4px;
	font-size:11.5px;font-weight:700;letter-spacing:.04em;line-height:1.5}
.cmp__yes{color:#a12727;background:#fdecec;border:1px solid #f3c2c2}
.cmp__no{color:#0c6b50;background:#e8f8f2;border:1px solid #a8e3cd}
.cmp__us td{background:rgba(22,185,140,.09);border-top:2px solid var(--brand)}
.cmp__us td:first-child{background:rgba(22,185,140,.15);color:var(--brand-dark)}
.cmp__note{display:block;font-size:11px;font-weight:400;color:#a12727}
.cmp-legend{margin:0 0 6px;font-size:12.5px;color:var(--muted)}
.cmp-source{margin:10px 0 0;font-size:12.5px;color:var(--muted);
	background:#f4f7f6;border:1px solid var(--line);border-radius:8px;padding:10px 12px}
