* {
    box-sizing: border-box;
}

:root {
    --bg: #05070d;
    --panel: rgba(8, 13, 24, 0.76);
    --panel-strong: rgba(8, 13, 24, 0.92);
    --line: rgba(103, 248, 255, 0.16);
    --line-strong: rgba(103, 248, 255, 0.36);
    --text: #e6fbff;
    --muted: #9fb0c7;
    --cyan: #67f8ff;
    --pink: #ff4ecd;
    --violet: #a78bfa;
    --green: #7dffb2;
    --danger: #ff4ecd;
    --shadow-cyan: rgba(103, 248, 255, 0.16);
    --shadow-pink: rgba(255, 78, 205, 0.13);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

body::selection {
    color: #031014;
    background: var(--cyan);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a,
.primary-btn,
.mini-btn,
.tool-card,
.home-card,
.quick-link-card,
.stat-card {
    -webkit-tap-highlight-color: transparent;
}

.auth-body,
.home-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(103, 248, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 76%, rgba(255, 78, 205, 0.16), transparent 31%),
        linear-gradient(135deg, #05070d, #0a1020);
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
}

.auth-bg::before,
.home-body::before,
.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(103, 248, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 248, 255, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
    animation: gridSlide 22s linear infinite;
    z-index: 0;
}

.auth-bg::after,
.home-body::after,
.app-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--page-x, 50%) var(--page-y, 25%), rgba(103, 248, 255, 0.1), transparent 25%),
        linear-gradient(105deg, transparent 0%, rgba(103, 248, 255, 0.04) 46%, rgba(255, 78, 205, 0.04) 50%, transparent 56%);
    z-index: 0;
}

.auth-card,
.home-header,
.home-hero,
.home-section,
.home-footer,
.sidebar,
.main-panel {
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(100%, 430px);
    border: 1px solid rgba(103, 248, 255, 0.24);
    background: rgba(8, 13, 24, 0.88);
    box-shadow: 0 0 45px rgba(0, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px;
    backdrop-filter: blur(16px);
    animation: commandEnter 0.55s ease both;
}

.auth-card:hover {
    border-color: rgba(103, 248, 255, 0.44);
    box-shadow: 0 0 70px rgba(0, 255, 255, 0.16), 0 0 70px rgba(255, 78, 205, 0.08);
}

.brand-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(103, 248, 255, 0.48);
}

h1,
h2,
h3 {
    margin-top: 0;
}

.auth-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.muted,
.auth-card p,
.tool-card p,
.hero-panel p,
.section-copy {
    color: var(--muted);
    line-height: 1.55;
}

label {
    display: block;
    margin: 16px 0 8px;
    color: #c7d2e1;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.76);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(103, 248, 255, 0.34);
    background: rgba(2, 6, 23, 0.94);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(103, 248, 255, 0.12), 0 0 24px rgba(103, 248, 255, 0.09);
    transform: translateY(-1px);
}

.primary-btn,
.mini-btn,
.home-login {
    position: relative;
    overflow: hidden;
}

.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    color: #031014;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    font-weight: 900;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 16px 34px rgba(255, 78, 205, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn::before,
.mini-btn::before,
.home-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    transform: translateX(-120%);
    transition: transform 0.56s ease;
}

.primary-btn:hover,
.mini-btn:hover,
.home-login:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    box-shadow: 0 20px 42px rgba(103, 248, 255, 0.2), 0 20px 42px rgba(255, 78, 205, 0.22);
    filter: saturate(1.12);
}

.primary-btn:hover::before,
.mini-btn:hover::before,
.home-login:hover::before {
    transform: translateX(120%);
}

.energy-hit {
    animation: energyHit 0.52s ease;
}

.small-btn {
    width: auto;
    margin-top: 0;
}

.alert {
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 78, 205, 0.12);
    border: 1px solid rgba(255, 78, 205, 0.3);
    color: #ffd8f4;
}

