*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  background-color: #f5f1eb;
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Header ── */
header {
  background-color: #1a1a1a;
  color: #d4a937;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(212,169,55,0.25);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
}

header h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header p {
  font-size: 0.72rem;
  color: #b8943a;
  margin-top: 0.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-logout {
  color: #b8943a;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid #b8943a;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-logout:hover { color: #d4a937; border-color: #d4a937; }

/* ── Login page ── */
.login-body { display: flex; flex-direction: column; }

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: #fff;
  border: 1px solid #e8dfc8;
  border-radius: 14px;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(139,107,43,0.07), 0 4px 20px rgba(139,107,43,0.06));
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.login-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.login-sub {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.5rem;
}

#g-btn-wrap {
  display: flex;
  justify-content: center;
}

.btn-signin-fallback {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #444;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-signin-fallback:hover { background: #f8f8f8; }



/* ── Messages ── */
.message {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.message.hidden { display: none; }
.message.error {
  background: #ffebee;
  color: #b71c1c;
  border-left: 4px solid #f44336;
}
.message.success {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid #4caf50;
}

/* ── Dashboard ── */
.dashboard-main {
  max-width: 900px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

.tool-section { margin-bottom: 2.5rem; }

.section-heading {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8943a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232,223,200,0.9);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(232,223,200,0.9);
  border-radius: 12px;
  padding: 1.3rem 1.25rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(139,107,43,0.07), 0 4px 20px rgba(139,107,43,0.06));
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.tool-card:hover {
  box-shadow: var(--shadow-card-hover, 0 4px 14px rgba(139,107,43,0.15), 0 8px 28px rgba(139,107,43,0.08));
  transform: translateY(-2px);
}

.tool-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.tool-card-desc {
  font-size: 0.83rem;
  color: #666;
  flex: 1;
}

.tool-card-arrow {
  font-size: 1.1rem;
  color: #d4a937;
  font-weight: 700;
  margin-top: 0.5rem;
}

.tool-card-soon {
  border-color: rgba(224,216,200,0.7);
  background: #faf7f2;
  box-shadow: none;
  opacity: 0.75;
}
.tool-card-soon:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: none;
}
.tool-card-soon .tool-card-name { color: #888; }

.tool-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: #f0ece4;
  color: #b8943a;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ── Coming Soon page ── */
.coming-soon-page {
  max-width: 420px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}

.coming-soon-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8943a;
  margin-bottom: 0.75rem;
}

.coming-soon-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}

.coming-soon-desc {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-back-dash {
  display: inline-block;
  background: #1a1a1a;
  color: #d4a937;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-back-dash:hover { background: #2d2d2d; }

/* ── Mobile ── */
@media (max-width: 480px) {
  header h1 { font-size: 1.25rem; }
  .dashboard-main { margin: 1.5rem auto 2rem; padding: 0 1rem; }
  .login-card { padding: 1.5rem 1rem; }
  .tool-grid { grid-template-columns: 1fr; }
}
