/* Norasing Solar Cell — public site stylesheet
   Brand green #12A36C, dark navy, white. */

:root {
  --green: #12A36C;
  --green-dark: #0C7A51;
  --green-light: #E6F6EF;
  --navy: #10233B;
  --navy-soft: #1B334F;
  --gold: #F2B93B;
  --ink: #1B1F23;
  --muted: #5B6672;
  --border: #E4E9ED;
  --bg: #FFFFFF;
  --bg-alt: #F6F9F8;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(16, 35, 59, 0.08);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", "Sarabun", -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
#portfolio { padding-top: 24px; }
.section-navy { background: var(--navy); color: #fff; }
.eyebrow {
  display: inline-block; color: var(--green-dark); font-weight: 700;
  letter-spacing: .04em; font-size: .82rem; text-transform: uppercase;
  background: var(--green-light); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.section-navy .eyebrow { background: rgba(255,255,255,.1); color: var(--gold); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
#services .section-head { max-width: 900px; }
#services .section-head h2 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); white-space: nowrap; }
@media (max-width: 760px) {
  #services .section-head h2 { white-space: normal; font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-navy .section-head p { color: rgba(255,255,255,.75); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(18,163,108,.28); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.brand img { height: 42px; width: 42px; object-fit: contain; }
.brand small { display: block; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--navy); opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--green-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline-nav { display: none; }
}
@media (max-width: 480px) {
  .nav-wrap { padding: 14px 24px; gap: 10px; }
  .brand { gap: 6px; font-size: .88rem; }
  .brand img { height: 30px; width: 30px; }
  .brand small { font-size: .56rem; }
  .nav-toggle { font-size: 1.3rem; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding: 7px 12px; font-size: .76rem; }
}

/* Hero — two-column layout: copy on the left, photo panel on the right */
.hero { position: relative; background: var(--bg); color: var(--ink); overflow: hidden; }
.hero-inner { position: relative; padding: 48px 20px; display: grid; grid-template-columns: .92fr 1fr; gap: 56px; align-items: stretch; }

.hero-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green-dark); font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.hero-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.14; color: var(--navy); font-weight: 800; margin: 0 0 16px; }
.hero-title .accent { color: var(--green-dark); }

.hero-desc { color: var(--muted); font-size: 1.02rem; max-width: 480px; margin-bottom: 22px; }

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff;
  font-weight: 700; padding: 13px 26px; border-radius: 999px; box-shadow: 0 10px 24px rgba(18,163,108,.28);
  transition: background .15s ease, transform .15s ease;
}
.btn-hero-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-hero-primary .arrow { font-size: 1rem; }
.btn-hero-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; }
.btn-hero-link .arrow { color: var(--green-dark); transition: transform .15s ease; }
.btn-hero-link:hover .arrow { transform: translateX(3px); }

.hero-stat-grid { display: flex; gap: 16px; flex-wrap: wrap; max-width: 420px; }
.hero-stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; flex: 1 1 160px; }
.hero-stat b { display: block; font-size: 1.6rem; color: var(--green-dark); }
.hero-stat span { font-size: .85rem; color: var(--muted); }

/* Right-hand photo panel */
.hero-media { position: relative; height: 100%; }
.hero-photo {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 280px; height: 100%;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.hero-photo-placeholder {
  background: linear-gradient(160deg, var(--green-light) 0%, #DCEFE6 55%, #CFE9DC 100%);
}
.hero-photo-placeholder::after {
  content: "☀️"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: .35;
}
.hero-photo-badge {
  position: absolute; top: 22px; left: 22px; z-index: 1;
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.94);
  border-radius: 16px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(16,35,59,.12); max-width: 260px;
}
.hero-photo-badge .icon { font-size: 1.3rem; }
.hero-photo-badge b { display: block; font-size: .85rem; color: var(--navy); }
.hero-photo-badge span { font-size: .78rem; color: var(--muted); }
.hero-photo-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(16,35,59,.72); backdrop-filter: blur(3px);
  color: #fff; font-weight: 700; font-size: .85rem; padding: 16px 22px;
}
.hero-photo-strip .arrow { font-size: 1.1rem; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { min-height: 300px; }
}
@media (max-width: 560px) {
  .hero-actions { gap: 16px; }
  .btn-hero-primary { padding: 12px 20px; }
  .hero-photo { min-height: 240px; border-radius: 20px; }
  .hero-photo-badge { max-width: 200px; padding: 10px 14px; }
}


