/* ========================================
   HOME PAGE STYLES - Visa Work & Holiday
   ======================================== */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(249,115,22,.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(59,130,246,.06) 0%, transparent 40%);
  animation: heroFloat 25s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 28px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-stat:last-child { border-bottom: none; }

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-stat-text { flex: 1; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.7; }
.hero-stat-value { font-size: 1.1rem; font-weight: 700; }

/* Card Icons */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Highlight Badges */
.highlight {
  background: var(--accent);
  color: white;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}

.highlight-green { background: var(--green); }
.highlight-blue { background: var(--blue); }
.highlight-purple { background: var(--purple); }

/* Info Box */
.info-box {
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 24px;
  border-left: 4px solid;
}

.info-box p { font-size: 0.95rem; line-height: 1.7; }
.info-box.green { background: var(--green-light); border-color: var(--green); }
.info-box.blue { background: var(--blue-light); border-color: var(--blue); }
.info-box.yellow { background: var(--yellow-light); border-color: var(--yellow); }
.info-box.red { background: var(--red-light); border-color: var(--red); }

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--blue), var(--green));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 2;
  transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  color: white;
  transform: scale(1.2);
}

.timeline-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-card {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.timeline-card .step-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-details {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.9rem;
}

.step-details ul { padding-left: 20px; margin-top: 8px; }
.step-details li { margin-bottom: 6px; color: var(--text-secondary); }
.step-details li strong { color: var(--text); }

/* Costs Grid */
.costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.cost-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.cost-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cost-card .cost-emoji { font-size: 2rem; margin-bottom: 12px; }
.cost-card .cost-name { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.cost-card .cost-amount { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.cost-card.important { border: 2px solid var(--accent); }

/* Calculator */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.calc-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-results {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child { border-bottom: none; }
.result-item .label { color: var(--text-secondary); font-size: 0.88rem; }
.result-item .value { font-weight: 700; color: var(--text); }

.result-total {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  color: white;
  text-align: center;
}

.result-total .total-label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-total .total-amount {
  font-size: 2.5rem;
  font-weight: 900;
  margin-top: 4px;
}

.result-total .total-sol {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* Checklist */
.checklist-progress {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.progress-bar {
  height: 12px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.checklist-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.checklist-item:hover { box-shadow: var(--shadow-md); }

.checklist-item.checked {
  background: var(--green-light);
  border-color: #86efac;
}

.checklist-item .checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.8rem;
  color: transparent;
  margin-top: 2px;
}

.checklist-item.checked .checkbox {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.checklist-item .check-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.checklist-item .check-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checklist-item.checked .check-content h4 {
  text-decoration: line-through;
  color: var(--green);
}

/* Recommendations Panel */
.reco-panel {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  margin-top: 32px;
}

.reco-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reco-list { display: grid; gap: 12px; }

.reco-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  transition: all 0.2s;
}

.reco-item:hover { background: rgba(255,255,255,.1); }

.reco-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.reco-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.reco-item p { font-size: 0.85rem; opacity: 0.8; }
.reco-item a { color: var(--accent-light); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.reco-item a:hover { text-decoration: underline; }

/* Insurance Cards */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.insurance-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.insurance-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.insurance-card.popular {
  border-color: var(--accent);
  position: relative;
}

.insurance-card.popular::after {
  content: 'Popular';
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.insurance-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.insurance-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.insurance-card .price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.insurance-card ul {
  list-style: none;
  padding: 0;
}

.insurance-card ul li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.insurance-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.tip-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.tip-card:hover { box-shadow: var(--shadow-lg); }
.tip-card .tip-icon { font-size: 2rem; margin-bottom: 16px; }
.tip-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.tip-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.tip-card.danger { border-left: 4px solid var(--red); }
.tip-card.success { border-left: 4px solid var(--green); }
.tip-card.warning { border-left: 4px solid var(--yellow); }
.tip-card.info { border-left: 4px solid var(--blue); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg); }

.faq-question .faq-arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* IELTS Courses Section */
.courses-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }

.course-tab {
  padding: 12px 24px; border-radius: 50px; border: 2px solid var(--border);
  background: white; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}

.course-tab:hover { border-color: var(--accent); color: var(--accent); }
.course-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

.course-content { display: none; }
.course-content.active { display: block; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.course-card {
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
}

.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.course-card-header { padding: 24px; color: white; position: relative; }
.course-card-header h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.course-card-header p { font-size: 0.85rem; opacity: 0.9; }

.course-card-body { padding: 24px; }
.course-card-body ul { list-style: none; padding: 0; }
.course-card-body ul li { padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; }
.course-card-body ul li::before { content: '✓'; color: var(--green); font-weight: 700; margin-top: 2px; }

.course-card-footer { padding: 0 24px 24px; }

.course-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}

.course-link:hover { color: var(--accent-dark); gap: 10px; }

/* Responsive Home */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 24px 60px;
  }

  .hero-text h1 { font-size: 2.5rem; }
  .hero-visual { display: none; }
  .calc-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .checklist-grid { grid-template-columns: 1fr; }
  .costs-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
}

/* Carta MRE & Vuelos Responsive */
@media (max-width: 768px) {
  #carta-mre .card > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #carta-mre .card > div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .nav-inner { padding: 0 12px; }
  .nav-link { padding: 14px 8px; font-size: 0.78rem; }
  .table-wrapper { overflow-x: auto; }
}

@media (max-width: 480px) {
  #carta-mre .card > div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  #carta-mre .info-box ul { padding-left: 16px; }
}

/* ========================================
   LOGIN MODAL STYLES
   ======================================== */

.login-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.login-modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.login-close:hover {
  background: var(--red-light);
  color: var(--red);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.login-logo span { color: var(--accent); }

.login-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.login-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-google-btn {
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s;
}

.login-google-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 16px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.login-form .form-group {
  margin-bottom: 16px;
}

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

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.login-submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* User Menu in Nav */
.user-menu {
  display: none;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



/* User Dropdown */
.user-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.2s;
  position: relative;
}

.user-dropdown:hover {
  background: rgba(249,115,22,.08);
}

.user-dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  border: 1px solid var(--border);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  z-index: 100;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--bg);
}

.dropdown-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.dropdown-logout {
  color: var(--red) !important;
}

.dropdown-logout:hover {
  background: var(--red-light) !important;
}

@media (max-width: 768px) {
  .login-modal-content {
    padding: 28px 24px;
    margin: 16px;
  }
  .user-name { display: none; }
  .nav-inner { overflow-x: auto; }
  .user-dropdown-menu { position: fixed; right: 16px; top: 56px; min-width: 180px; }
}
