:root {
    --primary-orange: #FF6B35;
    --primary-purple: #7B2CBF;
    --light-orange: #FFB088;
    --light-purple: #C77DFF;
    --bg-gradient-start: #FFF5F0;
    --bg-gradient-end: #F3E5FF;
    --dark: #2D1B4E;
    --gray: #6B6B6B;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background elements */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.1;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-orange), transparent);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 800;
}

/* Tool Container */
.tool-container {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(123, 44, 191, 0.1);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 44, 191, 0.3);
}

.btn-secondary {
    background: #F3F4F6;
    color: var(--dark);
}

.btn-secondary:hover {
    background: #E5E7EB;
}

/* Form Elements */
label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="color"] {
    width: 60px;
    height: 60px;
    border: 3px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    cursor: pointer;
    border: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Install Section */
.install-section {
    margin: 4rem 0 2rem;
    transition: all 0.3s ease;
}

.install-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.12);
    border: 1px solid rgba(123, 44, 191, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.install-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(123, 44, 191, 0.18);
}

.install-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-purple));
}

.install-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.install-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(123, 44, 191, 0.25),
        0 0 0 10px rgba(255, 107, 53, 0.05);
    animation: float-icon 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.install-icon .material-icons {
    font-size: 52px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.install-card h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.install-card p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.install-card ol {
    text-align: left;
    max-width: 450px;
    margin: 0 auto 2rem;
    color: var(--dark);
    line-height: 2;
    position: relative;
    z-index: 1;
}

.install-card ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.install-card ol li strong {
    color: var(--primary-purple);
}

.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-purple) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 25px rgba(123, 44, 191, 0.35),
        0 0 0 0 rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-orange) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.install-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(123, 44, 191, 0.45),
        0 0 0 8px rgba(255, 107, 53, 0.15);
}

.install-btn:hover::before {
    opacity: 1;
}

.install-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.install-btn .material-icons {
    font-size: 28px;
    position: relative;
    z-index: 1;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.install-btn span:not(.material-icons) {
    position: relative;
    z-index: 1;
}

/* iOS specific styling */
.ios-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.ios-card .install-icon {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 
        0 10px 30px rgba(0, 122, 255, 0.25),
        0 0 0 10px rgba(88, 86, 214, 0.05);
}

/* Badge NEW */
.install-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    z-index: 2;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Sparkle effect on hover */
.install-btn:hover::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: sparkle 0.6s ease-out;
    pointer-events: none;
}

@keyframes sparkle {
    0% { 
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
    100% { 
        opacity: 0;
        transform: translateY(-50%) scale(0.8) translateX(50px);
    }
}

/* Success message after install */
.install-success {
    display: none;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
    font-weight: 600;
    animation: slideDown 0.5s ease-out;
}

.install-success.show {
    display: block;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .install-card {
        padding: 2rem 1.5rem;
    }
    
    .install-icon {
        width: 80px;
        height: 80px;
    }
    
    .install-icon .material-icons {
        font-size: 42px;
    }
    
    .install-card h3 {
        font-size: 1.5rem;
    }
    
    .install-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .install-badge {
        top: 1rem;
        right: 1rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .tool-container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
    }
}
