:root{
  --atch-emerald:#075c4d;
  --atch-emerald-2:#0b7a65;
  --atch-emerald-soft:#eaf6f2;
  --atch-pomegranate:#a51d3d;
  --atch-gold:#c9a24f;
  --atch-ink:#13231f;
  --atch-muted:#6b7b76;
  --atch-border:#dfe9e5;
  --atch-surface:#ffffff;
  --atch-bg:#f4f8f6;
  --atch-radius:22px;
  --atch-shadow:0 24px 70px rgba(12,55,46,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.atch-standalone-page{margin:0!important;background:var(--atch-bg)!important;color:var(--atch-ink);font-family:Tahoma,"Vazirmatn","Segoe UI",sans-serif;line-height:1.8}
body.atch-standalone-page #wpadminbar{direction:ltr}
a{color:inherit}
.atch-shell{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#f8fbfa 0,#f3f8f6 46%,#eef5f2 100%)}
.atch-shell-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(10,91,75,.08)}
.admin-bar .atch-shell-header{top:32px}
.atch-shell-header__inner{max-width:1480px;margin:auto;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.atch-shell-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.atch-shell-brand__mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:22px;background:linear-gradient(145deg,var(--atch-emerald-2),var(--atch-emerald));box-shadow:0 12px 28px rgba(7,92,77,.25)}
.atch-shell-brand span:last-child{display:grid;line-height:1.35}
.atch-shell-brand strong{font-size:16px}
.atch-shell-brand small{font-size:12px;color:var(--atch-muted)}
.atch-shell-nav{display:flex;align-items:center;gap:8px}
.atch-shell-nav a{padding:9px 14px;border-radius:12px;text-decoration:none;font-size:14px;color:#3a4b46}
.atch-shell-nav a:hover{background:var(--atch-emerald-soft);color:var(--atch-emerald)}
.atch-shell-nav__primary{background:var(--atch-pomegranate)!important;color:#fff!important;box-shadow:0 10px 24px rgba(165,29,61,.18)}
.atch-shell-main{width:100%;flex:1;padding:42px 24px 70px}
.atch-page-content{width:100%;max-width:1480px;margin:auto}
.atch-shell-footer{border-top:1px solid var(--atch-border);padding:24px 28px;display:flex;justify-content:space-between;gap:20px;color:var(--atch-muted);font-size:13px;background:#fff}

/* Auth */
.atch-auth-wrap{min-height:calc(100vh - 230px);display:grid;place-items:center;padding:24px;position:relative;overflow:hidden}
.atch-auth-wrap:before,.atch-auth-wrap:after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}
.atch-auth-wrap:before{width:440px;height:440px;background:radial-gradient(circle,rgba(11,122,101,.18),transparent 65%);right:-160px;top:-140px}
.atch-auth-wrap:after{width:360px;height:360px;background:radial-gradient(circle,rgba(201,162,79,.18),transparent 67%);left:-140px;bottom:-120px}
.atch-auth-card{position:relative;z-index:2;width:min(100%,520px);background:rgba(255,255,255,.96);border:1px solid rgba(10,91,75,.11);border-radius:30px;padding:36px;box-shadow:var(--atch-shadow)}
.atch-register-card{width:min(100%,680px)}
.atch-brand-mark{width:64px;height:64px;margin:0 auto 18px;border-radius:21px;display:grid;place-items:center;background:linear-gradient(145deg,var(--atch-gold),#efd083);color:var(--atch-emerald);font-size:28px;font-weight:900;box-shadow:0 14px 32px rgba(201,162,79,.28)}
.atch-auth-card h1{text-align:center;margin:0;font-size:30px;line-height:1.4}
.atch-auth-card>p{text-align:center;color:var(--atch-muted);margin:8px 0 26px}
.atch-auth-card form{display:grid;gap:15px}
.atch-auth-card label,.atch-panel label{display:grid;gap:7px;font-weight:700;font-size:13px;color:#32443f}
.atch-auth-card input,.atch-panel input,.atch-panel select,.atch-panel textarea{width:100%;min-height:50px;padding:11px 14px;border:1px solid var(--atch-border);border-radius:14px;background:#fff;color:var(--atch-ink);font:inherit;outline:none;transition:.2s}
.atch-panel textarea{min-height:120px;resize:vertical}
.atch-auth-card input:focus,.atch-panel input:focus,.atch-panel select:focus,.atch-panel textarea:focus{border-color:var(--atch-emerald-2);box-shadow:0 0 0 4px rgba(11,122,101,.1)}
.atch-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.atch-check{display:flex!important;align-items:center;gap:9px!important;font-weight:500!important}
.atch-check input{width:18px!important;min-height:18px!important}
.atch-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 20px;border-radius:14px;text-decoration:none;border:0;font:inherit;font-weight:800;cursor:pointer}
.atch-btn-primary{background:linear-gradient(135deg,var(--atch-emerald-2),var(--atch-emerald));color:#fff;box-shadow:0 12px 26px rgba(7,92,77,.22)}
.atch-btn-primary:hover{transform:translateY(-1px)}
.atch-btn-ghost{border:1px solid var(--atch-border);background:#fff;color:var(--atch-emerald)}
.atch-auth-footer{display:flex;justify-content:space-between;gap:14px;margin-top:20px;padding-top:18px;border-top:1px solid var(--atch-border);font-size:13px}
.atch-auth-footer a{color:var(--atch-emerald);text-decoration:none;font-weight:700}
.atch-alert{padding:12px 15px;border-radius:13px;margin:14px 0;font-size:13px}
.atch-success{background:#eaf8f1;color:#15633f;border:1px solid #c7ead7}
.atch-error{background:#fff0f3;color:#9b1836;border:1px solid #f3c7d1}
.atch-guest-gate{max-width:720px;margin:60px auto;padding:46px;text-align:center;background:#fff;border:1px solid var(--atch-border);border-radius:28px;box-shadow:var(--atch-shadow)}
.atch-guest-gate .atch-btn{margin:8px}

/* Hub */
.atch-hub{width:100%;display:flex;align-items:stretch;min-height:720px;background:#fff;border:1px solid rgba(10,91,75,.1);border-radius:30px;box-shadow:var(--atch-shadow);overflow:hidden;direction:rtl}
.atch-sidebar{width:300px;flex:0 0 300px;background:linear-gradient(180deg,#064b3f 0%,#073b33 100%);color:#fff;padding:26px 20px;display:flex;flex-direction:column;position:relative}
.atch-sidebar:after{content:"";position:absolute;inset:auto -70px -80px auto;width:220px;height:220px;border-radius:50%;background:rgba(201,162,79,.08)}
.atch-user-card{position:relative;z-index:1;text-align:center;padding:14px 10px 24px;border-bottom:1px solid rgba(255,255,255,.13)}
.atch-avatar{width:72px;height:72px;margin:0 auto 12px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#efd083,var(--atch-gold));color:var(--atch-emerald);font-size:28px;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.atch-user-card strong{display:block;font-size:17px}
.atch-user-card small{display:block;color:rgba(255,255,255,.65);font-size:12px;word-break:break-all;margin-top:4px}
.atch-sidebar nav{display:grid;gap:7px;padding-top:20px;position:relative;z-index:1}
.atch-sidebar nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 14px;border-radius:14px;text-decoration:none;color:rgba(255,255,255,.82);font-weight:700;font-size:14px;transition:.2s}
.atch-sidebar nav a span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.08);font-size:13px}
.atch-sidebar nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.atch-sidebar nav a.is-active{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset -3px 0 0 var(--atch-gold)}
.atch-logout{margin-top:auto;position:relative;z-index:1;padding:13px 14px;border-radius:14px;text-decoration:none;color:#ff9daf;font-weight:800;background:rgba(165,29,61,.12)}
.atch-main{min-width:0;flex:1;padding:30px 34px 38px;background:linear-gradient(180deg,#fbfdfc,#f4f8f6)}
.atch-mobile-head{display:none}
.atch-page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}
.atch-page-title span{font-size:12px;color:var(--atch-emerald-2);font-weight:800}
.atch-page-title h1{margin:2px 0 0;font-size:30px;line-height:1.35}
.atch-date{padding:10px 14px;background:#fff;border:1px solid var(--atch-border);border-radius:13px;color:var(--atch-muted);font-size:13px}
.atch-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.atch-stat{min-height:150px;padding:20px;border-radius:20px;background:#fff;border:1px solid var(--atch-border);display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 10px 30px rgba(13,58,49,.06)}
.atch-stat span{color:#4e625c;font-weight:700;font-size:13px}
.atch-stat strong{font-size:36px;color:var(--atch-emerald);line-height:1}
.atch-stat small{color:var(--atch-muted);font-size:12px}
.atch-panel-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:20px}
.atch-panel{background:#fff;border:1px solid var(--atch-border);border-radius:22px;padding:24px;box-shadow:0 12px 32px rgba(14,62,53,.05);overflow:hidden}
.atch-panel h2{margin:0 0 18px;font-size:19px}
.atch-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.atch-actions a{min-height:84px;padding:14px;border:1px solid var(--atch-border);border-radius:16px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:var(--atch-emerald);font-weight:800;background:#fbfdfc}
.atch-actions a:hover{background:var(--atch-emerald-soft);border-color:#b9ddd3}
.atch-trip-card{background:linear-gradient(145deg,var(--atch-emerald),#04382f);color:#fff;display:flex;flex-direction:column;justify-content:center;min-height:240px;position:relative}
.atch-trip-card:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:rgba(201,162,79,.15);left:-55px;bottom:-85px}
.atch-trip-card span{color:#efd083;font-size:13px;font-weight:800}
.atch-trip-card h2{font-size:25px;line-height:1.55;margin:8px 0 20px;position:relative;z-index:1}
.atch-trip-card a{align-self:flex-start;padding:10px 18px;border-radius:12px;background:var(--atch-gold);color:#173c34;text-decoration:none;font-weight:900;position:relative;z-index:1}
.atch-table-wrap{overflow:auto;border:1px solid var(--atch-border);border-radius:16px}
.atch-table-wrap table{width:100%;border-collapse:collapse;min-width:700px}
.atch-table-wrap th,.atch-table-wrap td{padding:14px 16px;border-bottom:1px solid var(--atch-border);text-align:right;font-size:13px}
.atch-table-wrap th{background:#f6faf8;color:#425750}
.atch-status{display:inline-flex;padding:5px 10px;border-radius:999px;background:var(--atch-emerald-soft);color:var(--atch-emerald);font-size:12px;font-weight:800}
.atch-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.atch-form-grid .atch-full{grid-column:1/-1}
.atch-list{display:grid;gap:12px}
.atch-list-item{padding:16px;border:1px solid var(--atch-border);border-radius:16px;background:#fff}

@media (max-width:1100px){
 .atch-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .atch-panel-grid{grid-template-columns:1fr}
 .atch-sidebar{width:260px;flex-basis:260px}
}
@media (max-width:820px){
 .admin-bar .atch-shell-header{top:46px}
 .atch-shell-header__inner{padding:11px 16px}
 .atch-shell-nav a:not(.atch-shell-nav__primary){display:none}
 .atch-shell-main{padding:20px 12px 44px}
 .atch-hub{border-radius:22px;min-height:700px;overflow:visible;position:relative}
 .atch-sidebar{position:fixed;right:-320px;top:0;bottom:0;z-index:9999;width:290px;transition:.25s;padding-top:80px;box-shadow:-25px 0 60px rgba(0,0,0,.25)}
 .atch-menu-open .atch-sidebar{right:0}
 .atch-main{padding:18px 16px 28px;border-radius:22px}
 .atch-mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
 .atch-mobile-head button{width:44px;height:44px;border:1px solid var(--atch-border);border-radius:13px;background:#fff;font-size:20px}
 .atch-page-title h1{font-size:24px}
 .atch-date{display:none}
 .atch-stat-grid{grid-template-columns:1fr 1fr;gap:10px}
 .atch-stat{min-height:125px;padding:15px}
 .atch-stat strong{font-size:29px}
 .atch-actions{grid-template-columns:1fr}
 .atch-form-grid,.atch-grid-2{grid-template-columns:1fr}
 .atch-shell-footer{flex-direction:column;text-align:center}
}
@media (max-width:520px){
 .atch-auth-card{padding:24px 18px;border-radius:22px}
 .atch-auth-card h1{font-size:24px}
 .atch-stat-grid{grid-template-columns:1fr}
 .atch-page-title{align-items:flex-start}
 .atch-page-title h1{font-size:22px}
}
