@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #1f2432;
    --muted: #647089;
    --line: #d7dfeb;
    --panel: #ffffff;
    --panel-soft: #f5f8fc;
    --brand: #ea580c;
    --brand-soft: #fff2e8;
    --accent: #2563eb;
    --danger: #c92a2a;
    --ok: #2b8a3e;
    --warning: #c27f00;
    --shadow: 0 14px 34px rgba(13, 28, 48, 0.1);
    --radius: 16px;
    --link: #0f766e;
}

* {
    box-sizing: border-box;
}

.svg-mask-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-color: currentColor;
    mask: var(--icon-url) no-repeat center / contain;
    -webkit-mask: var(--icon-url) no-repeat center / contain;
    vertical-align: -2px;
}

.verified-badge-icon {
    color: #1d9bf0;
}

.top-name .verified-badge-icon,
.top-more-history-meta .verified-badge-icon {
    margin-left: 4px;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 12%, #ffe9d7 0%, transparent 30%),
        radial-gradient(circle at 92% 88%, #daf5ef 0%, transparent 24%),
        linear-gradient(135deg, #edf3fb 0%, #e8eef8 45%, #f1f5fb 100%);
    min-height: 100vh;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 240px minmax(0, 1fr);
    transition: grid-template-columns 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 70px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background: linear-gradient(185deg, #0f172a, #101b33);
    color: #eef3fd;
    padding: 1.2rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), padding 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease;
    overflow-x: visible;
    overflow-y: visible;
    white-space: nowrap;
    z-index: 60;
}

.logo {
    display: flex;
    flex-direction: column;
    padding: 0.7rem 0.78rem;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.logo-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.logo-full,
.logo-mini {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-full {
    width: min(210px, 100%);
    max-width: 100%;
    height: auto;
}

.logo-mini {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
}

.logo-link:hover .logo-mini,
.logo-link:focus-visible .logo-mini {
    animation: brandSpinPop 300ms ease-in-out;
    filter: drop-shadow(0 10px 18px rgba(234, 88, 12, 0.25));
}

.logo small {
    color: #a4b5d1;
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    transition: max-width 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease, transform 0.16s ease;
}

.sidebar.collapsed {
    width: 70px;
    padding: 8px .8rem;
}

.sidebar.collapsed .logo {
    padding: 0.25rem 0;
    align-items: center;
    background: transparent;
}

.sidebar .logo-mini {
    display: none;
}

.sidebar.collapsed .logo-full {
    display: none;
}

.sidebar.collapsed .logo-mini {
    display: block;
}

.sidebar.collapsed .menu a span,
.sidebar.collapsed .menu-toggle span,
.sidebar.collapsed .menu-toggle .caret {
    display: none;
}

.sidebar.collapsed .logo-link {
    justify-content: center;
}

.menu a span,
.menu-toggle span,
.account-info,
.sidebar-upgrade-btn span {
    display: inline-block;
    overflow: hidden;
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
    transition: max-width 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease, transform 0.16s ease, margin 0.16s ease;
}

.sidebar.collapsed .menu a {
    justify-content: center;
    padding: 0.65rem 0;
    flex-direction: column;
    font-size: 1rem;
    text-align: center;
}

.sidebar.collapsed .menu a span {
    margin-top: 0;
    max-width: 0;
    opacity: 0;
    transform: translateY(-6px);
}

.sidebar.collapsed .menu-section .submenu {
    display: none;
}

.sidebar.collapsed .menu-section button.menu-toggle {
    justify-content: center;
    padding: 0.65rem 0;
    flex-direction: column;
    font-size: 1rem;
    text-align: center;
}

.sidebar.collapsed .menu-section button.menu-toggle span {
    max-width: 0;
    opacity: 0;
    transform: translateY(-6px);
}

.sidebar.collapsed .menu-section button.menu-toggle .caret {
    opacity: 0;
    transform: scale(0.86);
}

.sidebar.collapsed small {
    max-width: 0;
    opacity: 0;
    transform: translateY(-6px);
}

.sidebar.collapsed #toggle-btn {
    justify-content: center;
}

.sidebar.collapsed #toggle-btn span {
    display: none;
}

.sidebar .collapse-menu {
    cursor: pointer;
}

.collapse-menu {
    color: #5f6775ff;
    cursor: pointer;
}

.collapse-menu:hover {
    color: #333a46ff;
}

.menu {
    display: grid;
    gap: 0.45rem;
}

.menu a {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    color: #d8e2f3;
    text-decoration: none;
    padding: 0.65rem 0.72rem;
    border-radius: 12px;
    transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease;
}

.menu a .ic,
.menu-toggle .ic {
    color: inherit;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    transform: translateX(2px);
}

.menu a.active .ic,
.menu-toggle[aria-expanded="true"] .ic,
.menu-section.open .menu-toggle .ic {
    color: #fff;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 80;
}

.plan-badge {
    display: inline-block;
    padding: 0.2rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #dbe6f7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.plan-span {
    display: inline-block;
    color: #dbe6f7;
    font-size: 0.72rem;
    text-transform: capitalize;
    letter-spacing: 0.03em;
    font-weight: 300;
}

.sidebar.collapsed .account-info {
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
    margin: 0;
}

.sidebar.collapsed .usage-ring {
    display: none;
}

.sidebar.collapsed .account-btn {
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
    gap: 0;
}

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    margin-right: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.account-wrapper {
    position: relative;
    overflow: visible;
    z-index: 90;
}

.account-dropdown-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 9999;
}

.account-dropdown-menu.show {
    display: block;
}

.sidebar.collapsed .account-dropdown-menu {
    width: 300px;
    left: calc(100% + 14px);
    bottom: 0;
}

.user-profile-header {
    padding: 8px;
    border-bottom: 1px solid #334155;
    margin-bottom: 5px;
}

.account-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
}

