:root {
    --primary: #1c00ff;
    --primary-dark: #1736b9;
    --text: #102546;
    --muted: rgba(16, 37, 70, 0.72);
    --border: rgba(16, 37, 70, 0.08);
    --panel-bg: rgba(255, 255, 255, 0.82);
    --panel-surface: rgba(255, 255, 255, 0.9);
    --radius-soft: 24px;
    --shadow-soft: 0 28px 52px rgba(16, 37, 70, 0.14);
    --carbon-deep: #eef3ff;
    --carbon-mid: #dfe9ff;
    --carbon-accent: #ff1900;
    --carbon-contrast: rgba(255, 25, 0, 0.2);
    --bg-light: rgba(28, 0, 255, 0.06);
    --border-soft: rgba(16, 37, 70, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at top right, rgba(28, 0, 255, 0.12), transparent 40%),
        radial-gradient(circle at 15% 20%, rgba(255, 25, 0, 0.08), transparent 50%),
        var(--carbon-deep);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.glass-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-panel {
    background: #ffffff;
    border-radius: var(--radius-soft);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.hero-visual {
    background: var(--panel-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual__frame {
    width: 100%;
    border-radius: 26px;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(28, 0, 255, 0.12), transparent 60%),
        linear-gradient(145deg, #fefefe, #f4f9ff);
    border: 1px solid var(--border);
}

.hero-visual__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-visual__stats div {
    flex: 1 1 140px;
    background: #ffffff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(1, 10, 18, 0.05);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.hero-panel h1 {
    margin: 0;
    font-size: clamp(2.3rem, 3vw, 3rem);
}

.hero-subtitle {
    line-height: 1.6;
    color: var(--muted);
}

.hero-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.glass-link {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.glass-link.secondary:hover {
    background: rgba(28, 0, 255, 0.08);
}

.hero-note {
    margin-top: 1rem;
    line-height: 1.5;
    color: var(--muted);
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.launch-card {
    border-radius: 20px;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.launch-tag {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--muted);
}

.launch-card h3 {
    margin: 0.75rem 0;
}

.launch-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.glass-button {
    border-radius: 12px;
    padding: 0.75rem 1.3rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.glass-button.primary {
    background: var(--primary);
    color: #fff;
}

.glass-button.secondary {
    background: #f5f7fb;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    border-radius: 18px;
    padding: 1.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(1, 10, 18, 0.05);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-list li::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer-bar {
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--muted);
}

.clock {
    font-size: 0.85rem;
    color: var(--muted);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #ffffff;
}

.login-card {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border-radius: 32px;
    box-shadow: 0 35px 80px rgba(1, 10, 18, 0.15);
    overflow: hidden;
}

.login-hero {
    background: linear-gradient(140deg, #ffffff 0%, #7EC2DE 35%, #5fb6d4 65%, #7dcfe6 100%);
    color: #ffffff;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-hero::before,
.login-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(1px);
}

.login-hero::before {
    width: 160px;
    height: 160px;
    top: -40px;
    right: 20px;
}

.login-hero::after {
    width: 120px;
    height: 120px;
    bottom: 20px;
    left: 60px;
}

.login-hero h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    margin: 0;
}

.login-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    font-size: 0.94rem;
}

.hero-highlights {
    display: grid;
    gap: 0.8rem;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.login-form-area {
    padding: 3rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-area h2 {
    margin: 0;
    font-size: 2rem;
}

.login-form-area p {
    margin: 0;
    color: var(--muted);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.input-group input {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #f9fbff;
    color: var(--text);
}

.primary-btn {
    border: none;
    border-radius: 18px;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, #ffffff, #7EC2DE);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(126, 194, 222, 0.4);
}

.link-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
}

.link-row a {
    font-weight: 600;
}

.alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(14, 100, 79, 0.15);
    color: #0c4b2b;
}

.alert.info {
    background: rgba(126, 194, 222, 0.15);
    color: var(--text);
}

.alert.error {
    background: rgba(217, 66, 66, 0.15);
    color: #a31c1c;
}

.dashboard-shell,
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px 1fr;
    padding: 2.5rem;
    gap: 2rem;
    background: transparent;
}

.dashboard-sidebar,
.sidebar {
    background: linear-gradient(160deg, #0d1f33 0%, #111b2f 55%, #0a1826 100%);
    padding: 2.5rem 1.75rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 32px;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.dashboard-brand,
.sidebar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.dashboard-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
}

.dashboard-nav,
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dashboard-nav button,
.sidebar nav button {
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.25s ease;
}

.dashboard-nav button.active,
.dashboard-nav button.is-active {
    background: rgba(1, 10, 18, 0.15);
}
.sidebar nav button.is-active {
    background: rgba(1, 10, 18, 0.15);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
}

.sidebar-footer a {
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 600;
}

.dashboard-main,
.main {
    padding: 3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border-radius: 42px;
    box-shadow: 0 60px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    color: var(--text);
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.5rem;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
}

.dashboard-header p {
    margin: 0;
    color: var(--muted);
}

.logout-btn {
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, border 0.2s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
    border-color: var(--carbon-accent);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-card {
    border-radius: 18px;
    padding: 1rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
}

.summary-card strong {
    display: block;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    border-radius: 18px;
    padding: 1rem;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(126, 194, 222, 0.05);
}

.stat-card h3 {
    margin: 0;
    font-size: 1.8rem;
}

.stat-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.text-muted {
    color: var(--muted);
}

.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    color: var(--text);
}

.panel.is-visible {
    display: block;
}

.panel h2,
.panel h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #f5fbff;
}

.panel-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.1);
}

.panel-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-form label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.panel-form input,
.panel-form select,
.panel-form textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fbff;
}

.panel-form textarea {
    resize: vertical;
}

.panel-form button {
    grid-column: 1 / -1;
    padding: 0.7rem 1.3rem;
    border-radius: 14px;
    background: var(--primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8fbff;
}

.panel-form .full-row {
    grid-column: 1 / -1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.tables-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.tables-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tables-wrapper th,
.tables-wrapper td {
    border: 1px solid var(--border);
    padding: 0.65rem;
    text-align: left;
}

.tables-wrapper thead {
    background: #f4f7fb;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.panel-table th,
.panel-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.panel-table thead {
    background: #f4f7fb;
}

.panel-feedback {
    font-size: 0.9rem;
    color: #0a6b2f;
}

.panel-alert {
    font-size: 0.9rem;
    color: #a31c1c;
}

.dashboard-tables {
    margin-top: 1rem;
}

.badge {
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: rgba(126, 194, 222, 0.2);
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .dashboard-nav {
        flex: 1 1 100%;
    }

    .dashboard-main {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    .hero,
    .login-card {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .login-form-area,
    .login-hero {
        padding: 2rem;
    }
}
