* {
  box-sizing: border-box;
}

:root {
  --bg-deep: #140b08;
  --bg-panel: rgba(42, 21, 13, 0.82);
  --bg-panel-soft: rgba(255, 248, 234, 0.08);
  --text-main: #fff8ea;
  --text-soft: #f1d7af;
  --text-muted: #d2b28b;
  --accent: #ff9f43;
  --accent-strong: #ff7a18;
  --border-soft: rgba(255, 248, 234, 0.12);
  --shadow-glow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--text-main);
  background: var(--bg-deep);
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(20, 11, 8, 0.35), rgba(20, 11, 8, 0.95)),
    radial-gradient(circle at bottom, #ff8a2a 0%, #4b1c10 35%, #140b08 70%);
  padding: 28px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

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

.nav-link {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: bold;
}

.nav-btn,
.cta {
  background: var(--accent);
  color: #2b1208;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

.nav-btn:hover,
.cta:hover {
  background: var(--accent-strong);
}

.hero-content {
  max-width: 760px;
  margin: 140px auto 0;
  text-align: center;
}

.hero-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 36px;
  align-items: center;
  text-align: left;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: #ffd08a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  margin: 20px 0;
}

.hero-content p {
  font-size: 1.25rem;
  line-height: 1.6;
}

.login-card {
  background: rgba(42, 21, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(14px);
}

.login-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2rem;
}

.login-copy {
  color: var(--text-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 70px 8%;
  background: #20100b;
}

.features div,
.step-grid article,
.admin-panel,
.admin-metrics article,
.admin-hero-card {
  background: var(--bg-panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px;
}

.steps {
  padding: 80px 8%;
  text-align: center;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}

.step-grid span {
  color: #ffb35c;
  font-size: 2rem;
  font-weight: bold;
}

.admin-preview {
  padding: 76px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background:
    linear-gradient(135deg, rgba(255, 159, 67, 0.12), rgba(255, 122, 24, 0.03)),
    #190d09;
}

.admin-preview-copy {
  max-width: 680px;
}

.secondary-cta {
  white-space: nowrap;
}

.uses {
  text-align: center;
  padding: 70px 8%;
  background: #30170d;
}

.uses p {
  font-size: 1.3rem;
  color: #ffd9a3;
}

footer {
  text-align: center;
  padding: 24px;
  color: #d8b98c;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 143, 56, 0.22), transparent 35%),
    linear-gradient(180deg, #170b08 0%, #26120b 100%);
  color: var(--text-main);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.admin-suite-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-suite-header > .admin-panel {
  height: 100%;
}

.album-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.member-shell {
  display: grid;
  gap: 24px;
}

.admin-hero-card {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, rgba(58, 27, 17, 0.95), rgba(29, 14, 10, 0.92));
  box-shadow: var(--shadow-glow);
}

.admin-hero-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
}

.admin-intro {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.admin-metrics article span {
  display: block;
  color: #ffd08a;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
}

.admin-metrics article p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
}

.users-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.albums-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  gap: 24px;
  margin-bottom: 24px;
}

.albums-main-column,
.albums-sidebar {
  display: grid;
  gap: 24px;
}

.users-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.users-sidebar {
  display: grid;
  gap: 24px;
}

.album-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin: 24px 0;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(16px);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.8rem;
}

.panel-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.panel-note {
  margin: 0;
  max-width: 220px;
  color: var(--text-muted);
  text-align: right;
}

.account-form {
  display: grid;
  gap: 18px;
}

.user-form-panel {
  background:
    linear-gradient(180deg, rgba(255, 159, 67, 0.08), rgba(255, 248, 234, 0.04)),
    var(--bg-panel);
}

.drive-command-panel {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.07), rgba(255, 159, 67, 0.04)),
    var(--bg-panel);
}

.album-form-panel,
.album-library-panel {
  background:
    linear-gradient(180deg, rgba(255, 159, 67, 0.08), rgba(255, 248, 234, 0.04)),
    var(--bg-panel);
}

.user-form-intro {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 248, 234, 0.05);
}

.user-form-intro p,
.users-side-copy {
  margin: 0;
  color: var(--text-soft);
}

