:root {
  --ink: #2e1065;
  --paper: #f3efe6;
  --white: #fff;
  --mutah: #e6007e;
  --mutah-soft: #f8d5e8;
  --lime: #f0bfd9;
  --purple: #2e1065;
  --blue: #7d5bb8;
  --line: #d8cfc0;
  --muted: #746b7d;
  --shadow: 0 18px 60px rgba(46, 16, 101, .12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 1120px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #1a0f33; color: white; padding: 24px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand-logo { width: 154px; max-height: 42px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.brand strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.brand span { color: #aaa9a6; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.workspace { display: flex; align-items: center; justify-content: space-between; background: #27164b; border: 1px solid #3d246a; border-radius: 12px; padding: 11px 12px; margin-bottom: 22px; }
.workspace small { color: #a9a7a2; display: block; margin-bottom: 2px; }
.workspace b { font-size: 13px; }
.nav-label { color: #77757a; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 14px 12px 8px; }
.nav { display: grid; gap: 4px; }
.nav button { background: transparent; color: #aaa9ad; border: 0; border-radius: 10px; padding: 10px 12px; text-align: left; display: flex; gap: 11px; align-items: center; font-weight: 600; }
.nav button:hover, .nav button.active { background: #351d61; color: white; }
.nav button.active::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--mutah); }
.nav-icon { width: 19px; text-align: center; }
.sidebar-footer { margin-top: auto; background: #27164b; border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: none; }
.person b { display: block; font-size: 12px; }
.person span { color: #99979c; font-size: 10px; }

.main { min-width: 0; }
.topbar { height: 76px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,242,237,.86); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.search { width: 360px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.role-switch { background: white; padding: 4px; border-radius: 12px; border: 1px solid var(--line); display: flex; }
.role-switch button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.role-switch button.active { background: var(--ink); color: white; }
.icon-btn { border: 1px solid var(--line); background: white; width: 40px; height: 40px; border-radius: 12px; }
.content { padding: 34px; max-width: 1500px; margin: auto; }
.eyebrow { text-transform: uppercase; color: var(--mutah); font-size: 11px; font-weight: 900; letter-spacing: .14em; margin-bottom: 8px; }
.page-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; }
h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -.05em; }
.subtitle { color: var(--muted); margin: 0; }
.primary { border: 0; border-radius: 12px; padding: 12px 16px; background: var(--mutah); color: white; font-weight: 800; box-shadow: 0 8px 22px rgba(255,90,54,.25); }
.secondary { border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; background: white; font-weight: 750; }

.hero { background: #1a0f33; color: white; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; overflow: hidden; position: relative; margin-bottom: 22px; }
.hero::after { content: ""; width: 260px; height: 260px; background: var(--mutah); border-radius: 42% 58% 60% 40%; position: absolute; right: -100px; top: -105px; transform: rotate(20deg); }
.hero h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.04em; max-width: 570px; }
.hero p { color: #b5b4b7; line-height: 1.55; max-width: 600px; margin: 0 0 18px; }
.hero-stat { border-left: 1px solid #3c3c40; padding-left: 28px; align-self: center; z-index: 1; }
.hero-stat strong { display: block; font-size: 45px; color: #f18aba; letter-spacing: -.07em; }
.hero-stat span { color: #b5b4b7; font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 4px 20px rgba(23,23,25,.025); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric { display: flex; justify-content: space-between; align-items: end; margin-top: 18px; }
.metric strong { font-size: 30px; letter-spacing: -.05em; }
.trend { font-size: 11px; font-weight: 800; color: #36894d; background: #e5f6e8; padding: 5px 8px; border-radius: 999px; }
.trend.warn { color: #a85f22; background: #fff0d9; }

.grid-2 { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h3 { margin: 0; font-size: 17px; }
.section-title button { border: 0; background: transparent; color: var(--mutah); font-weight: 800; font-size: 12px; }
.request-list { display: grid; gap: 10px; }
.request { border: 1px solid var(--line); padding: 14px; border-radius: 14px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.request-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mutah-soft); }
.request h4 { margin: 0 0 4px; font-size: 13px; }
.request p { margin: 0; color: var(--muted); font-size: 11px; }
.status { font-size: 10px; font-weight: 900; padding: 6px 9px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.status.waiting { color: #9d601d; background: #fff0d9; }
.status.progress { color: #4a39a4; background: #ece8ff; }
.status.done { color: #267842; background: #dff3e5; }
.activity { border-left: 2px solid var(--line); margin-left: 8px; display: grid; gap: 20px; }
.activity-item { position: relative; padding-left: 20px; }
.activity-item::before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--mutah); border: 3px solid white; }
.activity-item b { display: block; font-size: 12px; margin-bottom: 4px; }
.activity-item p { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { min-height: 200px; position: relative; overflow: hidden; }
.service::after { content: attr(data-index); position: absolute; right: -10px; bottom: -35px; font-weight: 950; font-size: 110px; color: #f1eee8; z-index: 0; }
.service > * { position: relative; z-index: 1; }
.service-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: white; display: grid; place-items: center; margin-bottom: 22px; }
.service h3 { margin: 0 0 7px; font-size: 16px; }
.service p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.usage { margin-top: 20px; }
.usage-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.bar { height: 7px; border-radius: 99px; background: #ece9e3; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--mutah); border-radius: inherit; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.column { background: #ebe8e2; padding: 12px; border-radius: 16px; min-height: 420px; }
.column-head { display: flex; justify-content: space-between; padding: 5px 4px 14px; font-size: 12px; font-weight: 850; }
.count { color: var(--muted); background: white; border-radius: 999px; padding: 2px 7px; }
.task { background: white; border: 1px solid #dedbd4; border-radius: 13px; padding: 13px; margin-bottom: 10px; box-shadow: 0 2px 7px rgba(23,23,25,.03); }
.task .tag { color: var(--mutah); text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.task h4 { margin: 8px 0 13px; font-size: 12px; line-height: 1.4; }
.task-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; align-items: center; }
.mini-avatar { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 900; }

.table-card { padding: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: #f8f7f4; color: var(--muted); text-align: left; padding: 13px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
td { border-top: 1px solid var(--line); padding: 14px 16px; font-size: 12px; }
.approve { border: 0; background: var(--ink); color: white; padding: 7px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.approve:disabled { opacity: .35; cursor: default; }

.dossier { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.client-profile { text-align: center; }
.client-logo { width: 88px; height: 88px; border-radius: 24px; margin: 10px auto 16px; background: var(--purple); color: white; display: grid; place-items: center; font-size: 28px; font-weight: 950; transform: rotate(-3deg); }
.client-profile h2 { margin: 0 0 5px; }
.client-profile p { color: var(--muted); margin: 0 0 20px; font-size: 12px; }
.detail { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.detail span { color: var(--muted); }
.brand-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset { aspect-ratio: 1.25; border-radius: 14px; padding: 15px; display: flex; align-items: end; font-weight: 850; font-size: 11px; }
.asset:nth-child(1) { background: var(--purple); color: white; }
.asset:nth-child(2) { background: var(--lime); }
.asset:nth-child(3) { background: var(--mutah-soft); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,15,17,.58); backdrop-filter: blur(5px); z-index: 50; display: grid; place-items: center; }
.modal { width: 590px; background: white; border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.modal h2 { margin: 0 0 5px; }
.modal p { margin: 0; color: var(--muted); font-size: 12px; }
.close { border: 0; background: #efede8; border-radius: 10px; width: 34px; height: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 850; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fbfaf8; outline: none; }
.field textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; right: 28px; bottom: 28px; background: var(--ink); color: white; border-radius: 14px; padding: 15px 18px; box-shadow: var(--shadow); z-index: 60; font-size: 12px; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 900px) {
  body { min-width: 0; }
  .shell { grid-template-columns: 74px 1fr; }
  .sidebar { padding: 20px 10px; }
  .brand div:last-child, .workspace, .nav-label, .nav button span:not(.nav-icon), .person { display: none; }
  .nav button { justify-content: center; }
  .sidebar-footer { justify-content: center; }
  .topbar { padding: 0 18px; }
  .search { width: 250px; }
  .content { padding: 22px 18px; }
  .stats, .kanban { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .hero, .dossier { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}
