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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    padding: 40px 20px;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: -2;
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.25);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.2);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Grid pattern overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.converter-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.converter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.hotel-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .hotel-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 { font-size: 2rem; }
    .converter-card { padding: 24px; }
}

.hotel-btn {
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.hotel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hotel-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.hotel-btn span {
    position: relative;
    z-index: 1;
}

.hotel-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hotel-btn.active {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 32px var(--hotel-shadow);
}

.hotel-btn.active::before {
    opacity: 1;
}

.hotel-btn[data-hotel="marriott"] {
    --hotel-gradient: linear-gradient(135deg, #dc2626, #991b1b);
    --hotel-shadow: rgba(220, 38, 38, 0.3);
    --hotel-color: #ef4444;
}
.hotel-btn[data-hotel="ihg"] {
    --hotel-gradient: linear-gradient(135deg, #059669, #047857);
    --hotel-shadow: rgba(5, 150, 105, 0.3);
    --hotel-color: #10b981;
}
.hotel-btn[data-hotel="hilton"] {
    --hotel-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --hotel-shadow: rgba(37, 99, 235, 0.3);
    --hotel-color: #3b82f6;
}
.hotel-btn[data-hotel="hyatt"] {
    --hotel-gradient: linear-gradient(135deg, #7c3aed, #6d28d9);
    --hotel-shadow: rgba(124, 58, 237, 0.3);
    --hotel-color: #8b5cf6;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.conversion-section {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 640px) {
    .conversion-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-wrapper input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 0 30px rgba(139, 92, 246, 0.1);
}

.input-wrapper .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 500;
}

.arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@media (max-width: 640px) {
    .arrow {
        transform: rotate(90deg);
    }
}

.result-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
}

.result-box .value {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    transition: all 0.3s;
}

.result-box .label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.valuation-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.valuation-card h3 {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .valuation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.valuation-item {
    text-align: center;
    padding: 20px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.valuation-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.valuation-item .hotel-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.valuation-item .cpp {
    font-size: 1.5rem;
    font-weight: 700;
}

.valuation-item[data-hotel="marriott"] .cpp { color: #ef4444; }
.valuation-item[data-hotel="ihg"] .cpp { color: #10b981; }
.valuation-item[data-hotel="hilton"] .cpp { color: #3b82f6; }
.valuation-item[data-hotel="hyatt"] .cpp { color: #8b5cf6; }

.disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 32px;
    line-height: 1.8;
}

/* Tab content animations */
.tab-content {
    animation: fadeIn 0.3s ease-out;
}

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

/* Number animation */
.value-animate {
    animation: valueChange 0.3s ease-out;
}

@keyframes valueChange {
    from { transform: scale(0.95); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}
