@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --primary: #00a0ad;
    --primary-strong: #00454a;
    --accent: #0acfde;
    --accent-soft: rgba(10, 207, 222, 0.18);
    --dark: #03282c;
    --darker: #00454a;
    --dark-soft: #0a3236;
    --darkest: #00181a;
    --surface: rgba(5, 34, 37, 0.78);
    --surface-strong: rgba(7, 28, 31, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-3: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f4fffe;
    --text-muted: rgba(233, 247, 247, 0.72);
    --text-soft: rgba(233, 247, 247, 0.5);
    --danger: #ff7d7d;
    --warning: #ffc45c;
    --success: #8af0a9;
    --white: #f8f8f8;
    --black: #0a0a0a;
    --gray: rgba(233, 247, 247, 0.58);
    --gray-light: rgba(255, 255, 255, 0.14);
    --gray-soft: rgba(255, 255, 255, 0.05);
    --bg: #031c1f;
    --sidebar-w: 300px;
    --page-pad: 32px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: linear-gradient(145deg, #001113 0%, #031c1f 42%, #00181a 100%);
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    transform-origin: center;
    mix-blend-mode: screen;
}

body::before {
    top: -73px;
    right: 379px;
    width: 1800px;
    height: 343px;
    background: #0acfde;
    filter: blur(126.35px);
    opacity: 0.5;
    transform: rotate(8.17deg);
    animation: appHaloPulse3 4.5s ease-in-out infinite;
}

body::after {
    top: -30px;
    right: 440px;
    width: 1382px;
    height: 244px;
    background: #0acfde;
    filter: blur(93.8px);
    opacity: 0.75;
    transform: rotate(8.17deg);
    animation: appHaloPulse2 3.8s ease-in-out infinite;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    position: relative;
}

.app-shell::before {
    content: '';
    position: fixed;
    top: -73px;
    right: 379px;
    width: 893px;
    height: 114px;
    border-radius: 893px;
    background: #fff;
    filter: blur(44px);
    opacity: 0.8;
    transform: rotate(8.17deg);
    transform-origin: center;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    animation: appHaloPulse1 5s ease-in-out infinite;
}

@keyframes appHaloPulse1 {
    0%, 100% { opacity: 0.8; transform: rotate(8.17deg) scale(0.75); }
    50% { opacity: 1; transform: rotate(8.17deg) scale(0.98); }
}

@keyframes appHaloPulse2 {
    0%, 100% { opacity: 0.75; transform: rotate(8.17deg) scale(0.96); }
    50% { opacity: 0.95; transform: rotate(8.17deg) scale(1.06); }
}

@keyframes appHaloPulse3 {
    0%, 100% { opacity: 0.5; transform: rotate(8.17deg) scale(0.97); }
    50% { opacity: 0.72; transform: rotate(8.17deg) scale(1.04); }
}

.sidebar {
    position: fixed;
    top: 18px;
    left: 18px;
    bottom: 18px;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, rgba(8, 42, 46, 0.96) 0%, rgba(2, 20, 22, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(10, 207, 222, 0.22) 0%, rgba(10, 207, 222, 0) 72%);
    pointer-events: none;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 50px;
    padding: 22px 28px 0;
}

.sidebar-tagline {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 18px 18px 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    padding: 0 14px 10px;
}

/* Esconde rótulos de seção em todos os grupos exceto o primeiro */
.nav-group:not(:first-child) .nav-section-label {
    display: none;
}

/* Fundo transparente nos toggles dos grupos secundários */
.nav-group:not(:first-child) .nav-group-toggle {
    background: transparent;
}

/* Mostra seta de chevron */
.nav-group-chevron path {
    display: block;
}

.nav-group {
    margin-bottom: 14px;
}

.nav-group-toggle,
.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13.5px;
    font-weight: 600;
    transition: transform 0.28s cubic-bezier(.25,.46,.45,.94), background 0.28s cubic-bezier(.25,.46,.45,.94), border-color 0.28s ease, color 0.22s ease;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.nav-group-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-group-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.36);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), color 0.22s ease;
}

.nav-group-toggle svg,
.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-group-toggle:hover,
.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.nav-group.open .nav-group-toggle,
.nav-item.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(0, 69, 74, 0.92) 0%, rgba(0, 160, 173, 0.2) 100%);
    border-color: rgba(10, 207, 222, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 18px rgba(0, 0, 0, 0.18);
}

.nav-group.open .nav-group-chevron {
    transform: rotate(0deg);
    color: rgba(255, 255, 255, 0.74);
}

