:root {
  --bg-dark: #0b1329;
  --bg-card: #152238;
  --bg-card-hover: #1c2d4a;
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(56, 189, 248, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(11, 19, 41, 0.92);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  z-index: 1000;
  contain: layout style;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.brand-title span {
  color: var(--accent-cyan);
}

.app-container {
  padding: 0 3%;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 24px;
  contain: content;
}

/* Ribbon */
.ribbon {
  width: 130px;
  height: 130px;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 180px;
  padding: 6px 0;
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  left: -20px;
  top: 24px;
  transform: rotate(45deg);
}

/* Form */
.form-input {
  width: 100%;
  height: 50px;
  background: rgba(11, 19, 41, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  padding: 0 18px;
  font-size: 1rem;
  outline: none;
}

.btn-primary {
  height: 50px;
  background: var(--accent-blue);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Nav & Badges */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-info { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a.active {
  color: var(--accent-cyan);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(11, 19, 41, 0.95);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-item.active {
  color: var(--accent-cyan);
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}