:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-card: #1C2128;
    --border-color: #30363D;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --accent-green: #10B981;
    --accent-green-hover: #059669;
    --button-bg: #21262D;
    --button-hover: #30363D;
    --glow-color: #10B981;
    --android-green: #3DDC84;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
    position: relative;
}

/* User Card */
.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    position: relative;
}

/* Header - Logo над карточкой */
.header {
    position: absolute;
    top: -4rem;
    left: 0.5rem;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 750;
    color: var(--text-primary);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.icon-check {
    color: var(--accent-green);
}

.username {
    color: var(--text-primary);
    font-weight: 500;
}

.status-active span {
    color: var(--accent-green);
    font-weight: 500;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Instructions */
.instructions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.instructions-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Steps */
.step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.7),
    0 0 40px rgba(16, 185, 129, 0.4);
    line-height: 0;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
}

.step-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: justify;
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    gap: 1rem;
}

.btn-platform {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-platform svg {
    width: 32px;
    height: 32px;
}

.btn-platform#btn-android svg {
    color: var(--android-green);
}

.btn-platform .flag {
    font-size: 0.9rem;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.btn-platform:hover {
    background: var(--button-hover);
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5),
    0 0 40px rgba(16, 185, 129, 0.3);
}

.btn-platform:active {
    transform: scale(0.95);
}

/* Action Button */
.btn-auto {
    width: 100%;
    height: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-auto:hover {
    background: var(--button-hover);
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5),
    0 0 40px rgba(16, 185, 129, 0.3);
}

.btn-auto:active {
    transform: scale(0.98);
}

/* Copy Button */
.btn-copy {
    width: 100%;
    height: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-copy:hover {
    background: var(--button-hover);
    border-color: var(--accent-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5),
    0 0 40px rgba(16, 185, 129, 0.3);
}

.btn-copy:active {
    transform: scale(0.98);
}

/* Help Button */
.btn-help {
    width: 100%;
    height: 52px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-help:hover {
    background: var(--bg-card);
    border-color: var(--accent-green);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.35),
    0 0 30px rgba(16, 185, 129, 0.2);
}

.btn-help:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 640px) {
    .main-content {
        padding: 0 0.75rem 1.5rem;
    }

    .user-card {
        padding: 1.25rem;
    }

    .info-row {
        flex-direction: column;
    }

    .instructions-title {
        font-size: 1.1rem;
    }

    .step-title {
        font-size: 1rem;
    }
}