:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#15181e;
  --muted:#717784;
  --line:#e5e7ec;
  --dark:#121419;
  --gold:#f1b90b;
  --gold2:#ffd34f;
  --green:#0e9f6e;
  --red:#dc4c4c;
  --shadow:0 16px 44px rgba(18,20,25,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:260px;background:var(--dark);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:24px 18px;display:flex;flex-direction:column;z-index:20}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px;padding:0 8px 22px}
.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--gold);color:#111;display:grid;place-items:center;font-size:13px}
.sidebar-user{display:flex;gap:12px;align-items:center;padding:16px 10px;margin-bottom:12px;background:#1c1f26;border:1px solid #2a2e37;border-radius:16px}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#111;font-weight:800}
.sidebar-user strong,.sidebar-user small{display:block}
.sidebar-user small{color:#9da3ae;margin-top:3px}
.side-nav{display:grid;gap:5px}
.side-nav a{padding:12px 13px;border-radius:11px;color:#c8ccd4;font-weight:650;font-size:14px}
.side-nav a:hover,.side-nav a.active{background:#252932;color:#fff}
.side-nav a.active{box-shadow:inset 3px 0 0 var(--gold)}
.sidebar-help{margin-top:auto;background:#1b1e24;border:1px solid #292d35;border-radius:16px;padding:16px}
.sidebar-help small,.sidebar-help strong{display:block}
.sidebar-help small{color:#8e949f;margin-bottom:5px}
.sidebar-help strong{font-size:12px;word-break:break-all}
.main{margin-left:260px;min-width:0;width:calc(100% - 260px)}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:15}
.topbar small,.topbar strong{display:block}
.topbar small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.topbar strong{margin-top:2px;font-size:18px}
.top-actions{display:flex;gap:10px}
.content{padding:30px 34px 42px}
.menu-toggle{display:none;border:0;background:#f3f4f6;width:42px;height:42px;border-radius:10px}
.hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#111318,#20242c);border-radius:24px;padding:34px;color:#fff;box-shadow:var(--shadow);margin-bottom:24px}
.hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-100px;top:-130px;background:radial-gradient(circle,var(--gold) 0%,rgba(241,185,11,.05) 64%,transparent 66%)}
.hero h1{margin:6px 0 10px;font-size:34px;max-width:650px}
.hero p{max-width:670px;line-height:1.6;color:#c9cdd5}
.hero-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:11px;color:var(--gold);font-weight:800}
.btn{border:0;border-radius:11px;padding:12px 17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:var(--gold);color:#121419}
.btn-dark{background:#171a20;color:#fff}
.btn-light{background:#fff;color:#111}
.btn-outline{background:#fff;border:1px solid var(--line);color:#20232a}
.btn-danger{background:#fff1f1;color:#b82f2f;border:1px solid #ffd4d4}
.btn-sm{padding:9px 13px;font-size:13px}
.btn-block{width:100%}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 22px rgba(18,20,25,.035)}
.stat-card small{color:var(--muted);font-weight:700}
.stat-card h3{font-size:28px;margin:10px 0 5px}
.stat-card .trend{font-size:12px;color:var(--green)}
.grid-2{display:grid;grid-template-columns:1.35fr .85fr;gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 10px 28px rgba(18,20,25,.035)}
.card-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.card-header h2,.card-header h3{margin:0}
.muted{color:var(--muted)}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);font-size:14px}
th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800;text-transform:capitalize}
.badge-pending{background:#fff7d6;color:#8d6900}
.badge-verified,.badge-active,.badge-paid,.badge-completed,.badge-approved{background:#e5f8f1;color:#087653}
.badge-rejected,.badge-canceled{background:#fff0f0;color:#bd3b3b}
.property-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.property-card{background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden}
.property-image{height:180px;background:linear-gradient(135deg,#232733,#3b414e);display:flex;align-items:end;padding:18px;color:#fff;position:relative}
.property-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.property-image .overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(0,0,0,.72))}
.property-image strong{position:relative;z-index:2;font-size:20px}
.property-body{padding:18px}
.property-meta{display:flex;justify-content:space-between;gap:12px;margin:12px 0;color:var(--muted);font-size:13px}
.property-body p{font-size:14px;color:var(--muted);line-height:1.55}
.form-card{max-width:850px;margin:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group{display:grid;gap:7px}
.form-group.full{grid-column:1/-1}
label{font-weight:750;font-size:13px}
input,select,textarea{width:100%;border:1px solid #dfe2e7;background:#fff;border-radius:11px;padding:13px 14px;outline:none}
input:focus,select:focus,textarea:focus{border-color:#c99b00;box-shadow:0 0 0 3px rgba(241,185,11,.15)}
textarea{min-height:120px;resize:vertical}
.help{font-size:12px;color:var(--muted)}
.crypto-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.crypto-card{border:1px solid var(--line);border-radius:15px;padding:15px;background:#fff}
.crypto-card strong,.crypto-card small{display:block}
.crypto-card small{color:var(--muted);margin:5px 0 9px}
.wallet-address{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-all;background:#f5f6f8;padding:10px;border-radius:9px}
.flash{padding:13px 15px;border-radius:11px;margin-bottom:16px;font-weight:700;font-size:14px}
.flash-success{background:#eaf9f3;color:#0b7254;border:1px solid #c6f0df}
.flash-error{background:#fff0f0;color:#ad3232;border:1px solid #ffd0d0}
.flash-info{background:#eef4ff;color:#315eaa;border:1px solid #d4e2ff}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.auth-side{background:linear-gradient(145deg,#111318,#242831);padding:64px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.auth-side h1{font-size:46px;max-width:580px;line-height:1.06;margin:24px 0}
.auth-side p{color:#c9cdd5;max-width:580px;line-height:1.7}
.auth-points{display:grid;gap:12px}
.auth-point{display:flex;gap:12px;align-items:center;color:#d9dce2}
.auth-point span{width:28px;height:28px;border-radius:8px;background:var(--gold);color:#111;display:grid;place-items:center;font-weight:900}
.auth-form-wrap{display:grid;place-items:center;padding:40px}
.auth-card{width:min(100%,480px)}
.auth-brand{font-size:24px;font-weight:900;margin-bottom:34px}
.auth-brand i{font-style:normal;color:#c79500}
.auth-card h2{font-size:32px;margin-bottom:8px}
.auth-card .sub{color:var(--muted);margin-bottom:26px}
.auth-card form{display:grid;gap:15px}
.auth-links{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#545b67}
.auth-links a{font-weight:800}
.app-footer{padding:0 34px 30px;color:#8a909b;font-size:11px;display:flex;justify-content:space-between;gap:20px}
.admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.note{background:#fff8df;border:1px solid #f6dc83;border-radius:13px;padding:14px;color:#765b00;font-size:13px;line-height:1.6}
.empty{padding:30px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}
@media(max-width:1100px){
  .stats-grid,.admin-kpis{grid-template-columns:repeat(2,1fr)}
  .property-grid{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
}
@media(max-width:900px){
  .sidebar{transform:translateX(-102%);transition:.2s}
  .sidebar.open{transform:translateX(0)}
  .main{margin-left:0;width:100%}
  .menu-toggle{display:inline-grid;place-items:center}
  .topbar{padding:0 18px}
  .content{padding:22px 18px 34px}
  .auth-page{grid-template-columns:1fr}
  .auth-side{display:none}
}
@media(max-width:680px){
  .stats-grid,.admin-kpis,.property-grid,.grid-3,.crypto-options,.form-grid{grid-template-columns:1fr}
  .hero{padding:25px 22px}
  .hero h1{font-size:29px}
  .top-actions .btn:first-child{display:none}
  .app-footer{padding:0 18px 24px;display:block}
  .app-footer span{display:block;margin-top:7px}
  .form-group.full{grid-column:auto}
}