.alert-success {
    background: rgba(103, 248, 255, 0.1);
    border: 1px solid rgba(103, 248, 255, 0.3);
    color: #d9feff;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 5vw;
    background: rgba(5, 7, 13, 0.74);
    border-bottom: 1px solid rgba(103, 248, 255, 0.12);
    backdrop-filter: blur(16px);
}

.home-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #aebbd0;
}

.home-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-nav a:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.home-login {
    border: 1px solid rgba(103, 248, 255, 0.24);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    background: rgba(103, 248, 255, 0.07);
}

.home-hero {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 70px 5vw;
}

.home-hero-content h1 {
    max-width: 850px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    margin-bottom: 22px;
    text-shadow: 0 0 40px rgba(103, 248, 255, 0.14);
}

.home-hero-content p {
    max-width: 720px;
    color: #aebbd0;
    font-size: 18px;
    line-height: 1.65;
}

.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.home-console {
    border: 1px solid rgba(103, 248, 255, 0.18);
    background: rgba(8, 13, 24, 0.78);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(12px);
}

.console-top {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.console-top span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(103, 248, 255, 0.8);
}

.console-top span:nth-child(2) {
    background: var(--pink);
    box-shadow: 0 0 18px rgba(255, 78, 205, 0.8);
}

.console-top span:nth-child(3) {
    background: var(--violet);
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.8);
}

.console-line {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.52);
    border-radius: 14px;
    padding: 15px;
    margin-top: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.console-line:hover {
    transform: translateX(4px);
    border-color: rgba(103, 248, 255, 0.28);
    background: rgba(2, 6, 23, 0.78);
}

.console-line b,
.console-line small {
    display: block;
}

.console-line small {
    color: #8fa2bd;
    margin-top: 5px;
}

.home-section {
    padding: 76px 5vw;
    border-top: 1px solid rgba(103, 248, 255, 0.08);
}

.section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-head h2,
.split-section h2 {
    font-size: clamp(32px, 4vw, 54px);
    margin-bottom: 14px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(8, 13, 24, 0.72);
    border-radius: 18px;
    padding: 24px;
    min-height: 220px;
}

.home-card span {
    color: var(--pink);
    font-weight: 900;
}

.home-card h3 {
    margin: 18px 0 10px;
}

.home-card p {
    color: var(--muted);
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-list div {
    border: 1px solid rgba(103, 248, 255, 0.16);
    background: rgba(8, 13, 24, 0.74);
    border-radius: 16px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.workflow-list div:hover {
    transform: translateX(5px);
    border-color: rgba(103, 248, 255, 0.34);
}

.workflow-list p {
    color: var(--muted);
    margin-bottom: 0;
}

.service-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-strip span {
    border: 1px solid rgba(103, 248, 255, 0.18);
    background: rgba(103, 248, 255, 0.08);
    border-radius: 999px;
    padding: 12px 15px;
    color: #d9feff;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-strip span:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 78, 205, 0.42);
    background: rgba(255, 78, 205, 0.1);
}

.home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 5vw;
    border-top: 1px solid rgba(103, 248, 255, 0.1);
    color: #8fa2bd;
}

.home-footer div {
    display: flex;
    gap: 14px;
}

.app-body {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top right, rgba(255, 78, 205, 0.13), transparent 30%),
        radial-gradient(circle at bottom left, rgba(103, 248, 255, 0.12), transparent 28%),
        #05070d;
}

.sidebar {
    width: 270px;
    min-height: 100vh;
    border-right: 1px solid rgba(103, 248, 255, 0.12);
    background: rgba(4, 9, 18, 0.88);
    padding: 24px;
    backdrop-filter: blur(14px);
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 34px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    color: #031014;
    font-weight: 900;
    box-shadow: 0 0 26px rgba(103, 248, 255, 0.22);
}

.sidebar-brand small {
    display: block;
    margin-top: 4px;
    color: #7f8ea3;
}

.nav-menu {
    display: grid;
    gap: 9px;
}

