/* CASAFI new look, stage 1: the design system (R-0232 lines 121 and 126).
   Applies only when the page carries data-look="new" (Admin > Design, or an admin's own preview); without it the classic
   look stays exactly as it was. Nothing here hides or removes an element: only colors, edges, shapes and light change. */
html[data-look="new"] {
  --bg: #0a0518; --bg2: #120827; --ink: #140a2e;
  --panel: rgba(30, 14, 64, .58); --panel-2: rgba(42, 20, 86, .55); --panel-3: rgba(56, 28, 110, .5);
  --line: rgba(167, 139, 250, .34); --line-2: rgba(167, 139, 250, .16); --line-3: rgba(196, 181, 253, .3);
  --text: #f1edff; --muted: #a9a0d6; --dim: #7a70a8;
  --pri: #8b5cf6; --pri-2: #a78bfa; --pri-3: #6d28d9; --cy: #c4b5fd;
  --grad: linear-gradient(90deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --grad-btn: linear-gradient(180deg, #9d6bff 0%, #7c3aed 100%);
  --r: 16px; --r-sm: 12px; --r-lg: 20px;
  --shadow: 0 12px 40px rgba(6, 2, 18, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  --glow: 0 0 18px rgba(139, 92, 246, .28);
}
/* layered background: deep purple with soft violet light, no grid lines, less cyan */
html[data-look="new"] .bgfx { background:
  radial-gradient(1100px 700px at 12% -12%, rgba(124, 58, 237, .30), transparent 60%),
  radial-gradient(900px 620px at 104% 6%, rgba(168, 85, 247, .20), transparent 62%),
  radial-gradient(1000px 700px at 50% 118%, rgba(109, 40, 217, .26), transparent 60%),
  linear-gradient(180deg, #0d0620 0%, #07030f 100%); }
html[data-look="new"] .bgfx::after { opacity: 0; }
/* glass cards with soft lit edges (the Briefing Room cards) */
html[data-look="new"] .glass { background: linear-gradient(180deg, rgba(44, 20, 92, .55), rgba(22, 10, 48, .6)); border-color: rgba(167, 139, 250, .2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-look="new"] .glass.edge, html[data-look="new"] .glass.neon { border-color: rgba(167, 139, 250, .42); box-shadow: var(--shadow), inset 0 0 28px rgba(139, 92, 246, .08), 0 0 16px rgba(139, 92, 246, .12); }
html[data-look="new"] .glass.cy { border-color: rgba(196, 181, 253, .3); box-shadow: var(--shadow), 0 0 14px rgba(167, 139, 250, .1); }
/* one set of buttons: pill shape, violet primary */
html[data-look="new"] .btn { border-radius: 999px; border-color: rgba(167, 139, 250, .22); background: rgba(139, 92, 246, .08); }
html[data-look="new"] .btn:hover { background: rgba(139, 92, 246, .16); border-color: rgba(167, 139, 250, .4); }
html[data-look="new"] .btn.pri { background: var(--grad-btn); border-color: rgba(221, 214, 254, .35); box-shadow: 0 6px 20px rgba(124, 58, 237, .4), inset 0 1px 0 rgba(255, 255, 255, .22); }
html[data-look="new"] .btn.ghost { background: transparent; }
/* inputs and menus */
html[data-look="new"] .input, html[data-look="new"] .select, html[data-look="new"] textarea.input { border-radius: 12px; border-color: rgba(167, 139, 250, .2); background: rgba(16, 7, 36, .6); }
html[data-look="new"] .input:focus, html[data-look="new"] .select:focus { border-color: rgba(167, 139, 250, .7); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
html[data-look="new"] .top .search input { border-radius: 999px; border-color: rgba(167, 139, 250, .26); background: rgba(20, 9, 44, .55); }
/* tabs as pills (Para ti / Siguiendo / Tendencias) */
html[data-look="new"] .tabs { border-radius: 999px; padding: 4px; background: rgba(30, 14, 64, .5); border-color: rgba(167, 139, 250, .2); }
html[data-look="new"] .tabs button, html[data-look="new"] .tabs a { border-radius: 999px; }
html[data-look="new"] .tabs .on { background: linear-gradient(180deg, rgba(139, 92, 246, .75), rgba(109, 40, 217, .6)); box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .45), 0 4px 14px rgba(124, 58, 237, .35); }
/* badges */
html[data-look="new"] .chip { border-radius: 999px; border-color: rgba(167, 139, 250, .22); background: rgba(139, 92, 246, .1); }
/* side menu and top bar: darker glass, the active item lit softly (no strong neon) */
html[data-look="new"] .rail { background: rgba(14, 6, 32, .78); border-right-color: rgba(167, 139, 250, .14); }
html[data-look="new"] .rail a.ri.on { background: linear-gradient(180deg, rgba(139, 92, 246, .5), rgba(109, 40, 217, .3)); box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .45), 0 0 14px rgba(139, 92, 246, .22); }
html[data-look="new"] .top { background: rgba(14, 6, 32, .66); border-bottom-color: rgba(167, 139, 250, .14); }
/* windows */
html[data-look="new"] .modal { border-radius: 20px; border-color: rgba(167, 139, 250, .3); background: linear-gradient(180deg, rgba(36, 16, 76, .96), rgba(16, 7, 36, .97)); }
html[data-look="new"] .menu { border-radius: 14px; border-color: rgba(167, 139, 250, .3); background: rgba(24, 11, 52, .97); }

/* Hub Room (Studio Hub), stage 4 of the new look (R-0232 line 124): dimensional cards, lit edges, clear sections,
   smooth transitions. Same rooms, buttons and links as before. */
html[data-look="new"] .hub > section, html[data-look="new"] .hub-grid > .col > section, html[data-look="new"] .hub-row3 > section { animation: hubIn .45s ease both; }
@keyframes hubIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html[data-look="new"] .hub-rooms { position: relative; }
html[data-look="new"] .hub-rooms::before { content: ''; position: absolute; inset: -30px -20px; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 50% 40%, rgba(124, 58, 237, .22), transparent 70%); }
html[data-look="new"] .hub-room { border-color: rgba(167, 139, 250, .26); box-shadow: 0 14px 34px rgba(6, 2, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
html[data-look="new"] .hub-room:hover { transform: translateY(-4px); border-color: rgba(196, 181, 253, .6); box-shadow: 0 18px 40px rgba(6, 2, 18, .6), 0 0 24px rgba(139, 92, 246, .3); }
html[data-look="new"] .hub-art { position: relative; height: 96px; }
html[data-look="new"] .hub-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(180deg, transparent 55%, rgba(10, 5, 24, .45)); }
html[data-look="new"] .hub-art svg { position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
html[data-look="new"] .hub-room-s { border-color: rgba(167, 139, 250, .2); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
html[data-look="new"] .hub-room-s:hover { transform: translateY(-2px); border-color: rgba(196, 181, 253, .55); box-shadow: 0 0 18px rgba(139, 92, 246, .22); }
html[data-look="new"] .hub-ic { border-radius: 12px; background: linear-gradient(135deg, rgba(139, 92, 246, .45), rgba(91, 33, 182, .35)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
html[data-look="new"] .hub-step { border-radius: 14px; background: rgba(30, 14, 64, .55); border-color: rgba(167, 139, 250, .16); }
html[data-look="new"] .hub-step.now { background: linear-gradient(180deg, rgba(139, 92, 246, .35), rgba(91, 33, 182, .2)); border-color: rgba(196, 181, 253, .55); box-shadow: 0 0 16px rgba(139, 92, 246, .25); }
html[data-look="new"] .hub-kpi > div { border-radius: 14px; background: linear-gradient(180deg, rgba(48, 22, 98, .5), rgba(24, 10, 52, .55)); border: 1px solid rgba(167, 139, 250, .14); }
html[data-look="new"] .hub .ph .pt { letter-spacing: .08em; }
html[data-look="new"] .hub .ph { border-bottom: 1px solid rgba(167, 139, 250, .14); }
@media (prefers-reduced-motion: reduce) { html[data-look="new"] .hub > section, html[data-look="new"] .hub-grid > .col > section, html[data-look="new"] .hub-row3 > section { animation: none; } html[data-look="new"] .hub-room:hover, html[data-look="new"] .hub-room-s:hover { transform: none; } }

/* computer side menu in the new look (R-0232 line 130): wide, labels beside the icons, client's order, Joshua AI card at the
   bottom. Phones keep the menu drawer with today's sections (line 129). */
@media (min-width: 1200px) {
  html[data-look="new"] { --rail: 214px; }
  html[data-look="new"] .rail { align-items: stretch; padding: 10px 10px 12px; }
  html[data-look="new"] .rail .logo { width: auto; justify-content: flex-start; padding-left: 6px; margin-bottom: 14px; }
  html[data-look="new"] .rail .sect { flex: none; line-height: 1.3; text-align: left; font-size: 10px; letter-spacing: .14em; margin: 16px 8px 6px; opacity: .8; }
  html[data-look="new"] .rail a.ri, html[data-look="new"] .rail-joshua { flex: none; }
  html[data-look="new"] .rail a.ri { width: auto; flex-direction: row; justify-content: flex-start; gap: 11px; padding: 9px 12px; font-size: 13px; border-radius: 12px; margin: 1px 0; }
  html[data-look="new"] .rail a.ri span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html[data-look="new"] .rail a.ri.on::before { left: -10px; }
  html[data-look="new"] .rail-joshua { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 8px; padding: 10px 12px; border-radius: 16px; cursor: pointer; text-align: left; color: #fff;
    border: 1px solid rgba(196, 181, 253, .45); background: linear-gradient(135deg, rgba(124, 58, 237, .45), rgba(49, 18, 102, .6)); box-shadow: 0 0 18px rgba(139, 92, 246, .25), inset 0 1px 0 rgba(255, 255, 255, .1); }
  html[data-look="new"] .rail-joshua:hover { border-color: rgba(221, 214, 254, .7); box-shadow: 0 0 24px rgba(139, 92, 246, .38); }
  html[data-look="new"] .rail-joshua img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
  html[data-look="new"] .rail-joshua span { display: flex; flex-direction: column; line-height: 1.2; } html[data-look="new"] .rail-joshua b { font-size: 13px; } html[data-look="new"] .rail-joshua i { font-style: normal; font-size: 11px; color: #c4b5fd; }
  html[data-look="new"] .rail .me { flex-direction: row; justify-content: flex-start; padding: 4px 8px; }
}
.rail-joshua { display: none; }
@media (min-width: 1200px) { html[data-look="new"] .rail-joshua { display: flex; } }


/* new-look home pieces (R-0232 line 130) */
html[data-look="new"] .nl-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
html[data-look="new"] .nl-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; border-radius: 14px; color: #fff; text-align: center; font-size: 12.5px; line-height: 1.15; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px rgba(6, 2, 18, .5); transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden; }
html[data-look="new"] .nl-tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .25), transparent 55%); pointer-events: none; }
html[data-look="new"] .nl-tile svg { width: 24px; height: 24px; position: relative; z-index: 1; } html[data-look="new"] .nl-tile b { position: relative; z-index: 1; }
html[data-look="new"] .nl-tile:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 22px rgba(139, 92, 246, .35); }
html[data-look="new"] .nl-ag { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; } html[data-look="new"] .nl-ag svg { width: 17px; height: 17px; }
html[data-look="new"] .nl-brief { display: flex; flex-direction: column; gap: 8px; padding: 12px; color: inherit; border-color: rgba(196, 181, 253, .4); }
html[data-look="new"] .nl-brief-art { aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 90% at 50% 30%, rgba(139, 92, 246, .55), rgba(20, 8, 46, .9)); }
html[data-look="new"] .nl-brief-art svg { width: 38px; height: 38px; color: #ddd6fe; } html[data-look="new"] .nl-brief-art video { width: 100%; height: 100%; object-fit: cover; }
html[data-look="new"] .nl-core { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 92px; padding: 14px 16px; color: inherit; border-color: rgba(196, 181, 253, .4); background: radial-gradient(90% 120% at 90% 50%, rgba(139, 92, 246, .45), transparent 60%), linear-gradient(135deg, rgba(48, 20, 102, .7), rgba(18, 7, 40, .8)); }
html[data-look="new"] .nl-core b { font: 800 20px/1 var(--display); letter-spacing: .04em; }
@media (max-width: 700px) { html[data-look="new"] .nl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

html[data-look="new"] .nl-pa { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { html[data-look="new"] .nl-pa { grid-template-columns: minmax(0, 1fr); } }
html[data-look="new"] .nl-agents .li > svg { width: 14px; height: 14px; flex: none; opacity: .6; }
html[data-look="new"] .nl-agents .li, html[data-look="new"] .nl-pools .li { display: flex; align-items: center; gap: 10px; }

/* phone menu and side panels in the new look (R-0232 line 129): purple glass panel with a lit edge, arrows on menu rows */
html[data-look="new"] .drawer { background: linear-gradient(180deg, rgba(38, 16, 82, .97), rgba(16, 7, 38, .98)); border-left: 1px solid rgba(196, 181, 253, .4); box-shadow: -10px 0 40px rgba(124, 58, 237, .18); }
html[data-look="new"] .drawer .dh { border-bottom-color: rgba(167, 139, 250, .2); }
html[data-look="new"] .drawer .db > a.li.click { border-radius: 12px; padding-right: 30px; position: relative; border-bottom: 1px solid rgba(167, 139, 250, .1); }
html[data-look="new"] .drawer .db > a.li.click:hover { background: rgba(139, 92, 246, .14); }
html[data-look="new"] .drawer .db > a.li.click::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid rgba(221, 214, 254, .6); border-top: 1.6px solid rgba(221, 214, 254, .6); transform: translateY(-50%) rotate(45deg); }
html[data-look="new"] .drawer .db .label.pri { color: #c4b5fd; letter-spacing: .14em; }

/* Admin menu in the new look (same items, same order) */
html[data-look="new"] .adm-nav { background: rgba(14, 6, 32, .82); border-right-color: rgba(167, 139, 250, .16); }
html[data-look="new"] .adm-nav a { border-radius: 12px; }
html[data-look="new"] .adm-nav a:hover { background: rgba(139, 92, 246, .14); }
html[data-look="new"] .adm-nav a.on { background: linear-gradient(180deg, rgba(139, 92, 246, .5), rgba(109, 40, 217, .3)); box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .45), 0 0 14px rgba(139, 92, 246, .22); }
html[data-look="new"] .set-row { border-bottom-color: rgba(167, 139, 250, .1); }
/* stacked home (tablets, phones): the main content first, the home's own menu and feed after it (nothing hidden) */
@media (max-width: 1080px) { html[data-look="new"] #dgrid > #dcenter { order: 1; } html[data-look="new"] #dgrid > #dright { order: 2; } html[data-look="new"] #dgrid > #dleft { order: 3; } }
