* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-deep: #2e1065;
    --purple-dark: #4c1d95;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-strong: #c084fc;
    --accent: #60a5fa;
    --dark-bg: #0f0e2e;
    --card-bg: rgba(20, 15, 45, 0.7);
    --text: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --purple-glow: #c4b5fd;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at 30% 40%, #1e1b4b, #0b0a1a);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.5;
    padding: 2rem 1rem;
}

body.legacy-page {
    padding: 2rem 1rem;
}

body.tg-webapp {
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    min-height: 100dvh;
}

body.tg-webapp .header {
    border-radius: 1.75rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header,
.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(15, 14, 46, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.header > .logo {
    flex: 0 0 auto;
}

.header > .nav-toggle {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(145deg, var(--purple), var(--accent));
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.5);
    flex-shrink: 0;
}

.logo span,
.logo-text {
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.8rem 1.8rem;
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(124, 58, 237, 0.3);
    border-color: var(--purple-light);
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

html[data-auth="true"] .guest-only {
    display: none !important;
}

html[data-auth="false"] .user-only {
    display: none !important;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(145deg, var(--purple), #8b5cf6);
    box-shadow: 0 8px 18px -6px #7c3aed;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 22px -6px #a78bfa;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--purple-light);
}

.page-header {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(145deg, #f0e9ff, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 720px;
    margin: 1rem auto 0;
}

.page-subtitle a {
    color: #a5b4fc;
}

.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 1.75rem;
    max-width: 720px;
}

.platform-tab {
    padding: 0.85rem 1.75rem;
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.platform-tab:hover {
    border-color: var(--purple-light);
}

.platform-tab.active {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(96, 165, 250, 0.25));
    border-color: var(--purple-light);
    box-shadow: 0 8px 24px -8px #7c3aed;
}

.platform-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--purple-light);
    margin-bottom: 0.35rem;
}

.platform-badge.playerok {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

.badge-preorder {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    margin-left: 0.5rem;
}

.plugins-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
    align-items: stretch;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.25rem 0 3rem;
    align-items: stretch;
    width: 100%;
}

.plugin-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 20px 40px -20px black;
}

.plugin-surface {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: 0 20px 40px -20px black;
}

@property --morph-t {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}

.feature-card {
    text-align: center;
}

.feature-card .feature-icon-wrap {
    margin: 0 auto 1rem;
}

.feature-card .plugin-title {
    margin-bottom: 0.65rem;
}