.nav-group:not(.open) .nav-group-chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    position: relative;
    margin-left: 22px;
    padding: 8px 0 0 22px;
    display: none;
}

/* Linha vertical que conecta todos os subitens */
.nav-submenu::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 14px;
    left: 0;
    width: 1.5px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.nav-group.open .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: submenuIn 0.22s cubic-bezier(.25,.46,.45,.94);
}
@keyframes submenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-subitem {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 17px;
    border-radius: 15px;
    border: 0.627px solid transparent;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s cubic-bezier(.25,.46,.45,.94), border-color 0.25s ease, color 0.2s ease;
}

/* Traço horizontal que liga a linha vertical ao item */
.nav-subitem::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.nav-subitem:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-subitem.active {
    color: var(--text);
    background: rgba(0, 160, 173, 0.08);
    border-color: var(--primary);
}

.sidebar-footer {
    padding: 14px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.sidebar-footer .nav-item {
    margin-bottom: 0;
    justify-content: flex-start;
    background: transparent;
}

.nav-item-logout {
    padding-left: 16px;
}

.main {
    position: relative;
    z-index: 1;
    margin-left: calc(var(--sidebar-w) + 36px);
    min-height: 100vh;
    padding: 24px var(--page-pad) 32px 12px;
}

.topbar {
    background: linear-gradient(180deg, rgba(9, 43, 47, 0.74) 0%, rgba(6, 31, 34, 0.88) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 24px;
    z-index: 50;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.topbar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.04em;
}

.topbar-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.project-topbar-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pills de stats no topbar de projetos */
.proj-stat-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.proj-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.proj-stat-pill-default {
    background: rgba(0, 26, 28, 0.59);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.proj-stat-pill-teal {
    background: rgba(0, 166, 179, 0.4);
    border: 1px solid rgba(0, 166, 179, 0.5);
    color: var(--text);
}

.proj-stat-pill-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.content {
    padding: 22px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card,
.card {
    background: linear-gradient(180deg, rgba(10, 39, 42, 0.82) 0%, rgba(5, 28, 31, 0.92) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card:hover {
    border-color: rgba(0, 160, 173, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 160, 173, 0.08);
    transform: translateY(-1px);
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -54px;
    right: -18px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 74%);
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 72%;
    height: 2px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    opacity: 0.9;
    pointer-events: none;
}

.stat-card-accent-primary::before {
    background: radial-gradient(circle, rgba(10, 207, 222, 0.14) 0%, rgba(10, 207, 222, 0) 74%);
}

.stat-card-accent-success::before {
    background: radial-gradient(circle, rgba(138, 240, 169, 0.14) 0%, rgba(138, 240, 169, 0) 74%);
}

.stat-card-accent-warning::before {
    background: radial-gradient(circle, rgba(255, 196, 92, 0.14) 0%, rgba(255, 196, 92, 0) 74%);
}

.stat-card-accent-danger::before {
    background: radial-gradient(circle, rgba(255, 125, 125, 0.14) 0%, rgba(255, 125, 125, 0) 74%);
}

.stat-card-accent-primary::after {
    background: linear-gradient(90deg, rgba(10, 207, 222, 0.05) 0%, rgba(10, 207, 222, 0.82) 50%, rgba(10, 207, 222, 0.05) 100%);
    box-shadow: 0 0 18px rgba(10, 207, 222, 0.2);
}

.stat-card-accent-success::after {
    background: linear-gradient(90deg, rgba(138, 240, 169, 0.05) 0%, rgba(138, 240, 169, 0.82) 50%, rgba(138, 240, 169, 0.05) 100%);
    box-shadow: 0 0 18px rgba(138, 240, 169, 0.18);
}

.stat-card-accent-warning::after {
    background: linear-gradient(90deg, rgba(255, 196, 92, 0.05) 0%, rgba(255, 196, 92, 0.82) 50%, rgba(255, 196, 92, 0.05) 100%);
    box-shadow: 0 0 18px rgba(255, 196, 92, 0.18);
}

.stat-card-accent-danger::after {
    background: linear-gradient(90deg, rgba(255, 125, 125, 0.05) 0%, rgba(255, 125, 125, 0.82) 50%, rgba(255, 125, 125, 0.05) 100%);
    box-shadow: 0 0 18px rgba(255, 125, 125, 0.18);
}

.task-kpi-card {
    position: relative;
    padding-top: 26px;
}

.task-kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 75%;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    opacity: 0.92;
}

.task-kpi-card.task-kpi-primary::after {
    background: linear-gradient(90deg, rgba(10, 207, 222, 0.15) 0%, rgba(10, 207, 222, 0.95) 50%, rgba(10, 207, 222, 0.15) 100%);
    box-shadow: 0 0 20px rgba(10, 207, 222, 0.4);
}

.task-kpi-card.task-kpi-info::after {
    background: linear-gradient(90deg, rgba(25, 118, 210, 0.15) 0%, rgba(25, 118, 210, 0.95) 50%, rgba(25, 118, 210, 0.15) 100%);
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.36);
}

.task-kpi-card.task-kpi-warning::after {
    background: linear-gradient(90deg, rgba(249, 168, 37, 0.15) 0%, rgba(249, 168, 37, 0.95) 50%, rgba(249, 168, 37, 0.15) 100%);
    box-shadow: 0 0 20px rgba(249, 168, 37, 0.34);
}

.task-kpi-card.task-kpi-success::after {
    background: linear-gradient(90deg, rgba(46, 125, 50, 0.15) 0%, rgba(46, 125, 50, 0.95) 50%, rgba(46, 125, 50, 0.15) 100%);
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.34);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.06) 100%);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.stat-value {
    margin-top: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.stat-value.primary {
    color: var(--text);
}

.stat-value.warning {
    color: var(--text);
}

.stat-value.small {
    font-size: 24px;
}

.stat-desc {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-soft);
}

.card {
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 15px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

td {
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td {
    border-bottom: none;
}

.client-name {
    font-weight: 700;
    color: var(--text);
}

.client-domain {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(138, 240, 169, 0.12);
    color: var(--success);
    border-color: rgba(138, 240, 169, 0.2);
}

.badge-warning {
    background: rgba(255, 196, 92, 0.12);
    color: var(--warning);
    border-color: rgba(255, 196, 92, 0.2);
}

.badge-danger {
    background: rgba(255, 125, 125, 0.12);
    color: var(--danger);
    border-color: rgba(255, 125, 125, 0.2);
}

.badge-info {
    background: rgba(10, 207, 222, 0.12);
    color: var(--accent);
    border-color: rgba(10, 207, 222, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #00454a 0%, #00a0ad 100%);
    box-shadow: 0 16px 30px rgba(0, 115, 124, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(0, 115, 124, 0.34);
}

.btn-accent {
    color: var(--darkest);
    background: linear-gradient(135deg, #7feaf3 0%, #0acfde 100%);
}

.btn-accent:hover {
    box-shadow: 0 18px 30px rgba(10, 207, 222, 0.24);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: rgba(10, 207, 222, 0.24);
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.btn-danger {
    background: rgba(255, 125, 125, 0.1);
    color: #ffd3d3;
    border-color: rgba(255, 125, 125, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 125, 125, 0.2);
}

.btn-sm {
    padding: 9px 12px;
    font-size: 11.5px;
    border-radius: 12px;
}

.btn-full {
    width: 100%;
}

.form-section-title {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10, 207, 222, 0.16);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.24em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.form-control:focus {
    outline: none;
    border-color: rgba(10, 207, 222, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(10, 207, 222, 0.12);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.5) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

select.form-control option {
    color: #08272a;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.venc-ok {
    color: var(--text-soft);
}

.venc-warning {
    color: var(--warning);
    font-weight: 700;
}

.venc-danger {
    color: var(--danger);
    font-weight: 700;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(255, 125, 125, 0.1);
    color: #ffd3d3;
    border-color: rgba(255, 125, 125, 0.16);
}

.alert-success {
    background: rgba(138, 240, 169, 0.1);
    color: #d9ffe5;
    border-color: rgba(138, 240, 169, 0.16);
}

.alert-warning {
    background: rgba(255, 196, 92, 0.12);
    color: #ffe3b5;
    border-color: rgba(255, 196, 92, 0.16);
}

.expiring-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expiring-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 196, 92, 0.08);
    border: 1px solid rgba(255, 196, 92, 0.16);
}

.expiring-item.urgent {
    background: rgba(255, 125, 125, 0.08);
    border-color: rgba(255, 125, 125, 0.16);
}

.expiring-item .item-name {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text);
}

.expiring-item .item-domain {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-soft);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 46px 42px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 39, 42, 0.88) 0%, rgba(4, 24, 27, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.login-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
}

.login-brand-name span {
    color: var(--accent);
}

.login-brand-sub {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.login-accent-bar {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, #0acfde 0%, #7feaf3 100%);
}

.login-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.login-subheading {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.empty-state {
    padding: 60px 30px;
    text-align: center;
    color: var(--text-soft);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 18px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.fin-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 22px;
}

.fin-card-mrr {
    position: relative;
    overflow: hidden;
}

.fin-card-mrr::after {
    width: 78%;
    height: 2px;
    top: 0;
    border-radius: 999px;
}

.fin-card-mrr .stat-label,
.fin-card-mrr .stat-value,
.fin-card-mrr .stat-desc {
    color: var(--text) !important;
}

.fin-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 200;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(5, 30, 33, 0.9);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 88% 8%, rgba(10, 207, 222, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 35, 38, 0.86) 0%, rgba(4, 25, 28, 0.96) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(10, 207, 222, 0.2) 0%, rgba(10, 207, 222, 0) 70%);
    pointer-events: none;
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
    line-height: 0.98;
    color: var(--text);
    letter-spacing: -0.05em;
}

.page-copy {
    max-width: 620px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.page-hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.page-hero-actions .btn {
    min-width: 180px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-self: end;
}

.hero-stats-compact {
    flex: 1;
    min-width: 420px;
    align-self: stretch;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    grid-auto-rows: 96px;
}

.hero-stat {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 114px;
}

.hero-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-stat-value {
    margin-top: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.hero-stat-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.project-board {
    padding: 18px;
}

.project-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 18px;
}

.project-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.project-filters-inline {
    flex-wrap: nowrap;
}

.project-search {
    position: relative;
    flex: 1 1 260px;
}

.project-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.38);
    pointer-events: none;
}

.project-search .form-control {
    padding-left: 42px;
}

.project-filters .form-control {
    min-width: 180px;
}

.project-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.project-columns {
    position: relative;
}

.project-columns-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(9, 43, 47, 0.96) 0%, rgba(3, 21, 23, 0.98) 100%);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 10;
}

.project-columns.open .project-columns-panel {
    display: block;
}

.project-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 6px 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(10, 207, 222, 0.18);
    background: linear-gradient(90deg, rgba(10, 207, 222, 0.1) 0%, rgba(0, 69, 74, 0.14) 100%);
}

