:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(23, 31, 48, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #6366F1;
    --accent-primary-hover: #4F46E5;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --accent-green: #10B981;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --code-bg: rgba(15, 23, 42, 0.8);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background Ambient Glows */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 250px;
    height: 250px;
    background: rgba(99, 102, 241, 0.2);
    top: -50px;
    left: -50px;
}

.glow-2 {
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.15);
    bottom: 50px;
    right: -40px;
}

/* Header */
.header {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px var(--accent-green); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    gap: 12px;
}

.info-icon {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-mini-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-mini-btn:hover, .copy-mini-btn:active {
    background: rgba(99, 102, 241, 0.2);
    color: #818CF8;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Action Buttons Group */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-link-action {
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
}

/* Guide Card Styles */
.guide-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818CF8;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.step-text strong {
    color: var(--text-primary);
    margin-bottom: 2px;
}

.step-text code {
    background: rgba(15, 23, 42, 0.8);
    color: #38BDF8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* Video Card */
.video-card {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-icon {
    font-size: 24px;
}

.video-text {
    display: flex;
    flex-direction: column;
}

.video-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.video-text span {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-video {
    background: var(--accent-primary);
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-video:hover {
    background: var(--accent-primary-hover);
}

/* Step Copy Rows & Boxes */
.step-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.chip-copy-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818CF8;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chip-copy-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #FFF;
}

.step-credentials-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.step-link-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.download-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.download-direct-btn:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cred-row strong {
    color: #38BDF8;
    font-family: monospace;
}

/* OS Difference Badges for Android & iOS */
.os-diff-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.os-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.3;
}

.os-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.android-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10B981;
}

.ios-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
}

.guide-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.btn-text-link {
    display: inline-block;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px;
    transition: var(--transition);
}

.btn-text-link:hover {
    color: var(--text-primary);
}

/* Primary Start Button */
.btn-primary {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Store links */
.stores-section {
    text-align: center;
}

.stores-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.store-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #131B2E;
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-step-badge {
    font-size: 11px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

/* Step Progress */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.step-dot.active {
    background: var(--accent-primary);
    color: #FFF;
    box-shadow: 0 0 12px var(--accent-glow);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    max-width: 40px;
}

/* Wizard Steps */
.wizard-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wizard-step.hidden {
    display: none;
}

.wizard-step h3 {
    font-size: 16px;
    font-weight: 600;
}

.wizard-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Copy Box */
.copy-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copy-field {
    background: var(--code-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
}

.field-title {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.code-val {
    font-family: monospace;
    font-size: 13px;
    color: #38BDF8;
    word-break: break-all;
}

.copy-action-btn {
    background: var(--accent-primary);
    border: none;
    color: #FFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.copy-action-btn:hover {
    background: var(--accent-primary-hover);
}

/* Instructions list */
.instructions-list {
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instructions-list code {
    background: var(--code-bg);
    color: #38BDF8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.app-launch-row {
    margin-top: 6px;
}

.btn-launch {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-launch:hover {
    background: rgba(16, 185, 129, 0.25);
}

.tip-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #FDE047;
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.success-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.success-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Wizard Navigation */
.wizard-nav {
    margin-top: 16px;
}

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

.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-text-nav {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
}

.btn-text-nav:hover {
    color: var(--text-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1E293B;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 200;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}
