/* ==========================================================================
   108IDO CRYPTO BOT — MEMBER PORTAL STYLES (UI/UX PRO MAX FINTECH THEME)
   ========================================================================== */

:root {
  --bg-main: #060913;
  --bg-card: rgba(13, 19, 36, 0.75);
  --bg-card-hover: rgba(18, 26, 48, 0.9);
  --bg-card-header: rgba(16, 24, 46, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.4);
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-purple: #a855f7;
  --accent-green: #00e676;
  --accent-red: #ff5252;
  --accent-orange: #ff9800;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.06) 0px, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.member-header {
  height: 60px;
  background: rgba(9, 13, 24, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060913;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Tabs */
.portal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #060913;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.tier-pill {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.tier-basic { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.tier-pro { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.4); }
.tier-vip { background: linear-gradient(135deg, rgba(255, 171, 0, 0.2), rgba(168, 85, 247, 0.2)); color: #ffd700; border: 1px solid #ffd700; }

.btn-header {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-admin {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.btn-admin:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #ffffff;
}

.btn-signout {
  background: rgba(255, 82, 82, 0.12);
  color: #ff8a80;
  border: 1px solid rgba(255, 82, 82, 0.3);
}
.btn-signout:hover {
  background: rgba(255, 82, 82, 0.25);
  color: #ffffff;
}

/* Main Container */
.portal-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common Card Styles */
.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.pro-card-header {
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.pro-card-body {
  padding: 1.25rem;
}

/* Grid Layouts */
.grid-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.form-select option {
  background: #0d1324;
  color: #ffffff;
}

/* Metric Display Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: rgba(8, 13, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.val-green { color: var(--accent-green); }
.val-red { color: var(--accent-red); }
.val-cyan { color: var(--primary-cyan); }
.val-yellow { color: #ffd700; }

/* Buttons */
.btn-primary-action {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border: none;
  color: #060913;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Strategy Cards */
.strategy-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.strategy-item-card {
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.strategy-item-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}

.strategy-item-card.system-preset {
  border-left: 3px solid #a855f7;
}

.strategy-item-card.user-custom {
  border-left: 3px solid #00f2fe;
}

/* Tables */
.pro-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pro-table th {
  background: rgba(16, 24, 46, 0.9);
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.pro-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

/* ==========================================================================
   PRO TERMINAL HUD & FAST TRADING DOCK
   ========================================================================== */
.terminal-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .terminal-grid-layout {
    grid-template-columns: 1fr;
  }
}

.hud-signal-card {
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.hud-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.hud-meter-row:last-child {
  border-bottom: none;
}

.hud-meter-label {
  color: var(--text-muted);
}

.hud-meter-val {
  font-weight: 700;
  font-family: var(--font-mono);
}

.btn-fast-buy {
  background: linear-gradient(135deg, #00e676, #10b981);
  color: #050811;
  font-weight: 800;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
  width: 100%;
}

.btn-fast-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.45);
}

.btn-fast-sell {
  background: linear-gradient(135deg, #ff5252, #ef4444);
  color: #ffffff;
  font-weight: 800;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.25);
  width: 100%;
}

.btn-fast-sell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.45);
}

.btn-panic-close {
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff5252;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-panic-close:hover {
  background: #ff5252;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover, .preset-chip.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
}

