/* member.css - Additional styles for the user-facing application */

/* Mobile Top Header (replaces hamburger menu with profile) */
.mobile-top-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.mobile-top-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  font-family: 'Sora', sans-serif;
  color: var(--blue-900);
  letter-spacing: -0.5px;
}
.mobile-top-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mobile-header-profile {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.mobile-header-profile img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--blue-600);
}

/* Floating Profile Button */
.floating-profile-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: white;
  border: 2px solid var(--blue-600);
  box-shadow: 0 4px 15px rgba(37,99,235,0.2);
  z-index: 100;
  padding: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-profile-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-profile-btn img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .mobile-top-header {
    display: flex;
  }
  .floating-profile-btn {
    display: block; /* It's block but opacity 0 initially */
  }
  .page-container {
    padding-top: 85px !important;
  }
  .dash-header, .menu-header { margin-top: 90px !important; }
  .floating-decorations, .floating-decorations-mix {
    top: -75px !important;
    transform: translateX(-50%) scale(0.8) !important;
  }
}

/* Mobile Bottom Navigation */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  min-width: 44px;
  cursor: pointer;
  border: none;
  background: none;
}

.bottom-nav-item i {
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active {
  color: var(--blue-600);
  background-color: rgba(37, 99, 235, 0.12);
}

.bottom-nav-item.active i {
  color: var(--blue-600);
  transform: scale(1.15);
}

/* Profile avatar in bottom nav */
.bottom-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}
.bottom-nav-item.active .bottom-nav-avatar {
  border-color: var(--blue-600);
}

/* Mobile Profile Sheet (slide-up drawer) */
.mobile-profile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-profile-overlay.open {
  display: block;
}
.mobile-profile-overlay.active {
  opacity: 1;
}
.mobile-profile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.mobile-profile-overlay.active .mobile-profile-sheet {
  transform: translateY(0);
}
.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0 auto 18px;
}
.mobile-sheet-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-sheet-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--blue-600);
  flex-shrink: 0;
}
.mobile-sheet-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.mobile-sheet-level {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mobile-sheet-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.mobile-sheet-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.mobile-sheet-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.mobile-sheet-link:hover {
  background: var(--gray-50);
}
.mobile-sheet-link.active {
  color: var(--blue-600);
  background-color: rgba(37, 99, 235, 0.1);
}
.mobile-sheet-link.active i {
  color: var(--blue-600);
}
.mobile-sheet-link.danger {
  color: #ef4444;
}
.mobile-sheet-link.danger i {
  color: #ef4444;
}
.mobile-sheet-link.danger:hover {
  background: #fef2f2;
}
.mobile-sheet-link:hover,
.mobile-sheet-link:active {
  background: #f8fafc;
}
.mobile-sheet-link i {
  font-size: 20px;
  color: var(--blue-600);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-sheet-link.danger { color: #ef4444; }
.mobile-sheet-link.danger i { color: #ef4444; }
.mobile-sheet-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding-bottom: 160px; /* Space for bottom nav + FAB */
  }
  .bottom-nav {
    display: block;
  }
  .top-header {
    padding: 0 20px;
  }
  .page-container {
    padding: 20px;
  }
  .dashboard-grid, .items-grid {
    grid-template-columns: 1fr;
  }
  .search-bar {
    width: auto;
    flex: 1;
    margin-right: 12px;
  }
  .logo-text {
    display: none; /* Simplify top header if logo is there */
  }
  .mobile-profile-overlay.open {
    display: block;
  }
}

/* Authentication Lock Card */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  flex: 1;
  padding: 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.lock-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-premium);
  text-align: center;
}

