:root{--cge-primary:#0f172a;--cge-secondary:#1d4ed8;--cge-accent:#f59e0b;--bg:#f8fafc;--card:#ffffff;--muted:#64748b;--danger:#dc2626;--success:#16a34a;--radius:24px}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#eef4ff 0%,#f8fafc 35%,#ffffff 100%);color:#0f172a}a{text-decoration:none;color:inherit}.app-shell{min-height:100vh;padding-bottom:92px}.hero{background:radial-gradient(circle at top left,#2563eb 0,#0f172a 55%,#020617 100%);color:#fff;padding:28px 18px 30px;border-radius:0 0 32px 32px;box-shadow:0 24px 60px rgba(15,23,42,.3)}.hero-inner{max-width:1180px;margin:0 auto}.brand{display:flex;align-items:center;gap:12px}.brand img{width:48px;height:48px;border-radius:14px;background:#fff;object-fit:contain;padding:4px}.brand h1{font-size:1.35rem;margin:0}.brand p{margin:2px 0 0;color:#cbd5e1}.hero h2{font-size:2rem;margin:28px 0 8px}.hero .search{margin-top:18px;display:flex;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:10px}.search input{width:100%;border:0;background:transparent;color:#fff;font-size:1rem;outline:none}.search input::placeholder{color:#cbd5e1}.container{max-width:1180px;margin:0 auto;padding:22px 16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.card{background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:var(--radius);padding:18px;box-shadow:0 14px 40px rgba(15,23,42,.08);transition:.2s transform,.2s box-shadow}.card:hover{transform:translateY(-3px);box-shadow:0 20px 50px rgba(15,23,42,.14)}.card img.icon{width:62px;height:62px;object-fit:contain;border-radius:18px;background:#eff6ff;padding:8px}.card h3{margin:12px 0 6px;font-size:1.05rem}.card p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:#dbeafe;color:#1e40af;font-weight:700;font-size:.75rem}.bottom-nav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:20;width:min(720px,calc(100% - 16px));background:rgba(15,23,42,.94);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);border-radius:28px;padding:6px 4px;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 18px 50px rgba(2,6,23,.35)}#menu-drawer-btn{display:none}.bottom-nav a{color:#cbd5e1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.65rem;padding:6px 2px;border-radius:20px}.bottom-nav a.active,.bottom-nav a:hover{background:#2563eb;color:#fff}.notice{border-left:5px solid var(--cge-accent);background:#fff7ed}.notice.urgente{border-left-color:#dc2626;background:#fef2f2}.notice.promo{border-left-color:#2563eb;background:#eff6ff}.visor{height:100vh;display:flex;flex-direction:column;background:#020617;color:#fff}.visor-top{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#0f172a;border-bottom:1px solid rgba(255,255,255,.1)}.visor-top .title{font-weight:800;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{border:0;border-radius:14px;padding:10px 14px;font-weight:800;cursor:pointer;background:#2563eb;color:#fff}.btn.secondary{background:#e2e8f0;color:#0f172a}.btn.danger{background:#dc2626}.btn.success{background:#16a34a}.visor-frame{flex:1;width:100%;border:0;background:#fff}.fallback{max-width:620px;margin:auto;text-align:center;padding:32px}.fallback .box{background:#fff;color:#0f172a;border-radius:28px;padding:28px}.admin{display:flex;min-height:100vh;background:#f8fafc}.sidebar{width:270px;background:#0f172a;color:#cbd5e1;padding:20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.sidebar-menu-wrapper{flex:1;overflow-y:auto;margin-right:-10px;padding-right:10px}.sidebar-menu-wrapper::-webkit-scrollbar{width:4px}.sidebar-menu-wrapper::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:4px}.sidebar-section-title{font-size:0.68rem;text-transform:uppercase;letter-spacing:0.08em;color:#64748b;font-weight:800;margin:16px 0 6px 12px}.sidebar a{display:block;padding:11px 12px;border-radius:14px;color:#cbd5e1;margin-bottom:4px}.sidebar a:hover,.sidebar a.active{background:#1d4ed8;color:#fff}.admin-main{flex:1;padding:24px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.table-wrap{overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 8px 30px rgba(15,23,42,.06)}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:.92rem}th{background:#f1f5f9;color:#334155}.form{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:22px;max-width:980px}.field{margin-bottom:14px}.field label{display:block;font-weight:800;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:11px;font:inherit}.field textarea{min-height:110px}.actions{display:flex;gap:8px;flex-wrap:wrap}.alert{padding:12px 14px;border-radius:16px;margin-bottom:16px;font-weight:700}.alert.error{background:#fee2e2;color:#991b1b}.alert.success{background:#dcfce7;color:#166534}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.kpi{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 8px 30px rgba(15,23,42,.06)}.kpi strong{font-size:2rem;display:block}.auth-bg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#2563eb,#020617)}.auth-card{width:min(430px,calc(100% - 24px));background:#fff;border-radius:28px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.35)}@media(max-width:850px){.admin{display:block}.sidebar{position:relative;width:100%;height:auto;display:block;padding:15px}.sidebar-menu-wrapper{overflow-y:visible;height:auto}.admin-main{padding:14px}.hero h2{font-size:1.55rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:14px}.bottom-nav{grid-template-columns:repeat(5,1fr)}#menu-drawer-btn{display:flex}}

/* Launcher iOS/Android-like grid */
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 24px 16px;
  justify-content: center;
  padding: 10px 0;
}
.launcher-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.launcher-icon-wrap {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.launcher-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.launcher-title {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.launcher-item:hover .launcher-icon-wrap {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 20px 35px rgba(29, 78, 216, 0.18), 0 6px 12px rgba(29, 78, 216, 0.08);
}
.launcher-item:hover .launcher-title {
  color: #1d4ed8;
}

/* Compact header styling */
.hero-compact {
  background: radial-gradient(circle at top left, #2563eb 0, #0f172a 65%, #020617 100%);
  color: #fff;
  padding: 20px 16px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}
.hero-compact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-compact img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.brand-compact h1 {
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
}
.brand-compact h2 {
  font-size: 0.95rem;
  margin: 2px 0 0;
  color: #93c5fd;
  font-weight: 700;
}
.search-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 8px 12px;
  width: 320px;
  max-width: 100%;
}
.search-compact input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
}
.search-compact input::placeholder {
  color: #cbd5e1;
}

@media(max-width: 600px) {
  .launcher-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
  }
  .launcher-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 15px;
    padding: 8px;
  }
  .launcher-title {
    font-size: 0.75rem;
    max-width: 75px;
  }
  .hero-compact {
    padding: 16px 12px;
  }
  .search-compact {
    width: 100%;
  }
}

