:root {
    --panel-edge: rgba(153, 197, 232, .16);
    --panel-fill: rgba(10, 18, 27, .86);
    --accent: #4ba6ff;
    --accent-soft: rgba(75, 166, 255, .16);
    --active: #44dda0;
    --warm-light: 255, 225, 166;
    --curtain-duration: 2.7s;
    --shutter-duration: 3.2s;
}

html, body {
    background:
        radial-gradient(circle at 76% -10%, rgba(32, 93, 150, .20), transparent 38%),
        radial-gradient(circle at 8% 110%, rgba(32, 111, 99, .12), transparent 34%),
        #050a11;
}

.showroom-shell {
    max-width: 1880px;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.control-panel {
    height: calc(100vh - 32px);
    gap: 12px;
}

.intro-card,
.room-panel,
.room-card {
    border-color: var(--panel-edge);
    background: linear-gradient(145deg, rgba(21, 35, 49, .91), rgba(7, 13, 20, .91));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .035);
}

.intro-card {
    height: 76px;
    border-radius: 20px;
    padding: 12px 16px;
}

.intro-play {
    position: relative;
    width: 46px;
    height: 46px;
    color: #f8fcff;
    background: linear-gradient(145deg, #58b9ff, #2354a4);
    box-shadow: 0 8px 30px rgba(54, 142, 255, .28), inset 0 1px rgba(255, 255, 255, .35);
}

.room-panel {
    padding: 15px;
}

.room-panel-head {
    align-items: center;
    margin-bottom: 10px;
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #6db8ee;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 1.7px;
}

.room-panel-head h1 {
    margin-bottom: 6px;
    font-size: 27px;
    letter-spacing: -.8px;
}

.room-panel-head p {
    max-width: 235px;
    line-height: 1.35;
}

.active-pill {
    padding: 8px 10px;
    border-color: rgba(68, 221, 160, .18);
    background: rgba(68, 221, 160, .075);
    color: #baf4db;
}

.active-pill i {
    width: 8px;
    height: 8px;
    background: var(--active);
    box-shadow: 0 0 14px var(--active);
}

.thermostat-card {
    padding: 11px;
    border-color: rgba(153, 197, 232, .13);
    background: linear-gradient(150deg, rgba(5, 10, 16, .72), rgba(16, 27, 39, .58));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.thermostat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 9px;
    color: #9db1c2;
    font-size: 11px;
    font-weight: 900;
}

.device-state {
    padding: 4px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: #8193a2;
    font-size: 10px;
}

.device-state.active {
    background: rgba(68, 221, 160, .13);
    color: #74e8b8;
}

.temp-values {
    gap: 8px;
    margin-bottom: 8px;
}

.temp-values div {
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .025);
    background: rgba(0, 0, 0, .22);
}

.temp-values strong {
    font-size: 23px;
    letter-spacing: -.7px;
}

.mode-grid,
.temp-grid {
    gap: 8px;
    margin-bottom: 8px;
}

.mode-btn,
.temp-btn {
    height: 38px;
    border-color: rgba(151, 183, 208, .14);
    background: rgba(255, 255, 255, .05);
}

.mode-btn:hover,
.temp-btn:hover {
    border-color: rgba(93, 178, 255, .40);
    background: rgba(75, 166, 255, .10);
}

.mode-btn.active {
    border-color: rgba(91, 169, 255, .68);
    background: linear-gradient(145deg, rgba(44, 121, 218, .32), rgba(32, 77, 151, .30));
    box-shadow: inset 0 0 18px rgba(62, 144, 255, .09);
}

.climate-status {
    padding: 9px;
    background: rgba(255, 255, 255, .04);
}

.quick-actions {
    gap: 8px;
    padding: 1px 6px 12px 1px;
}

.action-card {
    position: relative;
    height: 70px;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 11px;
    overflow: hidden;
    border-radius: 15px;
    border-color: rgba(153, 197, 232, .13);
    background: linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018));
    text-align: left;
}

