/* Derivo App Store - Professional Styling */
.derivo-app-store-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1E293B;
    line-height: 1.6;
}

.derivo-app-store-wrapper * {
    box-sizing: border-box;
}

/* Hero Section */
.derivo-app-store-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.derivo-app-store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%2305af2d" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.derivo-app-store-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.derivo-app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 175, 45, 0.15);
    color: #05af2d;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 175, 45, 0.2);
}

.derivo-app-store-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.1;
}

.derivo-app-store-hero .gradient-text {
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.derivo-app-store-hero p {
    font-size: 18px;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Installation Guide */
.derivo-install-guide {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.derivo-install-guide > div:first-child:not(.derivo-install-header) {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

.derivo-install-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: #1E293B;
}

.derivo-install-header svg {
    color: #05af2d;
}

.derivo-install-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.derivo-install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.derivo-install-step {
    display: flex;
    gap: 16px;
}

.derivo-step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.derivo-step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.derivo-step-content p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

.derivo-security-note {
    background: rgba(5, 175, 45, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(5, 175, 45, 0.2);
}

.derivo-security-note svg {
    color: #05af2d;
    flex-shrink: 0;
}

.derivo-security-note div {
    font-size: 14px;
    color: #1E293B;
    line-height: 1.6;
}

.derivo-security-note strong {
    color: #05af2d;
    font-weight: 700;
}

/* Apps Container */
.derivo-apps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.derivo-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* App Card */
.derivo-app-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E2E8F0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.derivo-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.derivo-app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #05af2d;
}

.derivo-app-card:hover::before {
    transform: scaleX(1);
}

.derivo-app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.derivo-app-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.derivo-app-category {
    font-size: 12px;
    font-weight: 600;
    color: #05af2d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.derivo-app-description {
    font-size: 15px;
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.derivo-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.derivo-app-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
}

.derivo-app-meta svg {
    color: #05af2d;
}

.derivo-download-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.derivo-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5, 175, 45, 0.35);
}

.derivo-download-btn:active {
    transform: translateY(-1px);
}

/* No Apps */
.derivo-no-apps {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.derivo-no-apps svg {
    color: #CBD5E1;
    margin-bottom: 24px;
}

.derivo-no-apps h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
}

.derivo-no-apps p {
    font-size: 16px;
    color: #64748B;
    margin: 0;
}

/* Modals */
.derivo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.derivo-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.derivo-modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.derivo-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 24px 0;
    text-align: center;
}

.derivo-modal-body {
    text-align: center;
}

.derivo-download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #05af2d;
    animation: bounce 2s ease-in-out infinite;
}

.derivo-progress-container {
    margin-bottom: 20px;
}

.derivo-progress-bar {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.derivo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #05af2d 0%, #05af2d 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 0.3s ease;
}

.derivo-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748B;
    font-weight: 600;
}

.derivo-download-status {
    font-size: 15px;
    color: #64748B;
    margin: 16px 0 0 0;
}

/* Success Modal */
.derivo-success-content {
    text-align: center;
}

.derivo-success-animation {
    margin: 0 auto 24px;
}

.derivo-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.derivo-checkmark-circle {
    stroke: #05af2d;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: checkmarkCircle 0.6s ease-in-out;
}

.derivo-checkmark-check {
    stroke: #05af2d;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmarkCheck 0.4s 0.4s ease-in-out forwards;
}

.derivo-success-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
}

.derivo-success-content p {
    font-size: 16px;
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.derivo-btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, #05af2d 0%, #05af2d 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.derivo-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(5, 175, 45, 0.35);
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes checkmarkCircle {
    0% {
        stroke-dasharray: 0 157;
    }
    100% {
        stroke-dasharray: 157 157;
    }
}

@keyframes checkmarkCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .derivo-app-store-hero h1 {
        font-size: 32px;
    }
    
    .derivo-app-store-hero p {
        font-size: 16px;
    }
    
    .derivo-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .derivo-install-steps {
        grid-template-columns: 1fr;
    }
    
    .derivo-modal-content {
        padding: 30px 20px;
    }
}
