:root{--bg: #0A0A0A;--bg-page: #0E0E0E;--surface: #161616;--surface-2: #1E1E1E;--sidebar: #060606;--border: #2A2A2A;--border-soft: #1C1C1C;--text: #EAE7DE;--text-muted: #9B9B9B;--white: #ffffff;--gold: #E0A43C;--gold-deep: #C9902F;--red: #C8102E;--green: #1E8A4C;--cyan: var(--gold);--blue: #3B82F6;--radius: 14px;--radius-sm: 10px;--shadow: 0 8px 30px rgba(0, 0, 0, .28);--font: "Inter", system-ui, Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);background:var(--bg-page);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}h1,h2,h3,h4{margin:0;color:var(--white);font-weight:700}input,select,textarea{font-family:inherit}:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:10px 18px;font-weight:600;font-size:14px;min-height:42px;transition:all .15s ease;white-space:nowrap}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--gold);color:#0e0e0e}.btn-primary:hover:not(:disabled){background:var(--gold-deep);transform:translateY(-1px)}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text)}.btn-ghost:hover:not(:disabled){background:var(--surface)}.btn-danger{background:transparent;border-color:var(--red);color:#ff6b7d}.btn-danger:hover:not(:disabled){background:var(--red);color:#fff}.btn-sm{min-height:34px;padding:6px 12px;font-size:13px}.btn-icon{width:36px;height:36px;padding:0;border-radius:10px;background:transparent;border:1px solid var(--border);color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.btn-icon:hover{background:var(--surface);color:var(--white)}.btn-icon.danger:hover{background:var(--red);border-color:var(--red);color:#fff}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:600;color:var(--text-muted)}.input,.select,.textarea{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);padding:11px 13px;font-size:14px;width:100%;min-height:44px;transition:border-color .15s ease}.input:focus,.select:focus,.textarea:focus{border-color:var(--cyan);outline:none}.textarea{min-height:90px;resize:vertical}.field-error{color:#ff6b7d;font-size:12px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;border:1px solid transparent}.badge-green{background:#1e8a4c2e;color:#4ade80;border-color:#1e8a4c66}.badge-red{background:#c8102e2e;color:#ff6b7d;border-color:#c8102e66}.badge-gold{background:#e0a43c2e;color:var(--gold);border-color:#e0a43c66}.badge-muted{background:#ffffff0f;color:var(--text-muted);border-color:var(--border)}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;background:var(--sidebar);border-right:1px solid var(--border-soft);display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:40}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:22px 20px}.sidebar-brand img{height:40px}.sidebar-brand span{font-weight:800;letter-spacing:.02em;color:#fff;font-size:18px}.nav{display:flex;flex-direction:column;gap:2px;padding:8px 12px;flex:1;overflow-y:auto}.nav-section{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);padding:14px 12px 6px}.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;color:var(--text-muted);font-weight:500;font-size:14px;transition:all .15s ease}.nav-item:hover{background:#ffffff0d;color:var(--text)}.nav-item.active{background:var(--gold);color:#0e0e0e}.nav-item .soon{margin-left:auto;font-size:10px;color:var(--text-muted)}.sidebar-foot{padding:14px;border-top:1px solid var(--border-soft)}.main{flex:1;margin-left:250px;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;padding:14px 26px;border-bottom:1px solid var(--border-soft);background:#23252799;position:sticky;top:0;z-index:30;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.topbar h1{font-size:20px}.topbar-spacer{flex:1}.user-chip{display:flex;align-items:center;gap:10px;color:var(--text-muted);font-size:14px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--gold);color:#0e0e0e;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.content{padding:26px;max-width:1280px;width:100%}.menu-btn{display:none}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:8px}.stat-top{display:flex;align-items:center;justify-content:space-between}.stat-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center}.stat-label{color:var(--text-muted);font-size:13px;font-weight:500}.stat-value{font-size:28px;font-weight:800;color:#fff;line-height:1}.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border)}table{width:100%;border-collapse:collapse;background:var(--surface)}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);padding:13px 16px;border-bottom:1px solid var(--border);background:var(--surface-2);white-space:nowrap}td{padding:12px 16px;border-bottom:1px solid var(--border-soft);font-size:14px;vertical-align:middle}tr:last-child td{border-bottom:none}tr:hover td{background:#ffffff05}.thumb{width:44px;height:54px;border-radius:8px;object-fit:cover;background:var(--bg);border:1px solid var(--border)}.thumb-fallback{display:grid;place-items:center;color:var(--text-muted);font-size:10px;font-weight:700}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.search{position:relative;flex:1;min-width:220px}.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted)}.search input{padding-left:38px}.toast-wrap{position:fixed;bottom:22px;right:22px;z-index:100;display:flex;flex-direction:column;gap:10px}.toast{min-width:260px;max-width:380px;padding:13px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;font-size:14px;animation:toastIn .2s ease}.toast.success{border-left:4px solid var(--green)}.toast.error{border-left:4px solid var(--red)}.toast.info{border-left:4px solid var(--cyan)}@keyframes toastIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:none}}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:90;display:grid;place-items:center;padding:20px;animation:fade .15s ease}@keyframes fade{0%{opacity:0}to{opacity:1}}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;max-width:420px;width:100%;box-shadow:var(--shadow)}.modal h3{margin-bottom:8px}.modal p{color:var(--text-muted);font-size:14px;margin:0 0 20px}.modal-actions{display:flex;gap:10px;justify-content:flex-end}.skeleton{background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%);background-size:200% 100%;animation:shimmer 1.3s infinite;border-radius:8px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 30% 20%,#1a1a1a,var(--bg-page))}.login-card{width:100%;max-width:400px;padding:34px}.login-card .logo{display:grid;place-items:center;margin-bottom:8px}.login-card .logo img{height:76px}.login-card h2{text-align:center;margin-bottom:4px}.login-card .sub{text-align:center;color:var(--text-muted);font-size:14px;margin-bottom:24px}.login-card form{display:flex;flex-direction:column;gap:16px}.login-hint{text-align:center;font-size:12px;color:var(--text-muted);margin-top:16px}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.muted{color:var(--text-muted)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.empty{text-align:center;padding:40px;color:var(--text-muted)}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:16px;flex-wrap:wrap}.form-grid{display:grid;grid-template-columns:1fr 360px;gap:18px;align-items:start}.form-grid .col{display:flex;flex-direction:column;gap:18px;min-width:0}.form-card{padding:20px;display:flex;flex-direction:column;gap:14px}.form-card h3{font-size:16px}.stack{display:flex;flex-direction:column;gap:10px}.line-item{display:flex;gap:10px;align-items:center}.line-item .input{flex:1}.chip{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .15s ease}.chip:hover:not(:disabled){border-color:var(--cyan);color:#fff}.chip:disabled{opacity:.4;cursor:not-allowed}.color-input{width:48px;height:44px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--bg);cursor:pointer}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border-soft);font-size:14px;cursor:pointer}.switch-row:last-child{border-bottom:none}.switch-row input{width:18px;height:18px;accent-color:var(--gold);cursor:pointer}.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:30px 20px;border:2px dashed var(--border);border-radius:var(--radius);color:var(--text-muted);cursor:pointer;transition:all .15s ease}.dropzone:hover,.dropzone.over{border-color:var(--cyan);background:#22e4e40d;color:var(--text)}.dropzone strong{color:var(--white)}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:14px}.gallery-item{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--bg)}.gallery-item.primary{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}.gallery-item img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}.primary-tag{position:absolute;top:6px;left:6px;background:var(--gold);color:#0e0e0e;font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px;display:inline-flex;align-items:center;gap:3px}.gallery-actions{position:absolute;inset:auto 0 0 0;display:flex;justify-content:center;gap:4px;padding:6px;background:linear-gradient(transparent,#000000bf);opacity:0;transition:opacity .15s ease}.gallery-item:hover .gallery-actions{opacity:1}.gallery-actions .btn-icon{width:30px;height:30px;background:#00000080;border-color:#ffffff40;color:#fff}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal.modal-lg{max-width:560px}.modal .stack{max-height:65vh;overflow-y:auto;padding-right:4px}.imgfield-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px dashed var(--border);border-radius:12px;color:var(--text-muted);cursor:pointer;text-align:center;padding:12px;transition:all .15s ease;width:100%}.imgfield-drop:hover,.imgfield-drop.over{border-color:var(--cyan);background:#22e4e40d;color:var(--text)}.imgfield-drop span{font-size:12px}.imgfield-preview{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--bg)}.imgfield-preview img{width:100%;height:100%;object-fit:cover;display:block}.imgfield-remove{position:absolute;top:6px;right:6px;background:#0000008c;border-color:#ffffff40;color:#fff}@media (max-width: 1000px){.form-grid{grid-template-columns:1fr}}@media (max-width: 900px){.sidebar{transform:translate(-100%);transition:transform .2s ease}.sidebar.open{transform:none}.main{margin-left:0}.menu-btn{display:inline-flex}.stat-grid{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}}@media (max-width: 560px){.stat-grid{grid-template-columns:1fr}.content{padding:16px}.hide-mobile{display:none}}
