:root {
  --bg: #0f1115;
  --card: #151922;
  --text: #e6eaf2;
  --muted: #9aa4b2;
  --accent: #4c8bf5;
  --border: #232939;
  --hover: #1b2130;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }
.center { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 48px); }

header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.title { font-size: 24px; font-weight: 700; letter-spacing: 0.2px; }
.subtitle { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: background 0.2s ease, border-color 0.2s ease; }
.card:hover { background: var(--hover); border-color: #2a3246; }
.card h2 { font-size: 16px; margin: 0 0 8px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #1a2233; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.btn:hover { background: #1f2940; }
.btn.secondary { background: transparent; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

footer { margin-top: 32px; color: var(--muted); font-size: 13px; }

.app-section { margin-top: 28px; scroll-margin-top: 16px; }
.app-section:first-of-type { margin-top: 0; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.recommended { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #21482e; color: #8fe3a1; font-size: 12px; font-weight: 700; }

/* Panel for centered flows (redirect) */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 520px; width: 100%; text-align: center; }
.icon { font-size: 56px; margin-bottom: 10px; }
h1 { font-size: 22px; margin: 6px 0 8px; }
p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.info { background: #121826; color: var(--muted); padding: 12px; border: 1px solid var(--border); border-radius: 10px; text-align: left; font-size: 13px; }
.success { color: #7fdc8e; }
.error { color: #ff7a7a; }

.spinner { width: 44px; height: 44px; margin: 16px auto; border: 4px solid rgba(255,255,255,0.12); border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
