@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700&display=swap');

/* CSS Variables - адаптировано из оригинального Tailwind */
:root {
    --font-unbounded: "Unbounded", sans-serif;
    --font-neue: "Neue-Bold", sans-serif;
    --spacing: 0.25rem;

    /* Colors */
    --color-white: #fff;
    --color-violet-100: #ede9fe;
    --color-violet-300: #c4b5fd;
    --color-violet-400: #a78bfa;
    --color-violet-500: #8b5cf6;
    --color-violet-700: #6d28d9;
    --color-purple-400: #c084fc;
    --color-cyan-400: #22d3ee;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-zinc-300: #d4d4d8;
    --color-zinc-600: #52525b;
    --color-zinc-700: #3f3f46;
}

@font-face {
    font-family: Neue-Bold;
    font-display: swap;
    src: url(/NeueBold.ttf) format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
}

html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--font-unbounded);
    scroll-behavior: smooth;
}

body {
    line-height: inherit;
    background-color: #060606;
    color: rgba(255, 255, 255, 0.9);
    min-height: 100vh;
}

::-webkit-scrollbar {
    display: none;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button {
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font: inherit;
    color: inherit;
    background: transparent;
}

/* Fonts */
.font-unbounded { font-family: var(--font-unbounded); }
.font-neue { font-family: var(--font-neue); }

/* Layout utilities */
.select-none { user-select: none; }
.select-text { user-select: text; }

.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }

.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-15 { z-index: 15; }

