.balance-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    font-weight: 500;
}

.balance-amount {
    font-size: 52px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1.5px;
}

.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.subscription-item:last-child {
    border-bottom: none;
}

.sub-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.sub-device {
    font-size: 12px;
    color: var(--text-secondary);
}

.sub-status {
    text-align: right;
}

.status-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-trial {
    background: rgba(255, 159, 28, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 159, 28, 0.3);
}

.price {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.referral-block {
    background: linear-gradient(135deg, rgba(255, 77, 30, 0.08) 0%, rgba(90, 98, 110, 0.05) 100%);
    border: 1px solid rgba(255, 77, 30, 0.25);
}

.referral-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-percent {
    font-size: 38px;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 12px rgba(255, 77, 30, 0.4);
}

.referral-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0;
    line-height: 1.4;
}

.link-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: var(--spacing-md) 0;
    word-break: break-all;
    border: 1px solid rgba(255, 77, 30, 0.3);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.history-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    font-size: 28px;
}

.history-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.history-date {
    font-size: 11px;
    color: var(--text-muted);
}

.history-amount {
    font-weight: 700;
    font-size: 15px;
}

.amount-positive {
    color: var(--success);
}

.amount-negative {
    color: var(--danger);
}

.support-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.support-link:active {
    opacity: 0.7;
    transform: translateX(4px);
}

.support-link span:first-child {
    font-size: 22px;
}
/* План карточки */
.plan-card {
    background: rgba(30, 32, 40, 0.85);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 77, 30, 0.3);
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-2px);
}

.plan-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    color: #FF4D1E;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.plan-price span {
    font-size: 14px;
    color: #B0B8C5;
    font-weight: normal;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 0;
    background: #FF4D1E;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.plan-features {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 77, 30, 0.2);
    border-bottom: 1px solid rgba(255, 77, 30, 0.2);
}

.plan-features div {
    padding: 6px 0;
    font-size: 14px;
    color: #B0B8C5;
}

.plan-features div:before {
    content: "✓ ";
    color: #2ECC71;
    font-weight: bold;
}

.plan-btn {
    margin-top: 8px;
}
/* Карточка подписки */
.subscription-item-card {
    background: rgba(30, 32, 40, 0.6);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.sub-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sub-device-count {
    font-size: 12px;
    color: #B0B8C5;
    margin-bottom: 12px;
}

.sub-status {
    font-size: 13px;
    margin-bottom: 12px;
}

.status-warning {
    color: #FF9F1C;
}

.status-active {
    color: #2ECC71;
}

.btn-upgrade {
    background: transparent;
    border: 1px solid #FF4D1E;
    color: #FF4D1E;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.btn-upgrade:active {
    background: rgba(255, 77, 30, 0.1);
}

/* План карточки */
.plan-item {
    background: rgba(30, 32, 40, 0.6);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
}

.btn-add-plan {
    background: linear-gradient(135deg, #FF4D1E, #E63E0F);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Инструкция */
.instruction-section {
    margin-bottom: 24px;
}

.instruction-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FF4D1E;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-btn {
    background: rgba(255, 77, 30, 0.2);
    border: 1px solid rgba(255, 77, 30, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.instruction-step {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #FF4D1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: #B0B8C5;
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-buttons {
    display: flex;
    gap: 10px;
}

.btn-download, .btn-add-sub, .btn-copy-link {
    background: rgba(255, 77, 30, 0.2);
    border: 1px solid rgba(255, 77, 30, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.support-link-footer {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid rgba(255, 77, 30, 0.2);
}

.support-link-footer a {
    color: #FF4D1E;
    text-decoration: none;
}
/* Стили для карточки подписки */
.subscription-item-card {
    background: rgba(30, 32, 40, 0.6);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.sub-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sub-device-count {
    font-size: 12px;
    color: #B0B8C5;
    margin-bottom: 12px;
}

.sub-status {
    font-size: 13px;
    margin-bottom: 12px;
}

.status-warning {
    color: #FF9F1C;
}

.status-active {
    color: #2ECC71;
}

.btn-upgrade {
    background: transparent;
    border: 1px solid #FF4D1E;
    color: #FF4D1E;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

/* План карточки для добавления подписки */
.plan-item {
    background: rgba(30, 32, 40, 0.6);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
}

.btn-add-plan {
    background: linear-gradient(135deg, #FF4D1E, #E63E0F);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Инструкция */
.instruction-section {
    margin-bottom: 24px;
}

.instruction-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FF4D1E;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-btn {
    background: rgba(255, 77, 30, 0.2);
    border: 1px solid rgba(255, 77, 30, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.instruction-step {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #FF4D1E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: #B0B8C5;
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-buttons {
    display: flex;
    gap: 10px;
}

.btn-download, .btn-add-sub, .btn-copy-link {
    background: rgba(255, 77, 30, 0.2);
    border: 1px solid rgba(255, 77, 30, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.support-link-footer {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid rgba(255, 77, 30, 0.2);
}

.support-link-footer a {
    color: #FF4D1E;
    text-decoration: none;
}
/* Тикеты */
.ticket-item {
    background: rgba(30, 32, 40, 0.6);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 77, 30, 0.2);
}
.ticket-item:hover {
    border-color: #FF4D1E;
    transform: translateY(-1px);
}
.ticket-meta {
    font-size: 11px;
    color: #B0B8C5;
    margin: 6px 0;
}
.ticket-preview {
    font-size: 12px;
    color: #B0B8C5;
    margin-top: 6px;
}
.chat-message {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 12px;
}
.chat-message.from-user {
    background: rgba(46, 204, 113, 0.1);
    border-left: 3px solid #2ECC71;
}
.chat-message.from-admin {
    background: rgba(255, 77, 30, 0.1);
    border-left: 3px solid #FF4D1E;
}
.chat-message strong {
    font-size: 13px;
}
.chat-message small {
    font-size: 10px;
    color: #B0B8C5;
    margin-left: 8px;
}
.chat-message div:last-child {
    margin-top: 6px;
    word-break: break-word;
}