/* Dashboard Specific Styles */

.dashboard-body {
    background-color: var(--bg-color, #08080a);
    overflow-x: hidden;
    animation: fadePageIn 0.3s ease-out forwards;
}

@keyframes fadePageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Override navbar for dashboard */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.user-profile-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 0 20px;
    min-height: calc(100vh - 80px);
    gap: 40px;
}

/* Sidebar New */
.sidebar-new {
    width: 250px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-title-group h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.sidebar-title-group p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

.sidebar-nav-new {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item-new:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-item-new.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item-new.active .nav-icon {
    color: #ff4d4d; /* Акцентный цвет BurmaldaVisuals */
}

/* Main Content Area */
.dashboard-main-content {
    flex: 1;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.main-columns {
    display: flex;
    gap: 40px;
}

.content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.content-right {
    width: 280px;
}

/* Sections */
.data-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.heading-icon {
    color: #ff4d4d;
    margin-top: 2px;
}

.section-heading h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.section-heading p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Inputs */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group, .password-group, .activation-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label, .password-group label, .activation-group label {
    font-size: 0.85rem;
    color: #aaa;
}

.input-group input, .password-input input, .activation-input-row input {
    background: rgba(20, 20, 23, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

.input-group input:read-only {
    color: #ccc;
    cursor: default;
}

.input-group input:focus, .password-input input:focus, .activation-input-row input:focus {
    border-color: rgba(255, 77, 77, 0.5);
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.eye-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-btn:hover {
    color: #aaa;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
}

.stat-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.highlight-red {
    color: #ff4d4d;
}

.text-muted {
    color: #555;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-dashboard {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-dashboard.primary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-dashboard.primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-dashboard.outline {
    background: transparent;
    color: #888;
}

.btn-dashboard.outline:hover {
    color: #fff;
}

.btn-dashboard.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.btn-dashboard.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-dashboard.primary-full {
    background: #ff4d4d;
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.btn-dashboard.primary-full:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.activation-input-row {
    display: flex;
    gap: 10px;
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel-logo-wrapper {
    position: relative;
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-logo-wrapper img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.edit-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.edit-btn:hover {
    color: #fff;
}

.subscription-status {
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-status h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
    margin: 0;
}

.status-text {
    font-size: 0.9rem;
    margin: 0;
}

.status-text.inactive {
    color: #ff4d4d;
}

/* Footer */
.dashboard-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    color: #777;
    font-size: 0.85rem;
    margin-top: 15px;
    line-height: 1.5;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.footer-col a {
    color: #777;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ccc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.75rem;
}

.copyright {
    line-height: 1.5;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #555;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #888;
}

@media (max-width: 1024px) {
    .main-columns {
        flex-direction: column;
    }
    .content-right {
        width: 100%;
    }
}

/* Store Specific Styles */
.pricing-cards-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.store-card {
    flex: 1;
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 77, 0.3);
}

.price-old {
    font-size: 0.85rem;
    color: #555;
    text-decoration: line-through;
}

.price-new {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.store-duration {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 5px 0;
}

.store-sub-duration {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.store-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 25px;
    flex: 1;
}

.hwid-card {
    max-width: 250px;
}

.btn-dashboard.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-dashboard.disabled:hover {
    color: #888;
}

.price-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}
.price-badge .price-old { margin: 0; }
.price-badge .price-new { margin: 0; padding: 2px 8px; background: rgba(255, 77, 77, 0.1); border-radius: 4px; color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.2); }

.store-main-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 15px;
    padding: 4px 12px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 8px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #141417;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

/* Client Page Specific Styles */
.client-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.client-title-group {
    display: flex;
    flex-direction: column;
}

.client-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-version-badge {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-status-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-status-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: #777;
}

.client-status-text .req-sub {
    color: #ff4d4d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.client-status-text .req-sub::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #ff4d4d;
    border-radius: 50%;
}

.client-preview-img {
    display: none; /* Hide the static image */
}

.client-ui-preview {
    width: 100%;
    height: 520px;
    background: #0f0f11;
    border-radius: 12px 12px 0 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
    display: flex;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.client-ui-preview::before,
.client-ui-preview::after {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 120px;
    width: 1px;
    background: rgba(255,255,255,0.05);
    z-index: 10;
}
.client-ui-preview::before { left: 0; }
.client-ui-preview::after { right: 0; }

.ui-sidebar {
    width: 220px;
    background: #0a0a0c;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: none;
    position: relative;
}

.ui-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    bottom: 120px;
    background: rgba(255,255,255,0.02);
}

.ui-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.ui-logo-area img {
    width: 28px;
    height: 28px;
    border-radius: 5px;
}

.ui-logo-area span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.ui-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ui-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ui-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.ui-nav-item.active {
    background: #ff4d4d;
    color: #fff;
}

.ui-main {
    flex: 1;
    padding: 25px 25px 120px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow-y: auto;
}

.ui-main::-webkit-scrollbar {
    width: 6px;
}
.ui-main::-webkit-scrollbar-track {
    background: transparent;
}
.ui-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}
.ui-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-header h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.ui-search {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
}

.ui-search input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
}

.ui-search input::placeholder {
    color: #555;
}

.ui-search svg {
    color: #555;
}

.ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ui-card {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s;
    overflow: hidden;
}

.ui-card:hover {
    border-color: rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}

.ui-card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.ui-card-body {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    border-top: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-card.expanded .ui-card-body {
    max-height: 150px;
    opacity: 1;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.ui-card.expandable .ui-expand-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.ui-card.expanded .ui-expand-icon {
    transform: rotate(180deg);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-row span {
    font-size: 0.8rem;
    color: #888;
}

.range-mock {
    width: 100px;
    accent-color: #ff4d4d;
}

.color-picker-mock {
    width: 24px;
    height: 14px;
    background: #ff4d4d;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.ui-tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.ui-tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.macros-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.macros-title {
    color: #ff4d4d;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.macros-subtitle {
    color: #888;
    margin: 0;
    font-size: 0.85rem;
}

.macros-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.macro-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.macro-input-group label {
    color: #ccc;
    font-size: 0.9rem;
}

.macro-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.macro-input-group input:focus {
    border-color: #ff4d4d;
}

.macro-btn {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    height: 40px; /* matches input height approx */
}

.macro-btn:hover {
    opacity: 0.8;
}

.macros-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.macros-list::-webkit-scrollbar {
    width: 4px;
}

.macros-list::-webkit-scrollbar-track {
    background: transparent;
}

.macros-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.macro-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.macro-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.macro-item-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.macro-item-cmd {
    color: #ff4d4d;
    font-size: 0.8rem;
    font-family: monospace;
}

.macro-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.macro-item-bind {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 70px;
    text-align: center;
}

.macro-item-bind:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.macro-item-bind.binding {
    border-color: #ff4d4d;
    color: #ff4d4d;
    background: rgba(255,77,77,0.1);
}

.macro-item-delete {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macro-item-delete:hover {
    color: #ff4d4d;
}

/* Configs Tab Styles */
.configs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.configs-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.config-block, .config-list-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.config-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.config-header svg {
    color: #ff4d4d;
}

.config-block p, .config-list-block p {
    color: #888;
    font-size: 0.8rem;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.config-block label {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

.config-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.config-input:focus {
    border-color: #ff4d4d;
}

.config-outline-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
    margin-top: 5px;
}

.config-outline-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.config-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.folder-icon {
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.folder-icon:hover {
    color: #fff;
}

.configs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.config-item {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.config-item.active {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

.config-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-item-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.config-item-time {
    color: #888;
    font-size: 0.75rem;
}

.config-item.active .config-item-time {
    color: rgba(255,255,255,0.8);
}

.config-item-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.config-item-actions svg {
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.config-item.active .config-item-actions svg {
    color: rgba(255,255,255,0.8);
}

.config-item-actions svg:hover {
    color: #fff;
}


.ui-card-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ui-card-left h4 {
    margin: 0;
    color: #eee;
    font-size: 0.95rem;
    font-weight: 500;
}

.ui-card-left p {
    margin: 0;
    color: #666;
    font-size: 0.75rem;
}

.ui-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-keybind {
    color: #555;
    font-size: 0.75rem;
}

.ui-toggle {
    width: 34px;
    height: 18px;
    background: #333;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.ui-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.ui-toggle.active {
    background: #ff4d4d;
}

.ui-toggle.active::after {
    transform: translateX(16px);
}

.ui-expand-icon {
    position: absolute;
    bottom: 5px;
    right: 15px;
    color: #555;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.ui-blur-overlay {
    height: 120px;
    margin-top: -160px;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, rgba(15,15,17,0) 0%, rgba(15,15,17,1) 80%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 100%);
    pointer-events: none;
    position: relative;
    z-index: 10;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.faq-item-card {
    background: rgba(20, 20, 23, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.faq-item-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item-icon {
    transition: transform 0.3s ease;
}

.faq-item-card.open .faq-item-icon {
    transform: rotate(180deg);
}

.faq-item-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: #aaa;
    font-size: 0.9rem;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item-card.open .faq-item-body {
    max-height: 100px;
    padding: 0 20px 20px 20px;
    opacity: 1;
}

.support-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
}

.btn-support {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support:hover {
    background: rgba(255,255,255,0.05);
}

.modal-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.3rem;
}

.modal-content p {
    color: #aaa;
    font-size: 0.95rem;
    margin: 0 0 25px 0;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-actions button {
    min-width: 100px;
}


/* ================= Dashboard redesign v140 ================= */
.red-card {
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.72), rgba(16, 16, 19, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.red-card:hover {
    border-color: rgba(224, 177, 82, 0.32);
    box-shadow: 0 16px 52px rgba(214, 166, 74, 0.13);
}
.red-card h3 {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 1.05rem; font-weight: 700;
}
.red-card h3 svg { color: #e0b152; filter: drop-shadow(0 0 8px rgba(224, 177, 82, 0.5)); }

.red-input,
.red-input-group input {
    background: rgba(10, 10, 13, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.red-input:focus,
.red-input-group input:focus {
    border-color: rgba(224, 177, 82, 0.55);
    box-shadow: 0 0 0 3px rgba(224, 177, 82, 0.13);
}

.red-btn {
    background: linear-gradient(135deg, #e0b152, #c2181f);
    border: none; border-radius: 12px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 26px rgba(224, 177, 82, 0.26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.red-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(224, 177, 82, 0.4);
    filter: brightness(1.06);
}
.red-btn:active { transform: translateY(0); }

.nav-item-new.active {
    background: linear-gradient(135deg, rgba(224, 177, 82, 0.18), rgba(224, 177, 82, 0.07));
    box-shadow: inset 3px 0 0 #e0b152;
    color: #fff;
}

.store-card {
    background: linear-gradient(180deg, rgba(24, 24, 28, 0.72), rgba(16, 16, 19, 0.78));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.store-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 177, 82, 0.4);
    box-shadow: 0 18px 46px rgba(214, 166, 74, 0.15);
}

.btn-dashboard.primary-full {
    background: linear-gradient(135deg, #e0b152, #c2181f);
    box-shadow: 0 10px 28px rgba(224, 177, 82, 0.3);
}
.btn-dashboard.primary-full:hover {
    box-shadow: 0 14px 40px rgba(224, 177, 82, 0.45);
}

.modal-content {
    background: linear-gradient(180deg, #191920, #121216);
    border-radius: 22px;
    border: 1px solid rgba(224, 177, 82, 0.2);
}

/* �������� ��������� */
.dashboard-main-content ::-webkit-scrollbar-thumb,
.macros-list::-webkit-scrollbar-thumb { background: rgba(224, 177, 82, 0.3); }

/* ================= Dashboard structural redesign v142 ================= */
.dash-shell { display: flex; max-width: 1240px; margin: 0 auto; min-height: 100vh; }

.dash-side {
    width: 232px; flex-shrink: 0;
    padding: 26px 18px;
    border-right: 1px solid var(--m-border, rgba(255,255,255,.08));
    display: flex; flex-direction: column; gap: 30px;
    position: sticky; top: 0; height: 100vh;
}
.dash-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dash-logo img { width: 30px; height: 30px; }
.dash-logo span { color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: -.2px; }
.dash-logo b { color: #e0b152; }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
    padding: 10px 12px; border-radius: 8px;
    color: var(--m-muted, #8a8a93); text-decoration: none;
    font-size: .92rem; font-weight: 500;
    transition: color .15s ease, background .15s ease;
}
.dash-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.dash-nav a.active { color: #fff; background: rgba(224, 177, 82,.10); box-shadow: inset 2px 0 0 #e0b152; }

.dash-logout {
    margin-top: auto; display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--m-muted, #8a8a93); font-size: .9rem; font-family: inherit;
    padding: 10px 12px; border-radius: 8px; text-align: left;
    transition: color .15s ease, background .15s ease;
}
.dash-logout:hover { color: #ff6b6b; background: rgba(224, 177, 82,.07); }

.dash-main { flex: 1; padding: 34px 44px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-top h1 { margin: 0; color: #fff; font-size: 1.55rem; font-weight: 700; }
.dash-top p { margin: 4px 0 0; color: var(--m-muted, #8a8a93); font-size: .88rem; }
.dash-user span { color: #fff; font-weight: 600; }

.dash-banner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 36px; align-items: center;
    background: var(--m-surface, #101013);
    border: 1px solid var(--m-border, rgba(255,255,255,.08));
    border-left: 3px solid #e0b152;
    border-radius: 14px;
    padding: 20px 28px;
}
.db-label { display: block; color: var(--m-muted, #8a8a93); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.db-dates { display: flex; gap: 32px; }
.db-dates > div { display: flex; flex-direction: column; gap: 4px; }
.db-dates span { color: var(--m-muted, #8a8a93); font-size: .76rem; }
.db-dates b { color: #fff; font-size: .92rem; font-weight: 600; }
.db-progress { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.db-progress-track { height: 6px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; }
.db-progress-track > div { height: 100%; width: 0%; background: #e0b152; transition: width .7s ease; }
#sub-progress-days { color: var(--m-muted, #8a8a93); font-size: .76rem; }
.db-renew { height: 44px !important; padding: 0 30px !important; align-self: center; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.dash-card {
    background: var(--m-surface, #101013);
    border: 1px solid var(--m-border, rgba(255,255,255,.08));
    border-radius: 14px;
    padding: 24px;
    display: flex; flex-direction: column;
}
.dash-card h3 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 18px; color: #fff;
    font-size: .95rem; font-weight: 700;
}
.dash-card h3 svg { color: #e0b152; flex-shrink: 0; }
.dash-wide { grid-column: 1 / -1; }
.dash-card .red-input-group { margin-bottom: 14px; }

@media (max-width: 1024px) {
    .dash-shell { flex-direction: column; }
    .dash-side {
        width: 100%; height: auto; position: relative;
        flex-direction: row; align-items: center;
        padding: 14px 20px; border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08); gap: 16px;
    }
    .dash-nav { flex-direction: row; flex-wrap: wrap; }
    .dash-nav a.active { box-shadow: inset 0 -2px 0 #e0b152; }
    .dash-logout { margin-top: 0; margin-left: auto; }
    .dash-main { padding: 24px 20px; }
    .dash-banner { grid-template-columns: 1fr; gap: 18px; }
    .dash-grid { grid-template-columns: 1fr; }
    /* Инлайн 3-колоночный грид тарифов в store тоже схлопываем. */
    .dash-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
    .db-progress { min-width: 0; }
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}
.dash-user svg { flex-shrink: 0; opacity: .95; }
