/* ============================================================
   OraVPN MODERN — Полный CSS для страницы подписки
   Тёмная тема с Glassmorphism, анимациями и адаптивом
   ============================================================ */

:root {
    --bg-main: #0a0e1a;
    --bg-card: rgba(20, 27, 43, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-very-muted: #475569;
    --accent-blue: #3b82f6;
    --accent-teal: #06b6d4;
    --accent-green: #10b981;
    --accent-yellow: #eab308;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 820px;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 12px;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.logo .badge {
    font-size: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }
.card:nth-child(4) { animation-delay: 0.35s; }
.card:nth-child(5) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== PROFILE CARD ========== */
.profile-card {
    background: linear-gradient(145deg, rgba(20, 27, 43, 0.9), rgba(11, 14, 26, 0.95));
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
    pointer-events: none;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.profile-status .status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    flex-shrink: 0;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.profile-status .status-icon svg {
    width: 20px;
    height: 20px;
}

.profile-name {
    font-weight: 600;
    font-size: 18px;
}

.status-badge {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.status-badge .green { color: var(--accent-green); }
.status-badge .yellow { color: var(--accent-yellow); }
.status-badge .red { color: #ef4444; }
.status-badge .days { font-weight: 600; }

/* ========== PULSE DOT ========== */
.status-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.status-pulse .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-pulse .dot.green {
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.status-pulse .dot.yellow {
    background: var(--accent-yellow);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}
.status-pulse .dot.red {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ========== COUNTDOWN ========== */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    background: rgba(255,255,255,0.04);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
}
.countdown .time-block {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.countdown .time-block .number {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}
.countdown .time-block .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}
.countdown .separator {
    color: var(--text-muted);
    margin: 0 2px;
}

/* ========== INFO GRID ========== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}
.info-item-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-item-title svg {
    width: 14px;
    height: 14px;
}
.info-item-value {
    font-weight: 500;
    font-size: 15px;
}
.info-item-value.green { color: var(--accent-green); }
.info-item-value.yellow { color: var(--accent-yellow); }
.info-item-value.blue { color: var(--accent-blue); }
.info-item-value.purple { color: var(--accent-purple); }
.info-item.expire {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.12);
}
.info-item.storage {
    background: rgba(234, 179, 8, 0.06);
    border-color: rgba(234, 179, 8, 0.12);
}

/* ========== TRAFFIC BAR ========== */
.traffic-bar-wrapper {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}
.traffic-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
.traffic-bar-header .label {
    color: var(--text-muted);
}
.traffic-bar-header .values {
    font-weight: 500;
}
.traffic-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.traffic-bar .fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.traffic-bar .fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    bottom: -2px;
    width: 8px;
    background: var(--accent-blue);
    border-radius: 4px;
    filter: blur(4px);
    opacity: 0.6;
}
.traffic-bar .fill.warning {
    background: linear-gradient(90deg, var(--accent-yellow), #f97316);
}
.traffic-bar .fill.danger {
    background: linear-gradient(90deg, #f97316, #ef4444);
    animation: pulse-danger 1.5s infinite;
}
@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.traffic-bar-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-very-muted);
    margin-top: 6px;
}

/* ========== OS SWITCHER ========== */
.os-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.os-switcher .os-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.os-switcher .os-option:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
}
.os-switcher .os-option.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.2);
}
.os-switcher .os-option svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========== CLIENTS GRID ========== */
.clients-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.clients-grid .client-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}
.clients-grid .client-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-hover);
    color: var(--text-main);
}
.clients-grid .client-card.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.clients-grid .client-card .icon {
    font-size: 18px;
}
.clients-grid .client-card .platform {
    font-size: 11px;
    color: var(--text-very-muted);
    background: rgba(255,255,255,0.04);
    padding: 0 8px;
    border-radius: 4px;
}
.clients-grid .client-card.active .platform {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.06);
}

/* ========== PLATFORM CONTENT ========== */
.platform-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}
.platform-content.active {
    display: block;
}
.client-content {
    display: none;
}
.client-content.active {
    display: flex;
}
.install-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== INSTALL ITEMS ========== */
.install-item {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.install-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}
.install-item .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}
.install-item .icon-wrapper svg {
    width: 20px;
    height: 20px;
}
.install-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.install-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}
.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
    color: var(--text-main);
}
.btn-sm {
    padding: 4px 14px;
    font-size: 12px;
}