/* Partner strip */
.partner-strip { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.partner-strip-row {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; padding-bottom: 2px;
}
.partner-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; letter-spacing: .02em; font-size: .92rem; flex-shrink: 0; white-space: nowrap; }
.partner-item strong { color: var(--navy); }
.partner-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-light);
  color: var(--green-dark); font-weight: 800; font-size: .95rem;
}
.partner-logo { height: 32px; width: auto; max-width: 60px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 900px) {
  .partner-strip-row { justify-content: flex-start; }
  .partner-item { font-size: .85rem; }
}

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2,1fr);} .grid-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); overflow: hidden;
}
.card-media {
  margin: -30px -26px 20px; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card-tagline { color: var(--navy); font-weight: 700; font-size: .96rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step-media { margin: -26px -20px 16px; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.step h4 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Calculator CTA band */
.calc-cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); border-radius: 22px; padding: 44px 40px; }
.calc-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.calc-cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 10px; }
.calc-cta-desc { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0; }
.calc-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--green-dark);
  font-weight: 800; font-size: 1rem; padding: 16px 28px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,.15); transition: transform .15s ease, background .15s ease;
}
.calc-cta-btn:hover { background: var(--green-light); transform: translateY(-1px); }
.calc-cta-btn .arrow { font-size: 1.05rem; }
@media (max-width: 760px) {
  .calc-cta-inner { flex-direction: column; align-items: flex-start; }
  .calc-cta-btn { width: 100%; justify-content: center; }
}

/* Branches */
.branch-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .branch-map { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .branch-map { grid-template-columns: 1fr; } }
.branch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.branch-card h4 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 10px; }
.branch-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }

/* Regional cooperation */
.cooperation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 22px; }
@media (max-width: 700px) { .cooperation-grid { grid-template-columns: 1fr; } }
.cooperation-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cooperation-card h3 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 8px; }
.cooperation-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.laos-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.laos-block h4 { font-size: .98rem; color: var(--navy); margin-bottom: 16px; }
.laos-provinces { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.laos-provinces span { padding: 9px 18px; border-radius: 999px; background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .88rem; }
.branch-card li { margin-bottom: 4px; }

/* Social feed */
.social-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .social-feed-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.social-feed-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; }
.social-feed-card h4 { font-size: .96rem; margin-bottom: 14px; }
.social-embed { display: flex; justify-content: center; align-items: flex-start; height: 500px; overflow: hidden; border-radius: 12px; }
.social-embed-fb iframe { max-width: 100%; height: 100%; }
.social-embed-video { width: 100%; }
.social-embed-video iframe { width: 100%; height: 100%; max-width: 280px; margin: 0 auto; border-radius: 12px; }
.social-embed-tiktok { align-items: center; }
.social-embed-tiktok-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 20px; }
.social-embed-tiktok-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.social-embed-tiktok-icon svg { width: 28px; height: 28px; }
.social-embed-tiktok-label { color: var(--ink); font-weight: 700; font-size: .96rem; }
.social-embed-empty { color: var(--muted); font-size: .88rem; margin: auto 0; padding: 40px 0; }
.social-embed-tiktok-thumb { position: relative; display: block; width: 100%; max-width: 280px; height: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
.social-embed-tiktok-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-embed-tiktok-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; padding-left: 4px; transition: background .15s ease, transform .15s ease;
}
.social-embed-tiktok-thumb:hover .social-embed-tiktok-play { background: rgba(0,0,0,.75); transform: translate(-50%, -50%) scale(1.08); }