.action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .08) 48%, transparent 76%);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.action-card:hover {
    border-color: rgba(104, 190, 255, .32);
    background: linear-gradient(145deg, rgba(69, 135, 191, .12), rgba(255, 255, 255, .025));
}

.action-card.pending::before,
.action-card.motion-locked::before {
    opacity: 1;
    animation: controlSweep 1.1s linear infinite;
}

.action-card:disabled {
    cursor: wait;
}

@keyframes controlSweep {
    to { transform: translateX(100%); }
}

.action-card > img {
    position: static;
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .28));
}

.action-card > span {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.action-card strong {
    overflow: hidden;
    color: #edf6ff;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-card small {
    color: #8298aa;
    font-size: 10px;
    font-weight: 850;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #526272;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
    transition: .35s ease;
}

.action-card.active:not(.scene-card) {
    border-color: rgba(68, 221, 160, .46);
    background: linear-gradient(145deg, rgba(33, 150, 108, .19), rgba(11, 72, 54, .18));
    box-shadow: inset 0 0 22px rgba(68, 221, 160, .045);
}

.action-card.active:not(.scene-card) .status-dot {
    background: #4ce0a6;
    box-shadow: 0 0 12px rgba(76, 224, 166, .72);
}

.action-card.active small {
    color: #74e8b8;
}

.action-card.wide {
    height: 68px;
    padding: 10px 14px;
}

.scene-card {
    border-color: rgba(142, 109, 255, .24);
    background: linear-gradient(145deg, rgba(76, 50, 147, .20), rgba(18, 19, 50, .34));
}

.scene-card.active {
    border-color: rgba(158, 123, 255, .68);
    background: linear-gradient(145deg, rgba(100, 68, 194, .34), rgba(38, 26, 96, .42));
    box-shadow: 0 0 24px rgba(103, 69, 210, .13), inset 0 1px rgba(255, 255, 255, .08);
}

.scene-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scene-arrow {
    color: #bcaeff;
    font-size: 25px;
    font-style: normal;
}

.rooms-stage {
    height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(260px, .72fr);
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.room-card {
    grid-column: 2;
    min-height: 0;
    border-radius: 18px;
    transform: none;
}

.room-card.selected-room {
    grid-column: 1;
    grid-row: 1 / 6;
    border-color: rgba(82, 201, 160, .66);
    box-shadow: 0 0 0 1px rgba(68, 221, 160, .18), 0 28px 75px rgba(0, 0, 0, .42);
}

.room-card:hover {
    transform: none;
    border-color: rgba(112, 180, 229, .42);
}

.room-card header {
    height: 39px;
    padding: 0 13px;
    background: linear-gradient(180deg, rgba(11, 21, 31, .99), rgba(7, 14, 22, .94));
    font-size: 10px;
}

.room-card header i {
    font-size: 19px;
}

.room-card.selected-room header {
    height: 54px;
    padding: 0 18px;
    font-size: 14px;
}

.room-card.selected-room header i {
    font-size: 26px;
}

.room-card.selected-room header::after {
    content: "CANLI ÖNİZLEME";
    margin-left: auto;
    margin-right: 14px;
    color: #5fd9a9;
    font-size: 9px;
    letter-spacing: 1.2px;
}

.scene-media {
    --scene-image: none;
    position: absolute;
    inset: 39px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #05090d;
}

.selected-room .scene-media {
    inset: 54px 0 0;
}

.scene-media::before {
    content: "";
    position: absolute;
    inset: -28px;
    background-image: var(--scene-image);
    background-position: center;
    background-size: cover;
    filter: blur(20px) brightness(.20) saturate(.70);
    transform: scale(1.08);
    opacity: .92;
}

.room-living .scene-media { --scene-image: url('/images/showroom/living-realistic.png'); }
.room-kitchen .scene-media { --scene-image: url('/images/showroom/kitchen-realistic.png'); }
.room-bedroom .scene-media { --scene-image: url('/images/showroom/bedroom-realistic.png'); }
.room-hall .scene-media { --scene-image: url('/images/showroom/hall-realistic.png'); }
.room-bath .scene-media { --scene-image: url('/images/showroom/bath-realistic.png'); }
.room-balcony .scene-media { --scene-image: url('/images/showroom/balcony-realistic.png'); }

.scene-canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 45 / 28;
    flex: 0 0 auto;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .36);
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.room-card:hover .scene-canvas {
    transform: scale(1.006);
}

.scene-canvas > img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: brightness(.43) contrast(1.08) saturate(.86);
    transform: none;
    transition: filter 1.25s cubic-bezier(.22, .74, .18, 1), transform .8s ease;
}

