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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #333;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FFFF00;
}

.logo h1 {
    font-size: 28px;
    color: #FFFF00;
}

.instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #FFFF00;
    border-radius: 25px;
    color: #FFFF00;
    text-decoration: none;
    margin: 10px 0;
    transition: all 0.3s;
}

.instagram:hover {
    background: #FFFF00;
    color: #000;
}

.subtitle {
    font-size: 14px;
    color: #999;
}

/* Card */
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

h2 {
    color: #FFFF00;
    font-size: 22px;
    margin-bottom: 20px;
}

h3 {
    color: #FF5722;
    font-size: 18px;
    margin: 20px 0 15px 0;
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #FFFF00;
    font-weight: 600;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: #FFFF00;
}

/* Buttons */
.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #FFFF00;
    color: #000;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #FFFF00;
    font-weight: 600;
    margin-bottom: 10px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-inputs span {
    font-size: 24px;
    font-weight: 600;
    color: #FFFF00;
}

.time-input {
    width: 80px;
    padding: 12px;
    background: #000;
    border: 2px solid #FFFF00;
    border-radius: 8px;
    color: #FFFF00;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input:focus {
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.2);
}

/* Advanced Mode Grid */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

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

.input-group-small label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
}

.time-input-small {
    width: 50px;
    padding: 8px;
    background: #000;
    border: 2px solid #FF5722;
    border-radius: 6px;
    color: #FF5722;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

.time-input-small::-webkit-outer-spin-button,
.time-input-small::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input-small:focus {
    outline: none;
    border-color: #ff7043;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

/* Result Display */
.result {
    text-align: center;
    padding: 30px 0;
}

.predicted-time {
    font-size: 48px;
    font-weight: 800;
    color: #FFFF00;
    margin-bottom: 15px;
}

.comparison {
    font-size: 16px;
    color: #999;
    line-height: 1.8;
}

/* Breakdown */
.breakdown {
    margin: 20px 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span:first-child {
    color: #FFFF00;
    font-weight: 600;
}

.breakdown-item span:last-child {
    color: #fff;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #333;
    margin-top: 40px;
    color: #666;
}

footer a {
    color: #FFFF00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .buttons {
        grid-template-columns: 1fr;
    }

    .advanced-grid {
        grid-template-columns: 1fr 1fr;
    }

    .predicted-time {
        font-size: 36px;
    }

    .time-input {
        width: 60px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .advanced-grid {
        grid-template-columns: 1fr;
    }

    .predicted-time {
        font-size: 32px;
    }
}
