/* =========================================================
   TERM-FIN Customer Pages V2
   Shared V10.19 visual language for account / pages / orders / cart
   ========================================================= */

.tf-customer-page{
  --tf-paper:#fffdf9;
  --tf-paper-2:#fff9ef;
  --tf-gold:#d39a1b;
  --tf-gold-dark:#9e6506;
  --tf-text:#2d1c0a;
  --tf-muted:#8d785d;
  --tf-line:#ead8b5;
  --tf-green:#208a4a;
  --tf-red:#b7444f;
  --tf-blue:#2788c7;
}

.tf-customer-page .main-col{min-height:100vh}
.tf-page-content{width:100%;max-width:1080px;margin:0 auto;padding:24px 22px 48px}
.tf-site-notice{display:flex;align-items:center;gap:9px;margin:16px 18px 0;padding:10px 14px;border:1px solid #ecd7aa;border-radius:14px;color:#72531c;background:#fff8e6;font-size:12px}
.tf-site-notice i{color:#ca8d11}

/* Shared form/card primitives override the legacy dark customer styles. */
.tf-customer-page .panel,
.tf-customer-page .auth-card{
  color:var(--tf-text);
  background:rgba(255,255,255,.92);
  border:1px solid var(--tf-line);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(145,99,16,.07);
}
.tf-customer-page .panel{padding:22px}
.tf-customer-page .muted{color:var(--tf-muted)!important}
.tf-customer-page .pill{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e3c580;border-radius:999px;
  color:#9b6608;background:#fff8df;font-size:10px;font-weight:800;letter-spacing:1.1px
}
.tf-customer-page label{display:block;margin-bottom:14px;color:#513a1c;font-weight:700;font-size:12px}
.tf-customer-page input,
.tf-customer-page select,
.tf-customer-page textarea{
  width:100%;margin-top:7px;padding:12px 13px;border:1px solid #e4d3b2;border-radius:12px;outline:0;
  color:#39270f;background:#fff;font:inherit;box-shadow:inset 0 1px 2px rgba(112,75,12,.03)
}
.tf-customer-page input:focus,
.tf-customer-page select:focus,
.tf-customer-page textarea:focus{border-color:#d4a134;box-shadow:0 0 0 3px rgba(212,161,52,.12)}
.tf-customer-page input:disabled{color:#8e7e68;background:#f7f2e9}
.tf-customer-page .btn{
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 16px;border:1px solid #cf9415;border-radius:12px;
  color:#4a2c00!important;background:linear-gradient(180deg,#ffe588,#dfa41a)!important;font-weight:800;cursor:pointer;
  box-shadow:0 8px 18px rgba(173,118,12,.12);transition:.18s ease
}
.tf-customer-page .btn:hover{transform:translateY(-1px);filter:saturate(1.05)}
.tf-customer-page .btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.tf-customer-page .secondary-btn{
  color:#6d5327!important;background:#fff!important;border-color:#e2c98f!important;box-shadow:none!important
}
.tf-customer-page .text-link{appearance:none;border:0;padding:0;color:#a66d0a;background:none;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.tf-customer-page .alert{padding:12px 14px;border:1px solid #ead5a9;border-radius:13px;color:#6d5127;background:#fff9e9}
.tf-customer-page .alert.error{color:#9b343e;background:#fff0f1;border-color:#edbdc1}
.tf-customer-page .success-panel{color:#236c42;background:#eefaf2;border-color:#bfe2ca}
.tf-customer-page .compact-alert{font-size:12px;line-height:1.65}

.breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px;color:#9b886d;font-size:11px}
.breadcrumbs a{color:#a46c0a;font-weight:700}.breadcrumbs span{color:#b8a487}

.tf-header-cart-count,.tf-rail-count{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#df9f17;color:#fff;font-size:9px;font-style:normal;font-weight:900}
.tf-top-cart{display:flex!important;align-items:center!important;gap:3px!important}
.tf-header-logout{gap:6px!important;color:#8c5c13!important}
.tf-header-logout i{margin-right:0!important;color:#b8770d!important}
.tf-rail-logout{border-color:#edd2d5!important;background:#fff7f7!important}
.tf-rail-logout>i{color:#b84d59!important}
.tf-account-user-link{transition:.18s ease}.tf-account-user-link:hover{transform:translateY(-1px);border-color:#d8b86f}

/* Account */
.account-hero{position:relative;overflow:hidden;margin:0 0 18px;padding:28px;border:1px solid #e3c985;border-radius:24px;background:linear-gradient(125deg,#fffdf8 0%,#fff6d9 66%,#f9e7ad 100%);display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 16px 40px rgba(160,111,16,.09)}
.account-hero:after{content:"";position:absolute;width:230px;height:230px;right:-70px;top:-95px;border-radius:50%;background:radial-gradient(circle,rgba(255,215,89,.42),transparent 70%)}
.account-hero>div{position:relative;z-index:1}.account-hero h1{margin:9px 0 5px;color:#2d1c09;font-size:clamp(27px,4vw,39px)}.account-hero p{margin:0;color:#806c50;line-height:1.65}
.account-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.account-hero-actions a{min-height:38px}
.tier-orb{position:relative;z-index:1;width:170px;height:170px;flex:0 0 170px;border:1px solid #dcb65c;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 34% 25%,#fff9cf,#f2c858 62%,#ce8f12 100%);box-shadow:0 18px 42px rgba(174,117,8,.18)}
.tier-orb small{color:#755315}.tier-orb b{margin:4px 0;color:#4a2c00;font-size:25px}.tier-orb span{max-width:120px;color:#6b4a0f;font-size:10px}
.member-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.member-stat{min-height:135px;padding:18px;border:1px solid #ead8b5;border-radius:18px;background:#fff;display:flex;flex-direction:column;gap:5px;box-shadow:0 9px 24px rgba(143,98,14,.05)}
.member-stat>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff2c6;color:#b7780c;font-size:17px;margin-bottom:3px}.member-stat span,.member-stat small{color:#927e62}.member-stat b{color:#34210d;font-size:24px}.member-stat .text-link{margin-top:auto;font-size:11px}
.tier-progress-card{margin:18px 0}.tier-progress-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.tier-progress-head h2{margin:0;color:#35230e}.tier-progress-head p{margin:4px 0;color:#8c785d}.next-tier{text-align:right;display:flex;flex-direction:column;color:#6e5839}.next-tier span{color:#a76e09;font-weight:700}
.progress-track{height:11px;margin:15px 0 8px;border:1px solid #ead7ad;border-radius:999px;overflow:hidden;background:#f5ecdc}.progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#e3a81c,#ffdc69)}
.account-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.account-columns h2,.tf-password-security h2{margin-top:0}
.account-quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.account-quick-links a{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid #ead8b4;border-radius:12px;background:#fffaf0;color:#6c4e18;font-size:11px;font-weight:700}.account-quick-links i{color:#c28614;font-size:17px}
.order-lines>div{border-color:#eadcc2!important}.order-lines span{color:#907a5d!important}
.section-row{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:28px 0 12px}.section-row h2{margin:0}.section-row a{color:#a66f0d;font-weight:700;font-size:11px}

/* Table/status */
.table-wrap{overflow:auto;border:1px solid #ead8b5;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(141,96,12,.05)}
.tf-customer-page table{width:100%;min-width:720px;border-collapse:collapse}.tf-customer-page th,.tf-customer-page td{padding:13px 15px;border-bottom:1px solid #f0e5d2;text-align:left}.tf-customer-page th{color:#7d6542;background:#fff8e9;font-size:10px}.tf-customer-page td{color:#44321b;font-size:12px}.tf-customer-page tr:last-child td{border-bottom:0}.table-sub{display:block;margin-top:3px;color:#a28d70;font-size:9px}.tf-customer-page td>a{color:#a66f0d;font-weight:800}
.status{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:800;background:#f4eee3;color:#6f604d}.s-pending_payment{background:#fff3cf;color:#8f650b}.s-verifying{background:#eaf5ff;color:#2f6f9e}.s-paid,.s-processing{background:#edf3ff;color:#3d62a3}.s-completed{background:#eaf8ee;color:#267247}.s-failed,.s-cancelled{background:#fff0f1;color:#a6424c}

/* Orders */
.tf-orders-hero{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}.tf-orders-hero h1{margin:7px 0 4px;font-size:32px}.tf-orders-hero p{margin:0;color:#8c775b}.tf-orders-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.tf-order-kpi{padding:15px;border:1px solid #ead7b1;border-radius:16px;background:#fff}.tf-order-kpi span{display:block;color:#947e60;font-size:10px}.tf-order-kpi b{display:block;margin-top:2px;color:#38240d;font-size:23px}
.tf-order-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto;gap:9px;align-items:end;margin-bottom:16px;padding:14px;border:1px solid #ead9b7;border-radius:16px;background:#fffaf1}.tf-order-filter label{margin:0}.tf-order-filter input,.tf-order-filter select{margin-top:5px}.tf-order-filter .btn{height:44px}.tf-orders-list{display:grid;gap:11px}.tf-order-card{display:grid;grid-template-columns:minmax(170px,.9fr) minmax(220px,1.3fr) 125px 125px auto;align-items:center;gap:13px;padding:15px 16px;border:1px solid #ead8b5;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(140,95,11,.045)}.tf-order-card:hover{border-color:#d9b86d;box-shadow:0 12px 28px rgba(140,95,11,.075)}.tf-order-number b{display:block;color:#3b270f}.tf-order-number small,.tf-order-game small,.tf-order-money small{display:block;color:#a08b6e;font-size:9px}.tf-order-game b{display:block;font-size:12px}.tf-order-money b{display:block;color:#8c5a08;font-size:15px}.tf-order-open{width:40px;height:40px;display:grid;place-items:center;border:1px solid #e4cc97;border-radius:12px;color:#a66f0d;background:#fffaf0}.tf-order-empty{padding:48px 20px;text-align:center}.tf-order-empty i{font-size:48px;color:#d1a13a}.tf-order-empty h2{margin:9px 0 4px}.tf-order-empty p{margin:0 0 15px;color:#8d785d}

/* CMS / privacy / how-to */
.cms-public-page{max-width:900px;margin:0 auto}.cms-public-page h1{margin:3px 0 7px;font-size:34px}.cms-public-page>p.tf-page-lead,.tf-page-lead{color:#806c51;line-height:1.8}.cms-public-page>small{display:block;margin-top:24px;color:#a18b6d}
.tf-cms-bullets{margin:12px 0 18px;padding:0;list-style:none;display:grid;gap:9px}.tf-cms-bullets li{position:relative;padding:12px 14px 12px 39px;border:1px solid #ead8b5;border-radius:13px;color:#513a1d;background:#fffaf0;line-height:1.7}.tf-cms-bullets li:before{content:"✓";position:absolute;left:13px;top:12px;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#d49a19;font-size:10px;font-weight:900}
.tf-policy-hero,.tf-howto-hero,.tf-news-hero{position:relative;overflow:hidden;padding:28px;margin-bottom:16px;border:1px solid #e2c883;border-radius:24px;background:linear-gradient(130deg,#fffdf8,#fff4d3);box-shadow:0 15px 38px rgba(152,104,14,.08)}.tf-policy-hero:after,.tf-howto-hero:after,.tf-news-hero:after{content:"";position:absolute;right:-80px;top:-100px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(244,194,54,.28),transparent 68%)}.tf-policy-hero>*,.tf-howto-hero>*,.tf-news-hero>*{position:relative;z-index:1}.tf-policy-hero h1,.tf-howto-hero h1,.tf-news-hero h1{margin:8px 0 6px;font-size:clamp(28px,4vw,38px)}.tf-policy-hero p,.tf-howto-hero p,.tf-news-hero p{max-width:760px;margin:0;color:#806c50;line-height:1.75}
.tf-policy-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start}.tf-policy-toc{position:sticky;top:90px;padding:14px}.tf-policy-toc b{display:block;margin-bottom:8px}.tf-policy-toc a{display:block;padding:8px 9px;border-radius:9px;color:#806a49;font-size:11px}.tf-policy-toc a:hover{background:#fff5d9;color:#8f5d08}.tf-policy-content{display:grid;gap:12px}.tf-policy-section{padding:20px;border:1px solid #ead8b5;border-radius:18px;background:#fff}.tf-policy-section h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:18px}.tf-policy-section h2 i{color:#bd8010}.tf-policy-section p{margin:0;color:#725f43;line-height:1.82;font-size:13px}.tf-policy-section ul{margin:10px 0 0;padding-left:20px;color:#725f43;line-height:1.8;font-size:13px}.tf-policy-callout{display:flex;gap:11px;padding:14px;border:1px solid #cfe2ef;border-radius:14px;background:#f3faff;color:#46687c}.tf-policy-callout i{font-size:20px;color:#388cb9}
.tf-howto-steps{display:grid;gap:12px;counter-reset:howto}.tf-howto-step{counter-increment:howto;display:grid;grid-template-columns:52px minmax(0,1fr);gap:15px;padding:18px;border:1px solid #ead8b5;border-radius:18px;background:#fff}.tf-howto-step:before{content:counter(howto);width:46px;height:46px;display:grid;place-items:center;border-radius:14px;color:#553500;background:linear-gradient(180deg,#ffe482,#e0a419);font-size:18px;font-weight:900;box-shadow:0 8px 18px rgba(181,122,11,.15)}.tf-howto-step h2{margin:0 0 4px;font-size:17px}.tf-howto-step p{margin:0;color:#806b50;line-height:1.7;font-size:12px}.tf-howto-tip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.tf-howto-tip{padding:16px;border:1px solid #ead8b5;border-radius:16px;background:#fffaf1}.tf-howto-tip i{font-size:23px;color:#bd7f0d}.tf-howto-tip b{display:block;margin:6px 0 2px}.tf-howto-tip small{color:#8e785b;line-height:1.55}.tf-howto-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:15px;padding:20px;border:1px solid #e0c57f;border-radius:18px;background:linear-gradient(120deg,#fff8e6,#fff0bf)}.tf-howto-cta h2{margin:0 0 4px}.tf-howto-cta p{margin:0;color:#806c50}

/* News */
.tf-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tf-news-card{overflow:hidden;border:1px solid #ead8b5;border-radius:19px;background:#fff;box-shadow:0 10px 28px rgba(143,97,13,.06)}.tf-news-card-media{aspect-ratio:16/8;overflow:hidden;background:#fff5dd}.tf-news-card-media img{width:100%;height:100%;object-fit:cover}.tf-news-card-body{padding:16px}.tf-news-card-body .tf-news-meta{display:flex;align-items:center;gap:8px;color:#a18b6c;font-size:9px}.tf-news-card-body h2{margin:7px 0 5px;font-size:18px}.tf-news-card-body p{margin:0;color:#816c50;line-height:1.65;font-size:11px}.tf-news-card-body a{display:inline-flex;align-items:center;gap:5px;margin-top:12px;color:#a46b08;font-size:11px;font-weight:800}.tf-news-service{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.tf-news-service>div{padding:15px;border:1px solid #ead9b6;border-radius:15px;background:#fffaf1}.tf-news-service i{font-size:22px;color:#be8110}.tf-news-service b{display:block;margin:6px 0 2px}.tf-news-service small{color:#907a5e;line-height:1.55}

/* Cart upgrades */
.tf-cart-steps{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 18px;border:1px solid #ead8b5;border-radius:16px;overflow:hidden;background:#fff}.tf-cart-step{display:flex;align-items:center;gap:9px;padding:12px 14px;border-right:1px solid #eee0c6}.tf-cart-step:last-child{border-right:0}.tf-cart-step>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#694600;background:#ffe7a1;font-size:10px;font-weight:900}.tf-cart-step b{display:block;font-size:11px}.tf-cart-step small{display:block;color:#9c876a;font-size:8px}.tf-cart-step.active{background:#fff8e7}.tf-cart-item-index{display:inline-flex;align-items:center;gap:5px;margin-bottom:10px;color:#9b7a3f;font-size:9px;font-weight:800}.tf-cart-item{background:#fff!important}.tf-cart-summary{background:#fff!important}.tf-cart-summary-note{margin:12px 0;color:#8b7658;font-size:10px;line-height:1.6}

/* Small UI fixes */
.tf-customer-page .tf-password-security{background:#fff}.tf-customer-page .tf-account-email-box{background:#fff9e9}.tf-customer-page .tf-security-head p{color:#8c7658}.tf-customer-page .tf-pass-grid{gap:12px}
.tf-customer-page .tf-finfin-card{font-family:'Kanit','Prompt',sans-serif}

@media(max-width:1180px){
  .tf-header-logout span{display:none}.tf-header-logout{width:42px;padding:0!important}
  .member-stat-grid{grid-template-columns:repeat(2,1fr)}
  .tf-order-card{grid-template-columns:1fr 1.2fr 100px 115px auto}
}
@media(max-width:900px){
  .tf-page-content{padding:20px 14px 36px}.tf-site-notice{margin:12px 10px 0}
  .account-columns{grid-template-columns:1fr}.tf-policy-layout{grid-template-columns:1fr}.tf-policy-toc{position:static;display:flex;gap:5px;overflow:auto}.tf-policy-toc b{display:none}.tf-policy-toc a{white-space:nowrap;border:1px solid #ead8b5;background:#fff}
  .tf-order-card{grid-template-columns:1fr 1fr 100px auto}.tf-order-money{display:none}
}
@media(max-width:680px){
  .account-hero{padding:22px;align-items:flex-start;flex-direction:column}.tier-orb{width:135px;height:135px;flex-basis:135px;align-self:center}.tier-orb b{font-size:21px}
  .member-stat-grid{grid-template-columns:1fr 1fr}.member-stat{min-height:122px;padding:15px}.member-stat b{font-size:20px}.account-quick-links{grid-template-columns:1fr}
  .tier-progress-head{flex-direction:column}.next-tier{text-align:left}.tf-pass-grid{grid-template-columns:1fr!important}.tf-otp-row{grid-template-columns:1fr!important}
  .tf-orders-hero{align-items:flex-start;flex-direction:column}.tf-orders-kpis{grid-template-columns:1fr 1fr}.tf-order-filter{grid-template-columns:1fr}.tf-order-card{grid-template-columns:1fr auto;gap:8px}.tf-order-game{grid-column:1/-1}.tf-order-card>.status{justify-self:start}.tf-order-open{grid-column:2;grid-row:1/3}.tf-order-money{display:block}
  .tf-news-grid{grid-template-columns:1fr}.tf-news-service,.tf-howto-tip-grid{grid-template-columns:1fr}.tf-howto-cta{align-items:flex-start;flex-direction:column}.tf-howto-step{grid-template-columns:42px minmax(0,1fr);gap:11px}.tf-howto-step:before{width:38px;height:38px;border-radius:11px}
  .tf-cart-steps{grid-template-columns:1fr}.tf-cart-step{border-right:0;border-bottom:1px solid #eee0c6}.tf-cart-step:last-child{border-bottom:0}
}
@media(max-width:430px){
  .member-stat-grid,.tf-orders-kpis{grid-template-columns:1fr}.account-hero h1{font-size:27px}.tf-policy-hero,.tf-howto-hero,.tf-news-hero{padding:21px}.tf-page-content{padding-left:10px;padding-right:10px}
}

/* =========================================================
   TERM-FIN Customer UI V3 additions
   Services / Game page / Notifications / About / Search fix
   ========================================================= */
.tf-customer-page .top-search{position:relative;isolation:isolate}
.tf-customer-page .top-search input{position:relative;z-index:1;background:transparent!important}
.tf-customer-page .top-search button{position:relative;z-index:2;flex:none}
.tf-customer-page .topbar{overflow:visible}

.tf-service-hero,.tf-about-hero,.tf-notify-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px;padding:28px;border:1px solid #e2c985;border-radius:24px;background:linear-gradient(130deg,#fffdf8,#fff3ce);box-shadow:0 16px 38px rgba(148,101,13,.08)}
.tf-service-hero:after,.tf-about-hero:after,.tf-notify-hero:after{content:"";position:absolute;right:-110px;top:-130px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(242,190,48,.27),transparent 68%)}
.tf-service-hero>*,.tf-about-hero>*,.tf-notify-hero>*{position:relative;z-index:1}.tf-service-hero h1,.tf-about-hero h1,.tf-notify-hero h1{margin:9px 0 7px;font-size:clamp(29px,4vw,40px);line-height:1.12}.tf-service-hero p,.tf-about-hero p,.tf-notify-hero p{max-width:760px;margin:0;color:#806b4f;line-height:1.75}
.tf-service-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.tf-service-badges span{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #ead5a6;border-radius:999px;background:rgba(255,255,255,.78);color:#765519;font-size:10px;font-weight:700}
.tf-service-hero-art{width:180px;height:180px;flex:0 0 180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #dfbd68;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff8d0,#efc457 60%,#cb8e14);box-shadow:0 18px 42px rgba(177,119,13,.18);color:#563500}.tf-service-hero-art>i{font-size:52px}.tf-service-hero-art span{margin-top:7px;font-size:11px;font-weight:900;letter-spacing:1px;line-height:1.2}
.tf-service-maintenance-card{display:flex;align-items:center;gap:16px;margin:16px 0;padding:20px;border:1px solid #eccf8b;border-radius:20px;background:linear-gradient(120deg,#fff9e8,#fff1c4);box-shadow:0 10px 28px rgba(166,111,11,.07)}.tf-service-maintenance-card>i{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;border-radius:17px;background:#f4c651;color:#624000;font-size:26px}.tf-service-maintenance-card span{color:#ad750e;font-size:10px;font-weight:900;letter-spacing:.08em}.tf-service-maintenance-card h2{margin:2px 0 4px}.tf-service-maintenance-card p{margin:0;color:#7e694b;line-height:1.65}.tf-service-maintenance-card .btn{margin-top:12px}
.tf-service-section{margin-top:12px}.tf-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tf-service-card{display:grid;grid-template-columns:88px minmax(0,1fr) 32px;align-items:center;gap:14px;padding:13px;border:1px solid #ead7af;border-radius:18px;background:#fff;box-shadow:0 9px 25px rgba(140,94,12,.05);transition:.18s ease}.tf-service-card:hover{transform:translateY(-2px);border-color:#d9b768;box-shadow:0 14px 30px rgba(140,94,12,.09)}.tf-service-card>img{width:88px;height:88px;border-radius:14px;object-fit:cover;background:#f3ead6}.tf-service-card small{color:#a18a69;font-size:9px}.tf-service-card h3{margin:3px 0 3px;font-size:17px}.tf-service-card p{margin:0;color:#8a7455;font-size:10px}.tf-service-card>i{color:#b87a0b;font-size:18px}
.tf-service-empty{text-align:center;padding:42px 20px;border:1px dashed #dfc180;border-radius:20px;background:#fffaf0}.tf-service-empty>i{font-size:44px;color:#cf9721}.tf-service-empty h2{margin:8px 0 4px}.tf-service-empty p{max-width:640px;margin:0 auto 14px;color:#8b7658;line-height:1.7}.tf-service-how{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.tf-service-how article{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:15px;border:1px solid #ead8b5;border-radius:16px;background:#fff}.tf-service-how article>b{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(180deg,#ffe27a,#dfa31b);color:#593700}.tf-service-how h3{margin:0 0 3px;font-size:14px}.tf-service-how p{margin:0;color:#8b7658;font-size:10px;line-height:1.6}

.tf-about-mark{width:210px;flex:0 0 210px;text-align:center}.tf-about-mark img{width:170px;margin:0 auto 8px;filter:drop-shadow(0 10px 24px rgba(149,94,7,.16))}.tf-about-mark span{color:#9f6a0b;font-size:10px;font-weight:900;letter-spacing:2px}.tf-about-values{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tf-about-values article{padding:20px;border:1px solid #ead8b5;border-radius:18px;background:#fff}.tf-about-values i{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff1c3;color:#bb7c0c;font-size:21px}.tf-about-values h2{margin:10px 0 4px;font-size:16px}.tf-about-values p{margin:0;color:#866f50;font-size:11px;line-height:1.7}.tf-about-story{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}.tf-about-story h2{margin:8px 0 7px}.tf-about-story p{margin:0;color:#806c50;line-height:1.8}.tf-about-service-list{display:grid;gap:8px}.tf-about-service-list a{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;padding:10px;border:1px solid #ead8b5;border-radius:13px;background:#fffaf1}.tf-about-service-list i{font-size:20px;color:#bb7d0e}.tf-about-service-list b,.tf-about-service-list small{display:block}.tf-about-service-list small{color:#9a8465;font-size:9px}.tf-about-contact{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:20px;border:1px solid #dfc37c;border-radius:18px;background:linear-gradient(120deg,#fff9e9,#fff0bf)}.tf-about-contact h2{margin:0 0 4px}.tf-about-contact p{margin:0;color:#806c50}

.tf-notify-list{display:grid;gap:10px}.tf-notify-item{display:grid;grid-template-columns:48px minmax(0,1fr) 24px;gap:12px;align-items:center;padding:14px;border:1px solid #ead8b5;border-radius:16px;background:#fff;transition:.18s ease}.tf-notify-item:hover{transform:translateY(-1px);border-color:#d9b86e}.tf-notify-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff2ca;color:#b77b0f;font-size:19px}.tf-notify-item.success .tf-notify-icon{background:#eaf8ee;color:#2b8a50}.tf-notify-item.danger .tf-notify-icon{background:#fff0f1;color:#b54c58}.tf-notify-item small{color:#a18a6c;font-size:9px}.tf-notify-item h3{margin:2px 0 2px;font-size:14px}.tf-notify-item p{margin:0;color:#806d51;font-size:10px;line-height:1.5}.tf-notify-item>i{color:#b57a0d}

/* Game page V3 */
.tf-game-hero-v3{display:grid;grid-template-columns:118px minmax(0,1fr) minmax(230px,300px);align-items:center;gap:18px;margin-bottom:18px;padding:20px;border:1px solid #e2c883;border-radius:22px;background:linear-gradient(125deg,#fffdf9,#fff4d4);box-shadow:0 14px 34px rgba(145,97,11,.07)}
.tf-game-hero-v3 .game-hero-icon{width:118px;height:118px;border:1px solid #dfc17b;border-radius:22px;background:#f5ecd7;overflow:hidden;box-shadow:0 10px 25px rgba(141,91,9,.1)}.tf-game-hero-v3 .game-hero-icon img{width:100%;height:100%;object-fit:cover}.tf-game-hero-copy h1{margin:7px 0 5px;font-size:clamp(28px,4vw,40px);line-height:1.12}.tf-game-hero-copy>p{margin:0;color:#806c51;line-height:1.7}.tf-game-hero-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.tf-game-hero-meta span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #ead7ac;border-radius:999px;background:#fffaf0;color:#775a25;font-size:9px;font-weight:700}.tf-game-hero-meta i{color:#bd8010}
.tf-howto-trigger{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:9px;padding:12px;border:1px solid #d8c185;border-radius:15px;background:#fff;cursor:pointer;text-align:left;color:#422d13;box-shadow:0 8px 20px rgba(142,94,10,.05)}.tf-howto-trigger>i:first-child{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff1c4;color:#b9790b;font-size:18px}.tf-howto-trigger b,.tf-howto-trigger small{display:block}.tf-howto-trigger small{margin-top:2px;color:#967f5f;font-size:9px;line-height:1.45}.tf-howto-trigger>i:last-child{color:#b37a12}
.tf-game-checkout-v3{grid-template-columns:minmax(260px,.82fr) minmax(0,1.55fr);gap:16px}.tf-game-checkout-v3>.panel{background:#fff!important;border:1px solid #ead8b5!important;box-shadow:0 10px 28px rgba(141,96,11,.05)}.tf-game-checkout-v3 h2,.tf-game-checkout-v3 h3{color:#30200d}.tf-game-checkout-v3 label{color:#6e5737}.tf-game-checkout-v3 input:not([type=radio]){background:#fffdf9!important;border-color:#e6d5b2!important;color:#34230f!important}.tf-game-checkout-v3 input:not([type=radio]):focus{border-color:#d7aa43!important;box-shadow:0 0 0 3px rgba(214,166,53,.11)}
.tf-pay-marquee{overflow:hidden;white-space:nowrap;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}.tf-pay-marquee span{display:inline-block;min-width:max-content;padding-left:100%;animation:tfPayMarquee 16s linear infinite}.tf-pay-card:hover .tf-pay-marquee span{animation-play-state:paused}@keyframes tfPayMarquee{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.tf-game-help-modal[hidden]{display:none!important}.tf-game-help-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}.tf-game-help-backdrop{position:absolute;inset:0;border:0;background:rgba(48,31,7,.45);backdrop-filter:blur(5px)}.tf-game-help-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:min(760px,92vh);overflow:auto;padding:20px;border:1px solid #e0c57e;border-radius:24px;background:#fffdf9;box-shadow:0 30px 90px rgba(74,47,4,.24)}.tf-game-help-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tf-game-help-head span{color:#b2760c;font-size:9px;font-weight:900;letter-spacing:.12em}.tf-game-help-head h2{margin:3px 0 0}.tf-game-help-head button{width:38px;height:38px;border:1px solid #ead8b5;border-radius:11px;background:#fff;cursor:pointer}.tf-game-help-game{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;margin:15px 0;padding:12px;border:1px solid #ead8b5;border-radius:15px;background:#fffaf0}.tf-game-help-game img{width:70px;height:70px;border-radius:12px;object-fit:cover}.tf-game-help-game b,.tf-game-help-game small{display:block}.tf-game-help-game small{margin-top:3px;color:#866f50;font-size:10px;line-height:1.6}.tf-game-help-steps{counter-reset:gamehelp;margin:0;padding:0;list-style:none;display:grid;gap:8px}.tf-game-help-steps li{counter-increment:gamehelp;display:grid;grid-template-columns:32px 1fr;gap:9px;align-items:start;padding:10px;border:1px solid #eee0c5;border-radius:13px;background:#fff}.tf-game-help-steps li:before{content:counter(gamehelp);width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#ffe6a0;color:#6d4700;font-weight:900;font-size:10px}.tf-game-help-steps span{color:#5f482a;font-size:11px;line-height:1.65}.tf-game-help-tip{display:flex;gap:9px;margin:12px 0;padding:12px;border:1px solid #d6e4ee;border-radius:13px;background:#f4faff;color:#527086;font-size:10px;line-height:1.6}.tf-game-help-tip i{color:#dd9d18;font-size:18px}.tf-modal-open{overflow:hidden}

@media(max-width:900px){
 .tf-service-hero,.tf-about-hero,.tf-notify-hero{align-items:flex-start}.tf-service-hero-art{width:135px;height:135px;flex-basis:135px}.tf-service-hero-art>i{font-size:40px}
 .tf-game-hero-v3{grid-template-columns:92px 1fr}.tf-game-hero-v3 .game-hero-icon{width:92px;height:92px}.tf-howto-trigger{grid-column:1/-1}.tf-game-checkout-v3{grid-template-columns:1fr}
}
@media(max-width:680px){
 .tf-service-hero,.tf-about-hero,.tf-notify-hero{flex-direction:column;padding:21px}.tf-service-hero-art{align-self:center}.tf-service-grid,.tf-about-values,.tf-about-story,.tf-service-how{grid-template-columns:1fr}.tf-about-mark{align-self:center}.tf-about-contact{align-items:flex-start;flex-direction:column}
 .tf-game-hero-v3{grid-template-columns:76px 1fr;padding:14px;gap:12px}.tf-game-hero-v3 .game-hero-icon{width:76px;height:76px;border-radius:16px}.tf-game-hero-copy h1{font-size:24px}.tf-game-hero-copy>p{font-size:11px}.tf-game-hero-meta{grid-column:1/-1}.tf-howto-trigger{grid-template-columns:36px 1fr 18px}
 .tf-service-maintenance-card{align-items:flex-start}.tf-service-maintenance-card>i{width:46px;height:46px;flex-basis:46px}.tf-notify-item{grid-template-columns:42px 1fr 18px}.tf-notify-icon{width:38px;height:38px}
}
@media(max-width:430px){
 .tf-service-card{grid-template-columns:70px 1fr 20px}.tf-service-card>img{width:70px;height:70px}.tf-game-hero-v3{grid-template-columns:64px 1fr}.tf-game-hero-v3 .game-hero-icon{width:64px;height:64px}.tf-game-hero-copy h1{font-size:21px}.tf-game-hero-copy>p{display:none}.tf-game-hero-meta{display:none}.tf-game-help-dialog{padding:15px;border-radius:20px}
}
@media(prefers-reduced-motion:reduce){.tf-pay-marquee span{animation:none!important;padding-left:0!important}}
.tf-payment-auto-marquee{width:min(320px,78vw);margin:8px auto 0;overflow:hidden;white-space:nowrap;border:1px solid #ead8b5;border-radius:999px;background:#fffaf0;color:#7b5d25;font-size:9px;line-height:30px;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}.tf-payment-auto-marquee span{display:inline-block;min-width:max-content;padding-left:100%;animation:tfPaymentAutoMove 18s linear infinite}@keyframes tfPaymentAutoMove{from{transform:translateX(0)}to{transform:translateX(-100%)}}@media(prefers-reduced-motion:reduce){.tf-payment-auto-marquee span{padding-left:10px;animation:none}}

/* TERM-FIN V4 — LINE customer/account notifications */
.tf-line-account-card{margin:18px 0;background:linear-gradient(135deg,#fff,#fbfff8)!important;border-color:#cfe7d3!important}
.tf-line-account-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.tf-line-account-brand{display:flex;align-items:flex-start;gap:13px}.tf-line-account-brand h2{margin:6px 0 3px}.tf-line-account-brand p{margin:0;color:#7f755f;font-size:11px;line-height:1.7;max-width:680px}
.tf-line-logo{width:50px;height:50px;flex:0 0 50px;border-radius:15px;display:grid;place-items:center;background:#06c755;color:#fff;font-size:27px;box-shadow:0 10px 24px rgba(6,199,85,.16)}
.tf-line-state{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #e2dfd2;border-radius:999px;background:#faf9f5;color:#897d6a;font-size:10px;font-weight:800;white-space:nowrap}.tf-line-state i{font-size:7px}.tf-line-state.on{border-color:#bde6ca;background:#eefaf2;color:#257547}.tf-line-state.off{border-color:#ead8ad;background:#fff8e7;color:#8b6819}
.tf-line-account-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}.tf-line-account-grid>div{padding:12px;border:1px solid #e3ecdf;border-radius:13px;background:#fbfef9}.tf-line-account-grid span,.tf-line-account-grid b{display:block}.tf-line-account-grid span{color:#8b816f;font-size:9px}.tf-line-account-grid b{margin-top:3px;color:#33492f;font-size:11px;word-break:break-word}
.tf-line-account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.tf-line-account-actions form{margin:0}.tf-line-green{background:#06c755!important;border-color:#06b94f!important;color:#fff!important;box-shadow:0 8px 18px rgba(6,199,85,.18)!important}.tf-line-unlink{color:#9b4650!important;border-color:#ebc7ca!important}.tf-line-hint{font-size:10px;line-height:1.6}
.tf-line-connect-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:16px}.tf-line-connect-steps>div{display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:center;padding:12px;border:1px solid #dfeadd;border-radius:13px;background:#fbfef9}.tf-line-connect-steps b{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#e4f7e9;color:#278049;font-size:11px}.tf-line-connect-steps span{color:#5d6d57;font-size:10px;line-height:1.55}.tf-line-connect-steps strong{color:#1d6e3c}
@media(max-width:820px){.tf-line-account-head{flex-direction:column}.tf-line-account-grid{grid-template-columns:1fr 1fr}.tf-line-connect-steps{grid-template-columns:1fr}}
@media(max-width:520px){.tf-line-account-grid{grid-template-columns:1fr}.tf-line-account-actions,.tf-line-account-actions form,.tf-line-account-actions .btn{width:100%}.tf-line-account-brand{display:grid;grid-template-columns:46px 1fr}.tf-line-logo{width:46px;height:46px;flex-basis:46px}}
