/* ============================================
   EUROFIDUCIA — Investment Platform
   Design System: France 🇫🇷 + Italy 🇮🇹
   Colors: Blue + Green (flag colors) + Navy (institutional)
   ============================================ */

:root {
  /* Flag Colors */
  --fr-blue: #0055A4;
  --fr-red: #EF4135;
  --it-green: #008C45;
  --it-red: #CD212A;

  /* Primary Brand Colors */
  --brand-blue: #0055A4;
  --brand-green: #008C45;
  --brand-navy: #0A1A3F;
  --brand-navy-light: #16265c;
  --brand-deep: #060f2b;

  /* Accents */
  --accent-gold: #C5A572;
  --accent-silver: #E8ECF1;
  --accent-magenta: #E91E63;

  /* Semantic */
  --success: #008C45;
  --success-light: #E6F4ED;
  --danger: #D32F2F;
  --danger-light: #FDEDED;
  --warning: #F9A825;
  --warning-light: #FFF8E1;
  --info: #0055A4;
  --info-light: #E8F0F8;

  /* Neutrals */
  --bg: #F4F6FA;
  --bg-card: #FFFFFF;
  --bg-dark: #0A1A3F;
  --text: #1A2333;
  --text-secondary: #5A6B85;
  --text-light: #8A9BB5;
  --text-inverse: #FFFFFF;
  --border: #E2E8F0;
  --border-dark: #1E3158;
  --shadow: 0 2px 12px rgba(10,26,63,0.08);
  --shadow-lg: 0 8px 32px rgba(10,26,63,0.15);
  --shadow-blue: 0 4px 20px rgba(0,85,164,0.25);
  --shadow-green: 0 4px 20px rgba(0,140,69,0.25);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0055A4 0%, #008C45 100%);
  --grad-navy: linear-gradient(160deg, #0A1A3F 0%, #16265c 100%);
  --grad-blue: linear-gradient(135deg, #0055A4 0%, #0066CC 100%);
  --grad-green: linear-gradient(135deg, #008C45 0%, #00A356 100%);
  --grad-hero: linear-gradient(160deg, #060f2b 0%, #0A1A3F 40%, #16265c 100%);

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --sidebar-w: 260px;
  --header-h: 64px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.25; color: var(--brand-navy); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
a { color: var(--brand-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-green); }

/* ===== Layout Helpers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}
.p-4{padding:16px}.p-6{padding:24px}.p-8{padding:32px}
.hidden{display:none!important}
.w-full{width:100%}
.rounded{border-radius:var(--radius)}
.rounded-lg{border-radius:var(--radius-lg)}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); border: none;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,85,164,0.35); }
.btn-green { background: var(--grad-green); color: #fff; box-shadow: var(--shadow-green); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,140,69,0.35); }
.btn-outline { background: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.btn-outline:hover { background: var(--brand-blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--brand-navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B71C1C; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-gradient { background: var(--grad-navy); color: #fff; }
.card-gradient h3,.card-gradient h4 { color: #fff; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-neutral { background: var(--accent-silver); color: var(--text-secondary); }

/* ===== Flag pills ===== */
.flag-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.flag-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.flag-pill.active { border: 2px solid var(--brand-blue); }

/* ===== Navbar (public) ===== */
.navbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(10,26,63,0.06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--brand-navy); }
.navbar-logo .logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem;
}
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.navbar-links a:hover { color: var(--brand-blue); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-toggle { display: none; background: transparent; border: none; font-size: 1.6rem; cursor: pointer; color: var(--brand-navy); padding: 4px 8px; }
.mobile-nav { display: none; }

/* ===== Alternate nav (about/portfolios pages) ===== */
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-inner .logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--brand-navy); text-decoration: none; }
.nav-inner .logo .logo-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.dash-menu-btn { display: none; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 1.3rem; cursor: pointer; color: var(--brand-navy); padding: 4px 10px; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.lang-dropdown {
  position: absolute; top: 110%; right: 0; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; min-width: 180px; z-index: 200;
  display: none; border: 1px solid var(--border);
}
.lang-dropdown.open { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.lang-option:hover { background: var(--bg); }

/* ===== Hero ===== */
.hero {
  background: var(--grad-hero); color: #fff; padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,85,164,0.25) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -5%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,140,69,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 16px; line-height: 1.15; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-bottom: 32px; }
.hero .accent { color: #4FA8E8; }
.hero .accent-green { color: #5CC88F; }
.hero-stats { display: flex; gap: 48px; margin-top: 48px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow { color: var(--brand-blue); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== Investment Category Grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: var(--transition); cursor: pointer; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--grad-brand);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-blue); }
.cat-card .cat-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cat-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cat-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.cat-card .cat-meta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Regional Portfolio Cards ===== */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px; }
.region-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  transition: var(--transition); cursor: pointer;
}
.region-card:hover { transform: translateY(-8px); }
.region-card .region-head { padding: 32px; color: #fff; position: relative; }
.region-card.fr .region-head { background: linear-gradient(135deg, #0055A4 0%, #004488 100%); }
.region-card.it .region-head { background: linear-gradient(135deg, #008C45 0%, #006633 100%); }
.region-card.eu .region-head { background: linear-gradient(135deg, #003399 0%, #0055A4 100%); }
.region-card.global .region-head { background: linear-gradient(135deg, #0A1A3F 0%, #16265c 100%); }
.region-card .region-flag { font-size: 2.5rem; margin-bottom: 8px; }
.region-card .region-head h3 { color: #fff; font-size: 1.4rem; }
.region-card .region-head p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.region-card .region-body { padding: 24px; background: #fff; }
.risk-level { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.risk-conservative { background: var(--success-light); color: var(--success); }
.risk-balanced { background: var(--warning-light); color: var(--warning); }
.risk-growth { background: var(--danger-light); color: var(--danger); }

/* ===== Footer ===== */
.footer { background: var(--brand-deep); color: rgba(255,255,255,0.7); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.6); display: block; padding: 4px 0; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.85rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 24px; line-height: 1.5; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: var(--transition); background: #fff; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0,85,164,0.1); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* ===== Auth pages ===== */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side { flex: 1; background: var(--grad-hero); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side-content { position: relative; z-index: 2; max-width: 420px; }
.auth-side h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.auth-side p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-secondary); margin-bottom: 32px; }

/* Registration steps */
.step-indicator { display: flex; align-items: center; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; background: var(--border); color: var(--text-light); transition: var(--transition);
}
.step.active .step-circle { background: var(--brand-blue); color: #fff; }
.step.completed .step-circle { background: var(--brand-green); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; }
.step.completed + .step-line, .step-line.active { background: var(--brand-blue); }
.step-label { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }

/* ===== Dashboard Layout ===== */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: var(--sidebar-w); background: var(--brand-navy); color: #fff; padding: 0;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 50;
  display: flex; flex-direction: column;
}
.dash-sidebar-head { padding: 20px 24px; border-bottom: 1px solid var(--border-dark); }
.dash-sidebar-head .logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.dash-sidebar-head .logo .logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.dash-nav { padding: 16px 0; flex: 1; }
.dash-nav-section { padding: 8px 24px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); margin-top: 16px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,0.6);
  font-size: 0.92rem; font-weight: 500; transition: var(--transition); cursor: pointer; border-left: 3px solid transparent;
}
.dash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.dash-nav-item.active { color: #fff; background: rgba(0,85,164,0.2); border-left-color: var(--brand-blue); }
.dash-nav-item .icon { font-size: 1.2rem; width: 24px; text-align: center; }
.dash-nav-item .badge-count { margin-left: auto; background: var(--brand-green); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; }
.dash-sidebar-foot { padding: 16px 24px; border-top: 1px solid var(--border-dark); }

.dash-main { flex: 1; margin-left: var(--sidebar-w); }
.dash-header {
  height: var(--header-h); background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  position: sticky; top: 0; z-index: 40;
}
.dash-header h1 { font-size: 1.3rem; }
.dash-header-actions { display: flex; align-items: center; gap: 16px; }
.dash-content { padding: 32px; }

/* ===== Stat cards (dashboard) ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--brand-navy); }
.stat-card .stat-change { font-size: 0.8rem; margin-top: 6px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== Tables ===== */
.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 14px 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); font-weight: 700; background: var(--bg); border-bottom: 2px solid var(--border); }
td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,85,164,0.02); }
.table-link { color: var(--brand-blue); font-weight: 600; cursor: pointer; }
.table-link:hover { text-decoration: underline; }

/* ===== Chat widget ===== */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--grad-brand); border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-box {
  position: absolute; bottom: 76px; right: 0; width: 380px; height: 520px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-box.open { display: flex; }
.chat-head { background: var(--grad-navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-head .info h4 { color: #fff; font-size: 0.95rem; }
.chat-head .info p { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.chat-head .close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.chat-msg { max-width: 80%; padding: 10px 16px; border-radius: 14px; font-size: 0.88rem; line-height: 1.4; }
.chat-msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--grad-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.system { background: var(--warning-light); color: var(--warning); align-self: center; font-size: 0.78rem; text-align: center; max-width: 90%; }
.chat-input-wrap { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: #fff; }
.chat-input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.88rem; }
.chat-send { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-blue); border: none; color: #fff; cursor: pointer; font-size: 1.1rem; }

/* ===== Notification toast ===== */
.toast-wrap { position: fixed; top: 80px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; min-width: 320px; border-left: 4px solid var(--brand-blue);
  animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast .toast-icon { font-size: 1.3rem; }
.toast .toast-content h5 { font-size: 0.9rem; margin-bottom: 2px; }
.toast .toast-content p { font-size: 0.8rem; color: var(--text-secondary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Progress / loading ===== */
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad-brand); border-radius: 4px; transition: width 0.5s; }

/* ===== Receipt page ===== */
.receipt-page { max-width: 700px; margin: 40px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.receipt-head { background: var(--grad-navy); color: #fff; padding: 32px; text-align: center; }
.receipt-head .receipt-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.receipt-head .receipt-title { font-size: 0.9rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2px; }
.receipt-body { padding: 32px; }
.receipt-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.receipt-row .label { color: var(--text-secondary); font-size: 0.9rem; }
.receipt-row .value { font-weight: 600; font-size: 0.95rem; }
.receipt-amount { text-align: center; padding: 24px 0; }
.receipt-amount .amount { font-size: 2.5rem; font-weight: 800; color: var(--brand-navy); }
.receipt-amount .currency { font-size: 1.2rem; color: var(--text-secondary); }
.receipt-foot { padding: 24px 32px; background: var(--bg); text-align: center; font-size: 0.8rem; color: var(--text-secondary); }
.receipt-stamp { display: inline-block; padding: 8px 24px; border: 3px solid var(--success); color: var(--success); font-weight: 800; text-transform: uppercase; border-radius: 8px; transform: rotate(-8deg); margin: 16px 0; letter-spacing: 2px; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,26,63,0.6); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-head { padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 1.3rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* ===== Utility ===== */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.15rem; }
.font-bold { font-weight: 700; }
.font-800 { font-weight: 800; }
.bg-white { background: #fff; }
.rounded-full { border-radius: 50%; }
.cursor-pointer { cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== Cryptocurrency: Why-crypto explanation card ===== */
.crypto-why-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
}
.crypto-why-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.crypto-why-icon {
  font-size: 2rem; background: var(--grad-green); color: #fff;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.crypto-why-head h3 { font-size: 1.2rem; color: var(--brand-green); }
.crypto-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.crypto-why-item {
  background: #fff; border-radius: var(--radius-sm); padding: 16px;
  border: 1px solid var(--border); transition: var(--transition);
}
.crypto-why-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-green); }
.crypto-why-emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.crypto-why-item h5 { font-size: 0.9rem; color: var(--brand-navy); margin-bottom: 6px; }
.crypto-why-item p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.why-crypto-badge {
  display: inline-block; background: var(--brand-green); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  margin-left: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ===== Crypto wallet display cards (user deposit page) ===== */
.crypto-wallet-box { margin-top: 16px; }
.crypto-wallet-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.crypto-wallet-head .crypto-wallet-coin { font-weight: 700; font-size: 1.05rem; color: var(--brand-navy); }
.crypto-wallet-list { display: flex; flex-direction: column; gap: 12px; }
.crypto-wallet-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.crypto-wallet-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-green);
}
.crypto-wallet-card:hover { box-shadow: var(--shadow); border-color: var(--brand-green); }
.crypto-wallet-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.crypto-coin-badge {
  font-weight: 800; font-size: 0.95rem; color: #fff; background: var(--grad-blue);
  padding: 4px 12px; border-radius: 6px; letter-spacing: 0.5px;
}
.crypto-coin-name { font-weight: 600; font-size: 0.9rem; color: var(--brand-navy); }
.crypto-network-badge {
  font-size: 0.7rem; font-weight: 600; color: var(--brand-blue);
  background: var(--info-light); padding: 3px 10px; border-radius: 20px;
  margin-left: auto;
}
.crypto-wallet-addr-row {
  display: flex; align-items: center; gap: 10px;
}
.crypto-wallet-addr {
  font-family: 'Courier New', monospace; font-size: 0.82rem;
  background: var(--bg); border: 1px dashed var(--border); border-radius: 6px;
  padding: 10px 12px; word-break: break-all; flex: 1; color: var(--text);
}
.crypto-copy-btn {
  background: var(--grad-blue); color: #fff; border: none;
  padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 0.8rem;
  font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.crypto-copy-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.crypto-wallet-note { margin-top: 10px; font-style: italic; }

/* ===== Account number badge / identifier card ===== */
.ev-acct-row .ev-acct-no {
  font-family: 'Courier New', monospace; font-weight: 700;
  font-size: 1rem; letter-spacing: 0.5px; color: var(--brand-blue);
}
.acct-id-card {
  background: var(--grad-navy); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px; color: #fff;
}
.acct-id-card .aic-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5); margin-bottom: 4px;
}
.acct-id-card .aic-value {
  font-family: 'Courier New', monospace; font-size: 1.3rem; font-weight: 800;
  letter-spacing: 1px; color: #fff;
}
.acct-id-card .aic-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.acct-id-card .aic-item { }
.acct-badge {
  display: inline-block; font-family: 'Courier New', monospace; font-weight: 700;
  font-size: 0.9rem; background: var(--info-light); color: var(--brand-blue);
  padding: 4px 12px; border-radius: 6px; border: 1px solid #bfdbfe;
}
.acct-badge.green { background: var(--success-light); color: var(--brand-green); border-color: #bbf7d0; }
.acct-pending { font-size: 0.8rem; color: var(--text-light); font-style: italic; }

/* ===== Admin wallet management cards ===== */
.admin-wallet-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px;
  transition: var(--transition);
}
.admin-wallet-card:hover { box-shadow: var(--shadow); }
.admin-wallet-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.admin-wallet-coinname { font-weight: 700; color: var(--brand-navy); font-size: 0.95rem; }
.admin-wallet-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.admin-wallet-row .text-muted { min-width: 60px; font-size: 0.78rem; }
.admin-wallet-actions {
  display: flex; gap: 8px; margin-top: 8px;
}
.admin-wallet-card .awc-info { flex: 1; min-width: 0; }
.admin-wallet-card .awc-coin { font-weight: 700; color: var(--brand-navy); font-size: 0.95rem; }
.admin-wallet-card .awc-symbol { font-size: 0.75rem; color: var(--brand-blue); background: var(--info-light); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }
.admin-wallet-card .awc-network { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.admin-wallet-card .awc-addr { font-family: 'Courier New', monospace; font-size: 0.78rem; color: var(--text); margin-top: 4px; word-break: break-all; }
.admin-wallet-card .awc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: 6px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ===== Backend URL config (admin settings) ===== */
.backend-config-box code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-size: 0.82rem; color: var(--brand-blue);
}

/* ===== Deposit method select enhancement ===== */
select.form-input option:first-child { font-weight: 600; }

/* ===== Responsive additions ===== */
@media (max-width: 768px) {
  .crypto-why-grid { grid-template-columns: 1fr; }
  .acct-id-card .aic-grid { grid-template-columns: 1fr; gap: 14px; }
  .admin-wallet-card { }
  .admin-wallet-actions { width: 100%; }
  .crypto-wallet-addr-row { flex-direction: column; align-items: stretch; }
  .crypto-copy-btn { width: 100%; justify-content: center; }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .navbar-links { display: none; }
  .nav-links { display: none; }
  .navbar-toggle { display: block; }
  .dash-menu-btn { display: block; }
  .mobile-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); z-index: 300; flex-direction: column; padding: 16px 24px; gap: 4px; border-top: 1px solid var(--border); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); text-decoration: none; }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav .mobile-nav-actions { display: flex; gap: 12px; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-side { display: none; }
  .dash-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .chat-box { width: calc(100vw - 48px); right: -12px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .dash-content { padding: 16px; }
  .dash-header { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ===================== COUNTRY DEPOSIT METHODS ===================== */
.ev-deposit-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ev-deposit-method-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: var(--transition);
}
.ev-deposit-method-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow);
}

/* ===================== INVESTMENT PLAN CARDS ===================== */
.ev-plan-card {
  position: relative;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.ev-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-green);
}
.ev-plan-roi {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-green);
  text-align: center;
  padding: 12px;
  background: var(--success-light);
  border-radius: 10px;
  margin: 12px 0;
}

/* ===================== RULES & REGULATIONS PRINT ===================== */
.ev-printable { position: relative; }
.ev-print-head { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--brand-navy); }
.ev-rules-section { margin-bottom: 20px; page-break-inside: avoid; }
.ev-rules-section h3 { color: var(--brand-navy); margin-bottom: 8px; font-size: 1.15rem; }
.ev-rules-section p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 8px; color: var(--text); }
.ev-print-foot { margin-top: 24px; }

/* Print styles for Rules & Regulations */
@media print {
  body * { visibility: hidden; }
  .ev-printable, .ev-printable * { visibility: visible; }
  .ev-printable {
    position: absolute;
    left: 0; top: 0; width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print { display: none !important; }
  .dash-sidebar, .dash-header, .cookie-consent { display: none !important; }
  .ev-rules-section { page-break-inside: avoid; }
  .ev-print-head { border-bottom: 2px solid #000; }
  .ev-rules-section h3 { color: #000; }
  @page { margin: 1.5cm; size: A4; }
}
