:root {
    --purple: #7C3AED;
    --purple-dark: #4C1D95;
    --purple-deep: #2E1065;
    --purple-soft: #F3E8FF;
    --purple-pale: #FAF5FF;
    --white: #FFFFFF;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text: #172033;
    --muted: #64748B;
    --border: #E7EAF0;
    --success: #16A36A;
    --success-soft: #EAF8F1;
    --blue: #2563EB;
    --blue-soft: #EAF2FF;
    --amber: #D97706;
    --amber-soft: #FFF5E5;
    --danger: #DC2626;
    --sidebar-width: 268px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 8px 24px rgba(43, 31, 72, .06);
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }

.demo-ribbon {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 32px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    background: #F3E8FF;
    border-bottom: 1px solid #E9D5FF;
    color: var(--purple-dark);
    font-size: 11px;
    letter-spacing: .03em;
}
.demo-ribbon span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.demo-ribbon strong { font-weight: 650; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    min-height: 100vh;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 40px 70px, rgba(124, 58, 237, .36), transparent 165px),
        linear-gradient(180deg, #2E1065 0%, #210B4E 52%, #170835 100%);
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .08));
}
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 2px 8px 20px; }
.brand-symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #9B6AF3, var(--purple));
    box-shadow: 0 10px 24px rgba(124, 58, 237, .28);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand-copy strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand-copy small { display: block; margin-top: 2px; color: #C4B5FD; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.demo-account {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.06);
}
.account-avatar, .user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--purple-dark);
    font-size: 13px;
    font-weight: 900;
}
.demo-account div { min-width: 0; }
.demo-account strong, .demo-account small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-account strong { font-size: 13px; }
.demo-account small { margin-top: 2px; color: #C4B5FD; font-size: 10px; }
.status-indicator { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.sidebar-nav { position: relative; z-index: 1; display: grid; gap: 5px; overflow: auto; padding: 2px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 13px;
    color: #D8CFF0;
    font-size: 13px;
    font-weight: 680;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(2px); }
.sidebar-nav a.active { color: var(--purple-dark); background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.sidebar-nav a.active .icon { color: var(--purple); }
.sidebar-bottom { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
.demo-security { display: flex; align-items: center; gap: 10px; padding: 11px 10px; color: #EDE9FE; }
.security-orb { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 5px rgba(52,211,153,.10); }
.demo-security strong, .demo-security small { display: block; }
.demo-security strong { font-size: 11px; }
.demo-security small { margin-top: 2px; color: #AFA1D4; font-size: 9px; }
.exit-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    color: #F5F3FF;
    background: rgba(255,255,255,.04);
    font-size: 12px;
    font-weight: 750;
    transition: background .18s ease;
}
.exit-demo:hover { background: rgba(255,255,255,.10); }

.main-content { width: calc(100% - var(--sidebar-width)); min-width: 0; margin-left: var(--sidebar-width); padding: 66px 30px 22px; }
.topbar { display: flex; align-items: center; gap: 16px; min-height: 62px; margin-bottom: 24px; }
.topbar-title { flex: 1; min-width: 0; }
.eyebrow { display: block; margin-bottom: 3px; color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #DDD6FE; }
.topbar h1, .page-intro h2, .panel h2, .release-hero h2, .store-hero h2, .plans-intro h2, .steps-panel h2 {
    margin: 0;
    letter-spacing: -.035em;
}
.topbar h1 { font-size: clamp(23px, 2.2vw, 30px); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box, .filter-search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: #94A3B8;
}
.search-box { width: min(280px, 22vw); }
.search-box input, .filter-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder, .filter-search input::placeholder { color: #94A3B8; }
.icon-button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}
.notification-button span { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--purple); }
.menu-button { display: none; }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 154px; padding: 5px 9px 5px 5px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.user-chip .user-avatar { width: 34px; height: 34px; flex-basis: 34px; background: var(--purple-soft); }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 11px; }
.user-chip small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.mobile-exit-row { display: none; }

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 780;
    line-height: 1;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--purple), #6D28D9); box-shadow: 0 8px 18px rgba(124,58,237,.16); }
.btn-primary:hover { background: linear-gradient(135deg, #6D28D9, var(--purple-dark)); }
.btn-white { color: var(--purple-dark); background: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08); }
.btn-light { color: #3E4656; border: 1px solid var(--border); background: #fff; }
.btn-dark { color: #fff; background: #24113F; }
.btn-release { color: #fff; background: var(--purple-dark); }
.btn-small { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.btn-wide { width: 100%; }

.welcome-panel {
    min-height: 245px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    align-items: center;
    padding: 36px 38px;
    border-radius: 25px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(46,16,101,.15), rgba(124,58,237,.08)),
        linear-gradient(135deg, var(--purple-dark), #6D28D9 58%, #8B5CF6);
}
.welcome-panel::before { content: ""; position: absolute; width: 250px; height: 250px; right: 16%; top: -140px; border: 55px solid rgba(255,255,255,.06); border-radius: 50%; }
.welcome-panel > div:first-child { position: relative; z-index: 2; max-width: 660px; }
.welcome-panel h2 { margin: 0 0 10px; font-size: clamp(29px, 4vw, 43px); letter-spacing: -.045em; line-height: 1.03; }
.welcome-panel p { max-width: 590px; margin: 0; color: #EDE9FE; font-size: 14px; }
.welcome-actions { display: flex; gap: 10px; margin-top: 23px; }
.welcome-visual { min-height: 180px; position: relative; display: grid; place-items: center; }
.visual-device {
    width: 180px;
    height: 112px;
    z-index: 2;
    display: grid;
    place-content: center;
    border: 5px solid rgba(255,255,255,.94);
    border-radius: 18px;
    background: linear-gradient(145deg, #1D0A42, #4C1D95);
    box-shadow: 0 22px 40px rgba(31, 10, 71, .28);
    transform: perspective(500px) rotateY(-8deg) rotateX(3deg);
}
.visual-device::after { content: ""; position: absolute; width: 72px; height: 10px; margin: 124px auto 0; left: 0; right: 0; border-radius: 50%; background: rgba(33,11,78,.42); filter: blur(5px); }
.visual-device span { text-align: center; font-size: 28px; font-weight: 950; letter-spacing: -.06em; }
.visual-device small { margin-top: 4px; color: #C4B5FD; font-size: 8px; letter-spacing: .22em; }
.visual-ring { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.ring-one { width: 235px; height: 235px; }
.ring-two { width: 300px; height: 300px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 18px 0; }
.stat-card { min-height: 170px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.stat-card.featured { color: #fff; border-color: transparent; background: linear-gradient(145deg, #5B21B6, var(--purple-dark)); }
.stat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stat-icon, .activity-icon, .quick-icon, .release-lock, .download-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
}
.stat-icon .icon, .activity-icon .icon, .quick-icon .icon, .release-lock .icon, .download-icon .icon { width: 19px; height: 19px; }
.stat-icon.success, .activity-icon.success { color: var(--success); background: var(--success-soft); }
.stat-icon.purple, .activity-icon.purple, .quick-icon { color: var(--purple); background: var(--purple-soft); }
.stat-icon.blue, .activity-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.light { color: var(--purple-dark); background: #fff; }
.activity-icon.amber { color: var(--amber); background: var(--amber-soft); }
.trend { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.trend.positive { color: var(--success); background: var(--success-soft); }
.trend.neutral { color: var(--purple); background: var(--purple-soft); }
.trend.light { color: #fff; background: rgba(255,255,255,.13); }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.featured .stat-label { color: #DDD6FE; }
.stat-value { display: block; margin: 2px 0 1px; font-size: 32px; letter-spacing: -.04em; }
.stat-card small { color: #94A3B8; font-size: 9px; }
.featured small { color: #C4B5FD; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.panel-header h2 { font-size: 18px; }
.activity-list { padding: 3px 22px 7px; }
.activity-item { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #EEF0F4; }
.activity-item:last-child { border-bottom: 0; }
.activity-item > div { min-width: 0; flex: 1; }
.activity-item strong, .activity-item p { display: block; margin: 0; }
.activity-item strong { font-size: 12px; }
.activity-item p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-item time { color: #94A3B8; font-size: 9px; white-space: nowrap; }
.quick-links { display: grid; padding: 8px 15px 15px; }
.quick-links a { display: flex; align-items: center; gap: 11px; padding: 11px 7px; border-bottom: 1px solid #EEF0F4; }
.quick-links a:last-child { border-bottom: 0; }
.quick-links a:hover .quick-icon { color: #fff; background: var(--purple); }
.quick-links div { flex: 1; min-width: 0; }
.quick-links strong, .quick-links small { display: block; }
.quick-links strong { font-size: 11px; }
.quick-links small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.quick-links b { color: #A78BFA; font-size: 20px; font-weight: 500; }
.demo-note { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 17px 19px; border: 1px solid #E9D5FF; border-radius: 16px; background: var(--purple-pale); }
.demo-note > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 12px; color: var(--purple); background: #fff; }
.demo-note strong, .demo-note p { display: block; margin: 0; }
.demo-note strong { font-size: 11px; color: var(--purple-dark); }
.demo-note p { margin-top: 3px; color: #7354A4; font-size: 9px; }
.compact-note { max-width: 780px; margin-left: auto; margin-right: auto; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 18px; padding: 25px 27px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff, #FAF7FF); }
.page-intro h2 { margin-bottom: 6px; font-size: clamp(23px, 3vw, 31px); }
.page-intro p, .plans-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.filter-bar, .store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.filter-search { width: min(430px, 100%); }
.filter-pills, .category-pills { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.filter-pills button, .category-pills button { min-height: 32px; padding: 7px 11px; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 750; }
.filter-pills button span { margin-left: 4px; color: #94A3B8; }
.filter-pills button.active, .category-pills button.active { color: #fff; background: var(--purple); }
.filter-pills button.active span { color: #EDE9FE; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.client-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.client-card-head { display: flex; align-items: center; gap: 11px; }
.client-avatar { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 14px; color: var(--purple-dark); background: linear-gradient(145deg, #F3E8FF, #EDE9FE); font-size: 12px; font-weight: 900; }
.client-avatar.large { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; font-size: 15px; }
.client-heading { flex: 1; min-width: 0; }
.client-heading h3, .client-heading p { margin: 0; }
.client-heading h3 { font-size: 14px; }
.client-heading p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; }
.status-badge.active { color: #087A4B; background: var(--success-soft); }
.status-badge.active i { background: #16A36A; }
.status-badge.pending { color: #A15C00; background: var(--amber-soft); }
.status-badge.pending i { background: #F59E0B; }
.activation-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 15px; padding: 12px 13px; border: 1px dashed #D8B4FE; border-radius: 13px; background: #FCFAFF; }
.activation-code > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.activation-code div { display: flex; align-items: center; gap: 7px; }
.activation-code code { color: var(--purple-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 900; letter-spacing: .05em; }
.activation-code button { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--purple-soft); color: var(--purple); cursor: pointer; }
.activation-code button .icon { width: 14px; height: 14px; }
.client-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.client-meta-grid div { padding: 10px 11px; border-radius: 11px; background: #F8FAFC; }
.client-meta-grid span, .client-meta-grid strong { display: block; }
.client-meta-grid span { color: var(--muted); font-size: 8px; }
.client-meta-grid strong { margin-top: 3px; font-size: 10px; }
.client-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 7px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #EEF0F4; }
.empty-search { padding: 48px 20px; text-align: center; border: 1px dashed #D8B4FE; border-radius: var(--radius-lg); background: #fff; }
.empty-search > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 15px; color: var(--purple); background: var(--purple-soft); }
.empty-search strong, .empty-search p { display: block; margin: 0; }
.empty-search p { margin-top: 5px; color: var(--muted); font-size: 11px; }

.release-hero, .store-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 18px;
    padding: 27px 30px;
    border-radius: 23px;
    color: #fff;
    background: linear-gradient(130deg, var(--purple-dark), #6D28D9 70%, #8B5CF6);
}
.release-heading { display: flex; align-items: center; gap: 15px; }
.release-lock { color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); }
.release-hero h2, .store-hero h2 { font-size: clamp(25px, 3.2vw, 34px); }
.release-hero p, .store-hero p { margin: 5px 0 0; color: #EDE9FE; font-size: 11px; }
.release-demo-badge, .demo-tag { padding: 7px 10px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.release-demo-badge { color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.15); }
.release-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; }
.release-card { border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.primary-release-card { padding: 23px; }
.release-client { display: flex; align-items: center; gap: 12px; }
.release-client > div { flex: 1; min-width: 0; }
.release-client span, .release-client h3, .release-client p { margin: 0; }
.release-client > div > span { color: var(--muted); font-size: 9px; }
.release-client h3 { margin-top: 2px; font-size: 17px; }
.release-client p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.release-divider { height: 1px; margin: 20px 0; background: var(--border); }
.code-display { text-align: center; padding: 8px 8px 20px; }
.code-display > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.code-display > strong { display: block; margin: 6px 0 4px; color: var(--purple-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(33px, 6vw, 49px); letter-spacing: .09em; }
.code-display p { margin: 0 0 17px; color: var(--muted); font-size: 9px; }
.download-box { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px; border-radius: 15px; background: #F8FAFC; }
.download-icon { color: var(--purple); background: var(--purple-soft); }
.download-box div { min-width: 0; }
.download-box span, .download-box code { display: block; }
.download-box div span { color: var(--muted); font-size: 8px; }
.download-box code { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; color: #475569; font-size: 9px; white-space: nowrap; }
.release-side { display: grid; align-content: start; gap: 13px; }
.release-status-panel .panel-header { padding: 17px 18px; }
.status-orb { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 5px var(--success-soft); }
.release-status-list { display: grid; gap: 0; padding: 6px 18px 13px; }
.release-status-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #EEF0F4; }
.release-status-list div:last-child { border-bottom: 0; }
.release-status-list span { color: var(--muted); font-size: 9px; }
.release-status-list strong { text-align: right; font-size: 10px; }
.text-success { color: var(--success); }
.security-card { display: flex; gap: 11px; padding: 15px; border: 1px solid #E9D5FF; border-radius: 15px; background: var(--purple-pale); }
.security-card > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 11px; color: var(--purple); background: #fff; }
.security-card strong, .security-card p { display: block; margin: 0; }
.security-card strong { color: var(--purple-dark); font-size: 10px; }
.security-card p { margin-top: 3px; color: #7354A4; font-size: 9px; }
.steps-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: #fff; }
.steps-heading { margin-bottom: 16px; }
.steps-panel h2 { font-size: 19px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.steps-grid article { display: flex; gap: 11px; padding: 14px; border-radius: 14px; background: #F8FAFC; }
.steps-grid article > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border-radius: 9px; color: #fff; background: var(--purple); font-size: 10px; font-weight: 900; }
.steps-grid strong, .steps-grid p { display: block; margin: 0; }
.steps-grid strong { font-size: 10px; }
.steps-grid p { margin-top: 4px; color: var(--muted); font-size: 8px; }

.store-stat { min-width: 150px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.10); text-align: center; }
.store-stat strong, .store-stat span { display: block; }
.store-stat strong { font-size: 28px; }
.store-stat span { color: #EDE9FE; font-size: 9px; }
.store-search { width: min(400px, 100%); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; min-height: 340px; padding: 19px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-logo { width: 57px; height: 57px; display: grid; place-items: center; border-radius: 17px; color: #fff; font-size: 22px; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.app-logo.red { background: linear-gradient(145deg, #EF4444, #991B1B); }
.app-logo.green { background: linear-gradient(145deg, #34D399, #047857); }
.app-logo.purple { background: linear-gradient(145deg, #A78BFA, #5B21B6); }
.app-logo.orange { background: linear-gradient(145deg, #FB923C, #C2410C); }
.app-logo.blue { background: linear-gradient(145deg, #60A5FA, #1D4ED8); }
.app-card-copy { margin: 17px 0; }
.app-card-copy h3 { margin: 0; font-size: 16px; }
.app-card-copy p { min-height: 48px; margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.app-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: auto; margin-bottom: 14px; }
.app-meta div { padding: 9px 8px; border-radius: 10px; background: #F8FAFC; text-align: center; }
.app-meta span, .app-meta strong { display: block; }
.app-meta span { color: var(--muted); font-size: 7px; }
.app-meta strong { margin-top: 3px; font-size: 8px; }

.plans-intro { max-width: 700px; margin: 5px auto 24px; text-align: center; }
.plans-intro h2 { margin-bottom: 8px; font-size: clamp(27px, 4vw, 38px); }
.plans-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; max-width: 1080px; margin: 0 auto; }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 25px 22px 22px; border: 1px solid var(--border); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); }
.plan-card.highlighted { color: #fff; border-color: transparent; background: linear-gradient(150deg, #5B21B6, var(--purple-dark)); transform: translateY(-7px); }
.popular-badge { position: absolute; top: 15px; right: 15px; padding: 6px 8px; border-radius: 999px; color: var(--purple-dark); background: #fff; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.plan-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; color: var(--purple); background: var(--purple-soft); font-size: 21px; }
.highlighted .plan-icon { color: var(--purple-dark); background: #fff; }
.plan-subtitle { margin-top: 18px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.highlighted .plan-subtitle { color: #C4B5FD; }
.plan-card h3 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.03em; }
.plan-divider { height: 1px; margin: 18px 0; background: var(--border); }
.highlighted .plan-divider { background: rgba(255,255,255,.15); }
.plan-card ul { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.plan-card li { display: flex; align-items: center; gap: 9px; color: #465064; font-size: 10px; }
.plan-card li .icon { width: 16px; height: 16px; color: var(--success); }
.highlighted li { color: #EDE9FE; }
.highlighted li .icon { color: #86EFAC; }
.plan-card .btn { margin-top: auto; }
.plan-comparison { max-width: 1080px; margin: 25px auto 0; }
.demo-tag { color: var(--purple-dark); background: var(--purple-soft); }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.comparison-table th, .comparison-table td { padding: 13px 20px; border-bottom: 1px solid #EEF0F4; text-align: center; font-size: 10px; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table th { color: var(--muted); background: #FAFBFD; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }

.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding: 16px 3px 0; color: #94A3B8; font-size: 8px; }
.app-footer strong { color: #64748B; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 58; background: rgba(15, 7, 32, .55); backdrop-filter: blur(2px); }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 9px; }
.demo-toast { min-width: 260px; max-width: min(360px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 16px 35px rgba(30,20,52,.14); opacity: 0; transform: translateY(12px); transition: .2s ease; }
.demo-toast.visible { opacity: 1; transform: translateY(0); }
.demo-toast > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--success); font-size: 11px; font-weight: 900; }
.demo-toast.info > span { background: var(--purple); }
.demo-toast p { margin: 0; color: #475569; font-size: 10px; font-weight: 650; }
.demo-modal { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 18px; }
.demo-modal.visible { display: grid; }
.demo-modal-backdrop { position: absolute; inset: 0; background: rgba(19, 8, 39, .62); backdrop-filter: blur(3px); }
.demo-modal-card { position: relative; z-index: 1; width: min(420px, 100%); padding: 28px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 25px 65px rgba(22, 8, 48, .25); }
.modal-close { position: absolute; top: 11px; right: 13px; width: 31px; height: 31px; border-radius: 9px; background: #F8FAFC; color: #64748B; cursor: pointer; font-size: 19px; }
.modal-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 16px; color: var(--purple); background: var(--purple-soft); }
.demo-modal-card h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.demo-modal-card p { margin: 8px 0 20px; color: var(--muted); font-size: 11px; }
.modal-open, .menu-open { overflow: hidden; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-box { display: none; }
}

@media (max-width: 980px) {
    :root { --sidebar-width: 0px; }
    .demo-ribbon { left: 0; }
    .sidebar { width: 280px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 16px 0 45px rgba(20,8,43,.24); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.visible { display: block; }
    .main-content { width: 100%; margin-left: 0; padding: 60px 20px 20px; }
    .menu-button { display: grid; }
    .dashboard-grid, .release-layout { grid-template-columns: 1fr; }
    .quick-panel { order: -1; }
    .plans-grid { grid-template-columns: 1fr; max-width: 580px; }
    .plan-card.highlighted { transform: none; }
}

@media (max-width: 720px) {
    .demo-ribbon { justify-content: flex-start; height: 35px; overflow: hidden; white-space: nowrap; }
    .demo-ribbon strong { overflow: hidden; text-overflow: ellipsis; }
    .main-content { padding: 53px 13px 16px; }
    .topbar { min-height: 58px; margin-bottom: 15px; }
    .topbar-actions .user-chip { min-width: 0; padding: 5px; }
    .user-chip div { display: none; }
    .notification-button { display: none; }
    .mobile-exit-row { display: flex; justify-content: flex-end; margin: -4px 0 13px; }
    .welcome-panel { grid-template-columns: 1fr; min-height: auto; padding: 29px 23px; }
    .welcome-panel h2 { font-size: 31px; }
    .welcome-visual { display: none; }
    .welcome-actions { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { min-height: 155px; padding: 16px; }
    .stat-value { font-size: 28px; }
    .panel-header { padding: 17px; }
    .activity-list { padding-left: 17px; padding-right: 17px; }
    .page-intro { align-items: stretch; flex-direction: column; padding: 20px; }
    .filter-bar, .store-toolbar { align-items: stretch; flex-direction: column; }
    .filter-search, .store-search { width: 100%; }
    .filter-pills, .category-pills { overflow-x: auto; }
    .filter-pills button, .category-pills button { flex: 0 0 auto; }
    .client-grid, .app-grid { grid-template-columns: 1fr; }
    .client-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .client-actions .btn-release { grid-column: 1 / -1; }
    .release-hero, .store-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .release-demo-badge { align-self: flex-start; }
    .download-box { grid-template-columns: auto minmax(0,1fr); }
    .download-box .btn { grid-column: 1 / -1; }
    .steps-grid { grid-template-columns: 1fr; }
    .app-grid { gap: 12px; }
    .app-card { min-height: 0; }
    .app-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    .demo-ribbon strong { display: none; }
    .topbar h1 { font-size: 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 145px; }
    .stat-card-head { margin-bottom: 13px; }
    .stat-icon { width: 37px; height: 37px; }
    .trend { font-size: 7px; }
    .activity-item { align-items: flex-start; }
    .activity-item time { display: none; }
    .release-heading { align-items: flex-start; }
    .release-lock { display: none; }
    .code-display > strong { font-size: 34px; letter-spacing: .06em; }
    .release-client { flex-wrap: wrap; }
    .release-client .status-badge { margin-left: 70px; }
    .app-meta { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