.nav-menu a {
    position: relative;
    border: 1px solid transparent;
    color: #aebbd0;
    border-radius: 12px;
    padding: 12px 14px;
    overflow: hidden;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    width: 3px;
    height: 64%;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--cyan), var(--pink));
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
    border-color: rgba(103, 248, 255, 0.22);
    background: rgba(103, 248, 255, 0.08);
    transform: translateX(4px);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: scaleY(1);
}

.main-panel {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 18px;
}

.topbar h1 {
    margin-bottom: 0;
}

.user-pill {
    border: 1px solid rgba(103, 248, 255, 0.22);
    color: var(--cyan);
    border-radius: 999px;
    padding: 10px 14px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 18px rgba(103, 248, 255, 0.06);
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(103, 248, 255, 0.18);
    background: rgba(8, 13, 24, 0.76);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 24px;
}

.hero-panel h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.service-pills span {
    border: 1px solid rgba(103, 248, 255, 0.18);
    background: rgba(103, 248, 255, 0.08);
    border-radius: 999px;
    padding: 8px 10px;
    color: #d9feff;
    font-size: 12px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    border: 1px solid rgba(103, 248, 255, 0.16);
    background: rgba(8, 13, 24, 0.72);
    border-radius: 16px;
    padding: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 34px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tool-card {
    min-height: 190px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(8, 13, 24, 0.7);
    border-radius: 16px;
    padding: 20px;
}

.tool-card span {
    color: var(--pink);
    font-weight: 900;
}

.tool-card h3 {
    margin: 16px 0 8px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
}

.table-card,
.form-card,
.output-card {
    border: 1px solid rgba(103, 248, 255, 0.16);
    background: rgba(8, 13, 24, 0.74);
    border-radius: 18px;
    padding: 24px;
}

.table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.table-head h2 {
    margin-bottom: 0;
}

.table-head p {
    color: var(--muted);
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding: 15px 12px;
    vertical-align: top;
}

tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: rgba(103, 248, 255, 0.04);
}

th {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

td small {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    border: 1px solid rgba(103, 248, 255, 0.22);
    border-radius: 999px;
    padding: 7px 10px;
    color: #d9feff;
    font-size: 12px;
    text-transform: uppercase;
}

.action-cell {
    white-space: nowrap;
}

.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 248, 255, 0.24);
    color: var(--text);
    background: rgba(103, 248, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    margin: 2px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mini-btn:hover {
    border-color: rgba(103, 248, 255, 0.5);
    background: rgba(103, 248, 255, 0.12);
}

.mini-btn.danger {
    border-color: rgba(255, 78, 205, 0.28);
    background: rgba(255, 78, 205, 0.1);
}

.form-card h2 {
    margin-top: 8px;
    color: var(--text);
}

.form-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.warning-bar {
    border: 1px solid rgba(255, 78, 205, 0.28);
    background: rgba(255, 78, 205, 0.1);
    color: #ffd8f4;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tool-tabs a {
    border: 1px solid rgba(103, 248, 255, 0.18);
    background: rgba(8, 13, 24, 0.72);
    color: #aebbd0;
    border-radius: 999px;
    padding: 11px 14px;
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tool-tabs a.active,
.tool-tabs a:hover {
    color: #031014;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    transform: translateY(-2px);
}

.ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-bottom: 22px;
}

.output-card textarea {
    min-height: 270px;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.recent-card {
    margin-top: 18px;
}

.recent-item {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 14px 0;
}

.recent-item:first-of-type {
    border-top: 0;
}

.recent-item small {
    display: block;
    color: #7f8ea3;
    margin-top: 4px;
}

.recent-item p {
    color: #aebbd0;
    line-height: 1.55;
    margin-bottom: 0;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.checkbox-line input {
    width: auto;
}

.quick-link-grid {
    display: grid;
    gap: 12px;
}

.quick-link-grid.compact {
    gap: 10px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(103, 248, 255, 0.16);
    background: rgba(2, 6, 23, 0.48);
    border-radius: 14px;
    padding: 14px;
}

.quick-link-card.disabled {
    opacity: 0.45;
}

.quick-link-card span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    color: #031014;
    font-weight: 900;
    flex: 0 0 auto;
}

.quick-link-card small {
    display: block;
    color: #7f8ea3;
    margin-top: 4px;
    word-break: break-word;
}

.cyber-surface {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.cyber-surface::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(103, 248, 255, 0.16), transparent 32%),
        linear-gradient(115deg, transparent 0%, rgba(103, 248, 255, 0.14) 45%, rgba(255, 78, 205, 0.16) 50%, transparent 58%);
    transition: opacity 0.18s ease;
}

.cyber-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background:
        linear-gradient(90deg, transparent, rgba(103, 248, 255, 0.7), transparent) top left / 100% 1px no-repeat,
        linear-gradient(90deg, transparent, rgba(255, 78, 205, 0.55), transparent) bottom left / 100% 1px no-repeat;
    transition: opacity 0.18s ease;
}