.room-card:hover .scene-canvas > img {
    transform: none;
}

.room-card.room-lit .scene-canvas > img {
    filter: brightness(.72) contrast(1.06) saturate(.96);
}

.room-card.all-lights-on .scene-canvas > img {
    filter: brightness(.96) contrast(1.035) saturate(1.02);
}

.room-card.ac-on .scene-canvas > img {
    filter: brightness(.45) contrast(1.08) saturate(.88);
}

.room-card.room-lit.ac-on .scene-canvas > img {
    filter: brightness(.74) contrast(1.06) saturate(.97);
}

.room-card.all-lights-on.ac-on .scene-canvas > img {
    filter: brightness(.96) contrast(1.035) saturate(1.02);
}

.glow {
    position: absolute;
    inset: 0;
    z-index: 18;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 1.15s cubic-bezier(.2, .7, .2, 1);
}

.living-chandelier-glow {
    background:
        radial-gradient(circle at 51% 36%, rgba(255, 246, 214, .82) 0 1.2%, rgba(255, 226, 166, .40) 5%, rgba(255, 213, 139, .16) 17%, transparent 37%);
}

.living-spot-glow {
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 234, 188, .62), transparent 10%),
        radial-gradient(circle at 35% 4%, rgba(255, 234, 188, .62), transparent 10%),
        radial-gradient(circle at 68% 4%, rgba(255, 234, 188, .62), transparent 10%),
        radial-gradient(circle at 90% 4%, rgba(255, 234, 188, .58), transparent 10%),
        radial-gradient(circle at 12% 98%, rgba(255, 225, 168, .50), transparent 11%),
        radial-gradient(circle at 29% 98%, rgba(255, 225, 168, .46), transparent 11%),
        radial-gradient(circle at 68% 98%, rgba(255, 225, 168, .48), transparent 11%),
        radial-gradient(circle at 90% 98%, rgba(255, 225, 168, .46), transparent 11%),
        radial-gradient(ellipse at 3.5% 39%, rgba(255, 219, 151, .42), transparent 10%),
        radial-gradient(ellipse at 3.5% 68%, rgba(255, 219, 151, .42), transparent 10%);
}

.living-tv-glow {
    background: radial-gradient(ellipse at 7% 52%, rgba(69, 128, 255, .44), rgba(69, 128, 255, .13) 7%, transparent 18%);
}

.room-living.main-on .living-chandelier-glow,
.room-living.spots-on .living-spot-glow,
.room-living.tv-on .living-tv-glow { opacity: 1; }

.tv-screen-glow {
    position: absolute;
    left: 5.1%;
    top: 28%;
    z-index: 19;
    width: 7.1%;
    height: 48%;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(110, 163, 255, .58), rgba(50, 104, 236, .24));
    box-shadow:
        -7px 0 20px rgba(66, 123, 255, .52),
        8px 0 22px rgba(66, 123, 255, .48),
        0 0 36px rgba(66, 123, 255, .32);
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(.8px);
    transition: opacity 1s ease;
}

.room-living.tv-on .tv-screen-glow { opacity: .92; }

.kitchen-main-glow {
    background:
        radial-gradient(circle at 27% 4%, rgba(255, 235, 194, .58), transparent 11%),
        radial-gradient(circle at 50% 4%, rgba(255, 235, 194, .58), transparent 11%),
        radial-gradient(circle at 81% 4%, rgba(255, 235, 194, .58), transparent 11%),
        radial-gradient(circle at 14% 92%, rgba(255, 226, 170, .44), transparent 12%),
        radial-gradient(circle at 43% 92%, rgba(255, 226, 170, .44), transparent 12%),
        radial-gradient(circle at 81% 92%, rgba(255, 226, 170, .44), transparent 12%),
        radial-gradient(ellipse at 57% 51%, rgba(255, 228, 174, .38), transparent 31%);
}