/* Portfolio */
/* "ทั้งหมด" sits on its own full-width row; the category chips below it are
   locked to exactly 2 rows no matter how many categories exist — new chips
   add columns (grid-auto-flow: column) instead of a 3rd row, and the strip
   scrolls horizontally if it ever overflows the container width. */
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
  max-width: 100%;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; text-align: center;
}
.filter-chip.active, .filter-chip:hover { background: var(--green); border-color: var(--green); color: #fff; }
.filter-chip-all { display: block; width: 100%; margin-bottom: 10px; box-sizing: border-box; }
.filter-tags {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
  max-width: 100%;
  justify-content: safe center;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(3,1fr); max-width: 880px; } }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2,1fr); max-width: 560px; } }
@media (max-width: 480px) { .portfolio-grid { grid-template-columns: 1fr; max-width: 340px; } }
.portfolio-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card-placeholder { visibility: hidden; pointer-events: none; box-shadow: none; }
.portfolio-thumb { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.portfolio-pagination {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 28px;
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; padding-bottom: 4px;
  scroll-margin-top: 90px;
}
.portfolio-pagination:empty { display: none; }
.portfolio-pagination .page-btn,
.portfolio-pagination button { flex-shrink: 0; }
@media (max-width: 560px) {
  .portfolio-pagination { justify-content: flex-start; }
}
#portfolioPaginationBottom { margin-bottom: 0; margin-top: 28px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-btn.page-nav { font-size: 1.1rem; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 12px 14px; }
.portfolio-tag { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--green-dark); background: var(--green-light); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.portfolio-body h3 { font-size: .86rem; margin-bottom: 4px; }
.portfolio-meta { font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }

/* Testimonial / CTA */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-social-block { border-top: 1px solid rgba(255,255,255,.25); margin-top: 28px; padding-top: 22px; }
.cta-social-label { display: block; font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.cta-social { display: flex; gap: 12px; justify-content: center; }
.cta-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.cta-social a:hover { background: rgba(255,255,255,.3); }
.cta-social svg { width: 20px; height: 20px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-social-block { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; margin-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-brand img { height: 38px; width: 38px; object-fit: contain; }
.site-footer h5 { color: #fff; font-size: .92rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Admin panel ---------- */
.admin-body { background: var(--bg-alt); font-family: "Noto Sans Thai", Tahoma, sans-serif; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 236px; background: var(--navy); color: #fff; padding: 24px 18px; flex-shrink: 0; }
.admin-sidebar .brand { color: #fff; margin-bottom: 30px; }
.admin-sidebar nav a { display: block; padding: 11px 14px; border-radius: 10px; color: rgba(255,255,255,.75); font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { flex: 1; padding: 32px 36px; max-width: 1080px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 1.4rem; margin: 0; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=number],
.form-row input[type=email], .form-row select, .form-row textarea, .form-row input[type=file] {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: .95rem; font-family: inherit;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table img.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-gray { background: #EEF1F3; color: var(--muted); }
.alert { padding: 13px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }
.alert-error { background: #FDECEC; color: #B3261E; border: 1px solid #F6C6C4; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid #BEE7D5; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy), var(--green-dark)); padding: 20px; }
.login-card { background: #fff; border-radius: 18px; padding: 40px 36px; width: 100%; max-width: 380px; box-shadow: var(--shadow); text-align: center; }
.login-card img { height: 60px; margin: 0 auto 16px; }
.login-card h2 { font-size: 1.2rem; margin-bottom: 22px; }
.action-links a { font-size: .84rem; font-weight: 700; margin-right: 12px; color: var(--green-dark); }
.action-links a.danger { color: #B3261E; }
