/* ==================== DESIGN SYSTEM & TOKENS ==================== */
:root {
  --bg-primary: #070a13;
  --bg-secondary: #0b0f19;
  --card-bg: rgba(17, 24, 39, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(59, 130, 246, 0.15);
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Outfit', 'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-body: 'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 0.3; }
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 25px var(--secondary-glow); }
  100% { box-shadow: 0 0 10px var(--primary-glow); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== BACKGROUND GLOW BLOBS ==================== */
.glow-bg-1, .glow-bg-2 {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
  animation: float 25s infinite linear;
}

.glow-bg-1 {
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: -10%;
}

.glow-bg-2 {
  background: radial-gradient(circle, var(--purple) 0%, rgba(0,0,0,0) 70%);
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
  animation-direction: reverse;
}

/* ==================== CORE CARD CONTAINER ==================== */
.card-container {
  position: relative;
  z-index: 10;
  width: 440px;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(59, 130, 246, 0.05);
  padding: 24px;
  margin: 30px auto;
  overflow: hidden;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition-normal);
}

.card-container:hover {
  border-color: var(--card-border-glow);
}

/* Utility Frosted glass effect */
.card-blur {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
}

/* ==================== TOP ACTION BAR ==================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.lang-selector {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 9px;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-action-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-action-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-small {
  width: 16px;
  height: 16px;
}

/* ==================== HEADER SECTION ==================== */
.card-header {
  text-align: center;
  position: relative;
  margin-bottom: 24px;
}

.profile-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px auto;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
}

.profile-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--secondary);
  z-index: 1;
  animation: pulse-ring 3s infinite ease-in-out;
}

.logo-wrapper {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.brand-logo {
  height: 18px;
  width: auto;
}

.ceo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.ceo-position {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.company-name {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ==================== WEB3 WALLET SECTION ==================== */
.wallet-section {
  padding: 12px 16px;
  margin-bottom: 20px;
}

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

.wallet-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.wallet-title svg {
  color: var(--secondary);
}

.wallet-btn {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.wallet-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 10px var(--primary-glow);
}

.wallet-btn.connected {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.wallet-address-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.03);
}

.address-text {
  font-family: monospace;
  font-size: 13px;
  color: #93c5fd;
  user-select: all;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

/* ==================== INTRO BOX ==================== */
.intro-box {
  text-align: center;
  padding: 0 10px;
  margin-bottom: 24px;
}

.intro-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* ==================== INFO LIST ==================== */
.info-list {
  padding: 8px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border: 1px solid rgba(255,255,255,0.05);
}

.info-details {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  color: var(--text-main);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  margin-top: 1px;
}

a.info-value:hover {
  color: var(--secondary);
}

/* ==================== QUICK ACTIONS ==================== */
.quick-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.action-btn {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-normal);
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.action-btn span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  text-align: center;
}

.action-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -6px rgba(0,0,0,0.5);
}

.action-btn:hover .btn-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.action-btn:hover span {
  color: var(--text-main);
}

/* Specific button: Video button highlight */
#video-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}
#video-btn:hover .btn-icon {
  background: var(--purple);
  box-shadow: 0 4px 12px var(--purple-glow);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 4px;
  border-left: 3px solid var(--secondary);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-normal);
}

.project-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.project-icon {
  width: 16px;
  height: 16px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.project-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.project-card:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.5);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover .project-icon-wrapper {
  background: var(--secondary);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--secondary-glow);
}

/* ==================== CORE ACTION BUTTONS ==================== */
.core-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.primary-action-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px var(--primary-glow);
  animation: glow-pulse 4s infinite alternate;
}

.primary-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.primary-action-btn:active {
  transform: translateY(0);
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-action-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
}

.secondary-action-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.outline-action-btn {
  background: none;
  border: 1px dashed rgba(255,255,255,0.15);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-top: 4px;
}

.outline-action-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
}

/* ==================== EXCHANGED CARDS SECTION ==================== */
.exchanged-section {
  margin-top: 24px;
  padding: 16px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.exchanged-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.exchanged-card-item {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--purple);
  display: flex;
  flex-direction: column;
  position: relative;
}

.exch-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exch-name-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.exch-company-title {
  font-size: 11px;
  color: var(--text-muted);
}

.exch-details {
  font-size: 11px;
  color: var(--text-dark);
  margin-top: 4px;
  display: flex;
  gap: 12px;
}

.exch-details a {
  color: var(--text-muted);
  text-decoration: none;
}
.exch-details a:hover {
  color: var(--secondary);
}

.exch-delete-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.exch-delete-btn:hover {
  color: #ef4444;
}

/* ==================== FOOTER ==================== */
.footer {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 8px;
}

.footer p {
  font-size: 10px;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

/* ==================== MODALS & POPUPS ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 30px 24px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-main);
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-action-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-action-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==================== QR MODAL SPECIFIC ==================== */
.qr-code-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px auto;
  background: white;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

#qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.qr-loading-spinner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(37,99,235,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: float 1s infinite linear;
}

.qr-url-text {
  font-size: 11px;
  color: var(--secondary);
  font-family: monospace;
  text-align: center;
  margin-bottom: 20px;
  word-break: break-all;
  opacity: 0.8;
}

/* ==================== VIDEO MODAL SPECIFIC ==================== */
.video-modal-content {
  max-width: 500px !important;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: black;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 12px;
}

.video-caption {
  font-size: 11px;
  color: var(--text-dark);
  text-align: center;
}

/* ==================== EXCHANGE FORM ==================== */
.exchange-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 8px rgba(37,99,235,0.25);
}

/* ==================== STATS MODAL SPECIFIC ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 16px 12px;
  border-radius: 14px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--secondary);
  display: block;
}

.stat-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.simulated-chart-container {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-bars-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 60px;
}

.bar-track {
  flex-grow: 1;
  height: 8px;
  background: rgba(15,23,42,0.8);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.bar-val {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  width: 20px;
  text-align: right;
}

.reset-btn {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  margin-top: 10px;
}
.reset-btn:hover {
  background: #ef4444 !important;
  color: white !important;
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 320px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1),
             fadeIn 0.3s ease-out;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  border-left: 4px solid var(--secondary);
}

.toast.removing {
  opacity: 0;
  transform: translateY(10px);
}

/* ==================== RESPONSIVE LAYOUTS ==================== */
/* For smaller devices / smartphones */
@media (max-width: 480px) {
  html, body {
    align-items: flex-start;
  }
  
  .card-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    min-height: 100vh;
    padding: 20px 16px;
    background: linear-gradient(180deg, rgba(11,15,25,0.95) 0%, rgba(7,10,19,0.98) 100%);
  }

  .glow-bg-1, .glow-bg-2 {
    opacity: 0.25; /* reduce blur opacity on mobile */
  }

  .quick-buttons {
    gap: 8px;
  }

  .action-btn {
    border-radius: 12px;
    padding: 10px 4px;
  }
  
  .btn-icon {
    width: 30px;
    height: 30px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  /* Increase input font size to 16px to prevent auto-zoom jumping and improve readability on mobile */
  .form-group input {
    font-size: 16px !important;
  }
}
