:root {
    --pink: #A8185A;
    --pink-dark: #7A0F41;
    --pink-soft: #F7E0EA;
    --navy: #0B0620;
    --navy-2: #150B33;
    --plum: #2B0B3F;
    --ink: #1A1A1A;
    --muted: #6B6B6B;
    --muted-dark: #A79EC4;
    --line: #E8E8EC;
    --line-dark: #2A1F4A;
    --bg: #F7F7FA;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(20, 10, 30, .06), 0 8px 24px rgba(20, 10, 30, .05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
}

a {
    color: var(--pink-dark);
}

body.public {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body.public::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at 35% 35%,
    rgba(150, 40, 220, .40), transparent 62%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body.public::after {
    content: "";
    position: fixed;
    bottom: -25%;
    right: -15%;
    width: 75vw;
    height: 75vw;
    background: radial-gradient(circle at 60% 60%,
    rgba(200, 30, 110, .30), transparent 60%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.pubnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 6, 32, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pubnav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.pubnav a.navlink {
    color: #C9C0E4;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: .2px;
}

.pubnav a.navlink:hover,
.pubnav a.navlink.active {
    color: #fff;
}

.btn-login {
    background: var(--pink);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(168, 24, 90, .25);
}

.btn-login:hover {
    background: var(--pink-dark);
}

.hero {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 110px 24px 90px;
    z-index: 1;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-15%, -50%);    width: 620px;
    max-width: 92vw;
    opacity: .55;    pointer-events: none;
    user-select: none;
    z-index: 0;
    filter: drop-shadow(0 0 70px rgba(200, 30, 110, .45));}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--muted-dark);
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin: 0 0 26px;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 40px rgba(11, 6, 32, .95),
    0 0 14px rgba(11, 6, 32, .8);
}

.hero p.lead {
    font-size: 17px;
    color: #D6CDEF;
    max-width: 560px;
    margin: 0 0 34px;
    text-shadow: 0 1px 16px rgba(11, 6, 32, .9);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 6px 18px rgba(168, 24, 90, .28);
}

.btn-primary:hover {
    background: var(--pink-dark);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .25);
    color: #E4DEF5;
    background: rgba(11, 6, 32, .45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    border-color: var(--pink);
    color: #fff;
}

.section {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section h2 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-dark);
    margin: 0 0 26px;
    font-weight: 600;
}

.section h3 {
    font-size: clamp(24px, 3.4vw, 36px);
    line-height: 1.2;
    letter-spacing: -.6px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 18px;
}

.section p {
    color: #C9C0E4;
    max-width: 680px;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.feature {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12),
    0 10px 30px rgba(0, 0, 0, .32);
    transition: transform .18s, border-color .18s;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 24, 90, .6);
}

.feature h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: #BFB4E0;
}

.demo-box {
    background: rgba(11, 6, 32, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 26px;
    max-width: 460px;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14),
    0 12px 36px rgba(0, 0, 0, .38);
}

.demo-box h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #fff;
}

.demo-cred {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
    color: #E894B8;
    display: block;
    margin: 4px 0;
}

.demo-box small {
    color: #B2A6D4;
    font-size: 13px;
    display: block;
    margin-top: 12px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.contact-card {
    background: rgba(183, 156, 255, .92);
    color: #14082E;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.contact-card .label {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-card .value {
    font-size: 15px;
    word-break: break-word;
}

.pubfoot {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 30px 24px;
    text-align: center;
    color: #7B6FA0;
    font-size: 13px;
}

.topbar {
    background: var(--plum);
    color: #fff;
    padding: 0 24px;
}

.topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #E0518C;
}

.logo-text span {
    color: #fff;
}

.spacer {
    flex: 1;
}

.who {
    font-size: 13px;
    opacity: 1;}