.feature-card .plugin-description {
    border-left: none;
    padding-left: 0;
    min-height: 0;
    max-height: none;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

/* Profile & page sections spacing */
.profile-card {
    margin-top: 1.25rem;
}

.profile-card > .section-title {
    margin-bottom: 1.25rem;
}

.profile-card .licenses-grid {
    margin-top: 0.25rem;
}

section.plugins {
    margin-top: 0.5rem;
}

.page-header + .profile-card {
    margin-top: 0;
}

.purchase-card .license-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.purchase-meta {
    flex: 1;
    min-width: 0;
}

.license-name {
    margin-top: 0.25rem;
}

.license-status {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.feature-card,
.service-card,
.payment-card,
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -20px black;
}

.plugin-card-interactive {
    cursor: pointer;
    transition: border-color 0.28s, box-shadow 0.32s, transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
    outline: none;
}

.plugin-card-interactive:hover:not(.plugin-card-active),
.plugin-card-interactive:focus-visible:not(.plugin-card-active) {
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 24px 48px -18px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(167, 139, 250, 0.28);
    transform: translateY(-4px) scale(1.018);
}

.plugin-card-interactive:hover:not(.plugin-card-active) .plugin-icon,
.plugin-card-interactive:focus-visible:not(.plugin-card-active) .plugin-icon {
    box-shadow: 0 0 32px rgba(124, 58, 237, 0.55), 0 0 12px rgba(167, 139, 250, 0.35);
    transform: scale(1.05);
}

.plugin-card-interactive .plugin-icon {
    transition: box-shadow 0.28s, transform 0.28s;
}

.plugin-card-active {
    pointer-events: none;
    visibility: hidden;
}

.plugin-card-interactive .plugin-actions {
    position: relative;
    z-index: 2;
}

.feature-card:hover,
.service-card:hover {
    border-color: var(--purple-light);
    box-shadow: 0 20px 40px -15px #7c3aed;
}

.plugin-card-top {
    flex-shrink: 0;
    margin-bottom: 0.85rem;
}

.plugin-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.plugin-header {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    gap: 0.65rem 0.75rem;
    align-items: start;
}

.plugin-header .plugin-icon {
    grid-column: 1;
    grid-row: 1;
}

.plugin-header .plugin-title-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding-top: 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.plugin-header .plugin-price-section {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: start;
    text-align: right;
    flex-shrink: 0;
    min-width: 4.25rem;
    max-width: 6.75rem;
}

.plugin-price-section .price-promo {
    display: block;
    font-size: 0.65rem;
    line-height: 1.15;
    word-break: break-word;
    hyphens: auto;
}

.plugin-price-section .plugin-price-wrap,
.plugin-price-section .plugin-price {
    width: auto;
    text-align: right;
    margin-left: auto;
}

.plugin-icon,
.feature-icon-wrap {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: var(--purple-light);
    border: 1px solid rgba(167, 139, 250, 0.5);
    flex-shrink: 0;
}

.plugin-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.plugin-card .plugin-title {
    font-size: 1.05rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.plugin-card .platform-badge {
    margin-bottom: 0.3rem;
}

.feature-card .plugin-title,
.license-name {
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.plugin-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple-strong);
    white-space: nowrap;
}

.plugin-description {
    margin: 0 0 0.85rem;
    opacity: 0.9;
    font-size: 0.88rem;
    line-height: 1.45;
    border-left: 3px solid var(--purple);
    padding-left: 0.85rem;
    flex: 1 1 auto;
    min-height: 4.5rem;
    max-height: 6.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    word-break: break-word;
}

.plugin-description-html b,
.plugin-description-html strong {
    color: var(--purple-light);
    font-weight: 700;
}

.plugin-description-html a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.plugin-description-html a:hover {
    color: #bfdbfe;
}

.plugin-description-html p {
    margin: 0 0 0.5rem;
}

.plugin-description-html p:last-child {
    margin-bottom: 0;
}

.btn-telegram-icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #60a5fa;
    flex-shrink: 0;
}

.btn-telegram-icon:hover {
    background: rgba(96, 165, 250, 0.15);
}

.plugin-features {
    flex: 0 0 auto;
    min-height: 6.75rem;
    max-height: 6.75rem;
    overflow: hidden;
    margin: 0;
}

