:root {
    --primary-color: #2dd4bf;
    --secondary-color: #94a3b8;
    --success-color: #22c55e;
    --info-color: #38bdf8;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --page-bg: #080d1a;
    --surface-bg: #101827;
    --surface-bg-soft: #121d31;
    --surface-border: rgba(148, 163, 184, 0.16);
    --surface-border-strong: rgba(45, 212, 191, 0.34);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-border-radius: 14px;
    --glass-bg: rgba(15, 23, 42, 0.82);
    --glass-blur: blur(18px);
    --transition-speed: 0.22s;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Cairo', 'Public Sans', sans-serif !important;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 32rem),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.11), transparent 30rem),
        var(--page-bg) !important;
    color: var(--text-main) !important;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: #5eead4;
}

.layout-wrapper,
.layout-page,
.content-wrapper {
    background: transparent !important;
}

.layout-page::before {
    background: linear-gradient(180deg, rgba(8, 13, 26, 0.96), rgba(8, 13, 26, 0)) !important;
    pointer-events: none;
}

.container-p-y {
    padding-top: 1.35rem !important;
}

.layout-page .container-xxl,
.layout-page .container-xl,
.layout-page .container-lg,
.layout-page .container-md,
.layout-page .container-sm {
    max-width: 100% !important;
}

.text-muted,
small.text-muted,
.breadcrumb-item,
.breadcrumb-item a {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.bg-light {
    background-color: rgba(148, 163, 184, 0.12) !important;
    color: var(--text-main) !important;
}

/* Core surfaces */
.card,
.modal-content,
.dropdown-menu,
.accordion-item {
    background:
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98)) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26) !important;
    color: var(--text-main) !important;
}

.card {
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed), background-color var(--transition-speed) !important;
}

.card::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.55), rgba(56, 189, 248, 0.2), transparent);
    content: "";
    height: 1px;
    inset: 0 0 auto;
    opacity: 0.65;
    position: absolute;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(45, 212, 191, 0.36) !important;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(45, 212, 191, 0.05) !important;
    transform: translateY(-2px);
}

.card-header,
.modal-header,
.modal-footer {
    background: rgba(8, 13, 26, 0.18) !important;
    border-color: var(--surface-border) !important;
    color: var(--text-main) !important;
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-title,
.modal-title,
h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.fw-semibold {
    color: var(--text-main) !important;
}

.divider .divider-text {
    color: var(--text-main) !important;
}

/* Sidebar */
#layout-menu {
    background:
        linear-gradient(180deg, rgba(7, 12, 24, 0.98), rgba(10, 18, 33, 0.98)) !important;
    border-left: 1px solid rgba(148, 163, 184, 0.14) !important;
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.28) !important;
}

.app-brand {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    min-height: 78px;
    padding-inline: 1rem;
}

.app-brand img {
    filter: drop-shadow(0 10px 20px rgba(45, 212, 191, 0.2));
}

.menu-inner-shadow {
    background: linear-gradient(#080d1a 40%, rgba(8, 13, 26, 0)) !important;
}

.menu-header {
    margin: 1.25rem 1.25rem 0.45rem !important;
    color: #6b7d95 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.menu-link {
    align-items: center;
    color: #cbd5e1 !important;
    border: 1px solid transparent;
    border-radius: 12px;
    margin: 3px 10px;
    min-height: 42px;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.menu-link .menu-icon {
    color: #7dd3fc !important;
    opacity: 0.9;
    transition: color var(--transition-speed), opacity var(--transition-speed), transform var(--transition-speed);
}

.menu-inner .menu-link:hover,
.menu-inner .menu-item.open > .menu-link,
.menu-inner .menu-item.active > .menu-link {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(56, 189, 248, 0.08)) !important;
    border-color: rgba(45, 212, 191, 0.22);
    color: #ffffff !important;
    transform: translateX(-3px);
}

.menu-inner .menu-link:hover .menu-icon,
.menu-inner .menu-item.open > .menu-link .menu-icon,
.menu-inner .menu-item.active > .menu-link .menu-icon {
    color: var(--primary-color) !important;
    opacity: 1;
    transform: scale(1.05);
}

.menu-inner .menu-item.active > .menu-link {
    border: 1px solid rgba(45, 212, 191, 0.34);
    box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.85), 0 10px 22px rgba(0, 0, 0, 0.16);
}

.menu-sub .menu-link {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    min-height: 36px;
    padding-inline-start: 2.75rem !important;
}

/* Navbar */
.layout-navbar {
    align-items: center !important;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3) !important;
    min-height: 72px !important;
    margin: 15px !important;
    padding: 10px 18px !important;
    width: calc(100% - 30px) !important;
}

.layout-navbar::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.48), rgba(56, 189, 248, 0.18), transparent);
    border-radius: inherit;
    content: "";
    height: 1px;
    inset: 0 18px auto;
    position: absolute;
}

.layout-navbar .nav-link,
.layout-navbar i,
.dropdown-item {
    color: #cbd5e1 !important;
}

.layout-navbar .navbar-nav-right {
    gap: 14px;
    min-height: 48px;
    width: 100%;
}

.layout-navbar .navbar-nav.flex-row {
    gap: 8px;
}

.layout-navbar .navbar-nav.flex-row > .nav-item > .nav-link,
.layout-navbar .layout-menu-toggle .nav-link {
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0 !important;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed);
}

.layout-navbar .navbar-nav.flex-row > .nav-item > .nav-link:hover,
.layout-navbar .layout-menu-toggle .nav-link:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.28);
    transform: translateY(-1px);
}

.layout-navbar .badge-notifications {
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
    inset-block-start: 4px !important;
    inset-inline-end: 4px !important;
}

.layout-navbar .avatar {
    height: 46px;
    width: 46px;
}

.layout-navbar .avatar img {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(125, 211, 252, 0.24);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(45, 212, 191, 0.12) !important;
    color: #ffffff !important;
}

.dropdown-divider {
    border-color: var(--surface-border) !important;
}

.layout-navbar .dropdown-menu {
    background:
        linear-gradient(180deg, rgba(17, 27, 46, 0.98), rgba(8, 13, 26, 0.98)) !important;
    border: 1px solid rgba(45, 212, 191, 0.18) !important;
    border-radius: 20px !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 212, 191, 0.04) !important;
    margin-top: 14px !important;
    overflow: hidden;
    padding: 0 !important;
}

.layout-navbar .dropdown-menu::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.65), rgba(56, 189, 248, 0.28), transparent);
    content: "";
    height: 2px;
    inset: 0 0 auto;
    position: absolute;
}

