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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a8a 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(30, 27, 75, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lang-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    opacity: 1;
}

.lang-btn.active {
    background: rgba(139, 92, 246, 0.3);
    opacity: 1;
}

.lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

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

.proposal-info {
    text-align: right;
}

.proposal-info h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.proposal-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #E0E7FF;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Users Control */
.users-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-header {
    flex: 1;
}

.control-header span {
    font-size: 18px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.control-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Counter */
.counter {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.counter-value {
    font-size: 24px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: #E0E7FF;
}

.counter-btn.small {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.counter-value.small {
    font-size: 16px;
    min-width: 28px;
}

/* Connections Grid */
.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.connection-item {
    background: rgba(30, 27, 75, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
}

.connection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.connection-item:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.connection-item:hover::before {
    left: 100%;
}

.connection-item.active {
    border-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
}

.connection-item.selected {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.connection-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.connection-item:hover .connection-icon {
    transform: scale(1.1);
}

.connection-icon.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.connection-icon.instagram { background: linear-gradient(135deg, #E4405F, #C13584); }
.connection-icon.facebook { background: linear-gradient(135deg, #1877F2, #0C63D4); }
.connection-icon.telegram { background: linear-gradient(135deg, #0088cc, #005580); }
.connection-icon.webchat { background: linear-gradient(135deg, #667eea, #764ba2); }
.connection-icon.email { background: linear-gradient(135deg, #EA4335, #D33B2C); }
.connection-icon.linkedin { background: linear-gradient(135deg, #0077B5, #005885); }
.connection-icon.tiktok { background: linear-gradient(135deg, #000000, #333333); }
.connection-icon.mercadolivre { background: linear-gradient(135deg, #FFE600, #CCB800); }
.connection-icon.magalu { background: linear-gradient(135deg, #0F4C81, #0A3A66); }
.connection-icon.olx { background: linear-gradient(135deg, #6E2C91, #542070); }
.connection-icon.shopee { background: linear-gradient(135deg, #FB5533, #E8421A); }
.connection-icon.shein { background: linear-gradient(135deg, #000000, #333333); }

.connection-item span {
    font-size: 14px;
    font-weight: 500;
    color: #E0E7FF;
}

/* Right Panel */
.right-panel {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.summary-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #E0E7FF;
}

.summary-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row span:first-child {
    font-weight: 500;
    color: #E0E7FF;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #10B981;
}

.summary-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 24px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.total-price {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(49, 46, 129, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #E0E7FF;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #E0E7FF;
    font-size: 14px;
}

.form-group input {
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-button {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Counter animation */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter-animate {
    animation: countUp 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .right-panel {
        position: static;
    }
    
    .logo-image {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .proposal-info {
        text-align: center;
    }
    
    .users-control {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .connections-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .connection-item {
        padding: 16px 12px;
        min-height: 100px;
    }
    
    .connection-icon {
        width: 40px;
        height: 40px;
    }
    
    .language-selector {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .modal {
        padding: 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .connections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 24px;
    }
    
    .summary-card {
        padding: 24px;
    }
}
