* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 4rem 0;
}

/* ESIM Grid */
.esim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ESIM Card */
.esim-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.esim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.esim-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.esim-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.esim-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.esim-price {
    font-size: 1.25rem;
    color: #667eea;
    font-weight: 600;
}

/* Pro/Con Lists */
.pros-cons {
    margin: 1.5rem 0;
}

.pros, .cons {
    margin-bottom: 1rem;
}

.pros h4, .cons h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pros h4 {
    color: #38a169;
}

.cons h4 {
    color: #e53e3e;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-weight: bold;
}

/* CTA Button */
.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Admin Panel Styles */
.admin-panel {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-panel h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.stats-summary {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.stats-breakdown {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.stats-breakdown ul {
    list-style: none;
    padding: 0;
}

.stats-breakdown li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.stats-breakdown li:last-child {
    border-bottom: none;
}

.export-btn, .clear-btn {
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.export-btn {
    background: #38a169;
    color: white;
}

.export-btn:hover {
    background: #2f855a;
}

.clear-btn {
    background: #e53e3e;
    color: white;
}

.clear-btn:hover {
    background: #c53030;
}

/* Error Message Styles */
.error-message {
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #742a2a;
}

.error-message h3 {
    margin-bottom: 1rem;
    color: #742a2a;
}

.error-message p {
    margin-bottom: 0.5rem;
}

.error-message small {
    opacity: 0.8;
    font-style: italic;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .esim-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .esim-card {
        padding: 1.5rem;
    }
    
    main {
        padding: 2rem 0;
    }
}