.project-bulkbar-count {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.project-columns-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.project-columns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-columns-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.project-columns-option input {
    accent-color: var(--accent);
}

.project-table-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.1);
}

.project-table {
    min-width: 920px;
}

.project-table thead th {
    background: linear-gradient(90deg, rgba(0, 69, 74, 0.82) 0%, rgba(0, 160, 173, 0.22) 100%);
    color: rgba(255, 255, 255, 0.74);
}

.project-table tbody tr {
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.project-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.project-table tbody tr:hover {
    transform: translateY(-1px);
}

.project-code {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.project-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.project-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.project-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.project-progress {
    min-width: 180px;
}

.project-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.project-progress strong {
    color: var(--text);
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0acfde 0%, #7feaf3 100%);
    box-shadow: 0 0 18px rgba(10, 207, 222, 0.4);
}

.project-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-table tbody tr td:first-child,
.project-table tbody tr td:first-child * {
    cursor: default;
}

.task-toolbar-card {
    padding: 14px 18px;
}

.task-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.task-toolbar-row + .task-toolbar-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.task-toolbar-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.task-toolbar-meta {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.project-muted {
    color: var(--text-soft);
}

.table-col-hidden {
    display: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(10, 207, 222, 0.8);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    :root {
        --sidebar-w: 272px;
        --page-pad: 22px;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .project-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .proj-stat-pills {
        flex-wrap: wrap;
    }

    .page-hero-actions {
        justify-content: flex-start;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .sidebar {
        left: 12px;
        top: 12px;
        bottom: 12px;
        transform: translateX(calc(-100% - 20px));
        transition: transform 0.22s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
        padding: 72px 16px 24px;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .topbar {
        top: 12px;
        padding: 20px 18px;
        border-radius: 22px;
    }

    .project-topbar-head {
        flex-direction: column;
    }

    .topbar-title {
        font-size: 28px;
    }

    .two-col,
    .fin-two-col,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar,
    .page-hero {
        padding: 18px;
    }

    .sidebar-nav {
        overflow-y: auto;
    }

    .topbar-actions,
    .project-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .topbar-actions .btn,
    .project-toolbar-actions .btn {
        flex: 1;
    }

    .hero-stats,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-toolbar {
        padding: 0 0 14px;
    }

    .project-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .project-filters-inline {
        flex-wrap: wrap;
    }

    .project-search,
    .project-filters .form-control {
        width: 100%;
        min-width: 0;
    }

    .project-columns {
        width: 100%;
    }

    .project-columns-panel {
        left: 0;
        right: auto;
        width: 100%;
    }
}