.plugin-features--empty {
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.feature-item span {
    word-break: break-word;
}

.feature-icon {
    color: var(--purple-light);
    width: 1.2rem;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.plugin-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
    width: 100%;
}

.plugin-actions--card {
    flex-wrap: nowrap;
}

.plugin-actions--detail {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}

.plugin-detail-actions-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.plugin-detail-actions-row .btn-primary {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}

.plugin-actions .buy-btn,
.plugin-actions .btn-download-telegram {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    font-size: 0.84rem;
    padding: 0.55rem 0.65rem;
    gap: 0.35rem;
}

.plugin-actions .buy-btn:not(.btn-download-telegram) {
    white-space: nowrap;
}

.plugin-actions .btn-download-telegram {
    white-space: normal;
}

.plugin-actions .btn-telegram-icon {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: auto;
    align-self: stretch;
    min-height: 44px;
}

.plugin-actions .instr-btn {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: auto;
    align-self: stretch;
    min-height: 44px;
    padding: 0;
    justify-content: center;
}

.plugin-actions .btn,
.plugin-detail-actions-row .btn {
    min-height: 44px;
    display: inline-flex;
}

.btn-download-telegram {
    background: linear-gradient(145deg, var(--purple), #8b5cf6);
    box-shadow: 0 8px 18px -6px #7c3aed;
    border: none;
    color: #fff;
}

.btn-download-telegram:hover {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 22px -6px #a78bfa;
}

.plugin-detail-instr-btn {
    width: 100%;
    justify-content: center;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    opacity: 0.85;
}

.footer {
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer a {
    color: #a5b4fc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    padding: 0.7rem 1.8rem;
    border-radius: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--purple-light);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #1a1630;
    border: 1px solid #7c3aed;
    border-radius: 2rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

.hero {
    text-align: center;
    padding: 1.5rem 0 1.25rem;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(145deg, #f0e9ff, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.payment-card {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
}

.payment-success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--success);
}

.payment-fail-icon {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.payment-info-box {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.prose-card {
    max-width: 900px;
    margin: 0 auto;
}

.prose-card h2 {
    margin: 1.5rem 0 0.75rem;
    color: var(--purple-light);
}

.prose-card p,
.prose-card li {
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.link-muted {
    color: #a5b4fc;
}

/* Pricing & discounts */
.plugin-price-section .plugin-price-wrap {
    text-align: right;
    flex-shrink: 0;
}

.plugin-price-section .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.plugin-price-section .price-promo {
    display: block;
    font-size: 0.68rem;
    color: #fcd34d;
    margin-bottom: 0.2rem;
    max-width: 100%;
    margin-left: 0;
    text-align: right;
    line-height: 1.2;
}

.plugin-price-wrap {
    text-align: right;
    flex-shrink: 0;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.price-old {
    text-decoration: line-through;
    opacity: 0.55;
    font-size: 0.95rem;
}
.price-badge {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.price-promo {
    display: block;
    font-size: 0.72rem;
    color: #fcd34d;
    margin-bottom: 0.25rem;
    max-width: 12rem;
    margin-left: auto;
    text-align: right;
}
.promo-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-bottom: 0.5rem;
    color: #fde68a;
    font-weight: 600;
}
.promo-banner-rank {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.12));
    border-color: rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
}
.promo-banner-login {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.1));
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
    font-weight: 500;
}

/* Checkout modal */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.checkout-modal.open {
    display: flex;
}

/* Plugin detail modal */
.plugin-detail-modal {
    --morph-t: 1;
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    visibility: hidden;
    pointer-events: none;
}

.plugin-detail-modal.open {
    visibility: visible;
    pointer-events: auto;
}

body.plugin-detail-open {
    overflow: hidden;
}

.plugin-detail-modal .plugin-detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: calc(var(--morph-t, 1) * 0.68);
    background: rgba(4, 2, 14, 0.82);
    transition: none;
}

.plugin-detail-modal.is-closing .plugin-detail-backdrop {
    opacity: 0;
    pointer-events: none;
}

.plugin-detail-panel {
    --morph-t: 1;
    --card-padding: 1.5rem;
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
    max-height: min(92vh, 880px);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: center center;
    will-change: transform;
}

.plugin-detail-modal.is-closing {
    pointer-events: auto;
}

.plugin-detail-modal.is-closing .plugin-detail-backdrop {
    pointer-events: auto;
}

.plugin-detail-panel.is-morphing {
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.plugin-detail-panel.is-closing-panel {
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.plugin-detail-panel.is-closing-panel .plugin-detail-body {
    display: none;
}

.plugin-detail-panel.is-closing-panel .plugin-detail-hero-full {
    display: none;
}

.plugin-detail-panel.is-closing-panel .plugin-detail-close {
    opacity: 0;
    pointer-events: none;
}

.plugin-detail-panel.is-closing-panel .plugin-detail-features {
    opacity: 0;
}

.plugin-detail-panel.is-closing-panel .plugin-detail-actions {
    display: none !important;
}

.plugin-detail-panel.is-morphing:not(.is-expanded) .plugin-detail-actions {
    display: none !important;
    pointer-events: none;
}

.plugin-detail-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: min(92vh, 880px);
    padding: var(--card-padding);
    box-sizing: border-box;
}

.plugin-detail-hero-stack {
    position: relative;
    flex-shrink: 0;
    margin-bottom: calc(0.85rem * var(--morph-t, 1));
    min-height: calc(4.5rem + 4.5rem * var(--morph-t, 1));
}

.plugin-detail-hero-compact {
    position: absolute;
    inset: 0 0 auto 0;
    opacity: calc(1 - var(--morph-t, 1));
    pointer-events: none;
    z-index: 2;
}

.plugin-detail-hero-compact .plugin-header {
    margin: 0;
}

.plugin-detail-hero-compact .plugin-title {
    font-size: 1.05rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.plugin-detail-hero-full {
    opacity: var(--morph-t, 1);
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.plugin-detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    margin-bottom: 0;
    padding-right: 2.75rem;
    padding-bottom: calc(1.25rem * var(--morph-t, 1));
    border-bottom: calc(var(--morph-t, 1) * 1px) solid rgba(255, 255, 255, 0.08);
}

.plugin-detail-panel .plugin-icon-large {
    box-shadow: none;
}

.plugin-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: var(--morph-t, 1);
    pointer-events: auto;
    transition: background 0.22s, border-color 0.22s;
}

.plugin-detail-close:hover {
    background: rgba(124, 58, 237, 0.35);
    border-color: rgba(167, 139, 250, 0.35);
}

.plugin-detail-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: calc(0.85rem * var(--morph-t, 1));
}

.plugin-detail-panel.is-expanded .plugin-detail-body {
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.45) transparent;
}

