:root {
  --bg-main: #0d0f14;
  --bg-card: #161b22;
  --bg-input: #0d1117;
  --border-color: #30363d;
  --accent-cyan: #00f3ff;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --radius: 12px;
}

* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; }
body { background: var(--bg-main); color: var(--text-main); padding: 15px; min-height: 100vh; }

.container { max-width: 800px; margin: 0 auto; }

/* Topbar */
.topbar { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 20px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-title { font-size: 18px; font-weight: 800; color: var(--accent-cyan); letter-spacing: 0.5px; }

/* Botões */
.icon-btn { background: #21262d; color: var(--accent-cyan); border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: 13px; }
.btn-support { color: var(--accent-green); border-color: rgba(16, 185, 129, 0.3); }
.btn-logout { color: var(--accent-red); border-color: rgba(239, 68, 68, 0.3); }

/* Sidebar (Menu Termux) */
.sidebar { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--bg-card); border-right: 1px solid var(--border-color); z-index: 1000; transition: 0.3s ease; padding: 20px; }
.sidebar.active { left: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); z-index: 999; display: none; }
.sidebar-overlay.active { display: block; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.sidebar-menu { display: flex; flex-direction: column; gap: 10px; }
.nav-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav-item:hover, .nav-item.active { background: rgba(0, 243, 255, 0.1); color: var(--accent-cyan); border-left: 3px solid var(--accent-cyan); }

/* Cards */
.card { background: var(--bg-card); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* API Key Box */
.key-box { background: var(--bg-input); padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--accent-purple); font-family: monospace; color: var(--accent-green); margin: 10px 0; word-break: break-all; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; }
.badge { background: var(--accent-purple); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: bold; }

/* Links Úteis */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.link-card { background: var(--bg-input); border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; text-decoration: none; color: var(--text-main); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }

/* Planos Grid */
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 15px; }
.plano-card { background: var(--bg-input); border: 1px solid var(--border-color); padding: 18px; border-radius: var(--radius); text-align: center; position: relative; }
.plano-card.destaque { border: 2px solid var(--accent-purple); }
.tag-destaque { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent-purple); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.preco { font-size: 22px; font-weight: 800; color: var(--accent-green); margin: 10px 0; }

.btn-action { display: block; width: 100%; padding: 10px; background: var(--accent-purple); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 10px; }