.account-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .account-avatar {
    margin-right: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-btn {
    width: 100%;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    text-align: left;
    font-family: inherit;
    padding: 0.56rem 0.7rem;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.usage-ring {
    --progress: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: conic-gradient(#fb923c calc(var(--progress) * 1%), rgba(255, 255, 255, 0.18) 0);
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.usage-ring-inner {
    width: 29px;
    height: 29px;
    border-radius: 999px;
    background: #0f172a;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #f8fbff;
}

.account-stats {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 9px;
    margin: 8px 0;
    display: grid;
    gap: 7px;
}

.account-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #dbe6f7;
}

.account-upgrades {
    display: grid;
    gap: 6px;
    margin-bottom: 6px;
}

.account-upgrade-btn {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 7px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.account-upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: none;
}

.account-btn i {
    font-size: 20px;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.content-wrap {
    width: 100%;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    display: flex;
    min-width: 0;
    overflow: visible;
}

.top-header {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 18px rgba(23, 42, 74, 0.07);
    position: sticky;
    top: 0rem;
    z-index: 340;
    backdrop-filter: blur(8px);
    overflow: visible;
    isolation: isolate;
}

.top-header-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 780;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.top-context-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.top-context-prefix {
    white-space: nowrap;
}

.top-context-avatar,
.top-context-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #d7dfeb;
    object-fit: cover;
    flex-shrink: 0;
}

.top-context-avatar-fallback {
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.top-context-avatar-fallback--brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #0f172a 0%, #475569 42%, #cbd5e1 100%);
    border-style: solid;
}

.top-context-avatar-fallback--brand::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.top-context-avatar-fallback-mark {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.24));
}

.top-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    position: relative;
    z-index: 640;
    overflow: visible;
}

button.top-icon-btn,
a.top-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.16s ease;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    align-content: center;
}

