:root {
    --easyidp-navy: #0b1648;
    --easyidp-blue: #2c5f8e;
    --easyidp-cyan: #61c7d3;
    --easyidp-teal: #22b39d;
    --easyidp-lime: #9af557;
    --easyidp-white: #f6fbff;
    --easyidp-danger: #ff9f9f;
}

body.easyidp-shell {
    min-height: 100vh;
    margin: 0;
    color: var(--easyidp-white);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body.easyidp-shell::before,
body.easyidp-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    border-radius: 50% 50% 0 0;
}

body.easyidp-shell-login {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    min-height: 100dvh;
    background-color: var(--easyidp-blue);
    background-image:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), transparent 32%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1024' preserveAspectRatio='none'%3E%3Crect width='1440' height='1024' fill='%232c5f8e'/%3E%3Cpath d='M0 232C203 201 423 151 638 99C933 28 1190 -13 1440 0V682C1166 786 883 826 627 782C365 738 161 652 0 564V232Z' fill='%230b1648'/%3E%3Cpath d='M0 652C213 720 417 770 642 812C931 865 1178 929 1440 918V1024H0V652Z' fill='%2322b39d'/%3E%3Cpath d='M0 822C256 855 518 901 776 952C1006 998 1221 1024 1440 1015V1024H0V822Z' fill='%239af557'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body.easyidp-shell-login::before,
body.easyidp-shell-login::after {
    content: none;
}

body.easyidp-shell-admin {
    background-color: var(--easyidp-blue);
    background-image:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), transparent 32%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1024' preserveAspectRatio='none'%3E%3Crect width='1440' height='1024' fill='%232c5f8e'/%3E%3Cpath d='M0 232C203 201 423 151 638 99C933 28 1190 -13 1440 0V682C1166 786 883 826 627 782C365 738 161 652 0 564V232Z' fill='%230b1648'/%3E%3Cpath d='M0 652C213 720 417 770 642 812C931 865 1178 929 1440 918V1024H0V652Z' fill='%2322b39d'/%3E%3Cpath d='M0 822C256 855 518 901 776 952C1006 998 1221 1024 1440 1015V1024H0V822Z' fill='%239af557'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body.easyidp-shell-admin::before,
body.easyidp-shell-admin::after {
    content: none;
}

body.easyidp-shell-admin::before {
    content: none;
}

body.easyidp-shell-admin::after {
    content: none;
}

.easyidp-login-card,
.easyidp-panel {
    position: relative;
    z-index: 1;
    background: rgba(7, 19, 61, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(4, 10, 31, 0.38);
}

.easyidp-login-card {
    width: min(460px, 100%);
    backdrop-filter: blur(12px);
    border-radius: 26px;
    padding: 36px;
    margin: auto 0;
}

.easyidp-panel {
    width: min(720px, 100%);
    border-radius: 24px;
    padding: 40px;
}

.easyidp-brand-mark,
.easyidp-brand-icon {
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24));
}

.easyidp-brand-mark {
    width: min(260px, 58vw);
    margin: 0 auto;
}

.easyidp-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.easyidp-brand-icon {
    width: 120px;
    max-width: 28vw;
}

.easyidp-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--easyidp-cyan);
}

.easyidp-title {
    margin: 12px 0 10px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    color: var(--easyidp-lime);
}

.easyidp-title-admin {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 12px 0 16px;
}

.easyidp-copy,
.easyidp-meta {
    color: rgba(246, 251, 255, 0.8);
}

.easyidp-copy {
    margin-bottom: 28px;
}

.easyidp-shell label {
    color: rgba(246, 251, 255, 0.9);
    font-weight: 600;
}

.easyidp-shell .form-control {
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(97, 199, 211, 0.24);
    background: rgba(246, 251, 255, 0.96);
    color: var(--easyidp-navy);
}

.easyidp-shell .form-control:focus {
    border-color: var(--easyidp-cyan);
    box-shadow: 0 0 0 0.2rem rgba(97, 199, 211, 0.2);
}

.easyidp-shell .input-group-text,
.easyidp-primary-btn {
    border-radius: 14px;
}

.easyidp-shell .input-group-text {
    border-color: rgba(97, 199, 211, 0.24);
    background: rgba(97, 199, 211, 0.15);
    color: var(--easyidp-white);
}

.easyidp-primary-btn {
    min-width: 180px;
    height: 52px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--easyidp-teal) 0%, var(--easyidp-lime) 100%);
    border: none;
    color: var(--easyidp-navy);
    box-shadow: 0 14px 32px rgba(34, 179, 157, 0.3);
}

