:root {
  --bg:
    radial-gradient(
      circle at 20% 10%,
      rgba(184, 179, 255, 0.22),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(122, 114, 242, 0.16),
      transparent 55%
    ),
    #0b0b10;

  --card-bg: #ffffff;
  --card-border: rgba(17, 24, 39, 0.12);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.7);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --btn-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  --radius: 16px;

  --section-border: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell {
  width: min(820px, 100%);
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.header {
  padding: 22px 22px 10px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.menu-section {
  padding: 14px 22px 18px 22px;
  border-top: 1px solid var(--section-border);
}

.menu-section:first-of-type {
  border-top: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.8);
}

.section-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Book Management artık 2x2 */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Assets bölümünü 3 kolon bırakmak için ayrı class */
.assets-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.card-btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--btn-shadow);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
  min-height: 78px;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
  border-color: rgba(79, 70, 229, 0.35);
}

.card-btn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14);
}

.card-btn:focus {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.18),
    0 14px 30px rgba(17, 24, 39, 0.16);
  border-color: rgba(79, 70, 229, 0.55);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.label strong {
  font-size: 15px;
  line-height: 1.2;
}

.label span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-subtitle {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .grid,
  .grid2,
  .assets-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    border-radius: 18px;
  }
}

body.auth-pending main {
  visibility: hidden;
}
