/* Hunian 68 — Official Stylesheet */
:root {
  --bg-body: #ffffff;
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%);
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-soft: #f9f8f7;
  --ink: #2C2C2B;
  --muted: #6f6b65;
  --line: #E6E5E3;
  --accent: #2783DE;
  --green: #46A171;
  --orange: #D5803B;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(0, 0, 0, 0.08);
}

body.dark-mode {
  --bg-body: #101216;
  --bg-gradient: linear-gradient(180deg, #101216 0%, #0a0b0e 100%);
  --bg-nav: rgba(16, 18, 22, 0.94);
  --bg-card: #181b22;
  --bg-soft: #20242e;
  --ink: #f0f2f7;
  --muted: #9ba3b2;
  --line: #2b303d;
  --accent: #3a9bf8;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 14px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-gradient);
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.wrap { max-width: 1120px; margin: auto; padding: 0 24px; }

/* =========================================
   Navbar Header & Theme Toggle (Mobile Friendly)
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}

.nav .wrap {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.15;
  font-size: 17px;
  color: var(--ink);
}

.logo-img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  padding: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 14.5px;
  transition: all .18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav-links a.nav-btn-login {
  background: var(--ink) !important;
  color: #fff !important;
  padding: 9px 16px;
}

body.dark-mode .nav-links a.nav-btn-login {
  background: #f0f2f7 !important;
  color: #101216 !important;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  transition: all .2s ease;
  padding: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}

.nav-menu-btn {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 880px) {
  .nav-menu-btn {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 20px;
    gap: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 50;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 15.5px;
  }
}

/* =========================================
   Hero Slider Carousel
   ========================================= */
.hero-slider-section { padding: 28px 0 44px; }
.hero-slider-container { position: relative; }
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111;
  width: 100%;
  aspect-ratio: 16/7;
  min-height: 360px;
  max-height: 560px;
}
.hero-slides-track { display: flex; transition: transform .45s cubic-bezier(.25,1,.5,1); width: 100%; height: 100%; }
.hero-slide { min-width: 100%; height: 100%; box-sizing: border-box; display: block; position: relative; padding: 0; margin: 0; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border: 0;
  background: #ff7700;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.hero-slider-nav.prev { left: 0; border-radius: 0 12px 12px 0; }
.hero-slider-nav.next { right: 0; border-radius: 12px 0 0 12px; }
.hero-slider-nav:hover { background: #ff8c1a; transform: translateY(-50%) scale(1.06); }
.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0,0,0,.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s ease; padding: 0; }
.hero-dot.active { width: 28px; background: #ff7700; border-radius: 999px; }

@media(max-width:768px){
  .hero-slider { aspect-ratio: 16/10; min-height: 260px; }
  .hero-slider-nav { width: 36px; height: 46px; font-size: 18px; }
}
@media(max-width:480px){
  .hero-slider { aspect-ratio: 4/3; min-height: 220px; }
}

/* =========================================
   Sections & Cards
   ========================================= */
.section { padding: 64px 0; border-top: 1px solid var(--line); transition: border-color .25s; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 28px; }
.section h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -.04em; color: var(--ink); }
.lead { color: var(--muted); max-width: 620px; font-size: 16px; margin: 8px 0 0; }
.card, .auth-card, .upload-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card { padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Announcement Cards & Media */
.announcement-card {
  display: flex;
  flex-direction: column;
}
.announcement-media-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 12px 0 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.announcement-media {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform .25s ease;
}
.announcement-media:hover {
  transform: scale(1.03);
}
.announcement-video {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  margin: 12px 0 14px;
  background: #000;
  display: block;
}

.tag, .badge {
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  padding: 6px 11px;
  border-radius: 999px;
  background: #E5F2FC;
  color: #1365ad;
  margin-bottom: 12px;
}
body.dark-mode .tag, body.dark-mode .badge { background: #1c2a3e; color: #6bb9f8; }

.orange-soft { background: #FBEBDE !important; color: #8b4b18 !important; }
body.dark-mode .orange-soft { background: #38281b !important; color: #fba65c !important; }

.green-soft { background: #E8F1EC !important; color: #2f704e !important; }
body.dark-mode .green-soft { background: #183324 !important; color: #76dfa1 !important; }

.date { color: var(--muted); font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 14.5px;
  cursor: pointer;
  border: 0;
  transition: all .2s ease;
}
.btn.login { background: var(--ink); color: #fff !important; }
.btn.login:hover { opacity: .9; transform: translateY(-2px); }

/* =========================================
   Susunan Pengurus RT (Monochrome to Color Interactive Cards)
   ========================================= */
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}

.card_view {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 290px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  user-select: none;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
}

.card_view:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
}

.card_view .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}

.card_view:hover .shot {
  transform: scale(1.04);
}

/* rasterised Once, never tweened - only its Opacity is ever animated */
.shot-mono {
  filter: grayscale(1) contrast(1.06) brightness(1.06);
  opacity: 1;
  transition: opacity .35s ease;
  z-index: 2;
  pointer-events: none;
}

.card_view:hover .shot-mono {
  opacity: 0;
}

/* rides above both */
.card_plate {
  position: relative;
  z-index: 4;
  margin: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.card_view:hover .card_plate {
  transform: translateY(-2px);
}

body.dark-mode .card_plate {
  background: rgba(20, 24, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

.card_plate b {
  font-size: 15.5px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.2;
}

.card_plate i {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 750;
  color: var(--accent);
}

/* =========================================
   Usaha Warga (Full Multi-Column Grid & Medsos Buttons)
   ========================================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.product {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.product-media {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  margin-bottom: 14px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product:hover .product-media img { transform: scale(1.04); }

.badge { position: absolute; left: 10px; top: 10px; z-index: 2; margin: 0; }
.badge.green { background: #46A171; color: #fff; }

.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: transform .2s;
  color: #555;
  z-index: 2;
}
.heart:hover { transform: scale(1.1); }

.sizes {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.product h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.25;
}

.price {
  font-size: 19px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 8px;
}

.product .date {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0 0 14px;
  flex-grow: 1;
}

/* Medsos Action Grid */
.product-medsos {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.medsos-title {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

.medsos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.medsos-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px 5px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 750;
  transition: all .2s ease;
  color: #fff !important;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.medsos-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-bottom: 2px;
}

.medsos-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  filter: brightness(1.08);
}

.medsos-btn.wa { background: #25D366; }
.medsos-btn.shopee { background: #EE4D2D; }
.medsos-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.medsos-btn.fb { background: #1877F2; }
.medsos-btn.toped { background: #03AC0E; }

.empty-usaha {
  grid-column: 1 / -1;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* =========================================
   Galeri Foto & Video
   ========================================= */
.gallery-category { margin-top: 36px; }
.gallery-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.gallery-title h3 { font-size: 24px; margin: 0; color: var(--ink); }
.gallery-title span { color: var(--muted); font-size: 14px; text-align: right; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .portrait { grid-row: span 2; }

.photo, .video {
  border: 0;
  cursor: zoom-in;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  background-color: #1e2022;
}
.photo:after, .video:after {
  content: attr(aria-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 13px;
  z-index: 3;
  color: #2C2C2B;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video:before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  text-shadow: 0 3px 15px rgba(0,0,0,.6);
  z-index: 2;
  background: rgba(0,0,0,.15);
  transition: background .2s ease, transform .2s ease;
}
.video:hover:before { background: rgba(0,0,0,.3); transform: scale(1.08); }
.gallery-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 1; }

.img-gallery-1 { background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&w=900&q=80'); }
.img-gallery-2 { background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=500&q=80'); }
.img-gallery-3 { background-image: url('https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=700&q=80'); }

/* =========================================
   Informasi Warga & Quick Cards
   ========================================= */
.info-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(39,131,222,.15);
}
.ico {
  font-size: 26px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.info-body { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; }
.info-body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.info-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.btn-info-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 750;
  font-size: 13.5px;
  text-decoration: none;
  transition: all .2s ease;
  margin-top: auto;
}
body.dark-mode .btn-info-action { background: #f0f2f7; color: #101216 !important; }
.btn-info-action:hover { background: var(--accent) !important; color: #fff !important; transform: translateY(-2px); }

/* =========================================
   Modal Dialog & Forms
   ========================================= */
dialog { border: 0; border-radius: 24px; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.modal { background: #111; border-radius: 24px; overflow: hidden; color: #fff; position: relative; }
.modal img, .modal video { display: block; max-width: 92vw; max-height: 82vh; object-fit: contain; background: #000; }
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.caption { padding: 12px 18px; color: rgba(255,255,255,.8); font-size: 15px; }

/* Form Fields */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 750; font-size: 14.5px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: var(--bg-card);
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { padding: 12px 16px; border-radius: 12px; background: #E5F2FC; color: #1365ad; }
.error { background: #FCE9E7; color: #a93128; }
.success { background: #E8F1EC; color: #2f704e; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 10px; background: var(--bg-soft); font-weight: 800; color: var(--muted); }
.auth-tabs a.active { background: var(--ink); color: #fff; }

/* Admin & Tables */
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 16px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.admin-table img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }

/* Footer */
.footer { padding: 54px 0; background: #16181d; color: #fff; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; }
.foot-muted { color: rgba(255,255,255,.62); }

/* =========================================
   Interactive Lamp Room & Pull-Cord (Auth Pages)
   ========================================= */
.room {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
  background: #0b0d13;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  transition: background .3s ease;
}
.room.is-on { background: radial-gradient(circle at 50% 120px, #182236 0%, #090c12 100%); }
.lamp-scene { width: 100%; max-width: 440px; height: 170px; margin: 0 auto; position: relative; z-index: 5; display: flex; justify-content: center; }
.lamp-svg { width: 100%; height: 100%; overflow: visible; }
.lamp_light { opacity: 0; transition: opacity .12s; pointer-events: none; }
.room.is-on .lamp_light { opacity: 1; }
.lamp_head { transform-origin: 200px 45px; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.room.is-on .lamp_head { transform: rotate(8deg); }
.bulb { transition: fill .12s, filter .12s; }
.room.is-on .bulb { fill: #fff9e6; filter: drop-shadow(0 0 16px #ffeb85); }
.pull { outline: none; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.pull:focus-visible .bead { stroke: #ff7700; stroke-width: 3; }
.bead { filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); transition: filter .2s; }
.pull:hover .bead { filter: drop-shadow(0 0 10px #ff7700); }
.card#signin, .auth-card#signin {
  width: min(100%, 460px);
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  color: var(--ink);
  position: relative;
  z-index: 4;
  margin-top: -10px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease, box-shadow .25s ease;
}
.room:not(.is-on) .card#signin { opacity: .18; filter: grayscale(.8) blur(.5px); pointer-events: none; transform: translateY(4px); box-shadow: 0 4px 15px rgba(0,0,0,.8); }
.room.is-on .card#signin { opacity: 1; filter: none; pointer-events: auto; transform: none; box-shadow: 0 0 60px rgba(255,235,160,.12), 0 20px 45px rgba(0,0,0,.4); }
.lamp-hint { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; z-index: 6; transition: opacity .25s; user-select: none; }
.room.is-on .lamp-hint { opacity: .75; }

/* Responsive adjustments */
@media(max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .shop-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .gallery-grid .wide, .gallery-grid .portrait { grid-column: span 1; grid-row: span 1; }
  .gallery-grid .photo, .gallery-grid .video { min-height: 220px; aspect-ratio: 4/3; }
  
  /* Pengumuman images become much larger on mobile screens */
  .announcement-media-wrap {
    margin: 14px 0 16px;
    border-radius: 18px;
  }
  .announcement-media {
    height: auto;
    min-height: 320px;
    max-height: 500px;
    object-fit: cover;
  }
  .announcement-video {
    height: auto;
    min-height: 280px;
    border-radius: 18px;
    margin: 14px 0 16px;
  }

  /* Susunan Pengurus RT on Mobile */
  .pengurus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .card_view {
    min-height: 220px;
    border-radius: 18px;
  }
  .card_plate {
    margin: 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }
  .card_plate b {
    font-size: 13px;
  }
  .card_plate i {
    font-size: 11px;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; }
  .admin-table { display: block; overflow-x: auto; }
}

@media(max-width: 480px) {
  .announcement-media {
    min-height: 360px;
    max-height: 540px;
  }
  .announcement-video {
    min-height: 300px;
  }
}

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