button.top-icon-btn:hover,
a.top-icon-btn:hover {
    transform: none;
    border-color: #ced7e0;
    background: #f8fafc;
    box-shadow: none;
}

.top-menu-wrap {
    position: relative;
    z-index: 650;
    overflow: visible;
}

.top-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(340px, calc(100vw - 32px));
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    padding: 0.75rem;
    display: none;
    z-index: 620;
}

.top-more-menu.show {
    display: grid;
    gap: 0.85rem;
}

.top-export-group {
    display: grid;
    gap: 0.28rem;
    position: relative;
    z-index: 2;
}

.top-export-formats {
    display: none;
    grid-template-columns: repeat(3, 44px);
    gap: 0.38rem;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: max-content;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
    z-index: 620;
}

.top-export-formats.show {
    display: grid;
}

.top-more-menu button,
.top-more-menu a {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 650;
    padding: 0.58rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.top-export-formats button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #334155;
    display: inline-grid;
    place-items: center;
    box-shadow: none;
    transform: none;
    font-size: 1rem;
}

.top-export-formats button:hover {
    background: #f8fbff;
    border-color: #c9d7ea;
    color: #0f766e;
}

.top-export-formats button[data-export-format="pdf"] {
    color: #b91c1c;
}

.top-export-formats button[data-export-format="excel"] {
    color: #15803d;
}

.top-export-formats button[data-export-format="doc"],
.top-export-formats button[data-export-format="docs"] {
    color: #1d4ed8;
}

.top-export-formats button[data-export-format="json"] {
    color: #7c3aed;
}

.top-export-formats button[data-export-format="csv"] {
    color: #0f766e;
}

.top-more-menu button:hover,
.top-more-menu a:hover {
    background: #f6f9ff;
    border-color: #d4dff1;
    box-shadow: none;
    transform: none;
}

.top-more-menu button.danger {
    color: #b91c1c;
}

.top-more-menu button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.top-more-section {
    display: grid;
    gap: 0.42rem;
}

.top-more-menu.show div:nth-child(2) {
    border: none !important;
}

.top-more-section+.top-more-section {
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f8;
}

#topMoreCustomSection {
    border-bottom: 1px solid #edf2f8;
}

.top-more-section-title,
.top-more-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: #647089;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.top-more-section-title i {
    color: #94a3b8;
}

.top-more-link-list {
    display: grid;
    gap: 0.36rem;
}

.top-more-item {
    justify-content: flex-start;
}

.top-more-item.danger {
    color: #b91c1c;
}

.top-more-history-list {
    height: 250px;
    display: grid;
    gap: 0.45rem;
    overflow-y: scroll;
}

.top-more-history-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    text-decoration: none;
    color: #1f2432;
    padding: 0.42rem 0.18rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.top-more-history-item:hover {
    background: #f8fbff;
    border-color: #d6e1ef;
}

.top-more-history-avatar,
.top-more-history-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid #d7dfeb;
    object-fit: cover;
    flex-shrink: 0;
}

.top-more-history-avatar-fallback {
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
}

.top-more-history-meta {
    min-width: 0;
    display: grid;
    gap: 0.06rem;
}

