:root {--muted:#94a3b8;}
* {margin:0; padding:0; box-sizing:border-box; scrollbar-width: thin; scrollbar-color: rgba(33, 150, 243, 0.3) rgba(10,15,26,0.5);}
body {margin:0; min-height:100vh; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background-color:#0a0f1a; color:#fff; line-height:1.5;}
 #bg-canvas {position:fixed; top:0; left:0; width:100%; height:100%; display:block; z-index:0; pointer-events:none; filter:blur(20px)}
 .dashboard {position:relative; z-index:1; min-height:100vh; display:flex; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); margin-left:280px}
 .mb-0 {margin-bottom: 0 !important}
 #notificationBtn {display: none;}

 /* Боковое меню - десктопная версия */
 .sidebar {width:280px; background:rgba(13,17,23,0.8); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-right:1px solid rgba(33,150,243,0.15); display:flex; flex-direction:column; transition:transform 0.3s ease; position:fixed; top:0; left:0; bottom:0; z-index:1000; overflow-y:auto}
 .sidebar-header {padding:29px 20px; border-bottom:1px solid rgba(33,150,243,0.1); flex-shrink:0;}
 .sidebar-content {flex:1; overflow-y:auto; padding:0 16px;}
 .sidebar-footer {padding:20px 16px; border-top:1px solid rgba(33,150,243,0.1); flex-shrink:0;}
 
 /* Логотип */
 .logo {display:flex; justify-content:center; align-items:center; gap:8px; font-size:24px; font-weight:600; text-decoration:none}
 .logo-icon {color:#2196f3; height:40px; width:40px}
 .logo-text {background:linear-gradient(135deg,#fff 0,#94a3b8 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent}
 .logo-text span {color:#2196f3; -webkit-text-fill-color:#2196f3; background:none}
 
 /* Навигационное меню */
 .nav-menu {display:flex; flex-direction:column; gap:8px; padding:20px 0;}
 .nav-item {display:flex; align-items:center; gap:14px; padding:10px 16px; border-radius:8px; color:#94a3b8; text-decoration:none; font-weight:500; transition:all 0.2s ease; border-left:3px solid transparent; border-right:3px solid transparent}
 .nav-item:hover {background:rgba(33,150,243,0.1); color:#fff; border-left-color:#2196f3; border-right-color:#2196f3}
 .nav-item.active {background:rgba(33,150,243,0.15); color:#2196f3; border-left-color:#2196f3; border-right-color:#2196f3}
 .nav-item svg {width:22px; height:22px; fill:currentColor; opacity:0.9}
 .nav-item span {display:inline;}
 .support-link {display: none;}
 
 /* Блок поддержки в футере */
 .support-block {padding:16px; background:rgba(33,150,243,0.05); border-radius:12px; border:1px solid rgba(33,150,243,0.15); margin-bottom:8px;}
 .support-text {font-size:13px; color:#94a3b8; margin-bottom:12px; line-height:1.5;}
 .support-btn {display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; background:rgba(33,150,243,0.15); border:1px solid rgba(33,150,243,0.3); border-radius:12px; color:#2196f3; font-size:13px; font-weight:500; text-decoration:none; transition:all 0.2s ease; width:100%;}
 .support-btn:hover {background:rgba(33,150,243,0.25); border-color:#2196f3;}
 .support-btn svg {width:18px; height:18px; fill:currentColor;}
 
 /* Основной контент */
 .main-content {flex:1; display:flex; flex-direction:column; overflow-x: auto;}
 
 /* Верхняя панель */
 .top-bar {height:57px; padding:0 32px; justify-content: flex-end; background:rgba(13,17,23,0.8); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid rgba(33,150,243,0.15); display:flex; align-items:center; position:sticky; top: 0; z-index:100}
 .top-bar-right {display:flex; align-items:center; gap:20px; position:relative}
 .top-bar-left {display: none}
 
 /* Баланс в топбаре */
 .balance-display {display:flex; align-items:center; height: 38px; gap:6px; padding:6px 12px; background:rgba(255,255,255,0.05); border:1px solid rgba(33,150,243,0.2); border-radius:40px; color:#fff; font-size:14px; font-weight:500; white-space:nowrap; transition:all 0.2s; text-decoration: none;}
 .balance-display:hover {background:rgba(33,150,243,0.15); border-color:#2196f3}
 .balance-display svg {fill:#2196f3;}
 
 /* Иконки-кнопки */
 .icon-btn {background:rgba(255,255,255,0.05); border:1px solid rgba(33,150,243,0.2); border-radius:50%; width:38px; height:38px; display:flex; align-items:center; justify-content:center; color:#cbd5e1; cursor:pointer; transition:all 0.2s; position:relative}
 .icon-btn:hover {background:rgba(33,150,243,0.15); color:#2196f3; border-color:#2196f3}
 .icon-btn svg {width:20px; height:20px; fill:currentColor}
 
 /* Профиль */
 .profile-badge {display:flex; align-items:center; gap:12px; padding:4px 10px 4px 16px; background:rgba(255,255,255,0.05); border-radius:40px; border:1px solid rgba(33,150,243,0.2); cursor:pointer; height:38px; transition:all 0.2s; position:relative}
 .profile-badge:hover {background:rgba(33,150,243,0.15); border-color:#2196f3}
 .profile-badge span {font-weight:500; color:#fff; font-size:14px}
 .avatar {width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#1976d2,#2196f3); display:flex; align-items:center; justify-content:center; font-weight:600; color:#0a0f1a; font-size:14px}
 
 /* Выпадающие меню */
 .dropdown {position:absolute; top:calc(100% + 12px); right:0; background:rgba(18,22,30,0.95); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(33,150,243,0.3); border-radius:16px; padding:16px; box-shadow:0 10px 30px rgba(0,0,0,0.6); opacity:0; visibility:hidden; transform:translateY(-10px); transition:all 0.2s ease; color:#fff}
 .dropdown.show {opacity:1; visibility:visible; transform:translateY(0)}
 #notificationDropdown {width:400px}
 #profileDropdown {width:240px}
 .dropdown-header {font-weight:600; font-size:15px; padding-bottom:12px; border-bottom:1px solid rgba(33,150,243,0.2); margin-bottom:12px; color:#fff}
 .dropdown-item {display:flex; align-items:center; gap:12px; padding:10px 8px; border-radius:8px; cursor:pointer; transition:background 0.2s; color:#cbd5e1; font-size:14px}
 .dropdown-item:hover {background:rgba(33,150,243,0.15); color:#2196f3}
 .dropdown-item svg {width:20px; height:20px; fill:currentColor}
 .empty-notification {display:flex; flex-direction:column; align-items:center; gap:12px; padding:24px 12px; color:#94a3b8; text-align:center}
 .empty-notification svg {width:40px; height:40px; opacity:0.6}
 
 /* Контентная область */
 .content-area {padding:32px; overflow-y:auto}
.page-title {font-size:28px; font-weight:600; margin-bottom:24px; display:inline-flex; align-items:center; background:linear-gradient(135deg,#fff 0,var(--muted) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text}
.page-title-icon {display:inline-flex; width:28px; height:28px; margin-right:10px; color:#2196f3; -webkit-text-fill-color:#2196f3}
.page-title-icon svg {width:100%; height:100%; fill:currentColor}
 
 /* Статистика */
 .stats-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-bottom:24px}
 .stat-card-link {text-decoration:none; color:inherit; display:block;}
 .stat-card {background:rgba(22,27,34,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:20px; padding:20px; display:flex; align-items:center; gap:16px; transition:border-color 0.2s}
 .stat-card-link:hover .stat-card {border-color:rgba(33,150,243,0.5);}
 .stat-icon {width:52px; height:52px; border-radius:16px; background:linear-gradient(135deg,rgba(33,150,243,0.15) 0,rgba(25,118,210,0.1) 100%); border:1px solid rgba(33,150,243,0.3); display:flex; align-items:center; justify-content:center; color:#2196f3}
 .stat-icon svg {width:28px; height:28px; fill:currentColor}
 .stat-content {flex: 1;}
 .stat-content h3 {font-size:14px; font-weight:500; color:#94a3b8; margin-bottom:4px}
 .stat-content .value {font-size:26px; font-weight:600; color:#fff; line-height:1.2}

/* Информационная сетка */
 .info-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:24px}
 .info-card {background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.1); border-radius:16px; padding:20px; display:flex; flex-direction:column; gap:8px}
 .info-card-label {color:#94a3b8; font-size:14px; letter-spacing:0.3px}
 .info-card-value {font-weight:600; color:#fff; font-size:24px}

 /* Главная */
.main-info-card {background:linear-gradient(135deg,rgba(33,150,243,0.15) 0,rgba(25,118,210,0.05) 100%); border:1px solid rgba(33,150,243,0.3); border-radius:24px; padding: 28px 28px 20px 28px; margin-bottom:32px; backdrop-filter:blur(10px)}
.main-info-header {display:flex; justify-content:space-between; align-items:center; margin-bottom:28px}
.main-info-label {color:#94a3b8; font-size:14px; letter-spacing:0.5px; margin-bottom:6px; display:block}
.main-info-title {font-size:32px; font-weight:700; color:#fff; line-height:1.2}
.main-info-btn {display:inline-flex; align-items:center; justify-content:center; padding:10px 32px; max-height: 44px; background:linear-gradient(135deg,#1976d2,#2196f3); border-radius:12px; color:#fff; font-weight:600; font-size:16px; text-decoration:none; transition:all 0.2s; white-space:nowrap; border:1px solid rgba(255,255,255,0.1)}
.main-info-btn:hover {transform:translateY(-2px); box-shadow:0 10px 20px rgba(33,150,243,0.3)}
.main-info-grid {display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.main-info-grid-item {background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:4px}
.main-info-grid-label {color:#94a3b8; font-size:13px}
.main-info-grid-value {color:#fff; font-size:20px; font-weight:600}
.bottom-card-stat {display:flex; flex-direction:column; align-items:flex-end; margin-right:8px}
.bottom-card-stat-label {color:#94a3b8; font-size:12px}
.bottom-card-stat-value {color:#4caf50; font-size:18px; font-weight:600}
.bottom-card-arrow {color:#94a3b8; transition:color 0.2s; flex-shrink:0}
.bottom-card-link:hover .bottom-card-arrow {color:#2196f3}
.bottom-card-arrow svg {display: flex; fill:currentColor}
.main-info-divider {height:1px; background:rgba(33,150,243,0.2); margin:20px 0}
.top-card {display: flex; gap: 16px}
.main-info-grid-value.disabled {color:#f44336}
.main-info-grid-value.expired {color:#ff9800}
.tariff-badge.disabled {background:#f44336}
.tariff-badge.expired {background:#ff9800}


 /* Бейджи и разделители */
 .badge {background:rgba(33,150,243,0.2); border:1px solid rgba(33,150,243,0.3); color:#2196f3; padding:4px 12px; border-radius:40px; font-size:13px; font-weight:500; display:inline-block}
 hr {border:none; border-top:1px dashed rgba(33,150,243,0.2); margin:24px 0}
 
 /* Алерты */
 .alert-success {background:rgba(76,175,80,0.1); border:1px solid rgba(76,175,80,0.3); border-radius:12px; padding:16px 20px; margin-bottom:24px; display:flex; align-items:center; gap:12px; color:#4caf50; font-size: 14px;}
 .alert-error {background:rgba(244,67,54,0.1); border:1px solid rgba(244,67,54,0.3); border-radius:12px; padding:16px 20px; margin-bottom:24px; display:flex; align-items:center; gap:12px; color:#f44336; font-size: 14px;}
 .alert-warning {background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; color: #ffc107; font-size: 14px;}
 .alert-success svg, .alert-error svg, .alert-warning svg {min-width: 24px; min-height: 24px;}
 .alert-body {flex: 1; min-width: 0; line-height: 1.5;}
 .alert-inline-form {display: inline; margin: 0; padding: 0;}
 .alert-inline-btn {background: none; border: none; color: #2196f3; text-decoration: none; cursor: pointer; padding: 0; font: inherit; margin: 0;}
 .alert-link {color:#2196f3; text-decoration:none; margin-left:auto; display:flex; align-items:center; gap:4px;}
 .alert-link svg {width:20px !important; height:20px; fill:currentColor;}
 
 /* Страница авторизации */
 .auth-container {min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px}
 .auth-card {background:rgba(13,17,23,0.8); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border:1px solid rgba(33,150,243,0.3); border-radius:24px; padding:40px; width:100%; max-width:460px; box-shadow:0 20px 40px rgba(0,0,0,0.4)}
 .auth-logo {display:flex; justify-content:center; align-items:center; gap:12px; margin-bottom:32px; font-size:32px; font-weight:600; text-decoration:none}
 .auth-logo-icon {color:#2196f3; height:48px; width:48px}
 .auth-logo-text {background:linear-gradient(135deg,#fff 0,#94a3b8 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent}
 .auth-logo-text span {color:#2196f3; -webkit-text-fill-color:#2196f3; background:none}
 .auth-tabs {display:flex; gap:16px; margin-bottom:32px; border-bottom:1px solid rgba(33,150,243,0.2); padding-bottom:16px}
 .auth-tab {flex:1; text-align:center; padding:12px; cursor:pointer; border-radius:8px; color:#94a3b8; font-weight:500; transition:all 0.2s}
 .auth-tab.active {background:rgba(33,150,243,0.15); color:#2196f3}
 .auth-form {display:none}
 .auth-form.active {display:block}
.auth-link-row {margin-top:10px;}
.auth-link {color:#94a3b8; font-size:14px; text-decoration:none; transition:color .2s ease}
.auth-link:hover {color:#2196f3; text-decoration:underline}
 .form-group {margin-bottom:24px}
 .form-group label {display:block; margin-bottom:8px; color:#94a3b8; font-size:14px}
 .form-control {width:100%; padding:12px 16px; background:rgba(255,255,255,0.05); border:1px solid rgba(33,150,243,0.2); border-radius:12px; color:#fff; font-size:16px; transition:all 0.2s}
 .form-control:focus {outline:none; border-color:#2196f3; background:rgba(33,150,243,0.1)}
 .btn {width:100%; max-height: 44px; padding:14px; background:linear-gradient(135deg,#1976d2,#2196f3); border:none; border-radius:12px; color:#fff; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s}
 .btn:hover {transform:translateY(-2px); box-shadow:0 10px 20px rgba(33,150,243,0.3)}
 
 /* Страница баланса */
 .row-grid {display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px}
 .row-grid .promo-section {margin-bottom:0}
 .row-grid .section-title {margin-top:0}
 .balance-card {background:linear-gradient(135deg,rgba(33,150,243,0.2) 0,rgba(25,118,210,0.1) 100%); border:1px solid rgba(33,150,243,0.3); border-radius:24px; padding:32px; display:flex; align-items:center; gap:24px; backdrop-filter:blur(10px)}
 .balance-card-icon {width:65px; height:65px; border-radius:20px; background:rgba(33,150,243,0.2); border:1px solid rgba(33,150,243,0.4); display:flex; align-items:center; justify-content:center; color:#2196f3}
 .balance-card-icon svg {width:36px; height:36px; fill:currentColor}
 .balance-card-content {display:flex; flex-direction:column; gap:4px}
 .balance-card-label {color:#94a3b8; font-size:16px; letter-spacing:0.5px}
 .balance-card-value {font-size:48px; font-weight:700; color:#fff; line-height:1.2}
 .section-title {display:flex; align-items:center; gap:12px; margin-bottom:20px}
 .section-title h2 {font-size:22px; font-weight:600; color:#fff}
 .promo-section,.payment-section,.history-section {background:rgba(22,27,34,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:20px; padding:24px; margin-bottom:24px}
 .promo-form {display:flex; gap:12px; margin-bottom:8px}
 .promo-form .form-control {flex:1;}
 .promo-form .btn {width:auto; padding:12px 32px}
 .form-hint {color:#6b7a8f; font-size:13px; margin-top:8px}
 .payment-methods h3,.payment-amount h3 {font-size:16px; color:#94a3b8; margin-bottom:16px; font-weight:500}
 .methods-grid {display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
 .method-card {cursor:pointer; position:relative}
 .method-card input[type="radio"] {position:absolute; opacity:0; width:0; height:0}
 .method-content {display:flex; flex-direction:column; align-items:center; gap:10px; padding:20px 12px; background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:16px; transition:all 0.2s; color:#94a3b8}
 .method-content svg {width:32px; height:32px; fill:currentColor; opacity:0.8}
 .method-content span {font-size:14px; font-weight:500; text-align:center}
 .method-card input[type="radio"]:checked + .method-content {background:rgba(33,150,243,0.15); border-color:#2196f3; color:#2196f3}
 .method-card:hover .method-content {border-color:rgba(33,150,243,0.5); color:#cbd5e1}
 .amount-input-group {position:relative; margin-bottom:16px}
 .amount-input-group input {padding-right:60px; font-weight:600}
 .amount-currency {position:absolute; right:16px; top:50%; transform:translateY(-50%); color:#94a3b8; font-weight:500}
 .amount-presets {display:flex; flex-wrap:wrap; gap:10px}
 .amount-preset {padding:8px 20px; background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:40px; color:#94a3b8; font-size:14px; cursor:pointer; transition:all 0.2s}
 .amount-preset:hover {background:rgba(33,150,243,0.15); border-color:#2196f3; color:#fff}
 .empty-state {display:flex; flex-direction:column; align-items:center; justify-content:center; padding:48px 24px; background:rgba(10,15,26,0.3); border-radius:16px; border:1px dashed rgba(33,150,243,0.2)}
 .empty-state svg {width:64px; height:64px; color:#2a384b; margin-bottom:16px}
 .empty-state-text {font-size:18px; font-weight:500; color:#94a3b8; margin-bottom:8px}
 .empty-state-hint {font-size:14px; color:#4b5565; text-align:center}
 .payment-layout {display:grid; grid-template-columns:1fr 1fr; gap:32px}
 .payment-methods-column h3,.payment-amount-column h3 {font-size:16px; color:#94a3b8; margin-bottom:16px; font-weight:500}
 .payment-methods-column {padding-right:16px}
 .payment-amount-column {padding-left:16px; display:flex; flex-direction:column}
 .payment-amount {margin-bottom: auto;}
 input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button {-webkit-appearance:none !important; appearance:none !important; margin:0 !important;}
 .payment-agreement {font-size:12px; color:#6b7a8f; margin:16px 0 12px 0; line-height:1.5; text-align: justify}
 .payment-agreement a {color: #2196f3}
 .agreement-link {color:#2196f3; text-decoration:none; transition:color 0.2s ease}
 .agreement-link:hover {color:#64b5f6; text-decoration:underline}

 @keyframes rotate {from {transform:rotate(0deg)}
 to {transform:rotate(360deg)}
}
.pay-again-btn {display:inline-flex; align-items:center; gap:4px; padding:4px 12px; background:rgba(33,150,243,0.1); border:1px solid rgba(33,150,243,0.3); border-radius:40px; color:#2196f3; font-size:12px; text-decoration:none; cursor:pointer; margin-left:8px}
.pay-again-btn:hover {background:rgba(33,150,243,0.2)}
.pay-again-btn svg {width:16px; height:16px; fill:currentColor}
.transactions-list {display:flex; flex-direction:column; gap:12px;}
.transaction-item {flex-wrap: wrap; transition:all 0.2s; background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:12px; padding:16px; display:flex; align-items:center; justify-content: space-between;}
.transaction-desc {display: flex; align-items: center;}
.transaction-method {display:flex; align-items:center; gap:8px; color:#fff; font-weight:500; margin-bottom:4px}
.transaction-method svg {width:20px; height:20px; fill:#94a3b8}
.transaction-date {font-size:13px; color:#6b7a8f}
.transaction-amount {font-size:18px; font-weight:600;}
.transaction-status {display:flex; align-items:center; justify-content:flex-end; min-width: 150px;}
.text-success {color:#4caf50}
.text-warning {color:#ffc107}
.text-danger {color:#f44336}
.transactions-list a:hover {border-color:rgba(33,150,243,0.5);}


 /* Страница рефералов */
 .referral-link-block {margin-bottom:8px}
 .referral-link-block .promo-form {margin-bottom:8px}
 .referrals-list {display:flex; flex-direction:column; gap:12px}
 .referral-item {background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:12px; padding:16px}
 .referral-email {font-weight:500; color:#fff; margin-bottom:4px}
 .referral-date {font-size:13px; color:#94a3b8}
 
 /* Страница тарифов */
 .tariff-card {background:rgba(22,27,34,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:24px; padding:24px; position:relative; transition:all 0.2s;}
 .tariff-card.current {background:rgba(33,150,243,0.15); border-color:#2196f3;}
 .tariff-badge {position:absolute; top:-10px; right:20px; background:#2196f3; color:#fff; font-size:12px; font-weight:600; padding:4px 12px; border-radius:40px;}
 .tariff-name {font-size:24px; font-weight:600; margin-bottom:16px; color:#fff; text-align: center; margin-top: 15px;}
 .tariff-features {margin:0 auto 20px auto; max-width: 234px;}
 .tariff-feature {display:flex; align-items:center; gap:8px; margin-bottom:8px; color:#cbd5e1;background: rgba(10, 15, 26, 0.5); border: 1px solid rgba(33, 150, 243, 0.2); border-radius: 16px; transition: all 0.2s; padding: 4px 12px;}
 .tariff-feature svg {width:20px; height:20px; fill:#4caf50;}
 .tariff-price-block {margin-bottom:36px; text-align:center;}
 .tariff-price-value {font-size:36px; font-weight:700; color:#2196f3;}
 .tariff-price-period {color:#94a3b8;}
 .tariff-total {font-size:14px; color:#94a3b8; margin-bottom: -21px;}
 .period-switcher {display:flex; gap:12px; background:rgba(13,17,23,0.8); border:1px solid rgba(33,150,243,0.15); border-radius:60px; padding:6px; max-width:440px; margin-bottom:32px;}
 .period-btn {display: flex; flex-direction: column; justify-content: center; flex:1; padding:7px 0; border:none; border-radius:40px; background:transparent; color:#94a3b8; font-size:14px; font-weight:500; cursor:pointer; transition:all 0.2s;}
 .period-btn.active {background:#2196f3; color:#fff;}
 .period-btn.active .period-discount {color: #fff;}
 .period-btn:hover:not(.active) {background:rgba(33,150,243,0.15); color:#fff;}
 .period-discount {font-size:12px; color:#4caf50;}
 .tariff-note {background:rgba(22,27,34,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:16px; padding:20px; text-align:center; color:#94a3b8;}
 .tariff-note p {margin-bottom:8px;}
 .tariff-note p:last-child {margin-bottom:0;}
 .tariffs-grid {display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:24px; margin-bottom:24px;}
 .tariff-card.disabled {opacity: 0.7; filter: grayscale(0.5);}
 .tariff-badge.trial-used {background: #9ca3af;}
 .tariff-card.disabled .btn[disabled] {background: rgba(156, 163, 175, 0.2); color: #9ca3af; cursor: not-allowed;}
 .trial-price {color: #4caf50 !important;}
 
 /* Модальные окна */
 .modal {display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.7); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); z-index:1000; align-items:center; justify-content:center; opacity:0; transition:opacity 0.3s ease}
 .modal.show {display:flex; opacity:1}
 .modal-content {background:rgba(18,22,30,0.95); border:1px solid rgba(33,150,243,0.3); border-radius:24px; padding:32px; max-width:400px; width:90%; box-shadow:0 20px 40px rgba(0,0,0,0.4); transform:translateY(20px); transition:transform 0.3s ease}
 .modal.show .modal-content {transform:translateY(0)}
 .modal-title {font-size:24px; font-weight:600; color:#fff; margin-bottom:20px; text-align:center}
 .modal-body {margin-bottom:24px}
 .modal-body p {color:#cbd5e1; font-size:16px; margin-bottom:20px; text-align:center}
 .modal-details {background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.15); border-radius:16px; padding:2px 16px 0}
 .modal-detail-item {display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(33,150,243,0.1)}
 .modal-detail-item:last-child {border-bottom:none}
 .modal-detail-label {color:#94a3b8; font-size:14px}
 .modal-detail-value {color:#fff; font-weight:500}
 .modal-actions {display:flex; gap:12px}
 .modal-btn {flex:1; padding:12px; border:none; border-radius:12px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s}
 .modal-btn-cancel {background:rgba(255,255,255,0.05); color:#94a3b8; border:1px solid rgba(33,150,243,0.2)}
 .modal-btn-cancel:hover {background:rgba(255,255,255,0.1); color:#fff}
 .modal-btn-confirm {background:linear-gradient(135deg,#1976d2,#2196f3); color:#fff}
 .modal-btn-confirm:hover {transform:translateY(-2px); box-shadow:0 10px 20px rgba(33,150,243,0.3)}
 .modal-actions a {padding: 10px;}

 /* Страница устройств */
 .platforms-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(100px,1fr)); gap:12px; margin-bottom:24px}
 .platform-card {display:flex; flex-direction:column; align-items:center; gap:8px; padding:16px 12px; background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:16px; color:#94a3b8; text-decoration:none; transition:all 0.2s; cursor:pointer}
 .platform-card:hover {border-color:rgba(33,150,243,0.5); color:#cbd5e1}
 .platform-card.active {background:rgba(33,150,243,0.15); border-color:#2196f3; color:#2196f3}
 .platform-card svg {fill:currentColor}
 .platform-card span {font-size:14px; font-weight:500; text-align:center}
 .instructions-container {display:none}
 .instructions-container.active {display:block}
 .instruction-block {background:rgba(10,15,26,0.5); border-radius:16px; padding:24px; border: 1px solid rgba(33,150,243,0.2); margin-bottom:16px}
 .instruction-block:last-child {margin-bottom:0}
 .instruction-title {font-size:18px; font-weight:600; color:#fff; margin-bottom:16px; display:flex; align-items:center; gap:12px}
 .instruction-number {display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; background:#2196f3; border-radius:50%; color:#fff; font-size:16px; font-weight:600}
 .instruction-text {color:#94a3b8; font-size:14px; line-height:1.6; margin-bottom:16px}
 .instruction-buttons {display:flex; flex-wrap:wrap; gap:12px}
 .instruction-btn {display:inline-flex; align-items:center; max-height: 44px; gap:8px; padding:12px 24px; background:rgba(33,150,243,0.1); border:1px solid rgba(33,150,243,0.3); border-radius:12px; color:#2196f3; font-size:14px; font-weight:500; text-decoration:none; cursor:pointer; transition:all 0.2s}
 .instruction-btn:hover {background:rgba(33,150,243,0.2); border-color:#2196f3}
 .appstore-btn {background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.2); color:#fff}
 .appstore-btn:hover {background:rgba(255,255,255,0.15); border-color:#fff}
 .add-subscription-btn {background:rgba(33,150,243,0.1); border-color:rgba(33,150,243,0.3); color:#2196f3}
.qr-subscription-text {margin-top:16px; margin-bottom:12px}
.subscription-qr-wrap {display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(33,150,243,0.25); border-radius:16px; padding:16px}
.subscription-qr-wrap img,.subscription-qr-wrap canvas {display:block; width:420px !important; max-width:100%; height:auto !important; image-rendering:pixelated; background:#fff}
.subscription-qr-placeholder {color:#94a3b8; font-size:14px; min-width:420px; min-height:420px; display:flex; align-items:center; justify-content:center}
.subscription-qr-text {margin:14px 0 0; color:#94a3b8; font-size:14px}
 .devices-list {display:flex; flex-direction:column; gap:16px}
 .device-item {background:rgba(10,15,26,0.5); border:1px solid rgba(33,150,243,0.2); border-radius:16px; padding:20px; display:flex; justify-content:space-between; align-items:flex-start; transition:border-color 0.2s}
 .device-item:hover {border-color:rgba(33,150,243,0.4)}
 .device-info {flex:1}
 .device-platform {display:flex; align-items:center; gap:8px; margin-bottom:12px}
 .device-platform svg {width:24px; height:24px; fill:#2196f3}
 .device-platform-name {font-size:16px; font-weight:600; color:#fff}
 .device-details {display:flex; flex-direction:column; gap:6px}
 .device-detail {display:flex; align-items:baseline; gap:8px; font-size:14px}
 .device-detail-label {color:#94a3b8; min-width:120px}
 .device-detail-value {color:#fff; font-weight:500}
 .device-actions {margin-left:20px}
 .device-delete-btn {background:rgba(244,67,54,0.1); border:1px solid rgba(244,67,54,0.3); border-radius:8px; padding:8px 16px; display:flex; align-items:center; gap:8px; color:#f44336; font-size:14px; font-weight:500; cursor:pointer; transition:all 0.2s}
 .device-delete-btn:hover {background:rgba(244,67,54,0.2); border-color:#f44336}
 .device-delete-btn svg {fill:currentColor}
 
 /* Мобильная версия */
 @media (max-width:900px) {
 .content-area {padding: 32px 16px;}
 .sidebar {width:100%; height:auto; top:auto; left:0; right:0; bottom:0; background:rgba(13,17,23,0.95); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-top:1px solid rgba(33,150,243,0.2); border-right:none; flex-direction:row; padding:8px 4px; box-shadow:0 -5px 20px rgba(0,0,0,0.3)}
 .sidebar .sidebar-header,.sidebar .sidebar-footer,.sidebar .sidebar-content .nav-menu .nav-item[href="/balance"] {display:none}
 .sidebar .sidebar-content {flex:1; padding:0; overflow:visible; width:100%}
 .sidebar .nav-menu {display:flex; flex-direction:row; justify-content:space-around; padding:0; gap:0; width:100%}
 .sidebar .nav-item {display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 12px; border-radius:12px; color:#94a3b8; text-decoration:none; font-weight:500; transition:all 0.2s ease; border:none; flex:1; max-width:70px}
 .sidebar .nav-item span {font-size:11px; text-align:center; display:block}
 .sidebar .nav-item svg {width:22px; height:22px; margin:0}
 .sidebar .nav-item:hover,.sidebar .nav-item.active {background:rgba(33,150,243,0.1); color:#2196f3; border:none}
 .dashboard {margin-left:0; padding-bottom:80px}
 .support-link {display: flex;}
 .icon-btn {position: static;}
 #notificationDropdown {right: auto;}
 .main-info-header {flex-direction:column; align-items:flex-start; gap:16px} .main-info-btn {width:100%} .bottom-grid {grid-template-columns:1fr} .bottom-card-stat {margin-right:0}
 .main-info-grid {grid-template-columns: repeat(2, 1fr);}
 .main-info-card {margin-bottom: 20px;}
 .history-section {margin-bottom: 0}
 .top-bar {padding:0 16px; justify-content: space-between;}
 .top-bar-right {gap:12px}
 .top-bar-left {display: flex}
 .avatar-name {display:none}
 .profile-badge {padding:4px}
 .stats-grid,.info-grid {grid-template-columns:1fr}
 #notificationDropdown {width:300px}
 .payment-layout {grid-template-columns:1fr; gap:24px}
 .payment-methods-column {padding-right:0}
 .payment-amount-column {padding-left:0}
 .amount-preset:last-child {display: none;}
 .row-grid {grid-template-columns:1fr}
 .balance-card {padding:24px}
 .balance-card-value {font-size:36px}
 .promo-form {flex-direction:column}
 .promo-form .btn {width:100%}
 .platforms-grid {grid-template-columns:repeat(3,1fr)}
 .device-item {flex-direction:column; gap:16px}
 .device-actions {margin-left:0; width:100%}
 .device-delete-btn {width:100%; justify-content:center}
 .device-detail {flex-direction:column; gap:4px}
 .device-detail-label {min-width:auto}
 .instruction-buttons {flex-direction:column}
 .instruction-btn {justify-content:center}
 .transaction-method {margin-top: 2px}
 .transaction-desc {flex-direction: column;align-items: flex-end;}
 .transaction-status {min-width: auto;}
 }
 @media (max-width:380px) {
 .sidebar .nav-item {padding:6px 8px}
 .sidebar .nav-item svg {width:20px; height:20px}
 .sidebar .nav-item span {font-size:10px}
 }