.layout-navbar .dropdown-menu-header,
.layout-navbar .dropdown-menu-footer {
    background: rgba(15, 23, 42, 0.48) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.layout-navbar .dropdown-header {
    min-height: 74px;
    padding: 18px 22px !important;
}

.layout-navbar .dropdown-header h5,
.layout-navbar .dropdown-user .dropdown-item .fw-medium {
    color: #f8fafc !important;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.layout-navbar .dropdown-shortcuts .dropdown-menu {
    width: min(92vw, 430px);
}

.layout-navbar .dropdown-shortcuts-add {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 14px;
    color: #99f6e4 !important;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.layout-navbar .dropdown-shortcuts-list {
    padding: 14px;
}

.layout-navbar .dropdown-shortcuts-list .row {
    border: 0 !important;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.layout-navbar .dropdown-shortcuts-list .row + .row {
    margin-top: 12px;
}

.layout-navbar .dropdown-shortcuts-item {
    background: rgba(8, 13, 26, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 18px;
    color: #f8fafc;
    min-height: 132px;
    padding: 18px 14px !important;
    position: relative;
    text-align: center;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

.layout-navbar .dropdown-shortcuts-item:hover {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.34) !important;
    transform: translateY(-2px);
}

.layout-navbar .dropdown-shortcuts-icon {
    align-items: center;
    background: rgba(45, 212, 191, 0.12) !important;
    border: 1px solid rgba(45, 212, 191, 0.22);
    color: var(--primary-color) !important;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.layout-navbar .dropdown-shortcuts-item a {
    color: #f8fafc !important;
    display: block;
    font-size: 16px;
    font-weight: 900;
    margin-top: 8px;
}

.layout-navbar .dropdown-shortcuts-item small {
    color: var(--text-muted) !important;
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.layout-navbar .dropdown-user .dropdown-menu {
    min-width: min(92vw, 330px);
}

.layout-navbar .dropdown-user .dropdown-menu > li:first-child .dropdown-item {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.06));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0 !important;
    padding: 18px !important;
}

.layout-navbar .dropdown-user .dropdown-menu > li:first-child .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(56, 189, 248, 0.08)) !important;
}

.layout-navbar .dropdown-user .avatar {
    height: 58px;
    width: 58px;
}

.layout-navbar .dropdown-user .dropdown-item {
    align-items: center;
    border-radius: 14px !important;
    color: #dbeafe !important;
    display: flex;
    font-size: 16px;
    font-weight: 800;
    margin: 6px 10px;
    min-height: 48px;
    padding: 11px 14px !important;
}

.layout-navbar .dropdown-user .dropdown-item i {
    align-items: center;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 11px;
    color: var(--primary-color) !important;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-inline-end: 10px !important;
    width: 34px;
}

.layout-navbar .dropdown-user .dropdown-item small,
.layout-navbar .dropdown-user .dropdown-item .text-muted {
    color: var(--text-muted) !important;
    font-size: 14px;
}

.layout-navbar .dropdown-user .dropdown-item a {
    color: #8b7cff !important;
    font-weight: 900;
}

.layout-navbar .dropdown-user .dropdown-divider {
    margin: 8px 0 !important;
}

.layout-navbar .dropdown-notifications .dropdown-menu {
    width: min(92vw, 410px);
}

.layout-navbar .dropdown-notifications-item {
    background: transparent !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
    color: #dbeafe !important;
    padding: 14px 16px !important;
}

.layout-navbar .dropdown-notifications-item:hover {
    background: rgba(45, 212, 191, 0.08) !important;
}

.layout-navbar .dropdown-notifications-item h6 {
    color: #fff !important;
    font-weight: 900;
}

.layout-navbar .dropdown-notifications-item p {
    color: var(--text-muted) !important;
}

/* Forms */
.form-control,
.form-select,
.input-group-text,
textarea.form-control {
    background-color: rgba(8, 13, 26, 0.72) !important;
    border: 1px solid var(--surface-border) !important;
    color: var(--text-main) !important;
    border-radius: 10px !important;
}

.form-control::placeholder {
    color: #64748b !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 0.94) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.16) !important;
    color: var(--text-main) !important;
}

.navbar-search-wrapper .input-group {
    align-items: center;
    background: rgba(4, 8, 18, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    min-height: 48px;
    min-width: min(560px, 48vw);
    overflow: hidden;
    padding: 4px;
}

.navbar-search-wrapper .form-control {
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    min-height: 40px;
    padding-right: 1rem !important;
}

.navbar-search-wrapper .input-group-text {
    align-items: center;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 999px !important;
    color: #cbd5e1 !important;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-width: 48px;
    padding: 0 !important;
}

.navbar-search-wrapper .input-group-text:hover {
    background: rgba(45, 212, 191, 0.14) !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
    color: #5eead4 !important;
}

/* Buttons */
.btn {
    border-radius: 10px !important;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed) !important;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-info {
    background: linear-gradient(135deg, #14b8a6, #38bdf8) !important;
    border-color: transparent !important;
    color: #06121f !important;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.22) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-info:hover {
    box-shadow: 0 16px 32px rgba(20, 184, 166, 0.3) !important;
}

.btn-outline-primary {
    border-color: rgba(45, 212, 191, 0.52) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: rgba(45, 212, 191, 0.14) !important;
    color: #ffffff !important;
}

.btn-label-primary,
.btn-label-info,
.btn-label-success,
.btn-label-warning {
    background: rgba(45, 212, 191, 0.12) !important;
    border: 1px solid rgba(45, 212, 191, 0.2) !important;
    color: var(--primary-color) !important;
}

.btn-label-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
    color: var(--success-color) !important;
}

.btn-label-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    color: var(--warning-color) !important;
}

/* Badges and labels */
.badge {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 0.5em 0.75em !important;
}

.bg-primary,
.badge.bg-primary {
    background: linear-gradient(135deg, #14b8a6, #38bdf8) !important;
    color: #06121f !important;
}

.bg-label-primary {
    background-color: rgba(45, 212, 191, 0.12) !important;
    color: var(--primary-color) !important;
}

.bg-label-info {
    background-color: rgba(56, 189, 248, 0.12) !important;
    color: var(--info-color) !important;
}

.bg-label-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: var(--danger-color) !important;
}

.bg-label-success {
    background-color: rgba(34, 197, 94, 0.12) !important;
    color: var(--success-color) !important;
}

.bg-label-secondary {
    background-color: rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
}

/* Home banner */
.carousel {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    background: #050816;
}

.carousel img {
    filter: saturate(1.06) contrast(1.04);
}

.carousel-control-next,
.carousel-control-prev {
    width: 3.25rem;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: rgba(8, 13, 26, 0.66);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background-size: 48%;
    width: 2.5rem;
    height: 2.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(203, 213, 225, 0.45);
    opacity: 1;
}

.carousel-indicators .active {
    width: 24px;
    background-color: var(--primary-color);
}

/* Moving announcement */
.marquee-container {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(56, 189, 248, 0.16)),
        rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(45, 212, 191, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
    margin: 20px !important;
    overflow: hidden;
    padding: 12px 16px !important;
}

.marquee-content p {
    color: #ecfeff !important;
    font-size: 1rem;
    letter-spacing: 0;
}

/* Statistics */
.card-info h5 {
    color: #ffffff !important;
}

.card-info small {
    color: var(--text-muted) !important;
}

.home-subscription-card {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(56, 189, 248, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 22px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.home-subscription-glow {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 64%);
    height: 220px;
    inset: -120px auto auto -80px;
    pointer-events: none;
    position: absolute;
    width: 220px;
}

.home-subscription-card.warning {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(20, 184, 166, 0.09)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border-color: rgba(245, 158, 11, 0.28);
}

.home-subscription-card.danger {
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(20, 184, 166, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border-color: rgba(239, 68, 68, 0.32);
}

.home-subscription-card.success {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(56, 189, 248, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border-color: rgba(34, 197, 94, 0.28);
}

.home-subscription-card.warning .home-subscription-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 64%);
}

.home-subscription-card.danger .home-subscription-glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 64%);
}

.home-subscription-card.success .home-subscription-glow {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 64%);
}

.home-subscription-icon {
    align-items: center;
    background: rgba(45, 212, 191, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 18px;
    color: var(--primary-color);
    display: flex;
    font-size: 30px;
    height: 60px;
    justify-content: center;
    position: relative;
    width: 60px;
    z-index: 1;
}

.home-subscription-card.warning .home-subscription-icon {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

.home-subscription-card.danger .home-subscription-icon {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.home-subscription-card.success .home-subscription-icon {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.home-subscription-content,
.home-subscription-perks,
.home-subscription-action {
    position: relative;
    z-index: 1;
}

.home-subscription-content span {
    color: #99f6e4;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.home-subscription-card.warning .home-subscription-content span {
    color: #fde68a;
}

.home-subscription-card.danger .home-subscription-content span {
    color: #fecaca;
}

.home-subscription-card.success .home-subscription-content span {
    color: #bbf7d0;
}

.home-subscription-content h5 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0 0 8px;
}

.home-subscription-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
}

.home-subscription-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-subscription-perks span {
    align-items: center;
    background: rgba(8, 13, 26, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
}

.home-subscription-perks i {
    color: var(--primary-color);
}

.home-subscription-action {
    align-items: center;
    background: linear-gradient(135deg, #67e8f9, #5eead4 54%, #fbbf24);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.22);
    color: #07111f !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.home-subscription-card.danger .home-subscription-action {
    background: linear-gradient(135deg, #fca5a5, #f87171 52%, #5eead4);
}

.home-subscription-card.success .home-subscription-action {
    background: linear-gradient(135deg, #86efac, #5eead4 52%, #67e8f9);
}

.home-subscription-action:hover {
    box-shadow: 0 20px 42px rgba(20, 184, 166, 0.3);
    color: #07111f !important;
    transform: translateY(-2px);
}

.stat-item {
    border: 1px solid var(--surface-border);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.stat-item:hover {
    border-color: var(--surface-border-strong);
    transform: scale(1.015);
}

/* Home app showcase */
.home-section-head {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(8, 13, 26, 0.48)),
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 22rem);
    padding: 1.1rem 1.25rem;
}

.section-kicker {
    align-items: center;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.section-kicker::before {
    background: var(--primary-color);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.55);
    content: "";
    height: 7px;
    width: 7px;
}

.section-title {
    color: var(--text-main) !important;
    font-size: 1.45rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-chip {
    align-items: center;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 999px;
    color: #ccfbf1;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
}

.section-chip i {
    color: var(--primary-color);
}

.app-showcase-grid {
    align-items: stretch;
}

.app-list-card {
    isolation: isolate;
}

.app-list-card::after {
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.1), transparent 18rem);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.list-card-info::after {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 18rem);
}

.list-card-success::after {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.11), transparent 18rem);
}

.app-list-card .card-header,
.app-list-card .card-body {
    position: relative;
    z-index: 1;
}

.list-card-title {
    gap: 0.7rem;
    min-width: 0;
}

.list-card-title small {
    color: var(--text-muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.list-card-icon {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 13px;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.list-card-info .list-card-icon {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.18);
}

.list-card-success .list-card-icon {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
}

.list-card-icon i {
    font-size: 1.25rem;
}

/* App lists */
.modern-card .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    padding: 1.1rem 1.15rem 0.95rem;
}

.modern-card .card-title > i {
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 10px;
    display: inline-flex;
    height: 34px;
    width: 34px;
    align-items: center;
    justify-content: center;
}

.app-list {
    display: grid;
    gap: 0.75rem;
}

.app-item-modern {
    background:
        linear-gradient(180deg, rgba(13, 22, 39, 0.78), rgba(8, 13, 26, 0.86)) !important;
    border: 1px solid rgba(148, 163, 184, 0.13) !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
    min-height: 72px;
    padding: 0.7rem !important;
    position: relative;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.app-item-modern::before {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.38), rgba(56, 189, 248, 0.08));
    border-radius: 999px;
    content: "";
    height: 38px;
    opacity: 0;
    position: absolute;
    right: 0;
    transition: opacity var(--transition-speed);
    width: 3px;
}

.app-item-modern:hover {
    background:
        linear-gradient(180deg, rgba(18, 30, 51, 0.95), rgba(9, 16, 30, 0.96)) !important;
    border-color: rgba(45, 212, 191, 0.32) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    transform: translateX(-4px);
}

.app-item-modern:hover::before {
    opacity: 1;
}

.app-thumb {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    display: flex;
    flex: 0 0 56px;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.app-item-modern img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.app-item-modern h6 {
    color: var(--text-main) !important;
    font-weight: 700;
    margin-bottom: 0.2rem !important;
}

.app-meta,
.app-item-modern .small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.app-meta span {
    align-items: center;
    display: inline-flex;
    white-space: nowrap;
}

.app-go-btn {
    align-items: center;
    display: inline-flex !important;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.app-item-modern .btn-icon:hover {
    transform: scale(1.06);
}

/* Categories */
.category-card-modern {
    background:
        linear-gradient(180deg, rgba(18, 29, 49, 0.98), rgba(9, 15, 28, 0.98)) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.category-card-modern::after {
    background: radial-gradient(circle at top, rgba(45, 212, 191, 0.12), transparent 13rem);
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity var(--transition-speed);
}

.category-card-modern:hover {
    border-color: rgba(45, 212, 191, 0.34) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34) !important;
    transform: translateY(-5px);
}

.category-card-modern:hover::after {
    opacity: 1;
}

.category-icon-wrapper {
    align-items: center;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 16px;
    display: flex;
    height: 64px;
    justify-content: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 64px;
}

.category-icon-wrapper i {
    color: var(--primary-color) !important;
    font-size: 1.45rem;
}

.category-card-modern:hover .category-icon-wrapper {
    background: rgba(45, 212, 191, 0.2);
    transform: translateY(-2px);
}

.category-count {
    min-width: 96px;
}

.category-action {
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
    gap: 0.45rem;
}

.category-action i {
    transition: transform var(--transition-speed);
}

.category-action:hover i {
    transform: translateX(-3px);
}

/* Category index */
.category-index-page {
    color: var(--text-main);
    padding-bottom: 42px !important;
}

.category-index-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 28, 41, 0.94));
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 26px;
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.category-index-hero::after {
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.24), transparent);
    bottom: 0;
    content: "";
    height: 1px;
    inset-inline: 28px;
    position: absolute;
}