.cyber-surface:hover {
    border-color: rgba(103, 248, 255, 0.34);
    box-shadow: 0 22px 70px rgba(0, 255, 255, 0.09), 0 18px 70px rgba(255, 78, 205, 0.07);
}

.cyber-surface:hover::before,
.cyber-surface:hover::after {
    opacity: 1;
}

.cyber-surface.is-magnetic {
    transform:
        perspective(900px)
        translate3d(var(--tx, 0), var(--ty, 0), 0)
        rotateX(var(--rx, 0))
        rotateY(var(--ry, 0));
}

.cyber-cursor,
.cyber-cursor-ring,
.cyber-cursor-dot {
    pointer-events: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
}

.cyber-cursor {
    width: 110px;
    height: 110px;
    margin-left: -55px;
    margin-top: -55px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(103, 248, 255, 0.18), rgba(255, 78, 205, 0.08), transparent 66%);
    mix-blend-mode: screen;
    transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease;
}

.cyber-cursor-ring {
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border: 1px solid rgba(103, 248, 255, 0.62);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(103, 248, 255, 0.22);
    transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, border-color 0.18s ease;
}

.cyber-cursor-dot {
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 16px rgba(103, 248, 255, 0.9);
}

.cursor-locked .cyber-cursor {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
}

.cursor-locked .cyber-cursor-ring {
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border-color: rgba(255, 78, 205, 0.72);
}

.reveal-item {
    opacity: 1;
}

.js-ready .reveal-item {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 0.58s ease var(--reveal-delay, 0ms), transform 0.58s ease var(--reveal-delay, 0ms);
}

.js-ready .reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.field-focus {
    border-color: rgba(103, 248, 255, 0.32);
    box-shadow: 0 18px 54px rgba(0, 255, 255, 0.06);
}

.toast-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    border: 1px solid rgba(103, 248, 255, 0.28);
    background: rgba(8, 13, 24, 0.96);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    transform: translateY(16px);
    opacity: 0;
    transition: 0.25s ease;
    box-shadow: 0 18px 50px rgba(0, 255, 255, 0.12);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

@keyframes gridSlide {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 44px 44px, 44px 44px;
    }
}

@keyframes commandEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes energyHit {
    0% {
        box-shadow: 0 0 0 rgba(103, 248, 255, 0);
    }

    45% {
        box-shadow: 0 0 0 6px rgba(103, 248, 255, 0.12), 0 0 28px rgba(255, 78, 205, 0.22);
    }

    100% {
        box-shadow: 0 0 0 rgba(103, 248, 255, 0);
    }
}

@media (max-width: 1200px) {
    .home-card-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-columns,
    .ai-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .home-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .home-hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding-top: 50px;
    }

    .app-body {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .hero-panel,
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .form-grid,
    .settings-grid,
    .home-card-grid,
    .tool-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-card {
        padding: 24px;
    }

    .main-panel {
        padding: 20px;
    }

    .home-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cyber-cursor,
    .cyber-cursor-ring,
    .cyber-cursor-dot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