.top-more-history-name,
.top-more-history-user {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-more-history-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.top-more-history-user {
    color: #647089;
    font-size: 0.76rem;
}

.top-more-viewall {
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    width: auto !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.top-more-empty {
    text-align: center;
    color: #647089;
    font-size: 0.81rem;
    padding: 0.1rem 0.12rem;
}

.trial-chip {
    border: 1px solid #d9ccff;
    background: linear-gradient(140deg, #faf5ff, #f3e8ff);
    color: #6d28d9;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    position: relative;
}

.trial-chip button {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    border: 1px solid #c4b5fd;
    background: #fff;
    color: #6d28d9;
    font-size: 0.66rem;
    opacity: 0;
    transition: opacity 0.15s ease;
    padding: 0;
    display: grid;
    place-items: center;
}

.trial-chip:hover button {
    opacity: 1;
}

.trial-chip.hidden {
    display: none;
}

.sidebar-upgrade-btn {
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    border: 1px solid rgba(251, 146, 60, 0.54);
    color: #fde8d8;
    background: rgba(251, 146, 60, 0.12);
    border-radius: 10px;
    padding: 0.44rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: 100%;
    justify-content: center;
}

.sidebar-upgrade-btn:hover {
    background: rgba(251, 146, 60, 0.2);
    color: #fff;
    transform: none;
}

.sidebar.collapsed .sidebar-upgrade-btn {
    width: 44px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.62rem;
}

.sidebar.collapsed .sidebar-upgrade-btn span {
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
}

.menu-section {
    display: grid;
    gap: 0.36rem;
    position: relative;
}

button.menu-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #d8e2f3;
    font-family: inherit;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.65rem 0.72rem;
    border-radius: 12px;
    cursor: pointer;
    transform: none;
    box-shadow: none;
}

button.menu-toggle .caret {
    margin-left: auto;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.menu-section.open button.menu-toggle,
button.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.menu-section.open button.menu-toggle .caret {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    margin-left: 0.62rem;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    gap: 0.3rem;
}

.menu-section.open .submenu {
    display: grid;
}

.submenu a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
}

.sidebar.collapsed .menu-section:focus-within .submenu {
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.7rem;
    border-left: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(185deg, #13203a, #0f172a);
    box-shadow: 0 20px 34px rgba(3, 10, 24, 0.36);
    z-index: 220;
    display: grid;
}

.sidebar.collapsed .menu-section:hover .submenu::before,
.sidebar.collapsed .menu-section:focus-within .submenu::before {
    content: attr(data-flyout-label);
    color: #f8fbff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.05rem 0.1rem 0.4rem;
    opacity: 0.96;
}

.sidebar.collapsed .menu-section:hover .submenu a,
.sidebar.collapsed .menu-section:focus-within .submenu a {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.62rem 0.7rem;
    border-radius: 12px;
}

.sidebar.collapsed .menu-section:hover .submenu a span,
.sidebar.collapsed .menu-section:focus-within .submenu a span {
    display: inline-block;
    max-width: 180px;
    opacity: 1;
    transform: none;
    margin-top: 0;
}

.audit-context-badge {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.2rem 0.56rem;
    font-size: 0.76rem;
    font-weight: 700;
    margin-left: 0.42rem;
}

.hero,
.card {
    animation: fadeUp 0.45s ease both;
}

.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Icon ke liye jagah chhorne ke liye */
    box-sizing: border-box;
}

.toggle-eye {
    width: auto;
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    /* Eye icon ka color */
}

.toggle-eye:hover {
    color: #1f2432;
    box-shadow: none;
    transform: none;
}

.step-pill {
    flex: 1;
    /* Full width divide karne ke liye */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
}

/* Colors */
.step-pill.gray {
    background: #e2e8f0;
    color: #64748b;
}

.step-pill.orange {
    background: #ffedd5;
    color: #ea580c;
    border: 1px solid #f97316;
}

.step-pill.green {
    background: #dcfce7;
    color: #16a34a;
}

/* Clickable for backward (Only for completed steps) */
.step-pill.clickable {
    cursor: pointer;
}

.step-pill.clickable:hover {
    opacity: 0.8;
}

.hero {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.1rem 0;
    margin-bottom: 0.85rem;
    animation-delay: 0.02s;
}

.hero h1 {
    margin-bottom: 0.18rem;
}

.hero p {
    margin: 0;
    max-width: 760px;
}

h1,
h2,
h3 {
    margin: 0 0 0.7rem 0;
}

h1 {
    font-size: clamp(1.4rem, 2.7vw, 1.95rem);
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    grid-column: span 12;
    margin-bottom: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.card.delay-1 {
    animation-delay: 0.04s;
}

.card.delay-2 {
    animation-delay: 0.08s;
}

.card.delay-3 {
    animation-delay: 0.12s;
}

@media (min-width: 980px) {
    .card.half {
        grid-column: span 6;
    }

    .card.third {
        grid-column: span 4;
    }
}

label {
    display: block;
    margin: 0.18rem 0;
    font-size: 0.92rem;
    font-weight: 650;
}

input,
button,
select {
    width: 100%;
    font-family: inherit;
    border-radius: 11px;
    border: 1px solid var(--line);
    padding: 0.62rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: #228be6;
    box-shadow: 0 0 0 2px rgba(34, 139, 230, 0.14);
}

button {
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 750;
    background: linear-gradient(120deg, var(--brand), #fb923c);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

button.secondary {
    background: linear-gradient(120deg, #0f766e, #14b8a6);
}

.result-shell {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel-soft);
    padding: 0.9rem;
    min-height: 82px;
}

.empty {
    color: var(--muted);
    font-size: 0.92rem;
}

.loader {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #335;
    font-weight: 600;
    font-size: 0.92rem;
}

.loader::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 2px solid #9bb4de;
    border-top-color: #2463c6;
    animation: spin 0.7s linear infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.stat {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 0.6rem;
    animation: popIn 0.34s ease both;
}

.stat .k {
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat .v {
    font-size: 1.08rem;
    font-weight: 780;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.23rem 0.52rem;
    font-size: 0.78rem;
    font-weight: 650;
    background: #fff;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
}

.chip.ok {
    border-color: #b7e4c7;
    background: #ecfdf3;
    color: var(--ok);
}

.chip.warn {
    border-color: #ffe8a1;
    background: #fff9db;
    color: var(--warning);
}

.chip.danger {
    border-color: #ffc9c9;
    background: #fff5f5;
    color: var(--danger);
}

.chip.brand {
    border-color: #ffd8bf;
    background: var(--brand-soft);
    color: #c2410c;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

table.data-table th,
table.data-table td {
    border-bottom: 1px solid #edf2f8;
    text-align: left;
    padding: 0.56rem 0.52rem;
    font-size: 0.9rem;
    vertical-align: top;
}

table.data-table th {
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #607089;
    background: #f8fbff;
}

.rank-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 0.8rem;
    margin-bottom: 0.64rem;
    animation: fadeUp 0.4s ease both;
}

.feed-item {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem;
    margin-bottom: 0.62rem;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.feed-item:hover {
    border-color: #b9cbeb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 52, 86, 0.08);
}

.feed-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
}

.feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #f7fafc;
    flex-shrink: 0;
}

.feed-fallback {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px dashed #c9d6ec;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    color: var(--muted);
    background: #f7fafc;
    flex-shrink: 0;
}

.feed-fallback--brand,
.history-dp-fallback--brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #0f172a 0%, #475569 42%, #cbd5e1 100%);
    border-style: solid;
}

.feed-fallback--brand::after,
.history-dp-fallback--brand::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.feed-fallback-mark,
.history-dp-fallback-mark {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.24));
}

.feed-title {
    font-weight: 760;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.feed-sub {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.12rem;
}

.history-table .history-datetime {
    display: grid;
    gap: 0.25rem;
}

.history-time-line,
.history-date-line {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.history-time-line i,
.history-date-line i {
    font-size: 0.8rem;
    color: #475569;
}

.history-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.history-account {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.history-dp,
.history-dp-fallback {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #cfdbea;
    object-fit: cover;
    flex-shrink: 0;
}

.history-dp-fallback {
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #1e3a8a;
    font-size: 0.76rem;
    font-weight: 800;
}

.history-account-meta {
    display: grid;
    gap: 0.12rem;
}

.history-account-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.history-account-user {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.mini-stats {
    display: flex;
    gap: 0.32rem;
    flex-wrap: wrap;
    margin-bottom: 0.48rem;
}

.mini-stats .chip {
    margin: 0;
    font-size: 0.75rem;
}

.feed-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}

.link-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.38rem 0.62rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    cursor: pointer;
    transition: border-color 0.14s ease, transform 0.14s ease;
}

.link-btn:hover {
    border-color: #9ab5e0;
    transform: translateY(-1px);
}

.feed-details {
    margin-top: 0.56rem;
    border-top: 1px dashed #dbe5f3;
    padding-top: 0.5rem;
    display: none;
}

.feed-item.open .feed-details {
    display: block;
    animation: fadeUp 0.24s ease both;
}

.inline-list {
    margin: 0;
    padding-left: 1rem;
    color: #42516d;
    font-size: 0.84rem;
    line-height: 1.4;
}

.dash-wave {
    font-size: clamp(1.35rem, 2.9vw, 1.9rem);
    margin: 0;
    font-weight: 820;
}

.dash-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.rank-index {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #ffd7ba;
    background: #fff3e8;
    color: #c2410c;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}

.winner {
    border: 1px solid #b7e4c7;
    background: #ebfbee;
    color: var(--ok);
    border-radius: 12px;
    padding: 0.58rem 0.72rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    animation: pulseIn 0.35s ease;
}

.flash {
    border: 1px solid #b2f2bb;
    background: #ebfbee;
    color: #2b8a3e;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.notice-auto-dismiss {
    animation: noticeFadeIn 0.25s ease both;
    opacity: 1;
    transform: translateY(0);
    max-height: 240px;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, border-width 0.2s ease;
}

.notice-auto-dismiss.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.error-list {
    border: 1px solid #ffc9c9;
    background: #fff5f5;
    color: #c92a2a;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.guest-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.guest-nav {
    width: min(1140px, calc(100% - 2rem));
    margin: 0.9rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    animation: fadeDown 0.35s ease;
}

.guest-menu {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.guest-menu a {
    text-decoration: none;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
    font-size: 0.89rem;
    background: #fff;
}

.guest-main {
    width: min(1140px, calc(100% - 2rem));
    margin: 1rem auto 1.4rem;
    flex: 1 0 auto;
}

.portal-footer {
    margin: auto 0 0;
    padding: 1rem 30px;
    border-top: 1px solid rgba(215, 223, 235, 0.95);
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    color: #4b5563;
    font-size: 0.84rem;
}

.portal-footer-left,
.portal-footer-right {
    display: grid;
    gap: 0.3rem;
}

.portal-footer-right {
    justify-items: end;
    text-align: right;
}

.portal-footer-copy,
.portal-footer-note,
.portal-footer-madeby {
    line-height: 1.55;
}

.portal-footer-madeby a,
.portal-footer-links a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.portal-footer-links {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    justify-content: flex-end;
}

.page-body {
    flex: 1 0 auto;
    margin: 0 30px;
}

.portal-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    max-width: min(320px, calc(100vw - 24px));
    padding: 0.68rem 0.8rem;
    border: 1px solid #d5ddeb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    line-height: 1.5;
    font-size: 0.78rem;
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    pointer-events: auto;
}

.portal-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.portal-tooltip img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin-top: 0.45rem;
}

.portal-tooltip a {
    color: #0f766e;
    font-weight: 700;
}

.sidebar-toggle-icon {
    width: 22px;
    height: 22px;
    background: var(--muted);
    transition: background 0.2s ease;
    --icon-url: url('/media/icons/open-sidebar.svg');
}

.collapse-menu:hover .sidebar-toggle-icon {
    background: var(--ink);
}

.app-shell.sidebar-collapsed .sidebar-toggle-icon {
    --icon-url: url('/media/icons/collaped-sidebar.svg');
}

/* Notifications Popover */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #ff3b30;
    /* Instagram red */
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.notification-hint {
    position: absolute;
    top: calc(100% + 8px);
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.notification-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.top-view-all-link {
    color: var(--link);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.top-view-all-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.top-notification-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(13, 28, 48, 0.12);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: fadeDown 0.22s ease forwards;
}

.top-notification-menu.show {
    display: flex;
}

.top-notification-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
}

.top-notification-list {
    max-height: 380px;
    overflow-y: auto;
}

.top-notification-item {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0.8rem;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.top-notification-item:hover {
    background: #f8fafc;
}

.top-notification-item.unread {
    background: #f1f5f9;
}

.top-notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #edf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-notification-icon i.fa-circle-check {
    color: #3b82f6;
}

.top-notification-content {
    flex: 1;
    min-width: 0;
}

.top-notification-title {
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
    color: #1e293b;
}

.top-notification-body {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
}

.top-notification-time {
    font-size: 0.7rem;
    color: #94a3b8;
}

.top-notification-footer {
    display: none;
    /* footer removed, actions now in header */
}

/* Notification header action icon buttons */
.top-notif-header-actions {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.top-notif-icon-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--brand);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.18s;
    text-decoration: none;
    position: relative;
    padding: 0;
    line-height: 1;
}

.top-notif-icon-btn:hover {
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}

/* Tooltip removed as per user request */

.accent-name {
    color: var(--brand);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseIn {
    from {
        transform: scale(0.98);
        opacity: 0.3;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes noticeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandSpinPop {
    0% {
        transform: rotate(-0deg) scale(1);
    }

    50% {
        transform: rotate(-180deg) scale(1.1);
    }

    100% {
        transform: rotate(-360deg) scale(1);
    }
}

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

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .top-header {
        position: static;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .top-header-actions {
        justify-content: flex-end;
    }

    .portal-footer {
        grid-template-columns: 1fr;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .portal-footer-right {
        justify-items: start;
        text-align: left;
    }

    .portal-footer-links {
        justify-content: flex-start;
    }

    .page-body {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Global Favicon Loader */
.fv-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #1f2432;
    font-weight: 700;
    font-size: 0.92rem;
}

.fv-loader::before {
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: transparent;
    background-image: url('../media/favicon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: brandSpinPop 1.2s infinite ease-in-out;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(234, 88, 12, 0.2));
}

/* Skeleton System */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 10px;
    height: 14px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: topShimmer 1.2s infinite;
}

@keyframes topShimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-block {
    height: 18px;
    border-radius: 10px;
    background: #eef2f7;
    position: relative;
    overflow: hidden;
}

.skeleton-block::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: topShimmer 1.2s infinite;
}

/* Error Page */
.error-gradient-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(255, 205, 128, 0.35), transparent 35%),
        radial-gradient(circle at 85% -10%, rgba(255, 183, 0, 0.25), transparent 40%),
        #eef2f8;
}

.error-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.error-screen-inner {
    width: min(480px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-logo {
    width: min(220px, 100%);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.error-card-plain {
    width: 100%;
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    background: transparent;
}

.error-card-plain::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    filter: blur(30px);
    background: radial-gradient(circle at 50% -30%, rgba(250, 152, 58, 0.35), transparent 65%);
    opacity: 0.8;
    z-index: -1;
}

.error-card-plain-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-top: 1rem;
}

.error-card-plain .error-code {
    font-size: 3.75rem;
    font-weight: 800;
    color: rgba(15, 18, 36, 0.85);
    margin: 0;
}

.error-card-plain h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: rgba(15, 18, 36, 0.85);
}

.error-subtitle {
    margin: 0;
    color: #647089;
    line-height: 1.5;
    font-size: 1rem;
}

.error-primary-btn {
    margin-top: 0.4rem;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-primary-btn:hover,
.error-primary-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(234, 88, 12, 0.45);
}

@media (max-width: 480px) {
    .error-card-plain {
        padding: 2.25rem 1.75rem;
    }

    .error-primary-btn {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
