:root { --blue: #2007A9; --blue-d: #120566; --ink: #0B0A2E; --muted: #6E6D8A; --line: #E6E5F2; --bg: #F5F5FB; --red: #E30613; --ok: #0d8a43; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.ic { flex-shrink: 0; }

/* sidebar */
.side { position: fixed; top: 0; bottom: 0; left: 0; width: 250px; background: linear-gradient(180deg, var(--blue) 0%, var(--blue-d) 100%); color: #fff; display: flex; flex-direction: column; padding: 26px 16px; z-index: 50; transition: transform .35s ease; }
.side-logo img { width: 150px; margin: 0 10px 34px; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: rgba(255,255,255,.78); font-family: 'Outfit', sans-serif; font-weight: 500; transition: background .25s, color .25s; }
.side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.side a.on { background: #fff; color: var(--blue); }
.badge { margin-left: auto; background: var(--red); color: #fff; font-size: .75rem; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.main { margin-left: 250px; min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,245,251,.9); backdrop-filter: blur(10px); padding: 22px 34px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 1.5rem; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; place-items: center; cursor: pointer; color: var(--ink); }
.content { padding: 30px 34px 60px; max-width: 1200px; }
.scrim { display: none; }

/* elements */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font: 600 .95rem 'Outfit', sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #2a16c9; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #f5c9cb; }
.btn-danger:hover { background: var(--red); color: #fff; }
.mini { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: 500 .85rem 'DM Sans', sans-serif; cursor: pointer; display: inline-block; }
.mini:hover { border-color: var(--blue); color: var(--blue); }
.mini.danger { color: var(--red); }
.mini.danger:hover { border-color: var(--red); background: var(--red); color: #fff; }
.pill { display: inline-block; background: #ECEBFB; color: var(--blue); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; font-family: 'Outfit', sans-serif; }
.pill-red { background: #fde8e9; color: var(--red); }
.note { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.note-ok { background: #e6f7ee; color: var(--ok); }
.note-err { background: #fdecec; color: #a3121a; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h3 { font-size: 1.15rem; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.bar p { margin: 0; }
.back-link { display: inline-block; margin-bottom: 16px; font-weight: 500; }

/* dashboard */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--blue), var(--blue-d)); color: #fff; padding: 30px; border-radius: 20px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hello::after { content: ''; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; background: url('../assets/img/mark-white.png') no-repeat center / contain; opacity: .08; }
.hello h2 { font-size: 1.7rem; margin-bottom: 4px; }
.hello p { margin: 0; opacity: .8; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(18,5,102,.4); }
.stat-card i { width: 44px; height: 44px; border-radius: 12px; background: #ECEBFB; color: var(--blue); display: grid; place-items: center; margin-bottom: 10px; }
.stat-card.hot i { background: #fde8e9; color: var(--red); }
.stat-card b { font-family: 'Outfit', sans-serif; font-size: 2rem; line-height: 1; }
.stat-card span { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.list li small { display: block; color: var(--muted); }
.list li.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.quick { display: grid; gap: 10px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 500; transition: border-color .2s, color .2s, transform .2s; }
.quick a:hover { border-color: var(--blue); color: var(--blue); transform: translateX(4px); }

/* forms */
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; margin-bottom: 16px; color: #3D3C5C; }
.form label small { color: var(--muted); font-weight: 400; }
.form input:not([type=file]), .form select, .form textarea, .photo-edit input, .photo-edit select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; color: var(--ink); background: #FAFAFE; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form input[type=file] { padding: 10px; border: 1.5px dashed #c9c7e6; border-radius: 11px; background: #FAFAFE; font: inherit; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.form-actions { padding-top: 4px; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.thumb-lg { width: 220px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }

/* items */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.item { padding: 0; overflow: hidden; margin: 0; }
.item-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.item-body { padding: 18px 20px 20px; }
.item-body h3 { font-size: 1.25rem; margin: 8px 0 2px; }
.item-body p { margin: 0 0 14px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.item-actions form, .actions form, .photo-actions form, .enq-actions form { display: inline; margin: 0; }
.table-wrap { overflow-x: auto; padding: 8px; }
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border: 0; }
.actions { white-space: nowrap; text-align: right; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.photo { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo.is-cover { border: 2px solid var(--blue); }
.cover-tag { position: absolute; top: 8px; left: 8px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.photo-actions { display: flex; gap: 6px; padding: 10px; flex-wrap: wrap; }
.photo-edit { display: grid; gap: 6px; padding: 10px 10px 0; }
.photo-edit input, .photo-edit select { padding: 8px 10px; font-size: .88rem; }
.photo-del { padding: 6px 10px 10px; }

/* enquiries */
.enq-list { display: grid; gap: 14px; }
.enq { margin: 0; border-left: 4px solid transparent; }
.enq.unread { border-left-color: var(--red); }
.enq-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.enq-head h3 { font-size: 1.15rem; }
.enq-contact { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.enq-contact a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; background: #F3F2FC; font-weight: 500; font-size: .9rem; }
.enq-msg { background: #FAFAFE; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; white-space: normal; }
.enq-actions { display: flex; gap: 8px; }

/* login */
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 50px; color: #fff; }
.login-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,5,102,.92), rgba(32,7,169,.35)); }
.login-art div { position: relative; }
.login-art img { width: 220px; margin-bottom: 14px; }
.login-art p { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin: 0; opacity: .9; }
.login-box { display: grid; place-items: center; padding: 30px; background: #fff; }
.login-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; }
.login-logo { width: 170px; margin-bottom: 30px; }
.login-form h1 { font-size: 2rem; margin-bottom: 4px; }
.login-form p { margin: 0 0 24px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin-bottom: 16px; font-size: .95rem; }
.login-form input { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #FAFAFE; }
.login-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.login-form .btn { justify-content: center; padding: 15px; margin-top: 6px; }
.back { margin-top: 20px; text-align: center; color: var(--muted); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); }
  .side-open .side { transform: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11,10,46,.5); z-index: 40; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .top { padding: 14px 18px; }
  .content { padding: 20px 16px 50px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .hello { padding: 22px; }
}
@media (max-width: 480px) {
  .cards { gap: 12px; }
  .stat-card b { font-size: 1.6rem; }
  .card { padding: 18px; }
}