.plugin-detail-description {
    margin: 0 0 calc(0.85rem * var(--morph-t, 1));
    opacity: 0.9;
    font-size: calc(0.88rem + 0.1rem * var(--morph-t, 1));
    line-height: calc(1.45 + 0.27 * var(--morph-t, 1));
    border-left: 3px solid var(--purple);
    padding-left: 0.85rem;
    overflow: hidden;
    max-height: calc(6.5rem + (72vh - 6.5rem) * var(--morph-t, 1));
}

.plugin-detail-panel.is-expanded .plugin-detail-description {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
    font-size: 0.98rem;
    line-height: 1.72;
    padding-left: 1.15rem;
}

.plugin-detail-features {
    opacity: var(--morph-t, 1);
    max-height: calc(var(--morph-t, 1) * 800px);
    overflow: hidden;
    flex-shrink: 0;
}

.plugin-detail-actions {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: none;
    gap: 0.55rem;
}

.plugin-detail-price .plugin-owned-badge {
    margin-top: 0.5rem;
}

.plugin-detail-hero-text {
    flex: 1;
    min-width: 0;
}

.plugin-detail-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0.4rem 0 0.75rem;
    word-break: break-word;
}

.plugin-icon-large {
    width: 5.25rem;
    height: 5.25rem;
    font-size: 2.35rem;
    flex-shrink: 0;
}

.plugin-detail-price .plugin-price-wrap,
.plugin-detail-price .plugin-price {
    text-align: left;
    margin-left: 0;
}

.plugin-detail-price .price-row {
    justify-content: flex-start;
}

.plugin-detail-price .price-promo {
    text-align: left;
    margin-left: 0;
    max-width: none;
}

.plugin-detail-description p {
    margin: 0 0 0.9rem;
}

.plugin-detail-description p:last-child {
    margin-bottom: 0;
}

.plugin-detail-description strong,
.plugin-detail-description b {
    color: var(--purple-light);
    font-weight: 700;
}

.plugin-detail-features-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    opacity: 0.92;
    color: var(--purple-light);
}

.plugin-features--detail {
    margin-bottom: 0.5rem;
}

.plugin-detail-empty {
    opacity: 0.7;
    font-style: italic;
}