.easyidp-primary-btn:hover,
.easyidp-primary-btn:focus {
    color: var(--easyidp-navy);
    background: linear-gradient(135deg, #1d9c89 0%, #88e84b 100%);
}

.easyidp-error {
    color: var(--easyidp-danger);
}

.easyidp-shell-main {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.easyidp-dashboard {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    display: grid;
    gap: 20px;
    padding: 12px 0 32px;
}

.easyidp-dashboard-topbar,
.easyidp-dashboard-grid,
.easyidp-hero-panel {
    position: relative;
    z-index: 1;
}

.easyidp-dashboard-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.easyidp-brand-row-dashboard {
    margin-bottom: 0;
}

.easyidp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.easyidp-operator-card {
    min-width: 240px;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(7, 19, 61, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.easyidp-operator-card strong {
    font-size: 1rem;
}

.easyidp-operator-label,
.easyidp-operator-meta,
.easyidp-stat-label,
.easyidp-kpi-label,
.easyidp-kpi-meta,
.easyidp-chart-label,
.easyidp-insight-title,
.easyidp-ticket-meta,
.easyidp-table span {
    color: rgba(246, 251, 255, 0.74);
}

.easyidp-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
    gap: 24px;
    align-items: stretch;
}

.easyidp-hero-title {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    color: var(--easyidp-white);
}

.easyidp-hero-aside {
    display: flex;
}

.easyidp-kpi-stack {
    width: 100%;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(97, 199, 211, 0.18), rgba(34, 179, 157, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.easyidp-kpi-value {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    color: var(--easyidp-lime);
}

.easyidp-dashboard-grid-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.easyidp-dashboard-grid-main {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
}

.easyidp-dashboard-grid-bottom {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
}

.easyidp-dashboard-stack {
    display: grid;
    gap: 20px;
}

.easyidp-stat-card,
.easyidp-analytics-panel,
.easyidp-action-panel,
.easyidp-ticket-panel,
.easyidp-users-panel,
.easyidp-roadmap-panel,
.easyidp-hero-panel {
    width: 100%;
}

.easyidp-stat-card {
    display: grid;
    gap: 10px;
    min-height: 180px;
}

.easyidp-stat-value {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    color: var(--easyidp-lime);
}

.easyidp-stat-delta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(97, 199, 211, 0.14);
    color: var(--easyidp-cyan);
    font-size: 0.88rem;
}

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

.easyidp-section-title {
    margin: 10px 0 0;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--easyidp-white);
}

.easyidp-section-pill,
.easyidp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(154, 245, 87, 0.14);
    color: var(--easyidp-lime);
    font-size: 0.82rem;
    font-weight: 700;
}

.easyidp-chart {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 280px;
    padding: 24px 18px 12px;
    border-radius: 20px;
    background: rgba(246, 251, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.easyidp-chart-group {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.easyidp-chart-bars {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.easyidp-chart-bar {
    width: min(22px, 42%);
    border-radius: 999px 999px 6px 6px;
    box-shadow: 0 10px 20px rgba(4, 10, 31, 0.2);
}

.easyidp-chart-bar-signups {
    background: linear-gradient(180deg, rgba(97, 199, 211, 0.95), rgba(97, 199, 211, 0.35));
}

.easyidp-chart-bar-logins {
    background: linear-gradient(180deg, rgba(154, 245, 87, 0.95), rgba(154, 245, 87, 0.32));
}

.easyidp-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.easyidp-insight-card,
.easyidp-action-card,
.easyidp-ticket-row {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(246, 251, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.easyidp-insight-card p,
.easyidp-action-card p,
.easyidp-ticket-row p {
    margin: 8px 0 0;
    color: rgba(246, 251, 255, 0.8);
}

.easyidp-action-list,
.easyidp-ticket-list,
.easyidp-roadmap-list {
    display: grid;
    gap: 14px;
}

.easyidp-ticket-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.easyidp-ticket-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
    white-space: nowrap;
}

.easyidp-table {
    color: var(--easyidp-white);
}

.easyidp-table thead th {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--easyidp-cyan);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.easyidp-table td {
    border-color: rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.easyidp-table strong,
.easyidp-action-card strong,
.easyidp-ticket-row strong {
    display: block;
    color: var(--easyidp-white);
}

.easyidp-roadmap-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(246, 251, 255, 0.85);
}

.easyidp-roadmap-list li + li {
    margin-top: 12px;
}

@media (max-width: 767px) {
    body.easyidp-shell-login,
    .easyidp-shell-main {
        padding: 18px;
    }

    .easyidp-login-card,
    .easyidp-panel {
        padding: 28px;
    }

    .easyidp-brand-mark {
        width: min(220px, 62vw);
    }

    .easyidp-brand-icon {
        width: 96px;
    }

    .easyidp-dashboard-topbar,
    .easyidp-topbar-actions,
    .easyidp-ticket-row,
    .easyidp-section-head,
    .easyidp-hero-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .easyidp-topbar-actions {
        justify-items: stretch;
    }

    .easyidp-dashboard-grid-summary,
    .easyidp-dashboard-grid-main,
    .easyidp-dashboard-grid-bottom,
    .easyidp-insights-grid,
    .easyidp-chart {
        grid-template-columns: 1fr;
    }

    .easyidp-chart {
        min-height: auto;
    }

    .easyidp-chart-bars {
        min-height: 120px;
    }

    .easyidp-ticket-meta {
        justify-items: start;
        text-align: left;
        white-space: normal;
    }
}

@media (min-width: 768px) and (min-height: 820px) {
    body.easyidp-shell-login {
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .easyidp-dashboard-grid-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .easyidp-dashboard-grid-main,
    .easyidp-dashboard-grid-bottom,
    .easyidp-hero-panel {
        grid-template-columns: 1fr;
    }
}