.auth-logo {
  width: 72px;
  height: 72px;
  background: var(--grad-vocab);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  margin: 0 auto 24px auto;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #f8fafc;
  color: var(--blue-900);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:hover {
  background-color: #f1f5f9;
  border-color: rgba(37, 99, 235, 0.2);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-600);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

/* Custom Select Dropdown Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}
.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f8fafc;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--blue-900);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.custom-select-trigger:hover {
  background-color: #f1f5f9;
  border-color: rgba(37, 99, 235, 0.2);
}
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--blue-600);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.custom-select-wrapper.open .custom-select-trigger i {
  transform: rotate(180deg);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}
.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.custom-option:hover {
  background: #f1f5f9;
  color: var(--blue-900);
}
.custom-option.selected {
  background: var(--blue-600);
  color: white;
  font-weight: 600;
}


.form-input.error {
  border-color: #f43f5e;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.skeleton-text {
  height: 20px;
  margin-bottom: 10px;
  width: 100%;
}

.skeleton-title {
  height: 32px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-card {
  height: 200px;
  border-radius: 24px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 80px; /* Above bottom nav */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  color: var(--blue-900);
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #f43f5e; }
.toast.warning { border-left: 4px solid #f59e0b; }

/* 30-Day Grid (Zona AI) */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.day-box {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.day-box.completed {
  background: #dcfce7;
  border-color: #166534;
  color: #166534;
  text-decoration: line-through;
}

.day-box.active {
  background: white;
  border-color: var(--blue-600);
  color: var(--blue-600);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.day-box.locked {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-50);
}

.day-box:hover:not(.locked) {
  transform: translateY(-2px);
}

/* Movie Zone Dual Column */
.movie-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

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

.transcript-box {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.transcript-line {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}

.transcript-line:last-child {
  border-bottom: none;
}

.ts-en { font-weight: 600; font-size: 16px; color: var(--blue-900); }
.ts-id { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Test Simulation */
.test-question {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-label:hover {
  background: var(--gray-50);
}

.radio-label input:checked + span {
  font-weight: 700;
  color: var(--blue-600);
}

.radio-label:has(input:checked) {
  border-color: var(--blue-600);
  background: rgba(37, 99, 235, 0.05);
}

/* Embedded Viewer */
.pdf-viewer-container {
  width: 100%;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--gray-50);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Banner Placement */
.placement-banner {
  background: var(--grad-bonus);
  color: white;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.placement-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.placement-banner .btn-outline {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.placement-banner .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.placement-banner .btn-outline:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 600px) {
  .placement-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Offline Banner */
.offline-banner {
  display: none;
  background-color: #f43f5e;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
}

/* ═══════════════════════════════════════════════════ */
/* WhatsApp Floating Action Button (Admin Konsul)     */
/* ═══════════════════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: 3px solid rgba(255,255,255,0.3);
  animation: waPulse 2s infinite;
}
.wa-fab:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
.wa-fab:active {
  transform: scale(0.95);
}
.wa-fab-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.wa-fab-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #0f172a;
}
.wa-fab:hover .wa-fab-tooltip {
  opacity: 1;
}

@keyframes waPulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
}

@media (max-width: 768px) {
  .wa-fab {
    bottom: 84px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  .wa-fab-tooltip { display: none; }
}

/* ═══════════════════════════════════════════════════ */
/* Custom Scrollbar (Webkit)                          */
/* ═══════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ═══════════════════════════════════════════════════ */
/* Focus-Visible for Keyboard Accessibility           */
/* ═══════════════════════════════════════════════════ */
*:focus-visible {
  outline: 2px solid var(--blue-600, #2563EB);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue-600, #2563EB);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════ */
/* Responsive Fixes (Test Simulation, Prep Box)       */
/* ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .prep-header-box {
    flex-direction: column;
    gap: 24px;
  }
  .prep-h-right {
    flex-direction: row;
    gap: 12px;
  }
  .soon-layout {
    flex-direction: column;
  }
  .soon-right {
    border-radius: 0 0 24px 24px;
  }
}

/* ═══════════════════════════════════════════════════ */
/* Progress Calendar Mini                             */
/* ═══════════════════════════════════════════════════ */
.calendar-section {
  margin-top: 32px;
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-premium, 0 12px 40px rgba(37,99,235,.08));
  border: 1px solid var(--border-color, #e2e8f0);
}
.calendar-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.calendar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-900, #1e3a8a);
  font-family: 'Sora', sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-nav {
  display: flex;
  gap: 8px;
}
.calendar-nav-btn {
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.2s;
}
.calendar-nav-btn:hover {
  background: var(--blue-600, #2563eb);
  color: white;
  border-color: var(--blue-600, #2563eb);
}
.calendar-nav-btn:disabled,
.calendar-nav-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--gray-50, #f8fafc);
  color: var(--text-muted, #64748b);
  border-color: var(--border-color, #e2e8f0);
}
.calendar-nav-btn:disabled:hover,
.calendar-nav-btn[aria-disabled="true"]:hover {
  transform: none;
  background: var(--gray-50, #f8fafc);
  color: var(--text-muted, #64748b);
  border-color: var(--border-color, #e2e8f0);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.calendar-loading,
.calendar-load-error {
  grid-column: 1 / -1;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted, #64748b);
  font-size: 14px;
  font-weight: 600;
}
.calendar-loading i {
  color: var(--blue-600, #2563eb);
  font-size: 20px;
  animation: calendar-spin 0.9s linear infinite;
}
@keyframes calendar-spin {
  to { transform: rotate(360deg); }
}
.calendar-load-error {
  min-height: 52px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}
.slide-left-out { transform: translateX(-20px); opacity: 0; }
.slide-right-out { transform: translateX(20px); opacity: 0; }
.slide-left-in { transform: translateX(20px); opacity: 0; animation: slideIn 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1); }
.slide-right-in { transform: translateX(-20px); opacity: 0; animation: slideIn 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slideIn {
  to { transform: translateX(0); opacity: 1; }
}
.cal-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600, #2563eb);
  text-align: center;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  background: var(--gray-50, #f8fafc);
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  user-select: none;
  perspective: 1000px;
}
.cal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .cal-day.has-history:hover .cal-inner {
    transform: rotateY(180deg);
  }
}
.cal-front, .cal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: inherit;
  color: inherit;
}
.cal-back {
  background: var(--blue-600, #2563eb);
  color: white;
  transform: rotateY(180deg);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.cal-day:hover:not(.empty) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.cal-front {
  background: #fff;
}
.cal-day.no-history .cal-front {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.cal-day:hover:not(.empty) .cal-front {
  color: var(--blue-900, #1e3a8a);
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.cal-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}
.cal-day.empty .cal-front {
  background: transparent;
}
.cal-day.active .cal-front {
  background: #dbeafe;
  color: #2563eb;
  border-color: #93c5fd;
  font-weight: 800;
}
.cal-day.done .cal-front {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.cal-day.done.has-history .cal-back {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.cal-day.done::after {
  content: '\2713';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 10px;
  color: white;
  background: #f59e0b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}
.cal-day.today .cal-front {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}
.cal-day.today::before {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border: 2px solid #3b82f6;
  border-radius: 18px;
  opacity: 0.5;
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ═══════════════════════════════════════════════════ */
/* Bonus Category Filter Pills (CSS Classes)          */
/* ═══════════════════════════════════════════════════ */
.filter-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.filter-pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.filter-pill[hidden] {
  display: none;
}
.filter-pill:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
.filter-pill.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Glass panel filter transition */
.glass-panel.filter-hidden {
  display: none;
}
.glass-panel.filter-show {
  animation: fadeUp 0.4s ease forwards;
}

/* ═══════════════════════════════════════════════════ */
/* Login Decorative Elements                          */
/* ═══════════════════════════════════════════════════ */
.auth-wrapper {
  position: relative;
  overflow: hidden;
}
.auth-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}
.auth-decor-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  top: -150px;
  left: -150px;
  filter: blur(80px);
}
.auth-decor-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  bottom: -100px;
  right: -100px;
  filter: blur(80px);
}
.auth-decor-3 {
  width: 200px;
  height: 200px;
  background: #34d399;
  top: 40%;
  right: 10%;
  filter: blur(80px);
}
.auth-footer-text {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}
.auth-footer-text strong {
  color: var(--blue-900);
}

.login-submit-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 52px;
}

.login-submit-btn .login-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.18) 35%, rgba(255,255,255,0.42) 50%, rgba(255,255,255,0.18) 65%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.login-btn-spinner {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.42);
  border-top-color: white;
  display: none;
  animation: loginSpin 0.75s linear infinite;
}

.login-submit-btn.is-loading {
  cursor: progress;
  box-shadow: 0 12px 28px rgba(124, 83, 238, 0.32), 0 0 0 1px rgba(255,255,255,0.18) inset !important;
}

.login-submit-btn.is-loading .login-btn-shine {
  opacity: 1;
  animation: loginShine 1.15s ease-in-out infinite;
}

.login-submit-btn.is-loading .login-btn-spinner {
  display: inline-block;
}

.login-submit-btn.is-loading .login-btn-arrow {
  opacity: 0;
  transform: translateX(8px);
  width: 0;
  margin-left: -10px;
}

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

@keyframes loginShine {
  to { transform: translateX(120%); }
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.password-toggle:hover {
  color: var(--blue-600);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s;
}
.step-dot.active {
  width: 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.step-dot.done {
  background: #10b981;
}
/* ═══════════════════════════════════════════════════ */
/* History Modal (Mobile)                             */
/* ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.history-modal-content {
  background: white;
  width: 90%;
  max-width: 460px;
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .history-modal-content {
  transform: translateY(0) scale(1);
}
.history-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50, #f8fafc);
}
.history-modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-900, #1e3a8a);
  margin: 0;
}
.history-modal-body {
  padding: 24px;
  text-align: center;
  overflow-y: auto;
}
.hm-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.hm-desc {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin-bottom: 20px;
  line-height: 1.5;
}
.hm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.hm-summary-item {
  padding: 12px;
  background: var(--gray-50, #f8fafc);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900, #1e3a8a);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.hm-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-summary-icon i {
  color: var(--blue-600, #2563eb);
  font-size: 18px;
}
.hm-summary-main {
  min-width: 0;
}
.hm-summary-main strong {
  display: block;
  font-size: 14px;
  color: var(--blue-900, #1e3a8a);
  margin-bottom: 4px;
}
.hm-samples {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hm-samples span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-summary-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Premium Floating Action Button for Bank Vocab */
.vocab-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseVocabFab 2s infinite;
}

.vocab-fab:hover {
  transform: translateY(-8px) scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 35px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.5);
  animation: none;
}

.vocab-fab:active {
  transform: translateY(2px) scale(0.95);
}

.vocab-fab i {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

.vocab-fab:hover i {
  transform: scale(1.1);
}

@keyframes pulseVocabFab {
  0% { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 768px) {
  .vocab-fab {
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
  .vocab-fab i {
    font-size: 26px;
  }
  .vocab-fab:hover {
    transform: translateY(-4px) scale(1.05);
  }
}

/* ═══════════════════════════════════════════════════ */
/* Global Premium Modal Styles (Zona Kata Modal)       */
/* ═══════════════════════════════════════════════════ */
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.show .modal-box {
  transform: translateY(0);
}

.modal-box {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
  overflow: hidden;
}

.premium-modal {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px -12px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.05);
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.premium-modal .modal-body {
  padding: 24px 28px 28px 28px;
}

.premium-modal .modal-header {
  border-bottom: none;
  padding: 24px 24px 20px 24px;
  background: linear-gradient(180deg, #ecfdf5 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
  margin: -4px -4px 0 -4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon-bg {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.premium-modal h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.premium-modal .btn-close {
  background: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.premium-modal .btn-close:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* Premium Inputs */
.premium-input {
  margin-bottom: 20px;
}

.premium-input label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
  display: block;
}

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

.premium-modal .input-wrapper i:first-child {
  position: absolute;
  left: 16px;
  top: 14px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
}

.premium-modal .input-wrapper input, 
.premium-modal .input-wrapper textarea, 
.premium-modal .input-wrapper select {
  width: 100%;
  padding: 12px 16px 12px 44px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.premium-modal .input-wrapper textarea {
  min-height: 80px;
  resize: vertical;
}

.premium-modal .input-wrapper input:focus, 
.premium-modal .input-wrapper textarea:focus, 
.premium-modal .input-wrapper select:focus {
  background: white;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  outline: none;
}

.premium-modal .custom-select-display {
  width: 100%;
  padding: 12px 16px 12px 44px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
}

.select-wrapper.active .custom-select-display {
  background: white;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.select-caret {
  position: absolute;
  right: 16px;
  top: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: transform 0.2s;
}

.select-wrapper.active .select-caret {
  transform: rotate(180deg);
}

.v-dropdown-menu {
  position: absolute;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s;
}

.v-dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.v-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: 0.2s;
}

.v-dropdown-item:hover, .v-dropdown-item.active {
  background: #f8fafc;
  color: #10b981;
  font-weight: 600;
}

.btn-submit-premium {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.6);
}

/* ChatGPT third-party disclosure */
.chatgpt-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.66);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chatgpt-consent-overlay.is-visible {
  opacity: 1;
}

.chatgpt-consent-card {
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.chatgpt-consent-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.chatgpt-consent-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 25px;
}

.chatgpt-consent-eyebrow {
  margin: 0 0 3px;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.chatgpt-consent-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.chatgpt-consent-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
}

.chatgpt-consent-close:hover,
.chatgpt-consent-close:focus-visible {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.chatgpt-consent-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}

.chatgpt-consent-body p {
  margin: 0;
}

.chatgpt-consent-body strong {
  color: #0f172a;
}

.chatgpt-consent-warning {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.55;
}

.chatgpt-consent-warning i {
  margin-top: 1px;
  color: #d97706;
  font-size: 20px;
}

.chatgpt-consent-policy a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatgpt-consent-policy i {
  font-size: 13px;
}

.chatgpt-consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.chatgpt-consent-check:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.chatgpt-consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #2563eb;
}

.chatgpt-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.chatgpt-consent-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.chatgpt-consent-cancel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.chatgpt-consent-continue {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.chatgpt-consent-actions button:hover:not(:disabled),
.chatgpt-consent-actions button:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.chatgpt-consent-continue:disabled {
  border-color: #cbd5e1;
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .chatgpt-consent-overlay {
    align-items: end;
    padding: 12px;
  }

  .chatgpt-consent-header {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    gap: 11px;
    padding: 20px 18px 17px;
  }

  .chatgpt-consent-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .chatgpt-consent-header h2 {
    font-size: 18px;
  }

  .chatgpt-consent-body {
    gap: 13px;
    padding: 18px;
    font-size: 13px;
  }

  .chatgpt-consent-actions {
    flex-direction: column-reverse;
    padding: 14px 18px 18px;
  }

  .chatgpt-consent-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatgpt-consent-overlay {
    transition: none;
  }
}