.category-index-hero-content {
    max-width: 620px;
}

.category-index-kicker {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 999px;
    color: #ccfbf1;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.category-index-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.category-index-hero p {
    color: #94a3b8;
    line-height: 1.8;
    margin: 0;
}

.category-index-stat {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 170px;
    padding: 16px;
}

.category-index-stat i {
    align-items: center;
    background: rgba(45, 212, 191, 0.14);
    border-radius: 16px;
    color: #5eead4;
    display: inline-flex;
    font-size: 1.6rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.category-index-stat span {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.category-index-stat small {
    color: #94a3b8;
    font-weight: 700;
}

.category-index-card {
    background:
        linear-gradient(180deg, rgba(26, 38, 61, 0.88), rgba(13, 20, 36, 0.96)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 18px;
    transition: border-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
}

.category-index-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.category-index-card:hover {
    border-color: rgba(45, 212, 191, 0.34);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.category-index-count {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 7px 10px;
}

.category-index-icon {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 16px;
    color: #5eead4;
    display: inline-flex;
    font-size: 1.65rem;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.category-index-body h5 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 6px;
}

.category-index-body span {
    color: #94a3b8;
    font-weight: 700;
}

.category-index-action {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 999px;
    color: #ccfbf1 !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    min-height: 40px;
    padding-inline: 14px;
    text-decoration: none !important;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.category-index-action:hover {
    background: rgba(45, 212, 191, 0.2);
    transform: translateY(-1px);
}

.category-index-empty {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 36px 18px;
    text-align: center;
}

.category-index-empty > i {
    color: #5eead4;
    font-size: 3rem;
    margin-bottom: 12px;
}

.category-index-empty h4 {
    color: #f8fafc;
    font-weight: 900;
}

/* App detail */
.app-detail-card {
    overflow: hidden;
}

.app-icon-wrapper {
    height: 120px;
    position: relative;
    width: 120px;
}

.app-icon-wrapper img {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px !important;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.description-box {
    background:
        linear-gradient(180deg, rgba(14, 25, 44, 0.96), rgba(7, 13, 26, 0.98)),
        rgba(7, 13, 26, 0.98) !important;
    border: 1px solid rgba(45, 212, 191, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.22);
    color: #e5f3ff !important;
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

.app-store-panel {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: 18px;
    padding: 16px;
}

.app-store-panel img {
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
}

.app-store-stat {
    background: rgba(8, 13, 28, 0.62);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    min-height: 88px;
    padding: 16px 10px;
}

.app-copy-panel {
    align-items: center;
    background: rgba(7, 12, 25, 0.78);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.app-copy-panel small {
    color: #67e8f9;
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.app-copy-panel span {
    color: #f8fafc;
    display: block;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: left;
}

.description-section .copy-description-btn {
    border-radius: 999px;
}

.app-iphone-slider {
    background: rgba(7, 12, 25, 0.62);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    padding: 18px 18px 48px;
}

.app-iphone-slider .swiper-slide {
    align-items: center;
    display: flex;
    justify-content: center;
}

.iphone-shot-frame {
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(180deg, #111827, #020617);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 32px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
    cursor: zoom-in;
    max-height: 620px;
    overflow: hidden;
    padding: 8px;
    width: min(100%, 310px);
}

.iphone-shot-frame img {
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    height: 100% !important;
    object-fit: cover;
    width: 100%;
}

.app-screenshots-next,
.app-screenshots-prev {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(103, 232, 249, 0.22);
    border-radius: 999px;
    color: #67e8f9;
    height: 38px;
    width: 38px;
}

.app-screenshots-next::after,
.app-screenshots-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.app-screenshots-pagination .swiper-pagination-bullet {
    background: #94a3b8;
    opacity: 0.35;
}

.app-screenshots-pagination .swiper-pagination-bullet-active {
    background: #2dd4bf;
    opacity: 1;
}

.app-shot-modal {
    background: rgba(8, 13, 28, 0.96);
    border: 1px solid var(--surface-border);
    color: #f8fafc;
}

.app-shot-modal #modalScreenshot {
    max-height: 82vh;
}

.image-preview-container {
    gap: 10px;
}

.image-preview-item {
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    height: 82px;
    overflow: hidden;
    position: relative;
    width: 82px;
}

.image-preview-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.remove-image {
    align-items: center;
    background: rgba(239, 68, 68, 0.86);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 22px;
}

.notification {
    border-radius: 12px;
    bottom: 22px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    color: #fff;
    opacity: 0;
    padding: 13px 18px;
    position: fixed;
    right: 22px;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

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

.notification.success {
    background: linear-gradient(135deg, #059669, #14b8a6);
}

.notification.error {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.app-screenshots-slider .swiper-slide img {
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    height: auto;
    width: 100%;
}

.cursor-pointer {
    cursor: pointer;
}

/* Profile and auth */
.profile-page {
    color: var(--text-main);
}

.profile-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(56, 189, 248, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.profile-hero::before {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 62%);
    content: "";
    height: 260px;
    inset: -120px auto auto -80px;
    position: absolute;
    width: 260px;
}

.profile-hero.warning {
    border-color: rgba(245, 158, 11, 0.34);
}

.profile-hero.danger {
    border-color: rgba(239, 68, 68, 0.34);
}

.profile-identity {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 34px rgba(0, 0, 0, 0.28);
    display: flex;
    flex: 0 0 auto;
    height: 104px;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
    width: 104px;
}

.profile-avatar img,
.profile-avatar span {
    align-items: center;
    border-radius: 23px;
    color: #fff;
    display: flex;
    font-size: 32px;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    object-fit: cover;
    width: 100%;
}

.profile-kicker,
.profile-panel-title span,
.profile-panel-head > span {
    align-items: center;
    color: #99f6e4;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0;
}

.profile-hero h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: 0;
    margin: 8px 0 6px;
}

.profile-hero p {
    color: var(--text-muted);
    direction: ltr;
    margin: 0;
}

.profile-status-card {
    align-items: center;
    background: rgba(8, 13, 26, 0.62);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 20px;
    display: flex;
    gap: 14px;
    min-width: min(100%, 310px);
    padding: 18px;
    position: relative;
    z-index: 1;
}

.profile-status-card > i {
    align-items: center;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 16px;
    color: var(--primary-color);
    display: flex;
    flex: 0 0 auto;
    font-size: 28px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.profile-status-card.warning > i {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
    color: var(--warning-color);
}

.profile-status-card.gold > i {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fbbf24;
}

.profile-status-card.danger > i {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: var(--danger-color);
}

.profile-status-card span {
    color: #fff;
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.profile-status-card small {
    color: var(--text-muted);
    display: block;
    line-height: 1.8;
}

.profile-subscription-cta {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(20, 184, 166, 0.1)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 22px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: -8px 0 24px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.profile-subscription-cta::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 64%);
    content: "";
    height: 220px;
    inset: -110px auto auto -70px;
    position: absolute;
    width: 220px;
}

.profile-subscription-cta.danger {
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(20, 184, 166, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border-color: rgba(239, 68, 68, 0.34);
}

.profile-subscription-cta.danger::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 64%);
}

.profile-subscription-copy {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.profile-subscription-copy > i {
    align-items: center;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 18px;
    color: #fbbf24;
    display: flex;
    flex: 0 0 auto;
    font-size: 28px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.profile-subscription-cta.danger .profile-subscription-copy > i {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.profile-subscription-copy h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 6px;
}

.profile-subscription-copy p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.profile-subscription-action {
    align-items: center;
    background: linear-gradient(135deg, #67e8f9, #5eead4 54%, #fbbf24);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.22);
    color: #07111f !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 900;
    gap: 9px;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.profile-subscription-cta.danger .profile-subscription-action {
    background: linear-gradient(135deg, #fca5a5, #f87171 52%, #5eead4);
}

.profile-subscription-action:hover {
    box-shadow: 0 20px 42px rgba(20, 184, 166, 0.3);
    color: #07111f !important;
    transform: translateY(-2px);
}

/* Digital cards store */
.digital-store-page {
    color: var(--text-main);
}

.digital-store-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 28px;
}

.digital-store-hero.compact {
    padding: 22px;
}

.digital-store-hero span,
.digital-stock {
    align-items: center;
    color: #99f6e4;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
}

.digital-store-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    margin: 8px 0;
}

.digital-store-hero p {
    color: var(--text-muted);
    margin: 0;
}

.digital-store-cart,
.digital-store-link,
.digital-checkout,
.digital-add-form button {
    align-items: center;
    background: linear-gradient(135deg, #67e8f9, #5eead4 54%, #fbbf24);
    border: 0;
    border-radius: 16px;
    color: #07111f !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
}

.digital-store-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.digital-store-link {
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0 !important;
}

.digital-navbar-cart {
    align-items: center;
    background: linear-gradient(135deg, #67e8f9, #5eead4 54%, #fbbf24);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(45, 212, 191, 0.18);
    color: #07111f !important;
    display: inline-flex;
    font-weight: 900;
    gap: 5px;
    min-height: 40px;
    padding: 0 14px !important;
    position: relative;
    white-space: nowrap;
}

.digital-navbar-cart:hover {
    color: #07111f !important;
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.digital-navbar-cart-count {
    font-variant-numeric: tabular-nums;
}

.digital-flash {
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(8, 13, 26, 0.88));
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 18px;
    color: #dffcf7;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: -8px 0 22px;
    padding: 14px 16px;
}

.digital-flash > span {
    flex: 1 1 auto;
}

.digital-flash a {
    color: #67e8f9;
    font-weight: 900;
    text-decoration: none;
}

.digital-card,
.digital-cart-panel,
.digital-summary {
    background: linear-gradient(180deg, rgba(18, 29, 49, 0.94), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.digital-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.digital-card:hover {
    border-color: rgba(94, 234, 212, 0.34);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.digital-card.is-sold-out {
    border-color: rgba(248, 113, 113, 0.28);
}

.digital-card-media {
    background: #020617;
    overflow: hidden;
    position: relative;
}

.digital-card-media::after {
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
    bottom: 0;
    content: "";
    height: 45%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.digital-card-media img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
    width: 100%;
}

.digital-card:hover .digital-card-media img {
    transform: scale(1.035);
}

.digital-card.is-sold-out .digital-card-media img {
    filter: grayscale(.6) brightness(.72);
}

.digital-card-badge {
    align-items: center;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    bottom: 12px;
    color: #cffafe;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    left: 12px;
    padding: 7px 10px;
    position: absolute;
    z-index: 2;
}

.digital-sold-stamp {
    align-items: center;
    background: rgba(185, 28, 28, 0.92);
    border: 3px solid rgba(254, 202, 202, 0.96);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.42);
    color: #fff;
    display: inline-flex;
    font-size: 22px;
    font-weight: 900;
    height: 86px;
    justify-content: center;
    letter-spacing: 0;
    position: absolute;
    right: 18px;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
    top: 18px;
    transform: rotate(-14deg);
    width: 86px;
    z-index: 3;
}

.digital-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 18px;
}

.digital-card-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.digital-card h3,
.digital-summary h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.digital-card-head strong {
    color: #5eead4;
    flex: 0 0 auto;
}

.digital-card p {
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.8;
    margin: 10px 0;
    min-height: 0;
}

.digital-card-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.digital-card-meta span {
    align-items: center;
    background: rgba(8, 13, 26, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
}

.digital-stock.empty {
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(248, 113, 113, 0.24);
    color: #fecaca;
}

.digital-add-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 88px 1fr;
    margin-top: auto;
    padding-top: 16px;
    position: relative;
    z-index: 2;
}

.digital-add-form input,
.digital-coupon-form input {
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    color: #fff;
    min-height: 46px;
    padding: 0 12px;
}

.digital-add-form input:disabled,
.digital-add-form button:disabled {
    cursor: not-allowed;
    filter: grayscale(.45);
    opacity: .72;
}

.digital-add-form.is-ready button {
    box-shadow: 0 14px 28px rgba(45, 212, 191, 0.22);
}

.digital-add-form button {
    cursor: pointer;
    white-space: nowrap;
}

.digital-card-action-note {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 9px;
}

.digital-card-action-note.is-ready {
    color: #99f6e4;
}

.digital-card-action-note.is-empty {
    color: #fecaca;
}

.digital-cart-panel,
.digital-summary {
    padding: 18px;
}

.digital-cart-item,
.digital-order-row,
.digital-order-item {
    align-items: center;
    background: rgba(8, 13, 26, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    color: #fff;
    display: grid;
    gap: 14px;
    grid-template-columns: 70px 1fr auto auto auto;
    margin-bottom: 12px;
    padding: 12px;
}

.digital-order-row,
.digital-order-item {
    grid-template-columns: 1fr auto auto;
    text-decoration: none !important;
}

.digital-cart-item img {
    border-radius: 14px;
    height: 70px;
    object-fit: cover;
    width: 70px;
}

.digital-cart-item h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 4px;
}

.digital-cart-item p,
.digital-summary small,
.digital-order-row em {
    color: var(--text-muted);
    margin: 0;
}

.digital-qty-form {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(94, 234, 212, 0.16);
    border-radius: 999px;
    display: inline-grid;
    gap: 4px;
    grid-template-columns: 34px 54px 34px;
    padding: 4px;
}

.digital-qty-form button {
    align-items: center;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 999px;
    color: #99f6e4;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.digital-qty-form input {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 900;
    height: 34px;
    text-align: center;
    width: 54px;
}

.digital-qty-form input::-webkit-outer-spin-button,
.digital-qty-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.digital-remove {
    align-items: center;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 12px;
    color: #fca5a5;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.digital-coupon-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-bottom: 16px;
}

.digital-coupon-form button {
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 14px;
    color: #99f6e4;
    font-weight: 900;
    padding: 0 14px;
}

.digital-summary-row,
.digital-summary-total {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.digital-summary-total {
    border-bottom: 0;
    font-size: 20px;
    font-weight: 900;
}

.digital-checkout {
    margin: 12px 0;
    width: 100%;
}

.digital-success-mark {
    align-items: center;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 22px;
    color: #86efac;
    display: flex;
    flex: 0 0 74px;
    font-size: 42px;
    height: 74px;
    justify-content: center;
}

.digital-success-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.18), rgba(94, 234, 212, 0.12));
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 24px;
    color: #67e8f9;
    display: inline-flex;
    font-size: 48px;
    height: 88px;
    justify-content: center;
    width: 88px;
}

.digital-cart-panel h2 {
    color: #fff;
    font-weight: 900;
}

.digital-empty,
.digital-pending,
.digital-code {
    background: rgba(8, 13, 26, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: var(--text-muted);
    padding: 24px;
    text-align: center;
}

.digital-code {
    color: #fff;
    margin-top: 10px;
    text-align: left;
}

.digital-code-row {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 10px;
}

.digital-code-row .digital-code {
    margin-top: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.digital-code-copy {
    align-items: center;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.95), rgba(103, 232, 249, 0.9));
    border: 0;
    border-radius: 14px;
    color: #07111f;
    display: inline-flex;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    min-width: 96px;
    padding: 0 16px;
}

.profile-side-stack {
    display: grid;
    gap: 20px;
}

.profile-panel {
    background:
        linear-gradient(180deg, rgba(18, 29, 49, 0.94), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.profile-panel::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.65), rgba(56, 189, 248, 0.2), transparent);
    content: "";
    height: 2px;
    inset: 0 0 auto;
    position: absolute;
}

.profile-panel-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-panel-title {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.profile-panel-title > i {
    align-items: center;
    background: rgba(45, 212, 191, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 16px;
    color: var(--primary-color);
    display: flex;
    flex: 0 0 auto;
    font-size: 25px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.profile-panel-title h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 4px 0 0;
}

.profile-icon-action {
    align-items: center;
    background: rgba(45, 212, 191, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 14px;
    color: #99f6e4;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
    width: 44px;
}

.profile-icon-action:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.44);
    color: #fff;
    transform: translateY(-2px);
}

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

.profile-info-item {
    align-items: center;
    background: rgba(8, 13, 26, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 14px;
}

.profile-info-item i {
    align-items: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 13px;
    color: var(--info-color);
    display: flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.profile-info-item div {
    min-width: 0;
}

.profile-info-item span {
    color: var(--text-muted);
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.profile-info-item strong {
    color: #fff;
    display: block;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-main-action,
.profile-download-action {
    align-items: center;
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    border: 0;
    border-radius: 999px;
    color: #06111f !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.profile-main-action {
    margin-top: 18px;
    width: 100%;
}

.profile-main-action:hover,
.profile-download-action:hover {
    box-shadow: 0 14px 34px rgba(45, 212, 191, 0.22);
    color: #06111f !important;
    transform: translateY(-2px);
}

.profile-orders-stats {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.profile-orders-stats a {
    align-items: center;
    background: rgba(8, 13, 26, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: var(--text-main);
    display: grid;
    gap: 10px;
    grid-template-columns: 38px 1fr auto;
    padding: 12px;
}

.profile-orders-stats i {
    align-items: center;
    background: rgba(45, 212, 191, 0.14);
    border-radius: 12px;
    color: #99f6e4;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.profile-orders-stats span {
    color: var(--text-muted);
    font-weight: 800;
}

.profile-orders-stats strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.profile-video-panel p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-top: -8px;
}

.profile-video-frame {
    background: rgba(8, 13, 26, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    overflow: hidden;
}

.profile-video-frame video {
    display: block;
}

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

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

.profile-field label,
.profile-edit-form .form-label {
    color: #dbeafe;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-field .form-control,
.profile-edit-form .form-control,
.profile-edit-form .form-select {
    background: rgba(8, 13, 26, 0.54) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    border-radius: 14px !important;
    color: #fff !important;
    min-height: 48px;
}

.profile-field .form-control:focus,
.profile-edit-form .form-control:focus,
.profile-edit-form .form-select:focus {
    border-color: rgba(45, 212, 191, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.12) !important;
}

.profile-download-box {
    align-items: center;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 18px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px;
}

.profile-download-box > div {
    align-items: center;
    display: flex;
    gap: 12px;
}

.profile-download-box > div > i {
    color: var(--primary-color);
    font-size: 34px;
}

.profile-download-box span {
    color: #fff;
    display: block;
    font-weight: 900;
}

.profile-download-box small {
    color: var(--text-muted);
}

.profile-telegram-panel {
    margin-top: 22px;
}

.profile-switch {
    align-items: center;
    background: rgba(8, 13, 26, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    display: flex;
    gap: 8px;
    padding: 9px 14px;
}

.profile-switch .form-check-label {
    color: #dbeafe;
    font-weight: 800;
}

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

.profile-help-card {
    background: rgba(8, 13, 26, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    color: #fff;
    padding: 18px;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);
}

.profile-help-card:hover {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.34);
    color: #fff;
    transform: translateY(-2px);
}

.profile-help-card i {
    color: var(--primary-color);
    display: block;
    font-size: 30px;
    margin-bottom: 12px;
}

.profile-help-card span,
.profile-help-card strong {
    display: block;
}

.profile-help-card span {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.profile-help-card strong {
    color: #fff;
    direction: ltr;
}

.profile-locked-badge {
    align-items: center;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    color: #fbbf24;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    padding: 10px 14px;
}

.profile-telegram-locked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(8, 13, 26, 0.64));
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 20px;
    margin-top: 18px;
    padding: 22px;
}

.profile-telegram-locked > i {
    align-items: center;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 16px;
    color: #fbbf24;
    display: inline-flex;
    font-size: 28px;
    height: 54px;
    justify-content: center;
    margin-bottom: 14px;
    width: 54px;
}

.profile-telegram-locked h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 8px;
}

.profile-telegram-locked p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.profile-telegram-preferences {
    background: rgba(8, 13, 26, 0.38);
    border: 1px solid rgba(45, 212, 191, 0.14);
    border-radius: 20px;
    margin-top: 18px;
    padding: 18px;
}

.profile-telegram-test {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(8, 13, 26, 0.46));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    margin-top: 18px;
    padding: 18px;
}

.profile-telegram-test > label {
    color: #dbeafe;
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
}

.profile-telegram-test textarea {
    min-height: 116px;
    resize: vertical;
}

.profile-telegram-test small {
    color: var(--text-muted);
    display: block;
    margin-top: 9px;
}

.telegram-preferences-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.telegram-preferences-head span,
.telegram-filter-box > label {
    color: var(--primary-color);
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 5px;
}

.telegram-preferences-head h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    margin: 0;
}

.telegram-toggle-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.telegram-toggle-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    cursor: pointer;
    display: grid;
    gap: 7px;
    padding: 16px;
    position: relative;
    transition: border-color var(--transition-speed), background var(--transition-speed), transform var(--transition-speed);
}

.telegram-toggle-card:hover {
    border-color: rgba(45, 212, 191, 0.34);
    transform: translateY(-2px);
}

.telegram-toggle-card input {
    left: 14px;
    position: absolute;
    top: 14px;
}

.telegram-toggle-card span {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border-radius: 14px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 24px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.telegram-toggle-card strong {
    color: #fff;
    font-size: 17px;
}

.telegram-toggle-card small,
.telegram-filter-box small,
.telegram-empty-note {
    color: var(--text-muted);
}

.telegram-toggle-card:has(input:checked) {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.34);
}

.telegram-filter-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.telegram-filter-box {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 16px;
}

.telegram-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding-inline-end: 4px;
}

.telegram-category-chip {
    cursor: pointer;
    margin: 0;
}

.telegram-category-chip input {
    display: none;
}

.telegram-category-chip span {
    background: rgba(8, 13, 26, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.telegram-category-chip input:checked + span {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.36);
    color: #fca5a5;
}

.telegram-filter-box textarea.form-control {
    background: rgba(8, 13, 26, 0.72);
    border-color: rgba(148, 163, 184, 0.14);
    color: #fff;
    resize: vertical;
}

.profile-telegram-designer {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(8, 13, 26, 0.54));
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    margin-top: 18px;
    padding: 18px;
}

.telegram-design-status {
    align-items: center;
    background: rgba(8, 13, 26, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    padding: 10px 14px;
}

.telegram-design-media,
.telegram-design-fields {
    display: grid;
    gap: 12px;
}

.telegram-design-media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.telegram-design-media label,
.telegram-design-fields label {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 14px;
}

.telegram-design-media span,
.telegram-design-fields span {
    color: #7dd3fc;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.telegram-design-media small {
    color: #86efac;
    display: block;
    margin-top: 8px;
}

.telegram-visual-editor {
    background: rgba(8, 13, 26, 0.42);
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 20px;
    margin-bottom: 14px;
    padding: 16px;
}

.telegram-editor-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.telegram-editor-tabs,
.telegram-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.telegram-editor-tabs button {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 900;
    padding: 9px 14px;
}

.telegram-editor-tabs button.active {
    background: rgba(45, 212, 191, 0.16);
    border-color: rgba(45, 212, 191, 0.36);
    color: #99f6e4;
}

.telegram-preview-stage {
    aspect-ratio: 16 / 9;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    min-height: 260px;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.telegram-preview-bg {
    display: none;
    height: 100%;
    inset: 0;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.telegram-preview-stage.has-preview .telegram-preview-bg {
    display: block;
}

.telegram-preview-empty {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    font-weight: 900;
    gap: 10px;
    inset: 0;
    justify-content: center;
    position: absolute;
    text-align: center;
}

.telegram-preview-empty i {
    color: #7dd3fc;
    font-size: 42px;
}

.telegram-preview-stage.has-preview .telegram-preview-empty {
    display: none;
}

.telegram-draggable {
    cursor: grab;
    position: absolute;
    touch-action: none;
    z-index: 2;
}

.telegram-draggable:active {
    cursor: grabbing;
}

.telegram-preview-icon {
    border-radius: 24px;
    overflow: hidden;
}

.telegram-preview-icon img {
    display: block;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

.telegram-preview-name,
.telegram-preview-version {
    color: #fff;
    font-weight: 950;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
    white-space: nowrap;
}

.telegram-editor-sliders {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 14px;
}

.telegram-editor-sliders label {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 12px;
}

.telegram-editor-sliders span {
    color: #7dd3fc;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.telegram-editor-sliders input {
    width: 100%;
}

.telegram-design-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.telegram-design-fields .form-control {
    background: rgba(8, 13, 26, 0.72);
    border-color: rgba(148, 163, 184, 0.14);
    color: #fff;
}

.profile-inline-result {
    color: var(--text-muted);
    font-size: 13px;
    min-height: 0;
}

.profile-edit-modal .modal-content {
    border-radius: 22px !important;
    padding: 24px;
}

.profile-modal-head {
    margin-bottom: 22px;
    text-align: center;
}

.profile-modal-head span {
    align-items: center;
    background: rgba(45, 212, 191, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 18px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 30px;
    height: 62px;
    justify-content: center;
    margin-bottom: 12px;
    width: 62px;
}

.profile-modal-head h3 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

.profile-modal-head p {
    color: var(--text-muted);
    margin: 0;
}

.profile-avatar-wrapper {
    height: 120px;
    width: 120px;
}

.profile-avatar-wrapper img {
    border: 4px solid rgba(45, 212, 191, 0.28);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.modern-input-group {
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.modern-input-group .form-control {
    border-right: 1px solid var(--surface-border) !important;
    padding: 12px 15px !important;
}

.modern-input-group .btn {
    padding: 0 20px !important;
}

.modern-input-group .input-group-text {
    color: var(--text-muted) !important;
}

.modern-accordion .accordion-item {
    margin-bottom: 10px;
}

.modern-accordion .accordion-button {
    background: transparent !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    padding: 15px 20px;
}

.modern-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(45, 212, 191, 0.1) !important;
    color: var(--primary-color) !important;
}

.form-password-toggle .input-group-text i {
    cursor: pointer;
    transition: color var(--transition-speed);
}

.form-password-toggle .input-group-text i:hover {
    color: var(--primary-color);
}

.authentication-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
}

.authentication-inner {
    width: 100%;
}

.auth-page {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1fr);
    min-height: calc(100vh - 80px);
    padding: clamp(18px, 3vw, 36px);
}

.auth-visual,
.auth-card {
    background:
        linear-gradient(180deg, rgba(18, 29, 49, 0.94), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    padding: 32px;
}

.auth-visual::before {
    background:
        radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.28), transparent 26%),
        radial-gradient(circle at 76% 34%, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(96, 165, 250, 0.05));
    content: "";
    inset: 0;
    position: absolute;
}

.auth-visual::after {
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 32px;
    content: "";
    height: 260px;
    inset: auto -72px 74px auto;
    position: absolute;
    transform: rotate(-12deg);
    width: 260px;
}

.auth-logo,
.auth-visual-content,
.auth-feature-list {
    position: relative;
    z-index: 1;
}

.auth-logo {
    align-items: center;
    background: rgba(8, 13, 26, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    display: inline-flex;
    min-height: 58px;
    padding: 10px 16px;
    width: max-content;
}

.auth-logo img {
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.auth-visual-content {
    max-width: 560px;
}

.auth-kicker {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 999px;
    color: #99f6e4;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    padding: 10px 14px;
}

.auth-visual h1 {
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 24px 0 16px;
}

.auth-visual p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 2;
    margin: 0;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
}

.auth-feature-list div {
    align-items: center;
    background: rgba(8, 13, 26, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 16px;
    color: #dbeafe;
    display: flex;
    font-weight: 800;
    gap: 12px;
    padding: 14px;
}

.auth-feature-list i {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border-radius: 12px;
    color: var(--primary-color);
    display: flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.auth-form-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
}

.auth-card {
    max-width: 560px;
    padding: clamp(24px, 4vw, 42px);
    width: 100%;
}

.auth-card.register {
    max-width: 680px;
}

.auth-card::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.65), rgba(56, 189, 248, 0.25), transparent);
    content: "";
    height: 2px;
    inset: 0 0 auto;
    position: absolute;
}

.auth-card-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-card-head > span {
    align-items: center;
    background: rgba(45, 212, 191, 0.13);
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 18px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 30px;
    height: 62px;
    justify-content: center;
    margin-bottom: 14px;
    width: 62px;
}

.auth-card-head h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
}

.auth-card-head p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 18px;
}

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

.auth-field label,
.auth-field-row label {
    color: #dbeafe;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-field-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.auth-field-row a,
.auth-options a,
.auth-switch a {
    color: #99f6e4;
    font-weight: 900;
}

.auth-field .form-control,
.auth-field .form-select {
    background: rgba(8, 13, 26, 0.56) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #fff !important;
    min-height: 50px;
}

.auth-field .input-group-text {
    background: rgba(8, 13, 26, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: var(--primary-color) !important;
}

.auth-options {
    align-items: center;
    background: rgba(8, 13, 26, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
}

.auth-options .form-check-label {
    color: #dbeafe;
    font-weight: 800;
}

.auth-submit {
    align-items: center;
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    border: 0;
    border-radius: 999px;
    color: #06111f;
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    gap: 9px;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    width: 100%;
}

.auth-submit:hover {
    box-shadow: 0 16px 36px rgba(45, 212, 191, 0.24);
    transform: translateY(-2px);
}

.auth-result {
    color: var(--text-muted);
    min-height: 0;
}

.auth-switch {
    color: var(--text-muted);
    margin: 22px 0 0;
    text-align: center;
}

.video-wrapper {
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}

.video-wrapper video {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Alerts and tables */
.alert {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
}

.alert-primary {
    background: rgba(45, 212, 191, 0.1) !important;
    border-color: rgba(45, 212, 191, 0.22) !important;
    color: #ccfbf1 !important;
}

.table {
    color: var(--text-main) !important;
}

.table > :not(caption) > * > * {
    background: transparent !important;
    border-color: var(--surface-border) !important;
    color: inherit !important;
}

/* Footer */
.content-footer {
    background: rgba(8, 13, 26, 0.96) !important;
    border-top: 1px solid var(--surface-border) !important;
    color: var(--text-muted) !important;
    margin-top: 2rem;
    padding: 2rem 0 !important;
}

.footer-link,
.footer-links-modern .footer-link {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-link:hover,
.footer-links-modern .footer-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.social-links-footer .btn-icon:hover {
    transform: rotate(8deg) scale(1.06);
}

.footer-credit {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(56, 189, 248, 0.06)),
        rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    padding: 0.85rem 1rem;
}

.footer-copy {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-copy span {
    color: var(--primary-color);
}

.footer-made {
    align-items: center;
    color: var(--text-muted);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.footer-heart {
    align-items: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.footer-author {
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 999px;
    color: #ccfbf1 !important;
    font-weight: 800;
    line-height: 1;
    padding: 0.42rem 0.65rem;
    text-decoration: none !important;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.footer-author:hover {
    background: rgba(45, 212, 191, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Last apps page */
.last-apps-page {
    color: var(--text-main);
}

.last-apps-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 28, 41, 0.94));
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.last-apps-hero::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    content: "";
    height: 100%;
    left: 18%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 120px;
}

.last-apps-hero-content,
.last-apps-stat {
    position: relative;
    z-index: 1;
}

.last-apps-kicker {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 999px;
    color: #99f6e4;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.last-apps-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.last-apps-hero p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    max-width: 640px;
}

.last-apps-stat {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 170px;
    padding: 16px;
}

.last-apps-stat i {
    align-items: center;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(56, 189, 248, 0.16));
    border-radius: 16px;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 1.6rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.last-apps-stat span {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.last-apps-stat small {
    color: #94a3b8;
    font-weight: 700;
}

.last-apps-filter-card {
    align-items: center;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 14px;
}

.last-apps-search {
    align-items: center;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    display: flex;
    flex: 1;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
}

.last-apps-search i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.last-apps-search .form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f8fafc !important;
    padding: 0 !important;
}

.last-apps-search .form-control::placeholder {
    color: #64748b;
}

.last-apps-total {
    align-items: center;
    background: rgba(45, 212, 191, 0.11);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 999px;
    color: #ccfbf1;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
}

.last-app-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    overflow: hidden;
    padding: 18px;
    position: relative;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.last-app-card::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.72), rgba(56, 189, 248, 0.45));
    content: "";
    height: 3px;
    inset-inline: 18px;
    position: absolute;
    top: 0;
}

.last-app-card:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.last-app-card-top {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.last-app-icon {
    align-items: center;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 74px;
    justify-content: center;
    padding: 8px;
    width: 74px;
}

.last-app-icon img {
    border-radius: 14px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.last-app-info {
    min-width: 0;
}

.last-app-info h5 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 10px;
}

.last-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.last-app-meta span,
.last-app-date {
    align-items: center;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
}

.last-app-meta i,
.last-app-date i {
    color: var(--primary-color);
}

.last-app-card-bottom {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.last-app-date {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
    direction: ltr;
}

.last-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.last-app-action {
    align-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 900;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none !important;
    transition: filter var(--transition-speed), transform var(--transition-speed);
}

.last-app-action:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.last-app-action.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.last-app-action.success {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.last-app-action.muted {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.last-app-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.last-app-empty {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 36px 18px;
    text-align: center;
}

.last-app-empty > i {
    color: #f59e0b;
    font-size: 3rem;
    margin-bottom: 12px;
}

.last-app-empty h4 {
    color: #fbbf24;
    font-weight: 900;
}

.last-app-pagination {
    margin-top: 8px;
}

/* New apps page */
.new-apps-page {
    color: var(--text-main);
}

.new-apps-hero {
    align-items: center;
    background:
        radial-gradient(circle at 88% 22%, rgba(129, 140, 248, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(22, 31, 54, 0.94));
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.new-apps-hero::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    content: "";
    height: 100%;
    position: absolute;
    right: 26%;
    top: 0;
    transform: skewX(18deg);
    width: 130px;
}

.new-apps-hero-content,
.new-apps-stat {
    position: relative;
    z-index: 1;
}

.new-apps-kicker {
    align-items: center;
    background: rgba(129, 140, 248, 0.13);
    border: 1px solid rgba(129, 140, 248, 0.24);
    border-radius: 999px;
    color: #c4b5fd;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.new-apps-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.new-apps-hero p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    max-width: 650px;
}

.new-apps-stat {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 190px;
    padding: 16px;
}

.new-apps-stat i {
    align-items: center;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.24), rgba(45, 212, 191, 0.14));
    border-radius: 16px;
    color: #a5b4fc;
    display: inline-flex;
    font-size: 1.6rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.new-apps-stat span {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.new-apps-stat small {
    color: #94a3b8;
    font-weight: 700;
}

.new-category-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 18px;
    position: relative;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.new-category-card::before {
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.72), rgba(45, 212, 191, 0.45));
    content: "";
    height: 3px;
    inset-inline: 18px;
    position: absolute;
    top: 0;
}

.new-category-card:hover {
    border-color: rgba(129, 140, 248, 0.32);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.new-category-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    min-width: 0;
}

.new-category-title {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.new-category-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.18), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 15px;
    color: #a5b4fc;
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 1.3rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.new-category-title h5 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
    margin: 0;
}

.new-category-title small {
    color: #94a3b8;
    display: block;
    font-weight: 700;
    margin-top: 2px;
}

.new-category-badge {
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 999px;
    color: #c4b5fd;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 7px 10px;
}

.new-category-divider {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 10px;
    margin: 4px 0 14px;
}

.new-category-divider::before,
.new-category-divider::after {
    background: rgba(148, 163, 184, 0.16);
    content: "";
    flex: 1;
    height: 1px;
}

.new-category-divider span {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 999px;
    color: #ccfbf1;
    padding: 6px 10px;
}

.new-apps-list {
    display: grid;
    gap: 10px;
}

.new-app-item {
    align-items: center;
    background: linear-gradient(180deg, rgba(13, 22, 39, 0.78), rgba(8, 13, 26, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 15px;
    color: inherit !important;
    display: flex;
    gap: 12px;
    min-height: 78px;
    min-width: 0;
    padding: 10px;
    text-decoration: none !important;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed);
}

.new-app-item:hover {
    border-color: rgba(45, 212, 191, 0.28);
    transform: translateX(-3px);
}

.new-app-icon {
    align-items: center;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 56px;
    height: 56px;
    justify-content: center;
    padding: 6px;
    width: 56px;
}

.new-app-icon img {
    border-radius: 11px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.new-app-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.new-app-info strong {
    color: #f8fafc;
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.new-app-meta span {
    align-items: center;
    color: #94a3b8;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 5px;
}

.new-app-meta i {
    color: var(--primary-color);
}

.new-app-go {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 999px;
    color: var(--primary-color);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 38px;
}

.new-app-item:hover .new-app-go {
    background: rgba(45, 212, 191, 0.2);
    transform: translateX(-2px);
}

.new-category-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: auto;
    padding-top: 14px;
}

.new-category-more {
    align-items: center;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 999px;
    color: #ddd6fe !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none !important;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 100%;
}

.new-category-more:hover {
    background: rgba(129, 140, 248, 0.2);
    transform: translateY(-1px);
}

.new-apps-empty {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(129, 140, 248, 0.24);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 36px 18px;
    text-align: center;
}

.new-apps-empty > i {
    color: #a5b4fc;
    font-size: 3rem;
    margin-bottom: 12px;
}

.new-apps-empty h4 {
    color: #ddd6fe;
    font-weight: 900;
}

/* Subscription page */
.subscription-page {
    color: var(--text-main);
}

.subscription-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.17), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(36, 24, 11, 0.92));
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.subscription-hero::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    content: "";
    height: 100%;
    left: 18%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 130px;
}

.subscription-hero-content,
.subscription-status-card {
    position: relative;
    z-index: 1;
}

.subscription-kicker {
    align-items: center;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    color: #fde68a;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.subscription-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.subscription-hero p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    max-width: 670px;
}

.subscription-status-card {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 320px;
    gap: 14px;
    padding: 16px;
}

.subscription-status-card i {
    align-items: center;
    border-radius: 16px;
    display: inline-flex;
    flex: 0 0 50px;
    font-size: 1.55rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.subscription-status-card span {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.5;
}

.subscription-status-card small {
    color: #94a3b8;
    display: block;
    font-weight: 700;
    line-height: 1.7;
}

.subscription-status-card.primary i {
    background: rgba(45, 212, 191, 0.14);
    color: var(--primary-color);
}

.subscription-status-card.success i {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.subscription-status-card.warning i {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.subscription-status-card.danger i {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.subscription-plan-card,
.subscription-info-panel {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    height: 100%;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.subscription-plan-card::before,
.subscription-info-panel::before {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), rgba(45, 212, 191, 0.42));
    content: "";
    height: 3px;
    inset-inline: 24px;
    position: absolute;
    top: 0;
}

.subscription-ribbon {
    background: linear-gradient(135deg, #f59e0b, #22c55e);
    border-radius: 999px;
    color: #06121f;
    font-size: 0.78rem;
    font-weight: 900;
    left: 24px;
    padding: 8px 12px;
    position: absolute;
    top: 20px;
}

.subscription-plan-head {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-top: 32px;
}

.subscription-plan-label {
    color: #fde68a;
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.subscription-plan-head h2 {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.subscription-plan-head p {
    color: #94a3b8;
    font-weight: 700;
    margin: 4px 0 0;
}

.subscription-plan-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    color: #fbbf24;
    display: inline-flex;
    flex: 0 0 64px;
    font-size: 1.8rem;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.subscription-features {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.subscription-feature {
    align-items: center;
    background: linear-gradient(180deg, rgba(13, 22, 39, 0.78), rgba(8, 13, 26, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    color: #cbd5e1;
    display: flex;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
}

.subscription-feature i {
    align-items: center;
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    color: #86efac;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.subscription-action-area {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 18px;
}

.subscription-main-action {
    align-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none !important;
    transition: filter var(--transition-speed), transform var(--transition-speed);
    width: 100%;
}

.subscription-main-action:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.subscription-main-action.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #06121f !important;
}

.subscription-main-action.success {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.subscription-main-action.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.subscription-main-action.danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.subscription-redirect {
    margin-top: 12px;
}

.subscription-loading {
    align-items: center;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 14px;
    color: #ccfbf1;
    display: flex;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
}

.subscription-info-panel h3 {
    align-items: center;
    color: #f8fafc;
    display: flex;
    font-size: 1.2rem;
    font-weight: 900;
    gap: 10px;
    margin-bottom: 18px;
}

.subscription-info-panel h3 i {
    color: #fbbf24;
}

.subscription-notes {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.subscription-notes li {
    background: rgba(8, 13, 26, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;
    color: #cbd5e1;
    line-height: 1.8;
    padding: 10px 12px;
}

.subscription-support {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(56, 189, 248, 0.06));
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 16px;
    padding: 16px;
}

.subscription-support > span {
    color: #94a3b8;
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
}

.subscription-support a {
    align-items: center;
    color: #ccfbf1 !important;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    text-decoration: none !important;
}

/* Logged-in subscription profile */
.subscription-profile-page {
    color: var(--text-main);
}

.subscription-profile-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 28, 41, 0.94));
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.subscription-profile-hero.warning {
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.17), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(36, 24, 11, 0.92));
    border-color: rgba(245, 158, 11, 0.18);
}

.subscription-profile-hero.danger {
    background:
        radial-gradient(circle at 12% 20%, rgba(239, 68, 68, 0.15), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(45, 18, 18, 0.92));
    border-color: rgba(239, 68, 68, 0.18);
}

.subscription-profile-user {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.subscription-profile-avatar {
    align-items: center;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    display: inline-flex;
    flex: 0 0 94px;
    height: 94px;
    justify-content: center;
    padding: 8px;
    width: 94px;
}

.subscription-profile-avatar img {
    border-radius: 22px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.subscription-profile-kicker {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 999px;
    color: #99f6e4;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
}

.subscription-profile-hero.warning .subscription-profile-kicker {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.24);
    color: #fde68a;
}

.subscription-profile-hero.danger .subscription-profile-kicker {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.24);
    color: #fecaca;
}

.subscription-profile-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
}

.subscription-profile-hero p {
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0;
}

.subscription-profile-status {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 280px;
    gap: 14px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.subscription-profile-status > i {
    align-items: center;
    background: rgba(45, 212, 191, 0.14);
    border-radius: 16px;
    color: var(--primary-color);
    display: inline-flex;
    flex: 0 0 50px;
    font-size: 1.55rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.subscription-profile-hero.warning .subscription-profile-status > i {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.subscription-profile-hero.danger .subscription-profile-status > i {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

.subscription-profile-status span {
    color: #ffffff;
    display: block;
    font-weight: 900;
}

.subscription-profile-status small {
    color: #94a3b8;
    display: block;
    font-weight: 700;
    line-height: 1.7;
}

.subscription-profile-cta {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(20, 184, 166, 0.1)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 22px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: -8px 0 24px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.subscription-profile-cta::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 64%);
    content: "";
    height: 220px;
    inset: -110px auto auto -70px;
    position: absolute;
    width: 220px;
}

.subscription-profile-cta.danger {
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(20, 184, 166, 0.08)),
        linear-gradient(180deg, rgba(18, 29, 49, 0.96), rgba(10, 16, 30, 0.98));
    border-color: rgba(239, 68, 68, 0.34);
}

.subscription-profile-cta.danger::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 64%);
}

.subscription-profile-cta-copy {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.subscription-profile-cta-copy > i {
    align-items: center;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 18px;
    color: #fbbf24;
    display: flex;
    flex: 0 0 auto;
    font-size: 28px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.subscription-profile-cta.danger .subscription-profile-cta-copy > i {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.subscription-profile-cta-copy span {
    color: #fde68a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 5px;
}

.subscription-profile-cta.danger .subscription-profile-cta-copy span {
    color: #fecaca;
}

.subscription-profile-cta-copy h2 {
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0 0 6px;
}

.subscription-profile-cta-copy p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.subscription-profile-cta > .subscription-main-action {
    align-self: center;
    min-width: 190px;
    position: relative;
    z-index: 1;
}

.subscription-profile-cta > .subscription-redirect {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
}

.subscription-profile-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.subscription-profile-card::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.72), rgba(56, 189, 248, 0.42));
    content: "";
    height: 3px;
    inset-inline: 24px;
    position: absolute;
    top: 0;
}

.subscription-profile-card.compact {
    height: auto;
}

.subscription-profile-side {
    display: grid;
    gap: 24px;
}

.subscription-profile-card-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.subscription-profile-section-label {
    color: var(--primary-color);
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.subscription-profile-card-head h2,
.subscription-profile-card h3 {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.subscription-profile-card h3 {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.subscription-profile-card h3 i {
    color: var(--primary-color);
}

.subscription-profile-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 7px;
    padding: 8px 11px;
}

.subscription-profile-badge.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.subscription-profile-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.subscription-profile-badge.danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.subscription-profile-alert {
    align-items: center;
    border-radius: 15px;
    display: flex;
    font-weight: 800;
    gap: 10px;
    line-height: 1.8;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.subscription-profile-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.subscription-profile-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

.subscription-profile-alert.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

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

.subscription-detail-item {
    background: linear-gradient(180deg, rgba(13, 22, 39, 0.78), rgba(8, 13, 26, 0.86));
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    min-width: 0;
    padding: 12px;
}

.subscription-detail-item small {
    color: #94a3b8;
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.subscription-detail-item strong {
    color: #f8fafc;
    display: block;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.subscription-profile-action {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 18px;
    padding-top: 18px;
}

.subscription-benefits-list,
.subscription-contact-list {
    display: grid;
    gap: 10px;
}

.subscription-benefits-list div,
.subscription-contact-list a {
    align-items: center;
    background: rgba(8, 13, 26, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 13px;
    color: #cbd5e1 !important;
    display: flex;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    text-decoration: none !important;
}

.subscription-benefits-list i,
.subscription-contact-list i {
    color: var(--primary-color);
}

.subscription-renew-box {
    text-align: center;
}

.subscription-renew-icon {
    align-items: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    color: #fca5a5;
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    margin-bottom: 14px;
    width: 72px;
}

.subscription-renew-box h4 {
    color: #f8fafc;
    font-weight: 900;
}

.subscription-renew-box p {
    color: #94a3b8;
    line-height: 1.8;
}

/* Search page */
.search-page {
    color: var(--text-main);
}

.search-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 28, 41, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.search-hero-content,
.search-stat {
    position: relative;
    z-index: 1;
}

.search-kicker {
    align-items: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    color: #bae6fd;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.search-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.search-hero p {
    color: #94a3b8;
    line-height: 1.8;
    margin: 0;
}

.search-stat {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    min-width: 170px;
    padding: 16px;
}

.search-stat i {
    align-items: center;
    background: rgba(56, 189, 248, 0.14);
    border-radius: 16px;
    color: #7dd3fc;
    display: inline-flex;
    font-size: 1.6rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.search-stat span {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.search-stat small {
    color: #94a3b8;
    font-weight: 700;
}

.search-panel {
    align-items: center;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px;
}

.search-input-wrap {
    align-items: center;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 14px;
    display: flex;
    flex: 1;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
}

.search-input-wrap i {
    color: #7dd3fc;
    font-size: 1.25rem;
}

.search-input-wrap .form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f8fafc !important;
    padding: 0 !important;
}

.search-submit {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border: 0;
    border-radius: 999px;
    color: #06121f;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    transition: filter var(--transition-speed), transform var(--transition-speed);
}

.search-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.search-results-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-results-head span,
.search-results-head small {
    color: #94a3b8;
    font-weight: 800;
}

.search-results-head strong {
    color: #f8fafc;
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
}

.search-result-card {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
    height: 100%;
    padding: 18px;
}

.search-result-icon {
    align-items: center;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: inline-flex;
    height: 76px;
    justify-content: center;
    padding: 8px;
    width: 76px;
}

.search-result-icon img {
    border-radius: 14px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.search-result-info {
    min-width: 0;
}

.search-result-info h5 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 8px;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-result-meta span,
.search-result-bundle {
    align-items: center;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: #cbd5e1;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
}

.search-result-meta i,
.search-result-bundle i {
    color: var(--primary-color);
}

.search-result-bundle {
    direction: ltr;
    margin-top: 10px;
    max-width: 100%;
}

.search-result-bundle span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-actions {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
}

.search-result-action {
    align-items: center;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.18);
    border-radius: 999px;
    color: #ccfbf1 !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    outline: none;
    padding: 0 14px;
    text-decoration: none !important;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 100%;
}

.search-result-action:hover {
    background: rgba(45, 212, 191, 0.2);
    transform: translateY(-1px);
}

.search-result-action-copy {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    color: #dbeafe !important;
}

.search-result-action-copy:hover {
    background: rgba(148, 163, 184, 0.2);
}

.search-result-action-download {
    background: linear-gradient(135deg, #22c55e, #5eead4);
    border-color: rgba(94, 234, 212, 0.38);
    color: #052e1a !important;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.18);
}

.search-result-action-download:hover {
    background: linear-gradient(135deg, #4ade80, #67e8f9);
}

@media (min-width: 576px) {
    .search-result-actions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.search-empty-state {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 36px 18px;
    text-align: center;
}

.search-empty-state > i {
    color: #7dd3fc;
    font-size: 3rem;
    margin-bottom: 12px;
}

.search-empty-state h4 {
    color: #f8fafc;
    font-weight: 900;
}

/* Invoices */
.invoices-page {
    color: var(--text-main);
}

.invoices-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(7, 28, 41, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 28px;
}

.invoices-kicker {
    align-items: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    color: #bae6fd;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
}

.invoices-hero h1 {
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.invoices-hero p {
    color: #94a3b8;
    line-height: 1.8;
    margin: 0;
}

.invoices-stat,
.invoices-summary-card {
    align-items: center;
    background: rgba(8, 13, 26, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: flex;
    gap: 14px;
    padding: 16px;
}

.invoices-stat {
    flex: 0 0 auto;
    min-width: 170px;
}

.invoices-stat i,
.invoices-summary-card i {
    align-items: center;
    background: rgba(56, 189, 248, 0.14);
    border-radius: 16px;
    color: #7dd3fc;
    display: inline-flex;
    font-size: 1.6rem;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.invoices-stat span,
.invoices-summary-card strong {
    color: #ffffff;
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.invoices-stat small,
.invoices-summary-card span {
    color: #94a3b8;
    font-weight: 700;
}

.invoices-panel {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94)),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.invoices-panel-head {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.invoices-panel-head span {
    color: #7dd3fc;
    font-weight: 800;
}

.invoices-panel-head h2 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 4px 0 0;
}

.invoices-table {
    color: #cbd5e1 !important;
    margin: 0;
}

.invoices-table thead th {
    background: rgba(2, 6, 23, 0.38);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    color: #94a3b8 !important;
    font-weight: 900;
}

.invoices-table td {
    border-color: rgba(148, 163, 184, 0.1) !important;
    vertical-align: middle;
}

.invoices-empty {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 20px;
    color: #cbd5e1;
    padding: 36px 18px;
    text-align: center;
}

.invoices-empty.compact {
    background: transparent;
    border: 0;
}

.invoices-empty > i {
    color: #7dd3fc;
    font-size: 3rem;
    margin-bottom: 12px;
}

.invoices-empty h4 {
    color: #f8fafc;
    font-weight: 900;
}

/* Floating social buttons */
.social-sticky-modern {
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    left: 20px;
    position: fixed;
    z-index: 1000;
}

.sticky-item {
    align-items: center;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    color: #fff !important;
    display: flex;
    gap: 10px;
    min-height: 44px;
    overflow: hidden;
    padding: 10px 14px;
    text-decoration: none !important;
    transition: width var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed), transform var(--transition-speed);
    white-space: nowrap;
    width: 46px;
}

.sticky-item span {
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.sticky-item:hover {
    border-color: var(--surface-border-strong);
    transform: translateY(-2px);
    width: 150px;
}

.sticky-item:hover span {
    opacity: 1;
}

.sticky-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.sticky-item.support {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(21, 94, 117, 0.9));
}

.sticky-item.telegram {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(14, 116, 144, 0.9));
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #060a14;
}

::-webkit-scrollbar-thumb {
    background: #1f9f94;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 1199.98px) {
    #layout-menu {
        background: #080d1a !important;
    }
}

@media (max-width: 768px) {
    .layout-navbar .dropdown-menu {
        max-width: calc(100vw - 28px) !important;
    }

    .layout-navbar .dropdown-shortcuts-list .row {
        grid-template-columns: 1fr;
    }

    .layout-navbar .dropdown-shortcuts-item {
        min-height: 112px;
    }

    .auth-page {
        gap: 18px;
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 14px;
    }

    .auth-visual {
        min-height: auto;
        padding: 22px;
    }

    .auth-visual h1 {
        font-size: 34px;
    }

    .auth-visual p {
        font-size: 15px;
    }

    .auth-feature-list {
        margin-top: 28px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-field-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .profile-hero,
    .profile-identity,
    .profile-status-card,
    .profile-subscription-cta,
    .profile-subscription-copy,
    .profile-panel-head,
    .profile-download-box {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-hero {
        padding: 20px;
    }

    .profile-identity {
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .profile-status-card {
        min-width: 0;
        text-align: center;
    }

    .profile-subscription-cta {
        margin-top: -4px;
        padding: 18px;
    }

    .profile-subscription-copy {
        text-align: center;
    }

    .profile-subscription-copy > i {
        margin: 0 auto;
    }

    .profile-subscription-action {
        width: 100%;
    }

    .profile-panel {
        padding: 18px;
    }

    .profile-panel-title h2 {
        font-size: 20px;
    }

    .profile-form-grid,
    .profile-help-grid,
    .telegram-design-fields,
    .telegram-design-media,
    .telegram-editor-sliders,
    .telegram-filter-grid,
    .telegram-toggle-grid {
        grid-template-columns: 1fr;
    }

    .telegram-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .telegram-preview-stage {
        min-height: 220px;
    }

    .telegram-preferences-head {
        align-items: stretch;
        display: grid;
    }

    .profile-download-action,
    .profile-download-box {
        width: 100%;
    }

    .layout-navbar {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
    }

    .navbar-search-wrapper .input-group {
        min-width: 0;
        width: 100%;
    }

    .marquee-container {
        margin: 12px 10px !important;
    }

    .profile-avatar-wrapper {
        height: 100px;
        width: 100px;
    }

    .footer-links-modern {
        flex-direction: column;
        gap: 10px !important;
    }

    .authentication-wrapper {
        padding: 20px;
    }

    .social-sticky-modern {
        bottom: 18px;
        left: 12px;
    }

    .last-apps-hero,
    .last-apps-filter-card,
    .last-app-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .last-apps-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .last-apps-hero h1 {
        font-size: 1.55rem;
    }

    .last-apps-stat,
    .last-apps-total {
        width: 100%;
    }

    .last-app-card {
        border-radius: 16px;
        padding: 16px;
    }

    .last-app-card-top {
        align-items: flex-start;
    }

    .last-app-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .last-app-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .new-apps-hero {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
        padding: 20px;
    }

    .new-apps-hero h1 {
        font-size: 1.55rem;
    }

    .new-apps-stat {
        width: 100%;
    }

    .new-category-card {
        border-radius: 16px;
        padding: 16px;
    }

    .new-category-head,
    .new-category-title {
        align-items: flex-start;
    }

    .new-app-item {
        gap: 10px;
        min-height: 74px;
        padding: 9px;
    }

    .new-app-go {
        flex-basis: 34px;
        height: 34px;
        width: 34px;
    }

    .subscription-hero,
    .subscription-plan-head,
    .subscription-status-card {
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .subscription-hero h1 {
        font-size: 1.55rem;
    }

    .subscription-status-card {
        flex-basis: auto;
        width: 100%;
    }

    .subscription-plan-card,
    .subscription-info-panel {
        border-radius: 16px;
        padding: 18px;
    }

    .subscription-ribbon {
        left: 18px;
    }

    .subscription-plan-head h2 {
        font-size: 2rem;
    }

    .subscription-profile-hero,
    .subscription-profile-user,
    .subscription-profile-status,
    .subscription-profile-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-profile-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .subscription-profile-avatar {
        flex-basis: 82px;
        height: 82px;
        width: 82px;
    }

    .subscription-profile-hero h1 {
        font-size: 1.55rem;
    }

    .subscription-profile-status {
        flex-basis: auto;
        width: 100%;
    }

    .subscription-profile-card {
        border-radius: 16px;
        padding: 18px;
    }

    .subscription-profile-cta {
        grid-template-columns: 1fr;
        margin-top: -4px;
        padding: 18px;
    }

    .subscription-profile-cta-copy {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .subscription-profile-cta-copy > i {
        margin: 0 auto;
    }

    .subscription-profile-cta > .subscription-main-action {
        min-width: 0;
        width: 100%;
    }

    .subscription-details-grid {
        grid-template-columns: 1fr;
    }

    .digital-store-hero,
    .digital-card-head,
    .digital-cart-item,
    .digital-order-row,
    .digital-order-item {
        align-items: stretch;
        flex-direction: column;
    }

    .digital-store-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .digital-store-hero h1 {
        font-size: 1.55rem;
    }

    .digital-cart-item,
    .digital-order-row,
    .digital-order-item,
    .digital-code-row,
    .digital-add-form,
    .digital-coupon-form {
        grid-template-columns: 1fr;
    }

    .digital-qty-form {
        justify-content: center;
        width: 100%;
    }

    .digital-store-cart,
    .digital-store-link,
    .digital-checkout,
    .digital-add-form button {
        width: 100%;
    }

    .digital-navbar-cart {
        border-radius: 14px;
        height: 42px;
        justify-content: center;
        min-height: 42px;
        padding: 0 !important;
        width: 42px;
    }

    .digital-navbar-cart-label {
        display: none;
    }

    .digital-navbar-cart-count {
        align-items: center;
        background: #ef4444;
        border: 2px solid rgba(8, 13, 26, 0.95);
        border-radius: 999px;
        color: #fff;
        display: inline-flex;
        font-size: 0.72rem;
        height: 20px;
        justify-content: center;
        left: -7px;
        min-width: 20px;
        padding: 0 5px;
        position: absolute;
        top: -7px;
    }

    .digital-store-actions,
    .digital-flash {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .digital-card p {
        min-height: 0;
    }

    .digital-sold-stamp {
        font-size: 18px;
        height: 74px;
        width: 74px;
    }

    .search-hero,
    .search-panel,
    .search-results-head {
        align-items: stretch;
        flex-direction: column;
    }

    .search-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .search-hero h1 {
        font-size: 1.55rem;
    }

    .search-stat {
        width: 100%;
    }

    .search-submit {
        width: 100%;
    }

    .search-result-card {
        border-radius: 16px;
        padding: 16px;
    }

    .invoices-hero,
    .invoices-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .invoices-hero {
        border-radius: 18px;
        padding: 20px;
    }

    .invoices-hero h1 {
        font-size: 1.55rem;
    }

    .invoices-stat {
        width: 100%;
    }

    .category-index-hero {
        align-items: stretch;
        border-radius: 18px;
        flex-direction: column;
        padding: 20px;
    }

    .category-index-hero h1 {
        font-size: 1.55rem;
    }

    .category-index-stat {
        width: 100%;
    }
}

/* Desktop RTL layout guard
   The server loads core.css after demo.css, so these selectors intentionally
   use high specificity to keep the main content from collapsing beside the menu. */
@media (min-width: 1200px) {
    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu {
        overflow: hidden !important;
        transition: width var(--transition-speed), box-shadow var(--transition-speed);
        width: 84px !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu:hover {
        box-shadow: -18px 0 44px rgba(0, 0, 0, 0.34) !important;
        width: 260px !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu:not(:hover) .app-brand-logo img {
        width: 42px !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu:not(:hover) .menu-header,
    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu:not(:hover) .menu-link div:not(.badge) {
        opacity: 0 !important;
        pointer-events: none;
        width: 0;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed #layout-menu:not(:hover) .menu-link {
        justify-content: center;
        padding-inline: 0 !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-container {
        display: block !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-container > .layout-page {
        flex: none !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: calc(100% - 84px) !important;
        padding-right: 0 !important;
        width: calc(100% - 84px) !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-page > .content-wrapper,
    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-page .container-xxl.flex-grow-1 {
        max-width: 100% !important;
        width: 100% !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-container > .layout-page > .layout-navbar {
        left: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: none !important;
        right: 108px !important;
        width: auto !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-page .container-xxl.container-p-y {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

.template-customizer-open-btn,
#template-customizer {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-container {
        display: block !important;
        width: 100% !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-container > .layout-page {
        flex: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-page > .content-wrapper,
    html[dir='rtl'].layout-menu-fixed.layout-navbar-fixed .layout-wrapper.layout-content-navbar:not(.layout-without-menu) .layout-page .container-xxl.flex-grow-1 {
        max-width: 100% !important;
        width: 100% !important;
    }
}
