
:root {
    --ivvn-bg-main: #050709;
    --ivvn-bg-secondary: #0A0D11;
    --ivvn-bg-panel: rgba(15, 18, 24, 0.85);
    --ivvn-border-soft: #1C1F24;
    --ivvn-white-soft: rgba(255, 255, 255, 0.9);
    --ivvn-white-muted: rgba(255, 255, 255, 0.65);
    --ivvn-white-faint: rgba(255, 255, 255, 0.25);
    --ivvn-shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.9);
    --ivvn-radius-soft: 18px;
    --ivvn-transition-fast: 0.18s ease-out;
    --ivvn-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

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

html, body {
    height: 100%;
    background: radial-gradient(circle at top, #10131a 0, #050709 52%, #020306 100%);
    color: var(--ivvn-white-soft);
    font-family: var(--ivvn-font-main);
    -webkit-font-smoothing: antialiased;
}

.ivvn-hex-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(255,255,255,0.04) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.02) 0, transparent 60%);
    background-size: cover;
    opacity: 0.7;
    mix-blend-mode: soft-light;
}

/* Login */
.ivvn-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ivvn-login-card {
    width: 360px;
    max-width: 100%;
    position: relative;
    background: rgba(10, 13, 18, 0.96);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--ivvn-shadow-deep);
    padding: 24px 24px 22px;
    backdrop-filter: blur(18px);
}

.ivvn-login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ivvn-logo-hex {
    position: relative;
    width: 40px;
    height: 44px;
}
.ivvn-logo-hex::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, #11141a, #050709 55%, #141821 100%);
    clip-path: polygon(
        25% 0, 75% 0,
        100% 50%,
        75% 100%, 25% 100%,
        0 50%
    );
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 12px 30px rgba(0,0,0,0.9);
}
.ivvn-logo-hex::after {
    content: "IV";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--ivvn-white-soft);
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255,255,255,0.35);
}

.ivvn-login-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ivvn-login-title h2 {
    font-size: 17px;
    font-weight: 500;
    color: var(--ivvn-white-soft);
}
.ivvn-login-title span {
    font-size: 11px;
    color: var(--ivvn-white-muted);
}

.ivvn-form-group {
    margin-bottom: 12px;
}
.ivvn-form-label {
    font-size: 11px;
    margin-bottom: 4px;
    color: var(--ivvn-white-muted);
}
.ivvn-form-input {
    width: 100%;
    background: rgba(5, 7, 11, 0.96);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 9px 13px;
    color: var(--ivvn-white-soft);
    font-size: 13px;
    outline: none;
}
.ivvn-form-input::placeholder {
    color: var(--ivvn-white-faint);
}

.ivvn-login-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}
.ivvn-btn-primary {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, #181b23, #050709);
    color: var(--ivvn-white-soft);
    cursor: pointer;
    transition: transform var(--ivvn-transition-fast), filter var(--ivvn-transition-fast);
}
.ivvn-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* Dashboard basic shell */
.ivvn-app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
}

.ivvn-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.ivvn-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ivvn-title-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ivvn-title-main h1 {
    font-size: 18px;
    font-weight: 500;
    color: var(--ivvn-white-soft);
}
.ivvn-title-main span {
    font-size: 11px;
    font-weight: 400;
    color: var(--ivvn-white-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.ivvn-topbar-right {
    font-size: 12px;
    color: var(--ivvn-white-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ivvn-hex-button {
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    width: 88px;
    height: 82px;
    transition: transform var(--ivvn-transition-fast), filter var(--ivvn-transition-fast);
}
.ivvn-hex-button-shape {
    position: absolute;
    inset: 0;
    clip-path: polygon(
        25% 0, 75% 0,
        100% 50%,
        75% 100%, 25% 100%,
        0 50%
    );
    background:
        radial-gradient(circle at 30% 0, rgba(255,255,255,0.17) 0, rgba(255,255,255,0.0) 45%),
        linear-gradient(145deg, #171a22, #050709 55%, #191d26 100%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 18px 40px rgba(0,0,0,0.95);
}
.ivvn-hex-button::after {
    content: "";
    position: absolute;
    inset: 4px;
    clip-path: inherit;
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0.9;
}
.ivvn-hex-button-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 14px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ivvn-hex-icon {
    font-size: 20px;
    color: var(--ivvn-white-soft);
}
.ivvn-hex-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ivvn-white-muted);
}
.ivvn-hex-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
}
.ivvn-hex-button:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

/* Hive panel */
.ivvn-hive-panel {
    position: relative;
    background: var(--ivvn-bg-panel);
    border-radius: var(--ivvn-radius-soft);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: var(--ivvn-shadow-deep);
    padding: 18px 20px;
    backdrop-filter: blur(18px);
}
.ivvn-hive-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ivvn-hive-panel-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ivvn-white-muted);
}
.ivvn-hive-panel-sub {
    font-size: 11px;
    color: var(--ivvn-white-faint);
}
.ivvn-hive-panel-body {
    font-size: 13px;
    color: var(--ivvn-white-soft);
}
