/* MODERA 3D Tasarım — existing home screen integration, 2026-10-08 */
#home .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important}
#home .grid .tile.modera3d-tile{background:linear-gradient(145deg,#12344d,#206078)!important;color:#fff!important;border:1px solid #5fa7bc!important;box-shadow:0 3px 10px rgba(19,49,70,.24)!important}
#designer3d{box-sizing:border-box;padding:10px 12px 32px;max-width:1280px;margin:auto;color:var(--navy,#162332)}
#designer3d *{box-sizing:border-box}
#designer3d .threeTitle{margin:4px 0 12px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
#designer3d .threeTitle h2{margin:0;font-size:22px}
#designer3d .threeBadge{display:inline-block;border:1px solid #d6ab58;border-radius:30px;background:#fff9e8;color:#66490e;padding:6px 10px;font-size:12px;font-weight:700}
#designer3d .threeColumns{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:14px;align-items:start}
#designer3d .threeStage{border:1px solid #d9e2ea;background:white;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(2,20,35,.08)}
#designer3d .threeStageHeader{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:9px 10px;background:#f6f8fa;border-bottom:1px solid #dfe7ef}
#designer3d .threeStageHeader span{font-size:12px;font-weight:800}
#designer3d .threeMiniActions{display:flex;gap:5px}
#designer3d .threeMiniActions button{border:1px solid #cbd5e1;background:white;border-radius:7px;min-width:38px;min-height:35px;font-size:18px;font-weight:800;cursor:pointer}
#designer3d #modera3dCanvas{display:block;width:100%;height:auto;aspect-ratio:4/3;touch-action:none;cursor:grab;background:#e1e7eb;user-select:none}
#designer3d #modera3dCanvas:active{cursor:grabbing}
#designer3d .threeStageFoot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 10px;background:#fff}
#designer3d .threeStageFoot small{font-size:11px;color:#475569}
#designer3d .threePanel{padding:13px;background:white;border:1px solid #dbe3ec;border-radius:13px;box-shadow:0 4px 14px rgba(0,0,0,.04)}
#designer3d .threePanel h3{font-size:15px;margin:0 0 9px;color:#1f384e}
#designer3d .threePanel section+section{border-top:1px solid #e9edf2;margin-top:15px;padding-top:15px}
#designer3d .threePanel label{display:block;font-weight:700;font-size:12px;color:#334155;margin:6px 0 5px}
#designer3d .threePanel select,#designer3d .threePanel input[type=number],#designer3d .threePanel input[type=range],#designer3d .threePanel input[type=text]{display:block;width:100%;max-width:none;min-width:0;font:inherit;border:1px solid #bdcbd8;border-radius:8px;padding:10px 8px;background:white;color:#14243a;font-size:15px}
#designer3d .threePanel input[type=range]{padding:10px 0;border:0}
#designer3d .threeFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#designer3d .threeFields input{padding:9px 4px!important;text-align:center}
#designer3d .threeSelectGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#designer3d .threeButtonRow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#designer3d button.threeAction{appearance:none;background:#183b57;color:white;border:1px solid #183b57;min-height:41px;border-radius:9px;font-size:13px;font-weight:800;padding:8px 6px;cursor:pointer}
#designer3d button.threeAction.light{color:#1b3347;background:#fff;border-color:#a5b8c9}
#designer3d button.threeAction.gold{color:#1e293b;background:#eec86b;border-color:#eec86b}
#designer3d button.threeAction:focus-visible{outline:3px solid #e9b95b;outline-offset:2px}
#designer3d .threeHint{color:#59677b;font-size:11px;line-height:1.45;margin:9px 0 0}
#designer3d .threeMessage{font-size:12px;font-weight:700;color:#265b49;min-height:17px;margin:8px 0 0}
#designer3d .threePhoto{font-size:12px;color:#3c536b;margin:9px 0}
#designer3d .threeBackdropLabel{margin:8px 0 5px}
#designer3d .threeRangeLabel{display:flex;align-items:center;justify-content:space-between;gap:10px}
#designer3d .threeRangeLabel output{color:#1a5476;font-size:12px;font-weight:800}
@media(max-width:900px){#designer3d .threeColumns{grid-template-columns:1fr}#designer3d .threePanel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#designer3d .threePanel section+section{margin-top:0;padding-top:0;border-top:0}#designer3d #modera3dCanvas{aspect-ratio:4/3}}
@media(max-width:620px){#designer3d{padding:8px 8px 30px}#designer3d .threeColumns{gap:9px}#designer3d .threePanel{display:block;padding:11px}#designer3d .threePanel section+section{border-top:1px solid #e9edf2;margin-top:12px;padding-top:12px}#designer3d .threeTitle h2{font-size:18px}#designer3d #modera3dCanvas{aspect-ratio:4/3}#designer3d .threeStageFoot small{font-size:10px}#designer3d .threePanel label{font-size:13px}}

/* MODERA ana sayfa: istenen yeni menü sırası ve tam genişlikte topluluk kutusu. */
#home .grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(92px,auto)!important}
#home .grid .tile.community-wide-tile{
  grid-column:1 / -1!important;
  min-height:90px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;padding:12px 9px;
  background:linear-gradient(115deg,#173b53,#265d63)!important;
  border:1px solid #367d83!important;color:white!important;
  text-align:center;box-shadow:0 5px 14px rgba(12,54,66,.22)!important;
}
#home .grid .tile.community-wide-tile span{font-size:clamp(14px,1.5vw,18px);font-weight:950;line-height:1.15;letter-spacing:.25px}
#home .grid .tile.community-wide-tile small{display:block;font-size:clamp(11px,1.2vw,13px);font-weight:700;opacity:.9;letter-spacing:.4px}
#home .grid .tile.community-wide-tile:focus-visible{outline:3px solid #e5b95b;outline-offset:3px}
@media(max-width:900px){#home .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:minmax(88px,auto)!important}}
@media(max-width:650px){
 #home .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(78px,auto)!important}
 #home .grid .tile.community-wide-tile{min-height:90px;padding:12px 7px}
 #home .grid .tile.community-wide-tile span{font-size:16px!important}
 #home .grid .tile.community-wide-tile small{font-size:12px!important}
}
@media(max-width:390px){#home .grid{grid-auto-rows:minmax(72px,auto)!important}}

/* MODERA PRO 2026-10-17 — responsive category-first layout */
#designer3d{width:min(100%,1200px);margin-inline:auto;padding:clamp(12px,2.5vw,28px)!important}
#designer3d .moderaProIntro{display:flex;flex-direction:column;gap:5px;padding:20px 22px;border-radius:18px;background:linear-gradient(120deg,#102d49,#1c5273);color:#fff;margin:12px 0 18px;box-shadow:0 10px 25px #0d2a4830}
#designer3d .moderaProIntro strong{font-size:clamp(20px,3vw,30px)}
#designer3d .moderaProIntro span{font-size:13px;color:#dce9f2}
#designer3d .moderaCategoryCards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
#designer3d .moderaCatCard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:118px;padding:12px 6px;border:1px solid #dbe4ee;border-radius:15px;background:linear-gradient(#fff,#f7f9fc);box-shadow:0 4px 12px #16314c12;color:#15354f;cursor:pointer;text-align:center}
#designer3d .moderaCatCard[aria-pressed=true]{outline:2px solid #c69d53;border-color:#c69d53;background:#fff9ed}
#designer3d .moderaCatEmoji{font-size:30px}#designer3d .moderaCatCard strong{font-size:12px;line-height:1.3}#designer3d .moderaCatCard small{font-size:11px;color:#63758b}
#designer3d .threeColumns{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:18px}
#designer3d .threeStage,#designer3d .threePanel{border-radius:18px;box-shadow:0 8px 25px #0f2d4816}
#designer3d .moderaPresetCard{border-radius:12px!important;overflow:hidden}
#designer3d .presetPreview{display:flex;align-items:center;justify-content:center;font-size:26px;min-width:55px}
@media(max-width:900px){#designer3d .moderaCategoryCards{grid-template-columns:repeat(3,minmax(0,1fr))}#designer3d .threeColumns{grid-template-columns:1fr}}
@media(max-width:540px){#designer3d .moderaCategoryCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#designer3d .moderaCatCard{min-height:100px;padding:9px 4px}#designer3d .moderaCatEmoji{font-size:24px}#designer3d .moderaCatCard strong{font-size:11px}#designer3d .moderaCatCard small{font-size:10px}#designer3d .threePanel{display:block}}