.plugin-detail-modal.is-opening .plugin-detail-backdrop {
    opacity: 0;
}

.plugin-detail-modal.is-opening .plugin-detail-panel {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.plugin-owned-badge,
.plugin-owned-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.plugin-owned-chip {
    margin: 0;
    align-self: flex-start;
    font-size: 0.72rem;
    line-height: 1.2;
}

.btn-acquire-owned {
    background: linear-gradient(145deg, var(--purple), #8b5cf6);
}

.btn-acquire-owned:hover {
    filter: brightness(1.06);
}

.checkout-owned-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
    margin: 0 0 0.75rem;
}

.plugin-instruction-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2rem);
}

.plugin-instruction-modal.open {
    display: flex;
}

body.plugin-instruction-open {
    overflow: hidden;
}

.plugin-instruction-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(88vh, 780px);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.plugin-instruction-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.plugin-instruction-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.plugin-instruction-close {
    position: static;
    flex-shrink: 0;
}

.plugin-instruction-body {
    overflow: auto;
    flex: 1;
    font-size: 0.94rem;
    line-height: 1.65;
    padding: 1.15rem 1.5rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.45) transparent;
}

.plugin-instruction-prose p {
    margin: 0 0 0.85rem;
}

.plugin-instruction-prose p:last-child {
    margin-bottom: 0;
}

.plugin-instruction-prose ul,
.plugin-instruction-prose ol {
    margin: 0 0 0.85rem 1.1rem;
    padding: 0;
}

.plugin-instruction-prose li {
    margin-bottom: 0.45rem;
}

.plugin-instruction-prose strong,
.plugin-instruction-prose b {
    color: var(--purple-light);
    font-weight: 700;
}

.plugin-instruction-prose a {
    color: #93c5fd;
    text-decoration: underline;
}

.plugin-instruction-loading,
.plugin-instruction-prose .plugin-detail-empty {
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0.85;
}

.plugin-instruction-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 14, 0.82);
    backdrop-filter: blur(4px);
}

.plugin-actions .instr-btn {
    flex: 0 0 2.75rem;
}

.checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}
.checkout-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 1;
    padding: 1.75rem;
}
.checkout-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.75rem;
    cursor: pointer;
    opacity: 0.7;
}
.checkout-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}
.checkout-plugin-name {
    opacity: 0.85;
    margin-bottom: 1.25rem;
}
.checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}
.checkout-line.discount span:last-child {
    color: #6ee7b7;
}
.checkout-line.total {
    border-bottom: none;
    padding-top: 0.75rem;
    font-size: 1.1rem;
}
.checkout-line.total strong {
    color: var(--purple-light);
    font-size: 1.35rem;
}
.checkout-promo {
    color: #fcd34d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.checkout-hint {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 1rem;
}
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
}
.checkout-loading,
.checkout-error {
    text-align: center;
    padding: 1rem 0;
    opacity: 0.85;
}

/* Profile purchase cards */
.purchase-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.purchase-date {
    opacity: 0.75;
    font-size: 0.88rem;
    min-height: 1.45rem;
    margin: 0.35rem 0 0;
    flex-shrink: 0;
}

.purchase-date--placeholder {
    visibility: hidden;
}

.purchase-actions {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.85rem;
    flex-shrink: 0;
}

.purchase-actions .btn-download-telegram,
.purchase-actions .btn-secondary {
    flex: none;
    width: 100%;
    min-height: 46px;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    line-height: 1.25;
    white-space: nowrap;
    gap: 0.5rem;
}
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.profile-empty {
    text-align: center;
    padding: 2rem 1rem;
}

/* Toast */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 10002;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }

.payment-status-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-status-title {
    text-align: center;
    margin-bottom: 1rem;
}

.payment-status-text {
    text-align: center;
    opacity: 0.9;
}

/* Side nav drawer (all screen sizes) */
.nav-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--purple-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
    outline: none;
}

.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    visibility: hidden;
}