.kitchen-led-glow {
    background:
        linear-gradient(180deg, transparent 8%, rgba(255, 225, 170, .28) 14%, rgba(255, 225, 170, .10) 25%, transparent 43%),
        radial-gradient(ellipse at 70% 15%, rgba(255, 229, 183, .35), transparent 32%);
}

.room-kitchen.main-on .kitchen-main-glow,
.room-kitchen.accent-on .kitchen-led-glow { opacity: 1; }

.bedroom-main-glow {
    background:
        radial-gradient(circle at 35% 18%, rgba(255, 231, 183, .48), transparent 12%),
        radial-gradient(circle at 50% 18%, rgba(255, 231, 183, .50), transparent 12%),
        radial-gradient(circle at 65% 18%, rgba(255, 231, 183, .48), transparent 12%),
        radial-gradient(circle at 35% 80%, rgba(255, 226, 174, .44), transparent 12%),
        radial-gradient(circle at 50% 80%, rgba(255, 226, 174, .46), transparent 12%),
        radial-gradient(circle at 65% 80%, rgba(255, 226, 174, .44), transparent 12%),
        radial-gradient(circle at 51% 50%, rgba(255, 235, 198, .40), transparent 30%),
        linear-gradient(90deg, transparent 79%, rgba(255, 221, 160, .18) 91%, transparent 99%);
}

.bedroom-side-glow {
    background:
        radial-gradient(circle at 15% 21%, rgba(255, 226, 173, .58), transparent 14%),
        radial-gradient(circle at 15% 72%, rgba(255, 226, 173, .58), transparent 14%);
}

.room-bedroom.main-on .bedroom-main-glow,
.room-bedroom.accent-on .bedroom-side-glow { opacity: 1; }

.hall-glow-1 {
    background:
        radial-gradient(circle at 22% 7%, rgba(255, 232, 184, .55), transparent 14%),
        radial-gradient(circle at 25% 14%, rgba(255, 226, 174, .36), transparent 17%);
}

.hall-glow-2 {
    background:
        radial-gradient(circle at 50% 7%, rgba(255, 232, 184, .55), transparent 14%),
        radial-gradient(circle at 50% 14%, rgba(255, 226, 174, .36), transparent 17%);
}

.hall-glow-3 {
    background:
        radial-gradient(circle at 77% 7%, rgba(255, 232, 184, .55), transparent 14%),
        radial-gradient(circle at 72% 18%, rgba(255, 226, 174, .42), transparent 20%);
}

.hall-glow-4 {
    background:
        radial-gradient(ellipse at 40% 39%, rgba(255, 212, 145, .48), transparent 13%),
        radial-gradient(ellipse at 59% 39%, rgba(255, 212, 145, .48), transparent 13%);
}

.room-hall.l1-on .hall-glow-1,
.room-hall.l2-on .hall-glow-2,
.room-hall.l3-on .hall-glow-3,
.room-hall.l4-on .hall-glow-4 { opacity: 1; }

.bath-mirror-glow {
    background:
        linear-gradient(90deg, rgba(226, 244, 255, .30), rgba(226, 244, 255, .08) 21%, transparent 40%),
        radial-gradient(ellipse at 11% 34%, rgba(237, 249, 255, .46), transparent 24%);
}

.bath-main-glow {
    background:
        radial-gradient(circle at 20% 7%, rgba(244, 247, 239, .52), transparent 13%),
        radial-gradient(circle at 52% 7%, rgba(244, 247, 239, .52), transparent 13%),
        radial-gradient(circle at 87% 7%, rgba(244, 247, 239, .50), transparent 13%),
        radial-gradient(circle at 34% 14%, rgba(244, 247, 239, .38), transparent 14%),
        radial-gradient(circle at 60% 14%, rgba(244, 247, 239, .38), transparent 14%),
        radial-gradient(circle at 77% 14%, rgba(244, 247, 239, .38), transparent 14%);
}

