:root {
    --navy-950: #07111f;
    --navy-900: #0b1e34;
    --navy-800: #163559;
    --navy-700: #1d4f86;
    --cyan-500: #3dd5f3;
    --emerald-500: #28c39a;
    --amber-500: #f7b538;
    --rose-500: #ff7a7a;
    --paper-50: #f5f8fd;
    --paper-100: #edf2fb;
    --ink-900: #08111d;
    --ink-700: #2b415d;
    --ink-500: #60758f;
    --line-soft: rgba(255, 255, 255, 0.22);
    --surface: rgba(11, 30, 52, 0.7);
    --surface-strong: rgba(7, 17, 31, 0.88);
    --surface-light: rgba(255, 255, 255, 0.94);
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(6, 14, 25, 0.28);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(61, 213, 243, 0.24), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(247, 181, 56, 0.2), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(40, 195, 154, 0.16), transparent 26%),
        linear-gradient(160deg, #07111f 0%, #0d223a 34%, #0b1e34 100%);
}

img {
    max-width: 100%;
    display: block;
}

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

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.ambient-one {
    width: 260px;
    height: 260px;
    top: 10%;
    right: 7%;
    background: rgba(61, 213, 243, 0.18);
}

.ambient-two {
    width: 280px;
    height: 280px;
    bottom: 12%;
    left: 8%;
    background: rgba(40, 195, 154, 0.16);
}

.ambient-three {
    width: 200px;
    height: 200px;
    top: 48%;
    left: 42%;
    background: rgba(247, 181, 56, 0.14);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topbar h1,
.hero-copy h2,
.panel-head h2,
.console-head h2,
.section-head h3,
.feature-card h3 {
    margin: 0;
}

.topbar h1 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
}

.topbar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-pill,
.section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.section-chip.accent {
    background: rgba(40, 195, 154, 0.14);
    border-color: rgba(40, 195, 154, 0.3);
}

.studio-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.vision-column,
.workspace-column {
    display: grid;
    gap: 22px;
}

.glass-panel,
.workspace-panel {
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-panel,
.workspace-panel,
.feature-card,
.narrative-card,
.integration-card {
    padding: 28px;
}

.hero-panel {
    display: grid;
    gap: 22px;
    background:
        radial-gradient(circle at top right, rgba(61, 213, 243, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(12, 29, 49, 0.9), rgba(10, 22, 37, 0.82));
}

.hero-copy h2 {
    font-size: clamp(30px, 3.4vw, 54px);
    line-height: 1.12;
    margin-top: 10px;
    max-width: 12ch;
}

.hero-copy p,
.panel-head p,
.feature-card p,
.narrative-card p,
.insight-list li,
.data-row span,
.data-row strong,
.auth-hint,
.table-empty,
.metric-meta,
.list-note {
    color: rgba(255, 255, 255, 0.8);
}

.hero-copy p {
    margin: 14px 0 0;
    max-width: 66ch;
    line-height: 1.95;
    font-size: 16px;
}

.hero-actions,
.console-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.secondary-btn,
.workspace-tab {
    border: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-btn,
.secondary-btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.primary-btn {
    background: linear-gradient(135deg, var(--cyan-500), #2b7dff);
    color: var(--navy-950);
    box-shadow: 0 18px 30px rgba(43, 125, 255, 0.2);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.danger-btn {
    background: rgba(255, 122, 122, 0.14);
    border-color: rgba(255, 122, 122, 0.32);
}

.primary-btn:hover,
.secondary-btn:hover,
.workspace-tab:hover {
    transform: translateY(-1px);
}

.feature-grid,
.summary-grid,
.action-grid,
.insight-grid,
.split-grid {
    display: grid;
    gap: 18px;
}

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

.feature-card {
    min-height: 210px;
}

.feature-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(61, 213, 243, 0.12);
    color: var(--cyan-500);
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-card p {
    margin: 0;
    line-height: 1.85;
}

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

.section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--cyan-500);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head h3 {
    font-size: 24px;
}

.insight-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.insight-list li {
    position: relative;
    padding-right: 18px;
    line-height: 1.9;
}

.insight-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
}

.stacked-data {
    display: grid;
    gap: 10px;
}

.data-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.data-row code {
    color: var(--cyan-500);
    font-weight: 700;
}

.workspace-panel {
    padding: 28px;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.86), rgba(11, 30, 52, 0.74));
}

.panel-head {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.panel-head h2,
.console-head h2 {
    font-size: 30px;
}

.panel-head p,
.console-head p {
    margin: 0;
    line-height: 1.8;
}

.workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.workspace-tab {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid transparent;
    font-weight: 700;
}

.workspace-tab.is-active {
    background: rgba(61, 213, 243, 0.12);
    color: var(--white);
    border-color: rgba(61, 213, 243, 0.34);
}

.auth-panel,
.is-hidden {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.status-banner {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.status-banner.info {
    background: rgba(61, 213, 243, 0.12);
    border: 1px solid rgba(61, 213, 243, 0.22);
}

.status-banner.success {
    background: rgba(40, 195, 154, 0.12);
    border: 1px solid rgba(40, 195, 154, 0.24);
}

.status-banner.error {
    background: rgba(255, 122, 122, 0.12);
    border: 1px solid rgba(255, 122, 122, 0.24);
}

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

.field {
    display: grid;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    outline: none;
}

.field textarea {
    min-height: 116px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(61, 213, 243, 0.5);
    box-shadow: 0 0 0 3px rgba(61, 213, 243, 0.12);
}

.console-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 18px;
}

.metric-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    font-weight: 900;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.metric-meta {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

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

.action-card,
.data-card,
.profile-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title-row h3 {
    margin: 0;
    font-size: 22px;
}

.list-note {
    margin: 0 0 16px;
    line-height: 1.8;
}

.table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 580px;
}

th,
td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    vertical-align: top;
}

th {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
}

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

.table-empty {
    padding: 24px 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(61, 213, 243, 0.12);
    border: 1px solid rgba(61, 213, 243, 0.18);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pill.success {
    background: rgba(40, 195, 154, 0.14);
    border-color: rgba(40, 195, 154, 0.2);
}

.pill.warning {
    background: rgba(247, 181, 56, 0.14);
    border-color: rgba(247, 181, 56, 0.2);
}

.pill.danger {
    background: rgba(255, 122, 122, 0.14);
    border-color: rgba(255, 122, 122, 0.22);
}

.profile-grid {
    display: grid;
    gap: 12px;
}

.profile-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.profile-line span {
    color: rgba(255, 255, 255, 0.68);
}

.profile-line strong {
    color: var(--white);
}

@media (max-width: 1220px) {
    .studio-shell {
        grid-template-columns: 1fr;
    }

    .workspace-column {
        order: -1;
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 24px, 100%);
        padding-top: 18px;
    }

    .topbar,
    .console-head,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-grid,
    .split-grid,
    .action-grid,
    .insight-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .workspace-panel,
    .feature-card,
    .narrative-card,
    .integration-card {
        padding: 22px;
    }

    .data-row {
        grid-template-columns: 1fr;
    }
}