.nav-drawer-overlay.open {
    pointer-events: auto;
    visibility: visible;
}

body.nav-drawer-open {
    overflow: hidden;
}

.nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 18, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nav-drawer-overlay.open .nav-drawer-backdrop {
    opacity: 1;
}

.nav-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: linear-gradient(165deg, rgba(22, 18, 58, 0.98), rgba(12, 10, 36, 0.99));
    border-left: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}

.nav-drawer-overlay.open .nav-drawer {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
    border-radius: 0.85rem;
}

.nav-drawer-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.2s;
}

.nav-drawer-close:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: var(--purple-light);
}

.nav-drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.25rem 0 1rem;
}

.header-nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    flex: 1;
}

.nav-drawer .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.nav-drawer .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
}

.nav-drawer .nav-link i {
    width: 1.15rem;
    opacity: 0.85;
}

.nav-drawer .nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
}

.nav-drawer .nav-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
}

.nav-drawer .header-balance {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.header-balance {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-weight: 700;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    min-width: 4.5rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}

/* Payment method tabs */
.payment-method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-method-tab {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
}

.payment-method-tab.active {
    background: rgba(124, 58, 237, 0.35);
    border-color: var(--purple-light);
}

.balance-line .balance-ok { color: #6ee7b7; }
.balance-line .balance-low { color: #fca5a5; }

/* Balance card */
.balance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.balance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.balance-stat {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.balance-stat-label {
    display: block;
    font-size: 0.82rem;
    opacity: 0.75;
    margin-bottom: 0.35rem;
}

.balance-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #6ee7b7;
}

.balance-stat-value.balance-muted {
    color: var(--purple-light);
    font-size: 1.1rem;
}

.balance-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.section-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(145deg, var(--purple), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.license-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.license-card.purchase-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

.purchase-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Deposit modal */
.deposit-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.deposit-modal.open {
    display: flex;
}

.deposit-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.deposit-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    min-height: 44px;
}

.deposit-preview {
    margin-bottom: 0.5rem;
}

.checkout-panel {
    max-height: min(92vh, 720px);
    overflow-y: auto;
}

@media (min-width: 1280px) {
    .plugins-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .plugins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .header {
        padding: 1rem 1.25rem;
        border-radius: 1.5rem;
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 1.35rem;
    }

    .logo-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.35rem;
    }

    .checkout-modal {
        padding: 0;
        align-items: stretch;
    }

    .checkout-panel,
    .deposit-panel {
        max-width: none;
        width: 100%;
        min-height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .checkout-actions {
        margin-top: auto;
        padding-bottom: env(safe-area-inset-bottom, 0);
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top, var(--card-bg) 80%, transparent);
        padding-top: 1rem;
    }

    .balance-stats {
        grid-template-columns: 1fr;
    }

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

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

    .page-header {
        margin: 2rem 0 2.5rem;
    }
}

@media (max-width: 480px) {
    .nav-btn-text {
        display: inline;
    }

    .plugin-actions--card {
        gap: 0.45rem;
    }

    .plugin-actions .buy-btn,
    .plugin-actions .btn-download-telegram {
        font-size: 0.76rem;
        padding: 0.5rem 0.45rem;
    }

    .purchase-actions .btn-download-telegram,
    .purchase-actions .btn-secondary {
        font-size: 0.92rem;
        padding: 0.7rem 0.85rem;
        min-height: 46px;
    }

    .plugin-actions .btn-telegram-icon,
    .plugin-actions .instr-btn {
        flex: 0 0 2.65rem;
        width: 2.65rem;
        min-height: 44px;
    }

    .plugin-detail-actions-row {
        gap: 0.45rem;
    }

    .plugin-detail-actions-row .btn-download-telegram,
    .plugin-detail-actions-row .btn-primary {
        font-size: 0.8rem;
    }

    .payment-card {
        padding: 1.25rem;
    }

    .toast-message {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
    }
}

@media (min-width: 769px) {
    .plugins-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}