/* ========== KEYS LIST ========== */
.badge-count {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.keys-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
}
.key-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-color);
}
.key-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.key-icon {
    color: var(--accent-teal);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.key-name {
    font-size: 14px;
    font-weight: 500;
}
.key-name .badge-text {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
    background: rgba(255,255,255,0.04);
    padding: 1px 10px;
    border-radius: 12px;
    margin-left: 6px;
}
.key-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.key-actions button {
    background: none;
    border: none;
    color: var(--text-very-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.key-actions button:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.04);
}
.key-actions svg {
    width: 16px;
    height: 16px;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 24px 0 12px;
    color: var(--text-very-muted);
    font-size: 13px;
}
.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.footer a:hover {
    color: var(--text-main);
}
.footer .divider {
    margin: 0 8px;
    color: var(--border-color);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 14px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.success .icon { color: var(--accent-green); }
.toast.error .icon { color: #ef4444; }
.toast.info .icon { color: var(--accent-blue); }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    body { padding: 12px; }
    .container { max-width: 100%; }
    .info-grid { grid-template-columns: 1fr; gap: 8px; }
    .header { flex-direction: column; align-items: flex-start; }
    .card { padding: 16px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .os-switcher { gap: 4px; }
    .os-switcher .os-option { font-size: 12px; padding: 3px 10px; }
    .clients-grid .client-card { padding: 6px 12px; font-size: 12px; }
    .clients-grid .client-card .icon { font-size: 16px; }
    .install-item { flex-wrap: wrap; gap: 10px; padding: 14px; }
    .key-item { flex-wrap: wrap; gap: 8px; }
    .key-info { flex: 1; }
    .countdown { font-size: 12px; padding: 3px 10px; }
    .countdown .time-block .number { font-size: 14px; min-width: 18px; }
    .toast { max-width: 90%; bottom: 20px; padding: 10px 18px; font-size: 13px; }
    .traffic-bar-wrapper { padding: 12px 16px; }
}

@media (max-width: 400px) {
    .clients-grid .client-card { flex: 1 1 100%; justify-content: center; }
    .install-content .btn { width: 100%; justify-content: center; }
}

/* Скрываем все блоки клиентов по умолчанию */
.client-content {
    display: none;
}

/* Показываем только активный */
.client-content.active {
    display: flex;
}

/* ============================================================
   КНОПКИ ВЫБОРА КЛИЕНТА (Happ, Incy, Prizrak-Box)
   ============================================================ */

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px 0 16px;
    height: 48px;
    min-width: 0;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

/* --- Активное состояние (как у конкурента) --- */
.client-card.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.12) 0%, rgba(34, 211, 238, 0.02) 100%);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 4px 0 12px -4px rgba(34, 211, 238, 0.25), 0 0 12px rgba(34, 211, 238, 0.06);
    color: #e2e8f0;
}

.client-card.active .client-icon svg {
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
}

/* --- Иконка внутри кнопки --- */
.client-card .client-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.client-card .client-icon svg {
    width: 28px;
    height: 28px;
    transition: filter 0.3s;
}

.client-card .client-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.client-card .client-platform {
    font-size: 11px;
    color: var(--text-very-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0 10px;
    border-radius: 4px;
    margin-left: auto;
    height: 22px;
    display: flex;
    align-items: center;
}

.client-card.active .client-platform {
    color: rgba(34, 211, 238, 0.7);
    background: rgba(34, 211, 238, 0.08);
}

/* --- Адаптив --- */
@media (max-width: 480px) {
    .client-card {
        padding: 0 16px 0 12px;
        height: 42px;
        font-size: 13px;
        gap: 8px;
        flex: 1 1 100%;
    }
    .client-card .client-icon svg {
        width: 22px;
        height: 22px;
    }
    .client-card .client-platform {
        font-size: 10px;
        padding: 0 8px;
        height: 20px;
    }
}

/* ============================================================
   ПОДРОБНАЯ ИНСТРУКЦИЯ (STEP CARDS)
   ============================================================ */

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.step-card.manual {
    background: rgba(245, 158, 11, 0.04);
    border-color: rgba(245, 158, 11, 0.15);
}

.step-card.manual:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
}

.step-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.step-icon.cyan {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04));
    border-color: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
}

.step-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.step-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.step-icon svg {
    width: 22px;
    height: 22px;
}

.step-body {
    flex: 1;
    min-width: 0;
}

.step-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.step-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-note {
    font-size: 13px;
    color: var(--text-very-muted);
    margin: 6px 0 0 0 !important;
    padding-left: 0 !important;
    font-style: italic;
}

/* ---------- Кнопки в инструкции ---------- */
.btn-cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: var(--transition);
}

.btn-cyan:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-1px);
}

.btn-cyan-outline {
    background: transparent;
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.btn-cyan-outline:hover {
    background: rgba(34, 211, 238, 0.06);
    border-color: rgba(34, 211, 238, 0.35);
}

/* ---------- Manual steps (нумерованный список) ---------- */
.manual-steps {
    margin: 6px 0 10px 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.manual-steps li {
    margin-bottom: 2px;
}

.manual-steps li strong {
    color: var(--text-main);
}

/* ---------- Совет (hint) ---------- */
.step-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 6px;
}

.hint-tag {
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 0 10px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hint-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---------- Адаптив ---------- */
@media (max-width: 480px) {
    .step-header {
        flex-direction: column;
        gap: 8px;
    }
    .step-icon {
        width: 36px;
        height: 36px;
    }
    .step-icon svg {
        width: 18px;
        height: 18px;
    }
    .step-body h4 {
        font-size: 14px;
    }
    .step-body p {
        font-size: 13px;
    }
    .step-actions .btn {
        font-size: 13px;
        padding: 6px 14px;
    }
    .manual-steps {
        font-size: 13px;
        padding-left: 16px;
    }
    .step-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 400px) {
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
