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

.logout-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.logout-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.logout-link:hover {
    background: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Lato', sans-serif; 
    background: linear-gradient(-152deg, #6937EA 0%, #377FEA 65%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.8s ease-out;
}

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

h1 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
}

.logo {
  display: inline-block;
  height: 50px;
  width: 50px;
  background-image: url(/images/logo.webp);
  background-position: center;
  background-repeat: no-repeat; 
  background-size: cover;
  position: relative;
  top: 10px;
  margin-right: 5px;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.plan-toggle {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #718096;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(-152deg, #6937EA 0%, #377FEA 65%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-btn:hover:not(.active) {
    color: #4a5568;
    background: rgba(255, 255, 255, 0.5);
}

.input-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
}

input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: #3ECF8E;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result {
    display: none;
    padding: 25px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.result.show {
    display: block;
}

.result h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.result .plan-details-list {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 22px;
    list-style-type: disc;
}
.result .plan-details-list li {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.plans-overview {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.plans-overview h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.plan-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: #667eea;
    background: linear-gradient(-152deg, #6937EA 0%, #377FEA 65%);
    color: white;
}

.plan-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.plan-searches {
    font-size: 0.9rem;
    opacity: 0.8;
}

.plan-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 8px;
}

.plan-price::before {
  content: '$';
}
.plan-price::after {
  content: ' per month';
}

.enterprise-info {
    display: grid;
    gap: 25px;
}

.base-plan {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.base-plan h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.base-plan p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-note {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.additional-searches h4 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.enterprise-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.enterprise-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.enterprise-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.enterprise-option.recommended {
    border-color: #48bb78;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.option-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.option-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.enterprise-option.recommended .option-price {
    color: white;
}

.option-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.option-total {
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.enterprise-option.recommended .option-total {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.speed-toggle {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .plan-grid {
        grid-template-columns: 1fr;
    }
}