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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
}

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

.hero {
    text-align: center;
    padding: 50px 0;
    position: relative;
}

.title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.sparkles {
    font-size: 2rem;
    position: absolute;
    top: 20%;
    right: 10%;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.main-content {
    display: grid;
    gap: 30px;
}

.estimator-form {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: grid;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group select,
.input-group input[type="number"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.slider-container {
    margin-top: 10px;
}

#weightSlider {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    margin-left: 10px;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2.5px;
    left: 2.5px;
    transition: transform 0.3s;
}

#usdToggle:checked + .toggle-switch {
    background: #4CAF50;
}

#usdToggle:checked + .toggle-switch::after {
    transform: translateX(25px);
}

.calculate-btn {
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.calculate-btn:hover {
    transform: scale(1.05);
}

.result {
    background: rgba(0,0,0,0.2);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    animation: fadeIn 0.5s;
}

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

.hidden {
    display: none;
}

.price-display {
    font-size: 2rem;
    margin: 20px 0;
}

.price-display p {
    margin: 5px 0;
}

.factors-info {
    text-align: left;
    margin: 20px 0;
}

.factors-info ul {
    list-style: none;
    padding-left: 0;
}

.factors-info li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.export-btn {
    padding: 10px 20px;
    background: #2196F3;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

.education {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
}

.gem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .estimator-form {
        padding: 20px;
    }
    
    .price-display {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .hero {
        padding: 30px 0;
    }
}