/* ==========================================================================
   UX DESIGN SYSTEM — BINANCE SPOT GRID BOT (DARK FINTECH PRO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Cores Base de Superfície */
  --bg-deep: #080B11;
  --bg-mesh: radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
             radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
             radial-gradient(circle at 50% 50%, rgba(0, 242, 157, 0.04) 0%, transparent 60%);
  --surface-base: #0F1420;
  --surface-card: rgba(18, 25, 41, 0.72);
  --surface-card-hover: rgba(24, 33, 54, 0.85);
  --surface-input: rgba(11, 16, 28, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 157, 0.35);

  /* Acentos Semânticos de Mercado */
  --accent-profit: #00F29D;
  --accent-profit-glow: rgba(0, 242, 157, 0.25);
  --accent-loss: #FF3B69;
  --accent-loss-glow: rgba(255, 59, 105, 0.25);
  --accent-cyan: #00D2FF;
  --accent-cyan-glow: rgba(0, 210, 255, 0.25);
  --accent-gold: #FFB800;
  --accent-purple: #8B5CF6;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);

  /* Tipografia & Hierarquia */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #080B11;

  /* Efeitos e Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow-profit: 0 0 25px rgba(0, 242, 157, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(0, 210, 255, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(0, 210, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-profit), var(--accent-purple));
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF 60%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 44px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
  background: #0E1524;
}

.btn-toggle-pwd {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-toggle-pwd:hover {
  color: var(--text-primary);
}

.login-footer-hint {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.login-footer-hint strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   DASHBOARD PRINCIPAL
   ========================================================================== */
.dashboard-wrapper {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px 60px;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-profit));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow-cyan);
}

.brand-info h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.status-pill.running {
  background: rgba(0, 242, 157, 0.12);
  border-color: rgba(0, 242, 157, 0.4);
  color: var(--accent-profit);
}

.status-pill.paused {
  background: rgba(255, 59, 105, 0.12);
  border-color: rgba(255, 59, 105, 0.4);
  color: var(--accent-loss);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.running .status-dot {
  box-shadow: 0 0 10px var(--accent-profit);
  animation: pulseDot 1.5s infinite;
}

.status-pill.mode-paper {
  background: rgba(157, 78, 221, 0.14);
  border-color: rgba(157, 78, 221, 0.45);
  color: #C77DFF;
}

.status-pill.mode-paper .status-dot {
  box-shadow: 0 0 8px #C77DFF;
}

.status-pill.mode-live {
  background: rgba(255, 184, 0, 0.16);
  border-color: rgba(255, 184, 0, 0.5);
  color: #FFD166;
}

.status-pill.mode-live .status-dot {
  box-shadow: 0 0 10px #FFD166;
  animation: pulseDot 1.2s infinite;
}

.binance-test-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  transition: var(--transition);
}

.binance-test-box.success {
  background: rgba(0, 242, 157, 0.08);
  border: 1px solid rgba(0, 242, 157, 0.35);
  color: #E2FBF1;
}

.binance-test-box.error {
  background: rgba(255, 59, 105, 0.08);
  border: 1px solid rgba(255, 59, 105, 0.35);
  color: #FFE6EB;
}

.binance-test-box.loading {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #E0F7FF;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00A3FF);
  color: #06101E;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-profit), #00C47E);
  color: #061A12;
  box-shadow: 0 4px 16px var(--accent-profit-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 242, 157, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-loss), #D91D4A);
  color: #FFF;
  box-shadow: 0 4px 16px var(--accent-loss-glow);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 59, 105, 0.45);
}

.btn-purple {
  background: linear-gradient(135deg, var(--accent-purple), #6D28D9);
  color: #FFF;
  box-shadow: 0 4px 16px var(--accent-purple-glow);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   HERO STATS CARDS (CARTEIRA $100)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.badge-profit {
  background: rgba(0, 242, 157, 0.15);
  color: var(--accent-profit);
}

.badge-loss {
  background: rgba(255, 59, 105, 0.15);
  color: var(--accent-loss);
}

/* Barra de Progresso Fiscal (Isenção RFB) */
.fiscal-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}

.fiscal-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-profit), #00D2FF);
  transition: width 0.6s ease, background 0.3s ease;
}

.fiscal-progress-bar.warning {
  background: linear-gradient(90deg, #FFB800, #FF7A00);
}

.fiscal-progress-bar.danger {
  background: linear-gradient(90deg, #FF3B69, #D91D4A);
  box-shadow: 0 0 10px rgba(255, 59, 105, 0.6);
}

.stat-card.fiscal-blocked {
  border-color: rgba(255, 59, 105, 0.5) !important;
  box-shadow: 0 0 20px rgba(255, 59, 105, 0.25);
  animation: pulseCard 2s infinite ease-in-out;
}

@keyframes pulseCard {
  0%, 100% { border-color: rgba(255, 59, 105, 0.4); }
  50% { border-color: rgba(255, 59, 105, 0.85); box-shadow: 0 0 25px rgba(255, 59, 105, 0.4); }
}


/* ==========================================================================
   PARES ADAPTATIVOS & IA (FASE 2)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pair-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  position: relative;
}

.pair-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pair-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pair-symbol-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.btc-avatar { background: rgba(247, 147, 26, 0.2); color: #F7931A; border: 1px solid rgba(247, 147, 26, 0.4); }
.eth-avatar { background: rgba(98, 126, 234, 0.2); color: #627EEA; border: 1px solid rgba(98, 126, 234, 0.4); }
.bnb-avatar { background: rgba(243, 186, 47, 0.2); color: #F3BA2F; border: 1px solid rgba(243, 186, 47, 0.4); }
.xrp-avatar { background: rgba(52, 106, 248, 0.2); color: #346AF8; border: 1px solid rgba(52, 106, 248, 0.4); }


.pair-name h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.pair-name span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pair-live-price {
  text-align: right;
  font-family: var(--font-mono);
}

.price-val {
  font-size: 1.35rem;
  font-weight: 700;
  transition: color 0.4s ease;
}

.price-val.flash-up {
  color: var(--accent-profit) !important;
}

.price-val.flash-down {
  color: var(--accent-loss) !important;
}

/* Regime de Mercado Badge */
.regime-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.regime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.regime-lateral {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.regime-uptrend {
  background: rgba(0, 242, 157, 0.15);
  color: var(--accent-profit);
  border: 1px solid rgba(0, 242, 157, 0.3);
}

.regime-downtrend {
  background: rgba(255, 184, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.pair-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.metric-item {
  text-align: center;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.pair-orders-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   TABELAS DE ORDENS E HISTÓRICO DE TRADES
   ========================================================================== */
.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .tables-grid {
    grid-template-columns: 1fr;
  }
}

.data-panel {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.data-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.custom-table th {
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.side-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}

.side-buy {
  background: rgba(0, 242, 157, 0.15);
  color: var(--accent-profit);
}

.side-sell {
  background: rgba(255, 59, 105, 0.15);
  color: var(--accent-loss);
}

/* ==========================================================================
   MODAL DE RETREINAMENTO DE IA
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md), 0 0 50px rgba(139, 92, 246, 0.15);
  animation: cardFadeIn 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   SISTEMA DE TOASTS FLUTUANTES
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  box-shadow: var(--shadow-md);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.success { border-left: 4px solid var(--accent-profit); }
.toast-item.error { border-left: 4px solid var(--accent-loss); }
.toast-item.info { border-left: 4px solid var(--accent-cyan); }

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */
@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
