:root {
  /* Midnight Saffron Palette */
  --bg-color: #050505;
  --panel-bg: rgba(10, 10, 10, 0.6);
  --primary-color: #eab308; /* Neon Saffron/Gold */
  --secondary-color: #ffffff;
  --text-muted: #888888;
  --border-color: #222222;
  --success-color: #4ade80;
  --error-color: #ef4444;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--secondary-color);
  background-image: radial-gradient(circle at 50% -20%, #1e1b4b 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

#app {
  width: 100%;
}

/* =========================================
   NAVIGATION
========================================= */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  color: var(--secondary-color);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--secondary-color);
}
.nav-actions button {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* =========================================
   BUTTONS & INPUTS
========================================= */
button {
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.primary-btn, #auth-submit {
  background: var(--secondary-color);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.primary-btn:hover, #auth-submit:hover {
  background: #e4e4e7;
}
.secondary-btn {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.secondary-btn:hover {
  border-color: #555;
}

/* =========================================
   HERO SECTION & CLAIM CARD
========================================= */
.hero-section {
  max-width: 1200px;
  margin: 6rem auto 8rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content {
  text-align: left;
}
.official-seal {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.1);
}
.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0 0 1.5rem 0;
  color: #fff;
}
.tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0;
}

/* The Glassmorphism Claim Box */
.claim-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
}
.handle-claim-box {
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.handle-claim-box:focus-within {
  border-color: var(--primary-color);
}
.handle-claim-box span {
  padding-left: 12px;
  color: #666;
  font-weight: 500;
}
.handle-claim-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 12px 8px;
  outline: none;
  font-weight: 600;
}
.handle-claim-box button {
  background: var(--primary-color);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.handle-claim-box button:hover {
  background: #facc15;
}
.claim-hint {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0;
}
.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}
.auth-divider span {
  background: #0a0a0a;
  padding: 0 10px;
  color: #555;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

/* OAuth Buttons */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.google-btn:hover {
  background: rgba(255,255,255,0.05);
}
.google-btn img {
  width: 18px;
  height: 18px;
}
.text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: #fff;
}

/* Auth Form Details */
.auth-form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}
.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}
.input-group input {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}
.input-group input:focus {
  border-color: #666;
}
.auth-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error-color);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* =========================================
   INFO SECTIONS & DEVELOPER API
========================================= */
.info-section {
  padding: 6rem 4rem;
  border-top: 1px solid var(--border-color);
}
.alt-bg {
  background: #080808;
}
.info-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.info-text h2 {
  font-size: 1rem;
  color: var(--primary-color);
  font-family: monospace;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.info-text h3 {
  font-size: 2.5rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
}
.info-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Code Terminal Window with Tabs */
.info-code {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.code-tabs {
  display: flex;
  background: #111;
  border-bottom: 1px solid var(--border-color);
}
.code-tab {
  padding: 10px 20px;
  font-family: monospace;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  border-right: 1px solid var(--border-color);
  border-bottom: 2px solid transparent;
  background: transparent;
  outline: none;
}
.code-tab:hover {
  color: #aaa;
}
.code-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: #050505;
}
.info-code pre {
  margin: 0;
  padding: 24px;
  color: var(--success-color);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  flex: 1;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
}
.platform-pill {
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

.info-content-center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.info-content-center h2 {
  font-size: 3rem;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}
.info-content-center p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.badges span {
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #aaa;
  background: rgba(255,255,255,0.02);
}

/* =========================================
   FOOTER
========================================= */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-color);
  color: #555;
  font-size: 0.9rem;
}

.container {
  max-width: 440px;
  width: 95%;
  padding: 2.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dashboard {
    max-width: 700px;
}

.official-seal {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -1.5px;
  font-weight: 800;
  background: linear-gradient(to bottom, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.tagline {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-form, .profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea {
  padding: 1rem;
  background-color: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 51, 0.2);
}

.handle-input {
    display: flex;
    align-items: center;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.handle-input span {
    color: var(--text-muted);
    padding-left: 1rem;
    font-weight: 500;
}

.handle-input input {
    border: none;
    flex: 1;
    background: transparent;
}

button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #e67e22 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
}

.google-btn {
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: none;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
}

.hero {
    max-width: 500px;
    padding: 3.5rem 2.5rem;
}

.handle-claim-box {
    display: flex;
    align-items: center;
    background: #000;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.handle-claim-box:focus-within {
    border-color: var(--primary-color);
}

.handle-claim-box span {
    color: var(--text-muted);
    padding: 0 0 0 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.handle-claim-box input {
    border: none;
    background: transparent;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.handle-claim-box button {
    white-space: nowrap;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
}

.claim-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: none;
    cursor: pointer;
    margin-top: 1rem;
    text-decoration: underline;
    font-weight: 400;
}

.text-link:hover {
    color: var(--primary-color);
}

.auth-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.secondary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.secondary-btn:hover {
    color: var(--secondary-color);
    border-color: var(--text-muted);
}

#verify-otp {
    margin-top: 0.5rem;
}

.error-message {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.auth-switch {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch span {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pricing-info {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.pricing-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}