.room-bath.mirror-on .bath-mirror-glow,
.room-bath.main-on .bath-main-glow { opacity: 1; }

.balcony-glow {
    background:
        radial-gradient(circle at 47% 6%, rgba(255, 204, 121, .55), transparent 12%),
        radial-gradient(circle at 62% 6%, rgba(255, 204, 121, .55), transparent 12%),
        radial-gradient(circle at 77% 6%, rgba(255, 204, 121, .55), transparent 12%),
        radial-gradient(circle at 34% 42%, rgba(255, 218, 152, .42), transparent 10%),
        radial-gradient(circle at 38% 57%, rgba(255, 218, 152, .40), transparent 11%),
        radial-gradient(circle at 29% 73%, rgba(255, 218, 152, .40), transparent 11%),
        radial-gradient(circle at 78% 73%, rgba(255, 218, 152, .40), transparent 11%),
        radial-gradient(ellipse at 57% 74%, rgba(255, 196, 104, .24), transparent 38%);
}

.room-balcony.main-on .balcony-glow { opacity: 1; }

.window-shade {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}

.shutter {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(28, 36, 41, .72);
    border-radius: 2px;
    background:
        repeating-linear-gradient(to bottom, #b9bec1 0 3px, #858d92 3px 5px, #d1d4d5 5px 6px),
        linear-gradient(90deg, #7c858a, #d8dbdc 35%, #a7adb0 72%, #70787d);
    box-shadow: -7px 8px 18px rgba(0, 0, 0, .34), inset 5px 0 8px rgba(255, 255, 255, .18);
    opacity: .96;
    transform: none;
    clip-path: inset(0 0 0 0);
    transition: clip-path var(--shutter-duration) cubic-bezier(.42, .04, .18, 1), filter .35s ease;
}

.shutter i {
    position: absolute;
    left: -1px;
    top: calc(100% - 7px);
    width: calc(100% + 2px);
    height: 7px;
    border-radius: 1px;
    background: linear-gradient(180deg, #e1e3e4, #687176);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    transition: top var(--shutter-duration) cubic-bezier(.42, .04, .18, 1);
}

.living-shutter {
    left: auto;
    right: 1.1%;
    top: 5%;
    width: 8.2%;
    height: 90%;
}

.balcony-shutter {
    left: auto;
    right: .3%;
    top: 0;
    width: 8.2%;
    height: 100%;
}

.room-card.shutter-open .shutter {
    transform: none;
    opacity: .96;
    clip-path: inset(0 0 88% 0);
}

.room-living.shutter-open .living-shutter { height: 90%; }
.room-balcony.shutter-open .balcony-shutter { height: 100%; }

.room-card.shutter-open .shutter i { top: 8%; }

.shutter-moving .shutter {
    filter: brightness(1.08);
}

.shutter-moving .shutter::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 45%, transparent 68%);
    animation: shutterSheen .8s linear infinite;
}

@keyframes shutterSheen {
    from { transform: translateX(-110%); }
    to { transform: translateX(110%); }
}

.curtain-track {
    position: absolute;
    right: 10.2%;
    top: 4%;
    width: 2px;
    height: 92%;
    border-radius: 2px;
    background: linear-gradient(180deg, #3f464b, #a0a6aa 50%, #3f464b);
    box-shadow: 0 0 4px rgba(0, 0, 0, .52);
}

.curtain {
    position: absolute;
    right: .3%;
    width: 10.2%;
    height: 45.5%;
    border-radius: 5px 1px 1px 5px;
    background:
        repeating-linear-gradient(90deg, rgba(201, 194, 184, .98) 0 5px, rgba(135, 132, 128, .96) 5px 9px, rgba(231, 226, 218, .98) 9px 13px),
        linear-gradient(90deg, #8f8b86, #ded8cf);
    box-shadow: -8px 5px 18px rgba(0, 0, 0, .35), inset -4px 0 8px rgba(255, 255, 255, .16);
    opacity: 1;
    transition: transform var(--curtain-duration) cubic-bezier(.52, .02, .18, 1), filter .3s ease;
}

.curtain-top {
    top: 4.5%;
    transform-origin: top center;
}

.curtain-bottom {
    top: auto;
    bottom: 4.5%;
    transform-origin: bottom center;
}

.room-living.curtain-open .curtain-top {
    transform: translateY(-1.5%) scaleY(.18);
    opacity: 1;
}

.room-living.curtain-open .curtain-bottom {
    transform: translateY(1.5%) scaleY(.18);
    opacity: 1;
}

.curtain-moving .curtain {
    filter: brightness(1.06) saturate(.95);
    animation: fabricSettle .42s ease-in-out infinite alternate;
}

@keyframes fabricSettle {
    from { margin-right: 0; }
    to { margin-right: .18%; }
}

.air-layer {
    display: none !important;
}

.toast-message {
    left: auto;
    right: 22px;
    top: 22px;
    bottom: auto;
    display: flex;
    width: min(370px, calc(100vw - 30px));
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 14px;
    border-color: rgba(130, 183, 222, .20);
    background: rgba(8, 16, 24, .94);
    color: #eaf4fb;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .05);
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    transform: translateY(-12px) scale(.98);
}

.toast-message.show {
    transform: translateY(0) scale(1);
}

.toast-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: rgba(68, 221, 160, .14);
    color: #66e1ae;
    font-size: 12px;
}

.toast-message[data-type="error"] .toast-icon,
.toast-message[data-type="warning"] .toast-icon {
    background: rgba(255, 157, 80, .14);
    color: #ffbd82;
}

.toast-message[data-type="scene"] .toast-icon {
    background: rgba(158, 123, 255, .17);
    color: #c4b2ff;
}

.toast-message[data-type="climate"] .toast-icon {
    background: rgba(90, 177, 255, .15);
    color: #8ccaff;
}

@media (max-height: 790px) and (min-width: 1051px) {
    .intro-card { height: 62px; }
    .intro-play { width: 39px; height: 39px; border-radius: 13px; }
    .room-panel-head h1 { font-size: 23px; }
    .room-panel-head p { font-size: 11px; }
    .thermostat-card { padding: 9px; margin-bottom: 9px; }
    .thermostat-head { margin-bottom: 6px; }
    .temp-values { margin-bottom: 6px; }
    .temp-values div { padding: 7px 9px; }
    .temp-values strong { font-size: 20px; }
    .mode-btn, .temp-btn { height: 33px; }
    .mode-grid, .temp-grid { margin-bottom: 6px; }
    .climate-status { padding: 7px; }
    .action-card { height: 62px; padding: 8px 10px; }
    .action-card.wide { height: 60px; }
}

@media (max-width: 1050px) {
    html, body { overflow: auto; }
    .showroom-shell {
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .control-panel { height: auto; }
    .quick-actions { max-height: 430px; }
    .rooms-stage {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .room-card,
    .room-card.selected-room {
        grid-column: auto;
        grid-row: auto;
        height: 330px;
    }
    .room-card header,
    .room-card.selected-room header {
        height: 48px;
        font-size: 12px;
    }
    .room-card.selected-room header::after { display: none; }
    .scene-media,
    .selected-room .scene-media { inset: 48px 0 0; }
}

@media (max-width: 670px) {
    .showroom-shell { padding: 10px; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .rooms-stage { grid-template-columns: 1fr; }
    .room-card,
    .room-card.selected-room { height: 300px; }
    .toast-message { top: 14px; right: 14px; }
}

@media (max-width: 430px) {
    .quick-actions { grid-template-columns: 1fr; }
    .action-card.wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ===== FINAL REVISION: klima üfleme + perde/panjur premium polish ===== */
.air-layer {
    display: block !important;
    position: absolute;
    z-index: 26;
    pointer-events: none;
    opacity: 0;
    transition: opacity .55s ease, filter .55s ease;
    overflow: visible;
    mix-blend-mode: screen;
}

.room-card.cooling-on .air-cold,
.room-card.heating-on .air-warm {
    opacity: 1;
}

.room-card.fan-idle .air-cold,
.room-card.fan-idle .air-warm {
    opacity: .26;
    filter: blur(.2px) saturate(.8);
}

.air-layer i {
    position: absolute;
    display: block;
    left: 0;
    width: 88%;
    height: 18%;
    border-radius: 0 0 70% 70%;
    border-bottom: 3px solid rgba(135, 214, 255, .72);
    box-shadow: 0 10px 18px rgba(86, 180, 255, .10);
    filter: drop-shadow(0 0 7px rgba(92, 190, 255, .36));
    animation: acAirWave 2.75s cubic-bezier(.34,.02,.26,1) infinite;
    opacity: 0;
}

.air-layer i:nth-child(2) { top: 18%; left: 8%; width: 93%; animation-delay: .36s; }
.air-layer i:nth-child(3) { top: 37%; left: 16%; width: 82%; animation-delay: .72s; }
.air-layer i:nth-child(4) { top: 56%; left: 24%; width: 70%; animation-delay: 1.08s; }

.air-warm i {
    border-bottom-color: rgba(255, 158, 88, .72);
    box-shadow: 0 10px 18px rgba(255, 140, 70, .10);
    filter: drop-shadow(0 0 7px rgba(255, 142, 68, .34));
}

.air-layer::before {
    content: "";
    position: absolute;
    inset: 2% 10% 8% 0;
    border-radius: 45% 60% 70% 55%;
    opacity: .42;
    filter: blur(10px);
    transform: rotate(7deg);
    background: radial-gradient(ellipse at 20% 25%, rgba(110, 200, 255, .30), transparent 58%);
    animation: acAirMist 3.8s ease-in-out infinite;
}

.air-warm::before {
    background: radial-gradient(ellipse at 20% 25%, rgba(255, 154, 78, .27), transparent 58%);
}

@keyframes acAirWave {
    0% { transform: translateY(-7px) translateX(0) scaleX(.62); opacity: 0; }
    18% { opacity: .84; }
    62% { opacity: .52; }
    100% { transform: translateY(58px) translateX(36px) scaleX(1.18); opacity: 0; }
}

@keyframes acAirMist {
    0%,100% { transform: translateY(-3px) translateX(0) rotate(6deg); opacity: .20; }
    50% { transform: translateY(12px) translateX(15px) rotate(9deg); opacity: .44; }
}

.room-living .air-layer { left: 6.5%; top: 15%; width: 42%; height: 38%; }
.room-kitchen .air-layer { left: 9%; top: 15%; width: 42%; height: 36%; }
.room-bedroom .air-layer { left: 10%; top: 15%; width: 42%; height: 36%; }

.window-shade {
    filter: drop-shadow(-8px 9px 16px rgba(0,0,0,.26));
}

.curtain-track {
    width: 3px;
    background: linear-gradient(180deg, #22292f, #c2c8cc 48%, #22292f);
    box-shadow: 0 0 7px rgba(0,0,0,.65), inset 1px 0 rgba(255,255,255,.22);
}

.curtain {
    border-radius: 8px 2px 2px 8px;
    background:
        repeating-linear-gradient(90deg,
            rgba(244,240,234,.98) 0 4px,
            rgba(190,183,174,.96) 4px 8px,
            rgba(238,232,224,.98) 8px 12px,
            rgba(128,124,119,.92) 12px 15px),
        linear-gradient(90deg, rgba(90,86,82,.96), rgba(245,238,228,.98) 52%, rgba(156,149,141,.96));
    box-shadow:
        -10px 8px 20px rgba(0,0,0,.38),
        inset -5px 0 10px rgba(255,255,255,.20),
        inset 5px 0 8px rgba(35,28,22,.18);
}

.curtain::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.16) 42%, transparent 72%);
    opacity: .52;
}

.room-living.curtain-open .curtain-top {
    transform: translateY(-2%) scaleY(.16);
}

.room-living.curtain-open .curtain-bottom {
    transform: translateY(2%) scaleY(.16);
}

.curtain-moving .curtain {
    animation: fabricSettle .34s ease-in-out infinite alternate;
}

.shutter {
    border: 1px solid rgba(20, 27, 33, .82);
    border-radius: 3px;
    background:
        repeating-linear-gradient(to bottom,
            #f3f5f6 0 2px,
            #b9c0c4 2px 4px,
            #69747b 4px 6px,
            #dce0e2 6px 8px),
        linear-gradient(90deg, #626c72, #f4f6f7 35%, #969fa4 72%, #4f5a60);
    box-shadow:
        -8px 9px 20px rgba(0,0,0,.38),
        inset 5px 0 8px rgba(255,255,255,.22),
        inset -4px 0 9px rgba(0,0,0,.20);
}

.shutter::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 0;
    height: 14px;
    background: linear-gradient(180deg, #f1f4f5, #79838a);
    box-shadow: 0 2px 5px rgba(0,0,0,.36);
    z-index: 2;
}

.shutter i {
    height: 8px;
    background: linear-gradient(180deg, #f7f8f8, #5f6a70);
    box-shadow: 0 3px 8px rgba(0,0,0,.55);
}

.room-card.shutter-open .shutter {
    clip-path: inset(0 0 88% 0);
}

.shutter-moving .shutter {
    filter: brightness(1.12) contrast(1.04);
}

.shutter-moving .shutter::after {
    background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.36) 42%, transparent 68%);
    animation: shutterSheen .62s linear infinite;
}


/* ===== v11: soft set-değerli yerden ısıtma göstergesi ===== */
.floor-heat {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 4%;
    height: 30%;
    z-index: 19;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    mix-blend-mode: screen;
    transition: opacity .75s ease;
}
.floor-heat::before {
    content: "";
    position: absolute;
    inset: 18% 0 -22%;
    border-radius: 50% 50% 18% 18%;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 134, 72, .20), transparent 64%),
        linear-gradient(180deg, transparent 0%, rgba(255, 122, 64, .10) 56%, rgba(255, 142, 82, .18) 100%);
    filter: blur(8px);
    animation: floorHeatBreath 4.8s ease-in-out infinite;
}
.floor-heat i {
    position: absolute;
    bottom: 0;
    width: 38%;
    height: 84%;
    border-radius: 50% 50% 0 0;
    border-top: 2px solid rgba(255, 160, 94, .34);
    filter: blur(.15px) drop-shadow(0 0 5px rgba(255, 126, 64, .14));
    animation: floorHeatLine 4.4s ease-in-out infinite;
}
.floor-heat i:nth-child(1) { left: -5%; animation-delay: 0s; }
.floor-heat i:nth-child(2) { left: 20%; height: 92%; animation-delay: .55s; }
.floor-heat i:nth-child(3) { left: 46%; height: 78%; animation-delay: 1.1s; }
.floor-heat i:nth-child(4) { left: 70%; height: 88%; animation-delay: 1.65s; }
.room-card.floor-heating-on .floor-heat { opacity: 1; }
.room-kitchen .floor-heat,
.room-bedroom .floor-heat { left: 9%; right: 9%; bottom: 5%; height: 27%; }
@keyframes floorHeatBreath {
    0%, 100% { transform: translateY(10px) scaleY(.88); opacity: .42; }
    50% { transform: translateY(0) scaleY(1.08); opacity: .78; }
}
@keyframes floorHeatLine {
    0%, 100% { transform: translateY(16px) scaleY(.74); opacity: .10; }
    45% { transform: translateY(0) scaleY(1.04); opacity: .46; }
    70% { opacity: .28; }
}

/* v11: Set değeri sağlandığında klima yetkili kalsa bile üfleme tamamen durur. */
.room-card.fan-idle .air-cold,
.room-card.fan-idle .air-warm {
    opacity: 0 !important;
}

/* v12: yerden ısıtma klimadan bağımsızdır; klima kapalı olsa da set değeri istiyorsa zemin animasyonu kalır. */
.room-card.floor-heating-on .floor-heat { opacity: 1 !important; }
.room-card:not(.floor-heating-on) .floor-heat { opacity: 0; }