/* Global Header */
.global-header {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
}
.global-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.global-header .icon-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.global-header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.global-header .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}
.global-header .logo-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
}

/* Side Drawers */
.side-drawer, .notif-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background: #ffffff;
  z-index: 50;
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media(max-width: 600px) {
  .notif-drawer {
    width: 100vw !important;
  }
}
.side-drawer {
  left: 0;
  transform: translateX(-100%);
}
.notif-drawer {
  right: 0;
  transform: translateX(100%);
  background: #f8fafc;
}
.side-drawer.open, .notif-drawer.open {
  transform: translateX(0);
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  display: none;
}
.drawer-overlay.open {
  display: block;
}
.drawer-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #fff;
}
.drawer-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.drawer-close-btn {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
}
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Drawer Menu Links */
.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.drawer-menu a:hover, .drawer-menu a.active {
  background: #eff6ff;
  color: #1d4ed8;
}
.drawer-menu hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}

/* Notif Item styles */
.notif-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  border-left: 4px solid #f59e0b;
}
.notif-item.urgente {
  border-left-color: #dc2626;
}
.notif-item.promo {
  border-left-color: #2563eb;
}
.notif-item.read {
  opacity: 0.75;
  border-left-color: #cbd5e1;
}
.notif-item h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
}
.notif-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}
.notif-item .badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  margin-bottom: 6px;
}
.notif-unread-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
}

