/*
Theme Name: TPP App
Description: TrustPlayPanel app-style theme (dark, mobile-first). Works with the TPP Panel Desk plugin.
Version: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tpp
*/
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;background:#050505}
body{margin:0;font:15px/1.6 "Segoe UI",system-ui,-apple-system,Arial,sans-serif;color:#e9e9e9;background:#050505}
a{color:#ffc928}a:hover{color:#ffe07a}
.tp-app{max-width:560px;margin:0 auto;background:#0e0e0e;min-height:100vh;padding-bottom:84px;box-shadow:0 0 0 1px #1c1c1c}
.tp-hd{position:sticky;top:0;z-index:20;background:#141414;border-bottom:1px solid #222;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;gap:8px}
.tp-menu summary{list-style:none;cursor:pointer;width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#1f1f1f}
.tp-menu summary::-webkit-details-marker{display:none}
.tp-menu summary span,.tp-menu summary span:before,.tp-menu summary span:after{display:block;width:18px;height:2px;background:#fff;position:relative;content:""}
.tp-menu summary span:before{position:absolute;top:-6px}.tp-menu summary span:after{position:absolute;top:6px}
.tp-drawer{position:absolute;left:0;right:0;top:54px;background:#141414;border-bottom:1px solid #2a2a2a;padding:8px 14px 14px;max-width:560px;margin:0 auto}
.tp-drawer ul{list-style:none;margin:0;padding:0;columns:2}.tp-drawer li{padding:6px 0}
.tp-drawer a{color:#eee;text-decoration:none}
.tp-logo img{display:block}
.tp-hbtn{background:#fff;color:#111;font-weight:700;font-size:13px;padding:7px 12px;border-radius:6px;text-decoration:none;white-space:nowrap}
.tp-hbtn:hover{color:#111;background:#ffe07a}
.tp-pad{padding:14px}
.tp-gold{background:linear-gradient(135deg,#ffd54a,#f3a712 60%,#e08e00);color:#1a1200;border-radius:16px;padding:20px 16px;text-align:center;box-shadow:0 8px 30px rgba(243,167,18,.25)}
.tp-gold h1{font-size:21px;line-height:1.3;margin:0 0 6px;color:#1a1200}
.tp-gold p{margin:0 0 12px;color:#3a2a00;font-size:14px}
.tp-gold .tp-pill{display:inline-block;background:rgba(0,0,0,.12);border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 10px;margin-bottom:8px}
.tp-gbtns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.tp-btn{display:inline-block;background:#111;color:#ffc928;font-weight:700;padding:10px 18px;border-radius:10px;text-decoration:none;border:0;cursor:pointer;font-size:15px}
.tp-btn:hover{background:#000;color:#ffe07a}
.tp-btn2{display:inline-block;background:transparent;color:#1a1200;border:2px solid #1a1200;font-weight:700;padding:8px 16px;border-radius:10px;text-decoration:none}
.tp-ybtn{display:inline-block;background:#ffc928;color:#111;font-weight:700;padding:10px 18px;border-radius:10px;text-decoration:none;border:0;cursor:pointer;font-size:15px}
.tp-ybtn:hover{background:#ffe07a;color:#111}
.tp-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:14px 0 0;padding-bottom:6px;scrollbar-width:none}
.tp-slides::-webkit-scrollbar{display:none}
.tp-slide{flex:0 0 88%;scroll-snap-align:center;border-radius:14px;padding:18px 16px;min-height:120px;background:radial-gradient(circle at 85% 20%,#3b2a00,#161616 60%);border:1px solid #2a2a2a}
.tp-slide:nth-child(2){background:radial-gradient(circle at 85% 20%,#08343a,#161616 60%)}
.tp-slide:nth-child(3){background:radial-gradient(circle at 85% 20%,#3a0820,#161616 60%)}
.tp-slide b{display:block;font-size:17px;color:#fff;margin-bottom:4px}.tp-slide span{color:#bbb;font-size:14px}
.tp-facts{display:grid;grid-template-columns:repeat(3,1fr);background:#151515;border:1px solid #232323;border-radius:12px;margin-top:12px}
.tp-facts div{text-align:center;padding:10px 4px;border-left:1px solid #232323}.tp-facts div:first-child{border-left:0}
.tp-facts b{display:block;color:#ffc928;font-size:20px}.tp-facts span{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#aaa}
h2{font-size:17px;text-transform:uppercase;letter-spacing:.03em;margin:26px 0 10px;color:#fff}
h3{font-size:16px;margin:14px 0 6px;color:#fff}
.tp-main h1{font-size:22px;line-height:1.3;margin:4px 0 2px;color:#fff}
.tp-date{font-size:12px;color:#888;margin:0 0 12px}
.tp-trail{font-size:13px;color:#888}
.tp-types{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.tp-types::-webkit-scrollbar{display:none}
.tp-type{flex:0 0 46%;background:#171717;border:1px solid #2a2a2a;border-radius:14px;padding:14px;text-decoration:none;color:#eee}
.tp-type:hover{border-color:#ffc928;color:#fff}
.tp-type i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#ffc928;color:#111;font-style:normal;font-weight:800;font-size:15px;margin-bottom:8px}
.tp-type b{display:block;color:#fff}.tp-type span{font-size:13px;color:#aaa}
.tp-rows{display:grid;gap:8px}
.tp-row{display:flex;align-items:center;gap:12px;background:#171717;border:1px solid #242424;border-radius:12px;padding:10px 12px}
.tp-av{flex:0 0 44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;color:#111;background:linear-gradient(135deg,#ffd54a,#f3a712)}
.tp-row:nth-child(3n+2) .tp-av{background:linear-gradient(135deg,#7ee0c7,#2aa889)}
.tp-row:nth-child(3n+3) .tp-av{background:linear-gradient(135deg,#ff9ab8,#e04b7a)}
.tp-ri{flex:1;min-width:0}.tp-ri b{display:block;color:#fff;font-size:15px}.tp-ri span{font-size:12px;color:#9a9a9a}
.tp-create{background:#ffc928;color:#111;border:0;border-radius:8px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer}
.tp-create:hover{background:#ffe07a}
.tp-more{display:block;text-align:center;margin-top:10px}
.tp-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tp-col{background:#171717;border:1px solid #262626;border-radius:12px;padding:14px 8px;text-align:center;text-decoration:none;color:#eee;font-size:13px}
.tp-col b{display:block;font-size:22px;color:#ffc928;line-height:1.1}
.tp-col:hover{border-color:#ffc928;color:#fff}
.tp-card{background:#151515;border:1px solid #242424;border-radius:12px;padding:14px;margin:0 0 10px}
.tp-card p{margin:0 0 8px}
.tp-ladder{list-style:none;padding:0;margin:0}
.tp-ladder li{background:#151515;border:1px solid #242424;border-left:4px solid #ffc928;border-radius:8px;padding:9px 12px;margin:0 0 7px}
.tp-ladder li:nth-child(2){margin-left:10px}.tp-ladder li:nth-child(3){margin-left:20px}
.tp-ladder li:nth-child(4){margin-left:30px}.tp-ladder li:nth-child(5){margin-left:40px}
.tp-steps{padding-left:20px}.tp-steps li{margin-bottom:8px}
.tp-box{background:#1e1806;border:1px solid #4a3a08;border-radius:12px;padding:12px 14px;margin:16px 0;color:#f3e4b5}
.tp-tbl{width:100%;border-collapse:collapse;font-size:14px}
.tp-tbl th,.tp-tbl td{border:1px solid #2a2a2a;padding:7px 9px;text-align:left;vertical-align:top}
.tp-tbl th{background:#1d1d1d;color:#ffc928}
.tp-scroll{overflow-x:auto}
.tp-search{width:100%;padding:12px 14px;font-size:16px;background:#171717;color:#fff;border:1px solid #333;border-radius:10px}
.tp-search:focus{outline:2px solid #ffc928}
.tp-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:8px 0}
.tp-chips a{display:block;background:#171717;border:1px solid #2c2c2c;border-radius:999px;padding:4px 12px;font-size:13px;color:#ddd;text-decoration:none}
.tp-fam{margin:0 0 16px;scroll-margin-top:70px}.tp-fam h2 small{color:#888;font-weight:400}
.tp-qa details{background:#151515;border:1px solid #242424;border-radius:10px;padding:10px 12px;margin-bottom:8px}
.tp-qa summary{font-weight:600;cursor:pointer;color:#fff}
.tp-talk{background:#151515;border:1px solid #2a2a2a;border-radius:14px;padding:16px;margin-top:24px;text-align:center}
.tp-talk p{margin:0 0 10px;color:#bbb}.tp-talk .tp-h{font-size:17px;font-weight:700;color:#fff}
.tp-ft{padding:18px 14px 10px;font-size:13px;color:#999;border-top:1px solid #1f1f1f;margin-top:20px}
.tp-ft a{color:#ccc}.tp-ft ul{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:6px 14px}
.tp-18{display:inline-block;border:2px solid #e04b4b;color:#ff8080;border-radius:50%;width:34px;height:34px;line-height:30px;text-align:center;font-weight:800;font-size:12px;margin-right:8px;vertical-align:middle}
.tp-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;max-width:560px;margin:0 auto;background:#141414;border-top:1px solid #262626;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.tp-bar a{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:#bbb;font-size:11px;padding:6px 0;border-radius:10px}
.tp-bar a svg{width:20px;height:20px;fill:currentColor}
.tp-bar a[aria-current]{background:#ffc928;color:#111;font-weight:700}
.tp-wa{position:fixed;right:max(14px,calc(50% - 266px));bottom:88px;z-index:31;width:52px;height:52px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.5)}
.tp-wa svg{width:28px;height:28px;fill:#fff}
.tp-sheet{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center}
.tp-sheet[hidden]{display:none}
.tp-sheet-in{background:#161616;border:1px solid #2c2c2c;border-radius:18px 18px 0 0;width:100%;max-width:560px;padding:18px 16px 24px}
.tp-sheet-in h3{margin:0 0 4px;font-size:18px}
.tp-sheet label{display:block;font-size:13px;color:#aaa;margin:12px 0 4px}
.tp-sheet input{width:100%;padding:11px 12px;font-size:16px;background:#0e0e0e;color:#fff;border:1px solid #333;border-radius:10px}
.tp-msg{white-space:pre-line;background:#0e0e0e;border:1px dashed #444;border-radius:10px;padding:10px;font-size:14px;color:#ddd;margin:12px 0}
.tp-x{float:right;background:none;border:0;color:#aaa;font-size:24px;cursor:pointer;line-height:1}
.tp-hide{display:none!important}
@media(min-width:900px){.tp-type{flex-basis:31%}}
/* WordPress app screens */
.tp-wallet{margin-bottom:14px}.tp-wallet .tp-bal{display:block;font-size:34px;font-weight:800;color:#1a1200;margin:2px 0 12px}
.tp-card h2{margin-top:0}
.tp-card label,.tp-sheet label{display:block;font-size:13px;color:#aaa;margin:12px 0 4px}
.tp-card input,.tp-card textarea,.tp-card select,.tp-sheet select{width:100%;padding:11px 12px;font-size:16px;background:#0e0e0e;color:#fff;border:1px solid #333;border-radius:10px;font-family:inherit}
.tp-card input[type=checkbox]{width:auto;margin-right:6px}
.tp-check{display:flex!important;align-items:flex-start;gap:4px;color:#ccc!important}
.tp-note{border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:14px}
.tp-note.ok{background:#0f2e22;border:1px solid #1f6b4c;color:#b9f0d6}.tp-note.err{background:#3a1010;border:1px solid #7a2525;color:#ffc2c2}
.tp-link{color:#ffc928;margin-left:10px}
.tp-upi{font-size:16px}.tp-qr{max-width:220px;height:auto;border-radius:10px;background:#fff;padding:8px;display:block;margin:8px 0}
.tp-tx .tp-ri span{display:block}
.tp-st{font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;background:#333;color:#ddd;white-space:nowrap}
.st-approved,.st-done{background:#1f6b4c;color:#dfffee}.st-rejected{background:#7a2525;color:#ffe0e0}.st-pending{background:#5a4505;color:#ffe9a8}
.tp-chipbal{background:#ffc928;color:#111;font-weight:700;font-size:13px;padding:7px 12px;border-radius:6px;text-decoration:none}
.tp-create:disabled,.tp-ybtn:disabled{opacity:.5;cursor:not-allowed}
.tp-main .tp-gold h1{color:#1a1200;font-size:21px}
/* 1.1: wallet card, cart icon, panel page */
.tp-hr{display:flex;align-items:center;gap:8px}
.tp-cart{position:relative;display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;background:#1f1f1f}
.tp-cart svg{width:20px;height:20px;fill:none;stroke:#ffc928;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tp-cart i{position:absolute;top:-5px;right:-5px;background:#e5484d;color:#fff;font-style:normal;font-size:11px;font-weight:700;min-width:17px;height:17px;line-height:17px;text-align:center;border-radius:9px;padding:0 3px}
.tp-wcard{display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(135deg,#ffd54a,#f3a712 60%,#e08e00);color:#1a1200;border-radius:16px;padding:16px 14px;margin-bottom:14px}
.tp-wm{text-align:center}.tp-wm span{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.tp-wm b{display:block;font-size:28px;font-weight:800;line-height:1.2}
.tp-wb{display:flex;flex-direction:column;align-items:center;gap:4px;color:#1a1200;text-decoration:none;font-size:11px;font-weight:800;text-transform:uppercase}
.tp-wb i{display:flex;width:38px;height:38px;border-radius:50%;background:#141414;color:#ffc928;font-style:normal;font-size:24px;align-items:center;justify-content:center;line-height:1}
.tp-pv h1{font-size:18px;margin:0}
.tp-pvhead{display:flex;align-items:center;gap:12px;background:#1b1b1b;border:1px solid #2a2a2a;border-radius:14px;padding:12px;margin:10px 0 14px}
.tp-pvhead .tp-ri span{color:#aaa;font-size:13px}
.tp-seg{display:grid;grid-template-columns:1fr 1fr;background:#2a2410;border-radius:999px;padding:4px;margin-bottom:14px}
.tp-seg button{border:0;background:none;color:#e9d9a6;font:inherit;font-size:14px;padding:10px;border-radius:999px;cursor:pointer}
.tp-seg button[aria-selected=true]{background:#ffc928;color:#111;font-weight:700}
.tp-pv label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:12px 0 6px}
.tp-pv input{width:100%;box-sizing:border-box;background:#1b1b1b;border:1px solid #2f2f2f;color:#fff;border-radius:12px;padding:13px 14px;font-size:16px}
.tp-pv input:focus{outline:2px solid #ffc928;border-color:#ffc928}
.tp-msg.err{color:#ff7b7f}.tp-msg.ok{color:#ffc928}.tp-msg{font-size:13px;margin:6px 2px 0;min-height:1em}
.tp-calc{background:#1b1b1b;border:1px solid #2a2a2a;border-radius:16px;padding:16px;margin:16px 0}
.tp-calc .tp-pill{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ddd}
.tp-calc>b{display:block;font-size:30px;color:#ffc928;margin:8px 0 2px}
.tp-calc>span{color:#ffc928;font-size:13px}
.tp-calc2{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #2a2a2a;margin-top:14px;padding-top:12px}
.tp-calc2 span{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#bbb}.tp-calc2 b{color:#ffc928;font-size:17px}
.tp-rc{background:#1b1b1b;border:1px solid #2a2a2a;border-radius:14px;padding:12px 14px;margin-bottom:14px}
.tp-rc summary{cursor:pointer;font-weight:700}
.tp-rc .tp-h{background:#ffc928;color:#111;font-weight:800;text-transform:uppercase;font-size:12px;letter-spacing:.08em;border-radius:8px;padding:8px 10px;margin:12px 0 6px}
.tp-pvbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.tp-pvbtns button{font:inherit;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:14px 8px;border-radius:12px;cursor:pointer}
.tp-btn2o{background:none;border:2px solid #ffc928;color:#ffc928}
.tp-pvbtns .tp-ybtn{border:0}
.tp-pv .tp-msg{border:0;padding:0;background:none}
.tp-hr .tp-hbtn{padding:7px 9px;font-size:12px}
.tp-hd .tp-logo img{max-width:150px;height:auto}
.tp-hd .tp-logo img{max-width:122px}
.tp-ttabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 14px}
.tp-ttabs button{font:inherit;font-weight:700;padding:12px 8px;border-radius:10px;border:0;background:#fff;color:#111;cursor:pointer}
.tp-ttabs button[aria-selected=true]{background:#ffc928}
.tp-tpanel .tp-card .tp-search{display:block;width:100%;box-sizing:border-box;margin:10px 0 0}
.tp-tpanel select.tp-search{appearance:auto}
.tp-auth .tp-card{max-width:520px;margin:0 auto}
.tp-mob{display:flex;align-items:stretch;border:1px solid #333;border-radius:10px;background:#0e0e0e;overflow:hidden}
.tp-mob .tp-cc{display:flex;align-items:center;padding:0 12px;border-right:1px solid #333;color:#ddd;white-space:nowrap;font-size:15px}
.tp-card .tp-mob input{border:0;border-radius:0}
.tp-pw{position:relative}.tp-pw input{padding-right:44px}
.tp-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:0;font-size:18px;cursor:pointer;opacity:.75}
.tp-wide{display:block;width:100%;text-align:center;border:0;font:inherit;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:13px;cursor:pointer;margin-top:10px}
.tp-c{text-align:center}
.tp-white{background:#fff!important;color:#111!important}
.tp-wabtn{background:#25d366!important;color:#fff!important}
.tp-link.tp-wide{background:none;border:0;color:#ffc928;text-transform:none;letter-spacing:0;font-weight:600}