.topbar .linkbtn {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.topbar .linkbtn:hover {
    background: rgba(255, 255, 255, .2);
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

h1 {
    font-size: 24px;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}

.wrap h2 {
    font-size: 15px;
    margin: 30px 0 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 22px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.msg-ok, .msg-err {
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

.msg-ok {
    background: #E9F8EF;
    color: #12653A;
}

.msg-err {
    background: var(--pink-soft);
    color: #7A0F41;
}

.uploader {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.uploader form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.crumbs {
    font-size: 13px;
    margin-bottom: 16px;
    color: var(--muted);
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.crumbs .sep {
    margin: 0 7px;
    color: #CFCFD6;
}

.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.folder-card {
    width: 104px;
    padding: 12px 6px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    transition: background .15s, transform .15s, box-shadow .15s;
}

.folder-card:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.folder-icon {
    width: 58px;
    height: 47px;
    display: block;
    margin: 0 auto 8px;
}

.folder-icon .tab {
    fill: var(--pink-dark);
}

.folder-icon .body {
    fill: var(--pink);
}

.folder-icon.up path {
    fill: #C6C6CE;
}

.folder-icon .dashed {
    fill: none;
    stroke: #C6C6CE;
    stroke-width: 2;
    stroke-dasharray: 5 4;
}

.folder-icon .plus {
    fill: #C6C6CE;
    font-size: 24px;
    text-anchor: middle;
    font-family: system-ui, sans-serif;
}

.folder-card.new:hover .dashed {
    stroke: var(--pink);
    fill: none;
}

.folder-card.new:hover .plus {
    fill: var(--pink);
}

.folder-name {
    font-size: 13px;
    display: block;
    word-break: break-word;
    line-height: 1.3;
}

.ctx {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(20, 10, 30, .16);
    padding: 5px;
    z-index: 100;
    min-width: 150px;
}

.ctx button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--ink);
    text-align: left;
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.ctx button:hover {
    background: var(--pink-soft);
}

.ctx button.danger-text {
    color: #7A0F41;
}

.hidden {
    display: none;
}

.inline {
    display: inline;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    font-family: inherit;
    width: 100%;
}

.uploader select {
    width: auto;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--pink);
    outline-offset: -1px;
    border-color: transparent;
}

.field {
    margin-bottom: 14px;
}

button {
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

button:hover {
    background: var(--pink-dark);
}

button.block {
    width: 100%;
    padding: 11px;
}

button.danger {
    background: #fff;
    color: #7A0F41;
    border: 1px solid #E8BDD0;
    padding: 5px 11px;
    font-size: 13px;
}

button.danger:hover {
    background: var(--pink-soft);
}

.hint {
    font-size: 12px;
    color: var(--muted);
}

.empty {
    color: var(--muted);
    font-size: 14px;
    padding: 18px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    background: #FBFBFD;
    font-weight: 600;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

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

td.right {
    text-align: right;
    white-space: nowrap;
}

td a {
    margin-right: 12px;
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(150deg, var(--navy) 0%, #2E1055 52%, #5C1148 100%);
}

.auth-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    padding: 34px 30px;
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.auth-logo .logo-mark {
    width: 34px;
    height: 34px;
}

.auth-logo .logo-text {
    font-size: 20px;
    color: var(--pink);
}

.auth-logo .logo-text span {
    color: var(--ink);
}

.auth-box h1 {
    font-size: 19px;
    text-align: center;
    margin-bottom: 4px;
}

.auth-box .sub {
    text-align: center;
    font-size: 13px;
    margin-bottom: 22px;
}

.auth-foot {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 0;
}

.auth-foot a {
    text-decoration: none;
    font-weight: 500;
}

.tiles {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    width: 240px;
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s, box-shadow .15s;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(20, 10, 30, .07), 0 14px 32px rgba(20, 10, 30, .09);
}

.tile-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    display: block;
}

.tile-icon .tab {
    fill: var(--pink-dark);
}

.tile-icon .body {
    fill: var(--pink);
}

.tile h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.tile p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--muted);
    line-height: 0;
    border-radius: 6px;
}

.pw-toggle:hover {
    background: var(--pink-soft);
    color: var(--pink-dark);
}

.pw-toggle:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: -1px;
}

.pw-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pw-toggle .icon-hide {
    display: none;
}

.pw-toggle.showing .icon-show {
    display: none;
}

.pw-toggle.showing .icon-hide {
    display: block;
}

@keyframes pulse-lock {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.logo-mark.pulse {
    animation: pulse-lock 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .logo-mark.pulse {
        animation: none;
    }
}

@media (max-width: 900px) {
    .hero-logo {
        width: 420px;
        opacity: .4;    }
}

@media (max-width: 600px) {
    .hero-logo {
        display: none;
    }
}