:root {
    /* Ocean Depths Palette */
    --primary: #0984E3;
    --primary-hover: #076fc2;
    --secondary: #74B9FF;
    --accent: #00CEC9;
    --background: #0A1628;
    --surface: #142844;

    --glass-bg: rgba(20, 40, 68, 0.6);
    --glass-border: rgba(116, 185, 255, 0.15);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Cloud Brands */
    --c-aws: #FF9900;
    --c-gcp: #4285F4;
    --c-azure: #0089D6;

    --radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 30%, rgba(9, 132, 227, 0.1), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(0, 206, 201, 0.1), transparent 45%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-weight: 700;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.full-width {
    width: 100%;
}

.hidden {
    display: none !important;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Sidebar Config */
.config-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(9, 132, 227, 0.2);
}

.input-control option {
    background: var(--surface);
    color: var(--text-main);
}

/* Range Sliders */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-control {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    outline: none;
}

.range-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-val {
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--secondary);
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.radio-label input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: rgba(116, 185, 255, 0.1);
}

/* Results Area */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cloud-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.cloud-card.cheapest {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.15);
}

.cloud-card.cheapest::before {
    content: 'Best Value';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cloud-logo {
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.aws-header .cloud-logo {
    background: var(--c-aws);
    color: #000;
}

.gcp-header .cloud-logo {
    background: var(--c-gcp);
}

.azure-header .cloud-logo {
    background: var(--c-azure);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.price-display {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency-symbol {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.price-period {
    color: var(--text-muted);
}

.breakdown {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item span:first-child {
    color: var(--text-muted);
}

.breakdown-item span:last-child {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Recommendation Panel */
.recommendation-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.recommendation-panel p {
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
}