.admin-suite-header .secondary-cta {
  margin-top: auto;
  align-self: flex-start;
}

.album-form-intro,
.album-library-intro {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 248, 234, 0.05);
}

.album-form-intro p,
.album-library-intro p {
  margin: 0;
  color: var(--text-soft);
}

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: bold;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 248, 234, 0.08);
  color: var(--text-main);
  font: inherit;
}

.account-form select {
  color: #1b120d;
  background: rgba(255, 248, 234, 0.92);
}

.account-form select option {
  color: #1b120d;
  background: #fff8ea;
}

.account-form input::placeholder {
  color: #c6a988;
}

.account-form textarea::placeholder {
  color: #c6a988;
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-weight: normal !important;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.form-submit {
  justify-self: start;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-list article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 248, 234, 0.05);
  border: 1px solid var(--border-soft);
}

.activity-list p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.status-pill,
.table-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 159, 67, 0.16);
  color: #ffd9a3;
  border: 1px solid rgba(255, 159, 67, 0.28);
}

.status-pill[data-tone="success"] {
  background: rgba(91, 201, 144, 0.16);
  border-color: rgba(91, 201, 144, 0.3);
  color: #d8ffe8;
}

.status-pill[data-tone="error"] {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.28);
  color: #ffd5d5;
}

.table-wrap {
  overflow-x: auto;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.5fr);
  gap: 18px;
  margin-bottom: 20px;
}

.directory-search,
.directory-filter {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: bold;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 18px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 248, 234, 0.08);
}

.account-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
}

.account-table td {
  color: var(--text-soft);
}

.table-link {
  color: #ffd9a3;
  font-weight: bold;
}

.table-link:hover {
  color: #fff2d8;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-action-btn {
  border: 1px solid rgba(255, 248, 234, 0.16);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.16), rgba(255, 248, 234, 0.06));
  color: #fff5e2;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.table-action-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 248, 234, 0.24), rgba(255, 248, 234, 0.1));
  border-color: rgba(255, 248, 234, 0.26);
}

.table-action-btn:active {
  transform: translateY(0);
}

.table-action-btn::before {
  display: inline-block;
  margin-right: 6px;
}

.table-action-btn.danger {
  border-color: rgba(255, 107, 107, 0.35);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.18), rgba(255, 107, 107, 0.06));
  color: #ffe1e1;
}

.table-action-btn.danger:hover {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.26), rgba(255, 107, 107, 0.1));
  border-color: rgba(255, 107, 107, 0.48);
}

[data-account-edit]::before,
[data-album-edit]::before {
  content: "Edit";
  display: none;
}

[data-account-delete]::before,
[data-album-delete]::before {
  content: "Delete";
  display: none;
}

.album-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.drive-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.drive-status-copy p {
  margin: 0 0 10px;
  color: var(--text-soft);
}

.drive-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 248, 234, 0.05);
}

.meta-chip span {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffd08a;
}

.meta-chip p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.photo-card,
.gallery-empty {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 248, 234, 0.05);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-card-copy,
.gallery-empty {
  padding: 18px;
}

.photo-card-copy h3,
.gallery-empty h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.photo-card-copy p,
.gallery-empty p {
  color: var(--text-soft);
}

.photo-card-copy span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.photo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.member-album-card {
  min-height: 220px;
}

.member-card-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.member-card-actions a {
  text-decoration: none;
}

.empty-state {
  text-align: center !important;
  color: var(--text-muted) !important;
  padding: 32px 12px !important;
}

@media (max-width: 980px) {
  .admin-suite-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .features,
  .step-grid,
  .admin-metrics,
  .admin-grid,
  .albums-workspace,
  .users-workspace,
  .album-layout,
  .album-meta-grid,
  .directory-toolbar,
  .form-split {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-top: 90px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .admin-preview,
  .admin-hero-card,
  .panel-heading,
  .admin-hero-actions,
  nav,
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .secondary-cta,
  .form-submit {
    width: 100%;
    text-align: center;
  }

  .panel-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .admin-suite-header {
    grid-template-columns: 1fr;
  }
}
