/*
Theme Name: Trenexa
Theme URI: https://trenexa.app/
Author: Trenexa
Description: Premium app-style frontend for Trenexa fitness platform.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 8.0
*/
:root{--tx-navy:#071a33;--tx-blue:#146cff;--tx-cyan:#25c7ff;--tx-bg:#f5f7fb;--tx-card:#fff;--tx-text:#101828;--tx-muted:#667085;--tx-border:#e4e7ec;--tx-radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--tx-bg);color:var(--tx-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}.tx-shell{min-height:100vh;padding-bottom:88px}.tx-top{position:sticky;top:0;z-index:50;background:rgba(245,247,251,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(228,231,236,.75)}
.tx-top-inner{max-width:1120px;margin:auto;height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.tx-brand{font-weight:900;letter-spacing:.08em;font-size:20px}.tx-brand span{color:var(--tx-blue)}
.tx-main{max-width:1120px;margin:auto;padding:24px 20px}.tx-page-title{font-size:30px;margin:8px 0 4px;font-weight:850}.tx-sub{color:var(--tx-muted);margin:0 0 22px}
.tx-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.tx-card{background:var(--tx-card);border:1px solid var(--tx-border);border-radius:var(--tx-radius);padding:20px;box-shadow:0 10px 30px rgba(16,24,40,.05)}.tx-card h3{margin:0 0 8px}.tx-card p{color:var(--tx-muted)}
.tx-hero{background:linear-gradient(135deg,var(--tx-navy),#123d79);color:#fff;border-radius:28px;padding:28px;position:relative;overflow:hidden;margin-bottom:18px}.tx-hero:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;top:-120px;background:rgba(37,199,255,.16)}
.tx-actions{display:flex;flex-wrap:wrap;gap:10px}.tx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;padding:12px 17px;font-weight:750;cursor:pointer;background:var(--tx-blue);color:#fff}.tx-btn.secondary{background:#eef4ff;color:var(--tx-blue)}.tx-btn.ghost{background:transparent;color:var(--tx-text);border:1px solid var(--tx-border)}
.tx-stat{font-size:26px;font-weight:850}.tx-label{font-size:13px;color:var(--tx-muted)}.tx-list{display:grid;gap:10px}.tx-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--tx-border)}.tx-row:last-child{border-bottom:0}
.tx-form{max-width:520px;margin:50px auto}.tx-form .tx-card{padding:28px}.tx-field{display:grid;gap:7px;margin:13px 0}.tx-field label{font-weight:700;font-size:14px}.tx-field input,.tx-field select{width:100%;padding:13px 14px;border:1px solid var(--tx-border);border-radius:13px;background:#fff;outline:none}.tx-field input:focus{border-color:var(--tx-blue);box-shadow:0 0 0 3px rgba(20,108,255,.1)}
.tx-alert{padding:12px 14px;border-radius:13px;background:#fff4ed;color:#9a3412;margin:12px 0}.tx-success{background:#ecfdf3;color:#027a48}
.tx-nav{position:fixed;z-index:100;bottom:0;left:0;right:0;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--tx-border)}.tx-nav-inner{max-width:720px;margin:auto;display:flex;justify-content:space-around;padding:8px 10px}.tx-nav a{font-size:11px;font-weight:750;color:#667085;text-align:center;padding:7px 12px;border-radius:12px}.tx-nav a.active{color:var(--tx-blue);background:#eef4ff}.tx-icon{font-size:20px;display:block;margin-bottom:2px}
.tx-map{height:360px;border-radius:20px;background:#dce7f4;overflow:hidden}.tx-map #trenexa-map{height:100%}.tx-chart{min-height:260px}
.tx-exercises{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tx-exercise{padding:0;overflow:hidden}.tx-exercise img{width:100%;height:170px;object-fit:cover;background:#eef2f6}.tx-exercise-body{padding:15px}
@media(max-width:850px){.tx-grid{grid-template-columns:repeat(2,1fr)}.tx-exercises{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.tx-main{padding:18px 14px}.tx-page-title{font-size:25px}.tx-grid{grid-template-columns:1fr 1fr;gap:10px}.tx-card{padding:15px;border-radius:18px}.tx-exercises{grid-template-columns:1fr}.tx-top-inner{padding:0 14px}}