.top-0 { top: 0; }
.top-\[150px\] { top: 150px; }
.left-\[-30px\] { left: -30px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.flex-1 { flex: 1; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-rcc {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.flex-col-ss {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-\[50px\] { width: 50px; }
.w-\[70px\] { width: 70px; }
.w-\[72\.1875rem\] { width: 72.1875rem; }
.h-full { height: 100%; }
.h-\[1px\] { height: 1px; }
.h-\[4px\] { height: 4px; }
.h-\[6px\] { height: 6px; }
.h-\[48px\] { height: 48px; }
.h-\[90px\] { height: 90px; }
.h-\[350px\] { height: 350px; }
.h-\[440px\] { height: 440px; }

.max-w-\[80px\] { max-width: 80px; }
.max-w-\[150px\] { max-width: 150px; }
.max-w-\[450px\] { max-width: 450px; }
.max-w-\[1370px\] { max-width: 1370px; }
.max-w-\[1400px\] { max-width: 1400px; }

/* Spacing */
.gap-\[0px\] { gap: 0; }
.gap-\[8px\] { gap: 8px; }
.gap-\[11px\] { gap: 11px; }
.gap-\[12px\] { gap: 12px; }
.gap-\[14px\] { gap: 14px; }
.gap-\[15px\] { gap: 15px; }
.gap-\[16px\] { gap: 16px; }
.gap-\[18px\] { gap: 18px; }
.gap-\[20px\] { gap: 20px; }
.gap-\[24px\] { gap: 24px; }
.gap-\[25px\] { gap: 25px; }
.gap-\[32px\] { gap: 32px; }
.gap-\[48px\] { gap: 48px; }

.mt-0 { margin-top: 0; }
.mt-\[2px\] { margin-top: 2px; }
.mt-\[6px\] { margin-top: 6px; }
.mt-\[20px\] { margin-top: 20px; }
.mt-\[35px\] { margin-top: 35px; }
.mt-\[50px\] { margin-top: 50px; }
.mt-\[90px\] { margin-top: 90px; }
.mb-\[20px\] { margin-bottom: 20px; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-\[13px\] { padding-left: 13px; padding-right: 13px; }
.px-\[16px\] { padding-left: 16px; padding-right: 16px; }
.px-\[20px\] { padding-left: 20px; padding-right: 20px; }
.px-\[24px\] { padding-left: 24px; padding-right: 24px; }
.py-\[8px\] { padding-top: 8px; padding-bottom: 8px; }
.py-\[12px\] { padding-top: 12px; padding-bottom: 12px; }
.py-\[18px\] { padding-top: 18px; padding-bottom: 18px; }
.pt-\[4px\] { padding-top: 4px; }
.pb-\[18px\] { padding-bottom: 18px; }
.pl-\[16px\] { padding-left: 16px; }
.pr-\[16px\] { padding-right: 16px; }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-\[14px\] { font-size: 14px; }
.text-\[16px\] { font-size: 16px; }
.text-\[17px\] { font-size: 17px; }
.text-\[18px\] { font-size: 18px; }
.text-\[19px\] { font-size: 19px; }
.text-\[20px\] { font-size: 20px; }
.text-\[24px\] { font-size: 24px; }
.text-\[25px\] { font-size: 25px; }
.text-\[27px\] { font-size: 27px; }
.text-\[28px\] { font-size: 28px; }
.text-\[30px\] { font-size: 30px; }
.text-\[32px\] { font-size: 32px; }
.text-\[36px\] { font-size: 36px; }
.text-\[38px\] { font-size: 38px; }
.text-\[40px\] { font-size: 40px; }
.text-\[50px\] { font-size: 50px; }
.text-\[60px\] { font-size: 60px; }

.leading-0 { line-height: 0; }
.leading-\[40px\] { line-height: 40px; }
.leading-\[50px\] { line-height: 50px; }
.leading-\[60px\] { line-height: 60px; }
.leading-\[70px\] { line-height: 70px; }
.leading-\[1\.8\] { line-height: 1.8; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Colors */
.text-white\/35 { color: rgba(255, 255, 255, 0.35); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/65 { color: rgba(255, 255, 255, 0.65); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-violet-100\/65 { color: rgba(237, 233, 254, 0.65); }
.text-violet-400\/90 { color: rgba(167, 139, 250, 0.9); }
.text-violet-500 { color: #8b5cf6; }
.text-purple-400\/85 { color: rgba(192, 132, 252, 0.85); }
.text-cyan-400\/80 { color: rgba(34, 211, 238, 0.8); }
.text-neutral-300\/94 { color: rgba(212, 212, 212, 0.94); }
.text-neutral-400 { color: #a3a3a3; }

.bg-white\/1 { background-color: rgba(255, 255, 255, 0.01); }
.bg-white\/2 { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-violet-400\/6 { background-color: rgba(167, 139, 250, 0.06); }
.bg-transparent { background-color: transparent; }

.border-white\/2 { border-color: rgba(255, 255, 255, 0.02); }
.border-white\/4 { border-color: rgba(255, 255, 255, 0.04); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-violet-400\/7 { border-color: rgba(167, 139, 250, 0.07); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-\[1px\] { border-width: 1px; border-style: solid; }
.border-\[2px\] { border-width: 2px; border-style: solid; }
.border-solid { border-style: solid; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[20px\] { border-radius: 20px; }
.rounded-\[24px\] { border-radius: 24px; }
.rounded-\[28px\] { border-radius: 28px; }

/* Effects */
.overflow-hidden { overflow: hidden; }
.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }

.transform-gpu { transform: translateZ(0); }
.will-change-transform { will-change: transform; }

.blur-\[90px\] { filter: blur(90px); }
.backdrop-blur-none { backdrop-filter: none; }

.drop-shadow-\[0_0_30px_\#00b8db99\] { filter: drop-shadow(0 0 30px #00b8db99); }
.drop-shadow-\[0_0_50px_\#ad46ff\] { filter: drop-shadow(0 0 50px #ad46ff); }

/* Gradients */
.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}
.from-purple-400 { --tw-gradient-from: #c084fc; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-violet-700 { --tw-gradient-to: #6d28d9; }

.aspect-\[1155\/578\] { aspect-ratio: 1155/578; }

/* Transitions */
.transition {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.smooth {
    will-change: transform;
    transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.smooth-fast {
    will-change: transform;
    transition: all 0.2s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.cursor-pointer { cursor: pointer; }

/* Hover states */
.hover\:text-white\/60:hover { color: rgba(255, 255, 255, 0.6); }
.hover\:text-white\/70:hover { color: rgba(255, 255, 255, 0.7); }
.hover\:text-violet-100\/85:hover { color: rgba(237, 233, 254, 0.85); }
.hover\:bg-violet-300\/10:hover { background-color: rgba(196, 181, 253, 0.1); }
.hover\:bg-white\/6:hover { background-color: rgba(255, 255, 255, 0.06); }
.hover\:border-white\/4:hover { border-color: rgba(255, 255, 255, 0.04); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:scale-\[98\%\]:hover { transform: scale(0.98); }
.hover\:backdrop-blur-\[100px\]:hover { backdrop-filter: blur(100px); }

.active\:scale-\[92\%\]:active { transform: scale(0.92); }

/* Focus */
.outline-none { outline: none; }
.focus\:outline-none:focus { outline: none; }

/* Underline */
.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

/* Containers */
.mp-c1 {
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.mp-c2 {
    z-index: 15;
    width: 100%;
    max-width: 1370px;
    height: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.f {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: scale(0.93) translateY(-33px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: scale(0.93) translateY(33px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-in-small-custom {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade-out-down {
    0% {
        opacity: 1;
        transform: none;
    }
    100% {
        opacity: 0;
        transform: scale(0.93) translateY(33px);
    }
}

.anim-fadein-up {
    will-change: transform;
    animation: fade-in-up 1.2s both;
}

.anim-fadein-down {
    will-change: transform;
    animation: fade-in-down 1.2s both;
}

.anim-fadein-small {
    animation: fade-in-small-custom 1.3s both;
}

.anim-fadeout-down {
    will-change: transform;
    animation: fade-out-down 1.2s both;
}

/* Card hover */
.card:hover {
    transition: all 0.2s cubic-bezier(0, 0.8, 0.26, 0.99);
    transform: perspective(500px) rotateX(3deg) scale(1.02);
}

/* Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-top: -8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
    border-color: #fff;
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider::-moz-range-thumb {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Slider value display */
.slider-container {
    position: relative;
}

.slider-value {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.slider:active + .slider-value,
.slider:focus + .slider-value {
    opacity: 1;
}

/* Calculator Form Styles */
.calc-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
}

.calc-field {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-value-display {
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Floor Buttons */
.floor-btn {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-unbounded);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.floor-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.floor-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

/* Material Grid */
.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.material-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.material-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.material-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.material-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

/* Foundation Buttons */
.foundation-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.foundation-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.foundation-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* Roof Buttons */
.roof-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.roof-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.roof-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.08));
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

/* Calc Checkbox Styling */
.calc-checkbox:has(input:checked) {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.material-name {
    font-family: var(--font-unbounded);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.material-price {
    font-family: var(--font-unbounded);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.material-btn.active .material-name {
    color: #fff;
}

.material-btn.active .material-price {
    color: rgba(139, 92, 246, 0.8);
}

/* Option Labels (Checkboxes) */
.option-label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.option-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-check {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-check::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.option-checkbox:checked + .option-check {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
}

.option-checkbox:checked + .option-check::after {
    opacity: 1;
    transform: scale(1);
}

.option-text {
    flex: 1;
    font-family: var(--font-unbounded);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.option-price {
    font-family: var(--font-neue);
    font-size: 14px;
    color: rgba(139, 92, 246, 0.7);
}

.option-label:has(.option-checkbox:checked) {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.option-label:has(.option-checkbox:checked) .option-text {
    color: rgba(255, 255, 255, 0.9);
}

.option-label:has(.option-checkbox:checked) .option-price {
    color: rgba(139, 92, 246, 1);
}

/* Text color for violet */
.text-violet-400 {
    color: #a78bfa;
}

/* Custom Components */
.btn-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 32px;
    border: 2px solid rgba(82, 82, 91, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.btn-main:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(82, 82, 91, 0.15);
    transform: scale(0.98);
}

.btn-main:active {
    transform: scale(0.94);
}

/* Tabs */
.tab-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 25px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

/* House cards */
.house-card {
    position: relative;
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-unbounded);
    font-size: 12px;
    font-weight: 600;
    z-index: 20;
}

.popular-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}

/* House icon decoration */
.house-icon {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: pointer;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: fade-in-down 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content h3 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    margin-bottom: 10px;
}

.modal-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 48px;
}

select option {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.9);
}

/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-color: #8b5cf6;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    text-align: center;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
    .sm\:gap-\[18px\] { gap: 18px; }
    .sm\:gap-\[24px\] { gap: 24px; }
    .sm\:gap-\[25px\] { gap: 25px; }
    .sm\:gap-\[48px\] { gap: 48px; }
    .sm\:max-w-\[150px\] { max-width: 150px; }
    .sm\:text-\[16px\] { font-size: 16px; }
    .sm\:text-\[19px\] { font-size: 19px; }
    .sm\:text-\[20px\] { font-size: 20px; }
    .sm\:text-\[25px\] { font-size: 25px; }
    .sm\:text-\[32px\] { font-size: 32px; }
    .sm\:text-\[40px\] { font-size: 40px; }
    .sm\:leading-\[50px\] { line-height: 50px; }
}

@media (min-width: 768px) {
    .md\:text-\[25px\] { font-size: 25px; }
    .md\:text-\[30px\] { font-size: 30px; }
    .md\:text-\[35px\] { font-size: 35px; }
    .md\:text-\[50px\] { font-size: 50px; }
    .md\:leading-\[60px\] { line-height: 60px; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:text-left { text-align: left; }
    .lg\:gap-0 { gap: 0; }
    .lg\:gap-\[24px\] { gap: 24px; }
    .lg\:gap-\[32px\] { gap: 32px; }
    .lg\:gap-\[48px\] { gap: 48px; }
    .lg\:px-0 { padding-left: 0; padding-right: 0; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:text-\[29px\] { font-size: 29px; }
    .lg\:text-\[35px\] { font-size: 35px; }
    .lg\:text-\[36px\] { font-size: 36px; }
    .lg\:text-\[38px\] { font-size: 38px; }
    .lg\:text-\[60px\] { font-size: 60px; }
    .lg\:leading-\[70px\] { line-height: 70px; }

    .mp-c2 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Small screen adjustments */
@media (max-width: 639px) {
    .house-card {
        margin-bottom: 16px;
    }
}

/* Legal pages styles */
.legal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
}

@media (max-width: 640px) {
    .legal-content {
        padding: 24px 20px;
    }
}

.legal-content h1 {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-unbounded);
    line-height: 1.3;
}

.legal-content h2 {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-unbounded);
    font-size: 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-unbounded);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.legal-content p {
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-unbounded);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content .legal-date {
    color: rgba(139, 92, 246, 0.8);
    margin-bottom: 20px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content ul li {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-unbounded);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-content strong {
    color: rgba(255, 255, 255, 0.85);
}

.legal-content a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: #c4b5fd;
}
