/* ============================================================
   Alex Guru — Progress System CSS
   Reflection block (уроки) + Dashboard (личный кабинет)
   ============================================================ */

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/media/vendor/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"),
       url("/media/vendor/fontawesome-free/webfonts/fa-solid-900.ttf") format("truetype");
}

/* === БЛОК РЕФЛЕКСИИ === */
.ag-reflection-block {
  max-width: 1320px;
  margin: 0 auto 50px;
  background-color: rgba(255, 255, 255, 0.5);
  padding-top: 50px;
  padding-right: 9%;
  padding-bottom: 50px;
  padding-left: 9%;
  border-radius: 15px;
  box-shadow: 0px 5px 10px 0px rgba(108, 91, 0, 0.3);
  font-family: inherit;
}

.ag-ref-header {
  margin-bottom: 36px;
}

.ag-ref-title {
  font-size: 30px;
  font-weight: 700;
  color: #382616;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

/* --- Checklist 2 columns --- */
.ag-ref-checklist {
  display: flex;
  align-items: stretch;
  margin-bottom: 36px;
}

.ag-checklist-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
}

.ag-checklist-col-title {
  font-size: 18px;
  font-weight: 600;
  color: #382616;
  margin-bottom: 18px;
}

.ag-checklist-divider {
  width: 1px;
  background: rgba(56, 38, 22, 0.2);
  align-self: stretch;
  flex-shrink: 0;
}

/* --- Toggles --- */
.ag-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ag-toggle-input { display: none; }

.ag-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: #ddd;
  border-radius: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ag-toggle-slider::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.ag-toggle-input:checked + .ag-toggle-slider          { background: #4CAF50; }
.ag-toggle-input:checked + .ag-toggle-slider::after   { transform: translateX(24px); }

.ag-toggle-label { font-size: 0.95rem; color: #444; text-align: center; }

/* Celebrate animation */
@keyframes ag-celebrate {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,80,.4); }
  70%  { box-shadow: 0 0 0 14px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}
.ag-celebrate .ag-toggle-slider { animation: ag-celebrate 0.8s ease-out; }

/* --- Understanding --- */
.ag-ref-understanding {
  border-top: 1px solid rgba(56, 38, 22, 0.15);
  padding-top: 28px;
  margin-bottom: 36px;
}

.ag-ref-understanding-title {
  font-size: 24px;
  font-weight: 600;
  color: #382616;
  text-align: center;
  margin: 0 0 20px;
}

.ag-understanding-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ag-und-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s;
}

.ag-und-btn:hover { background: rgba(255, 255, 255, 0.9); border-color: #c5a87a; }

.ag-und-btn[data-value="repeat"].ag-und-active       { border-color: #FF9800; background: #FFF3E0; color: #E65100; }
.ag-und-btn[data-value="implementing"].ag-und-active  { border-color: #2196F3; background: #E3F2FD; color: #0D47A1; }
.ag-und-btn[data-value="master"].ag-und-active        { border-color: #4CAF50; background: #E8F5E9; color: #1B5E20; }

.ag-und-emoji { font-size: 1.6rem; line-height: 1; }
.ag-und-text  { font-size: 0.9rem; font-weight: 500; color: inherit; }

/* --- Note wrap --- */
.ag-ref-note-wrap {
  border-top: 1px solid rgba(56, 38, 22, 0.15);
  padding-top: 28px;
  margin-bottom: 28px;
}

.ag-ref-note-title {
  font-size: 24px;
  font-weight: 600;
  color: #382616;
  text-align: center;
  margin: 0 0 16px;
}

.ag-note-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid rgba(56, 38, 22, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  overflow: hidden;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.6);
}
.ag-note-textarea:focus { outline: none; border-color: #c5a87a; }

.ag-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  margin-top: 4px;
}
.ag-save-indicator { font-size: 0.78rem; color: #aaa; }
.ag-saving { color: #FB8C00; }
.ag-saved  { color: #4CAF50; }

.ag-note-counter {
  font-size: 0.75rem;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.ag-note-counter-warn  { color: #FB8C00; }
.ag-note-counter-limit { color: #E53935; font-weight: 600; }

/* --- Actions --- */
.ag-ref-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}

.ag-actions-divider {
  width: 1px;
  height: 36px;
  background: rgba(56, 38, 22, 0.2);
  margin: 0 20px;
  flex-shrink: 0;
}

.ag-favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ag-heart-icon                { fill: #ddd; transition: fill 0.15s; }
.ag-fav-active .ag-heart-icon { fill: #E53935; }

.ag-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #412d1b;
  color: #f5e8cb;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  padding: 9px 26px;
  border: 1px solid #412d1b;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0px 2px 5px 0px rgba(65, 45, 27, 0.3);
  transition: background-color 0.2s, color 0.2s;
}
.ag-next-btn:hover {
  background-color: rgba(65, 45, 27, 0);
  color: rgb(65, 45, 27);
  text-decoration: none;
}

/* --- Offline badge --- */
.ag-offline-badge {
  margin-top: 20px;
  padding: 8px 12px;
  background: #FFF3E0;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #E65100;
}

/* --- Toast --- */
.ag-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 9999;
}
.ag-toast-visible { opacity: 1; pointer-events: auto; }

/* --- Tablet --- */
@media (max-width: 1024px) {
  .sp-module-content-bottom { padding: 0 9%; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .sp-module-content-bottom { padding: 0 10px; }

  .ag-reflection-block {
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 36px;
  }

  .ag-ref-checklist {
    flex-direction: column;
    gap: 0;
  }

  .ag-checklist-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }

  .ag-ref-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .ag-actions-divider {
    display: none;
  }
}

/* ============================================================
   ДАШБОРД (личный кабинет)
   ============================================================ */
.ag-page-title {
  text-align: center;
  border-bottom: 1px solid rgba(65, 45, 27, 0.3);
  padding-bottom: 50px;
  margin-bottom: 24px;
}
.ag-dashboard { max-width: 1320px; margin: 0 auto; padding: 24px; }

/* --- Вкладки --- */
.ag-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 28px;
}

.ag-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.ag-tab-active, .ag-tab:hover { color: #1976D2; border-bottom-color: #1976D2; }

/* --- Hero --- */
.ag-hero {
  background: linear-gradient(135deg, #634012, #8b622c);
  border-radius: 12px;
  padding: 28px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ag-hero-text { font-size: 1.15rem; font-weight: 500; }

.ag-continue-btn {
  padding: 12px 24px;
  background: #fff;
  color: #634012;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.1s;
}
.ag-continue-btn:hover { transform: scale(1.03); color: #634012; }

/* --- Widgets row --- */
.ag-widgets-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ag-widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.ag-widget-ring { gap: 6px; }
.ag-ring-wrap  { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ag-ring-svg   { display: block; transform: rotate(-90deg); }
.ag-ring-bg    { fill: none; stroke: #f0f0f0; stroke-width: 8; }
.ag-ring-fill  {
  fill: none;
  stroke: #1976D2;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.ag-ring-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem; font-weight: 700; color: #634012;
  pointer-events: none;
}
.ag-ring-sub   { font-size: 0.75rem; color: #888; }

.ag-stat-icon  { font-size: 1.8rem; line-height: 1; }
.ag-stat-count,
.ag-streak-count { font-size: 1.6rem; font-weight: 700; color: #382616; line-height: 1.1; }
.ag-stat-label,
.ag-streak-label { font-size: 1rem; color: #999; line-height: 1.2; }

/* Tablet — 3 в ряду */
@media (max-width: 1024px) {
  .ag-widgets-row { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile — 2 в ряду */
@media (max-width: 600px) {
  .ag-widgets-row { grid-template-columns: repeat(2, 1fr); }
}

/* --- Course tree --- */
.ag-course-tree { margin-top: 32px; }

.ag-course-item {
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e0d4;
  box-shadow: 0 2px 8px rgba(56,38,22,.07);
  overflow: hidden;
}

.ag-course-header {
  padding: 18px 22px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.ag-course-header:hover { background: #fdf9f4; }
.ag-course-header:focus { outline: none; }

.ag-course-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ag-course-titles { flex: 1; min-width: 0; }

.ag-course-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(56,38,22,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

.ag-course-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #382616;
  line-height: 1.35;
}

.ag-course-arrow {
  font-size: 11px;
  color: rgba(56,38,22,.35);
  flex-shrink: 0;
  padding-top: 5px;
  transition: transform 0.2s;
}
.ag-course-header[aria-expanded="true"] .ag-course-arrow { transform: rotate(90deg); }

/* Shared progress bar */
.ag-course-bar-wrap,
.ag-level-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ag-progress-bar {
  flex: 1;
  height: 7px;
  background: rgba(56,38,22,.1);
  border-radius: 4px;
  overflow: hidden;
}
.ag-progress-bar-sm { height: 4px; }

.ag-bar-fill {
  height: 100%;
  background: #6f9e3f;
  border-radius: 4px;
  transition: width 0.7s ease;
  width: 0%;
}

.ag-bar-stat {
  font-size: 12px;
  color: rgba(56,38,22,.5);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 44px;
  text-align: right;
}
.ag-bar-stat-sm { font-size: 11px; min-width: 36px; }

/* Course body */
.ag-course-body { padding: 4px 22px 20px; }

/* Level */
.ag-level-item { margin-bottom: 24px; }
.ag-level-item:last-child { margin-bottom: 0; }

.ag-level-header { margin-bottom: 6px; }

.ag-level-titles {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}

.ag-level-num {
  font-size: 14px;
  font-weight: 700;
  color: rgba(56,38,22,.4);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ag-level-name {
  font-size: 16px;
  font-weight: 600;
  color: #382616;
  line-height: 1.3;
}

.ag-level-divider {
  border: none;
  border-top: 1px solid rgba(56,38,22,.1);
  margin: 8px 0 6px;
}

/* Lesson rows */
.ag-lessons-list { display: flex; flex-direction: column; }

.ag-lesson-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: #382616;
  font-size: 16px;
  line-height: 1.4;
  transition: background 0.12s;
}
.ag-lesson-row:hover { background: rgba(56,38,22,.05); text-decoration: none; }
.ag-lesson-row.ag-lesson-done .ag-lesson-title { color: rgba(56,38,22,.5); }

.ag-lesson-title { flex: 1; min-width: 0; }

.ag-lesson-icons {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}

.ag-icon-theory,
.ag-icon-practice {
  font-size: 13px;
  color: rgba(56,38,22,.25);
  width: 18px;
  text-align: center;
  transition: color 0.15s;
}
.ag-icon-theory.ag-icon-done,
.ag-icon-practice.ag-icon-done { color: #6f9e3f; font-weight: 700; }

.ag-icon-und {
  font-size: 12px;
  width: 22px;
  text-align: center;
  color: rgba(56,38,22,.3);
}
.ag-und-repeat        { color: #e67e22; }
.ag-und-implementing  { color: #3498db; }
.ag-und-master        { color: #f0b429; }

/* Inline note bar */
.ag-lesson-wrap { display: flex; flex-direction: column; }

.ag-note-bar {
  padding: 0 8px 2px;
}

.ag-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgb(56 38 22 / 60%);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
  line-height: 1.4;
}
.ag-note-toggle:hover { color: #382616; background: rgba(56,38,22,.07); }

.ag-note-arrow {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.15s;
}

.ag-note-panel {
  margin: 2px 8px 6px;
  background: rgba(255,248,230,.7);
  border-left: 3px solid #c5a87a;
  border-radius: 0 6px 6px 0;
  font-size: 16px;
  color: #4a3520;
  line-height: 1.55;
  word-break: break-word;
  padding: 15px 12px;
}

/* Legacy compat */
.ag-lesson-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}
.ag-lesson-item:last-child { border-bottom: none; }
.ag-lesson-item:hover      { color: #1976D2; }
.ag-lesson-done            { color: #4CAF50; }

/* --- Notes --- */
.ag-notes-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.ag-filter-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.ag-filter-active { background: #1976D2; color: #fff; border-color: #1976D2; }

.ag-note-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.ag-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ag-note-course  { font-weight: 600; color: #1976D2; }
.ag-note-status  { margin-left: auto; }
.ag-note-text    { font-size: 0.95rem; color: #333; line-height: 1.6; margin-bottom: 12px; white-space: pre-wrap; }
.ag-note-link    { font-size: 0.85rem; color: #1976D2; text-decoration: none; }
.ag-note-link:hover { text-decoration: underline; }

/* --- Favorites page --- */
.ag-favorites { max-width: 1320px; margin: 0 auto; padding: 24px; }

.ag-fav-empty {
  color: #aaa;
  font-size: 1rem;
  padding: 40px 0;
  text-align: center;
}

.ag-fav-list { display: flex; flex-direction: column; gap: 12px; }

.ag-fav-group {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56,38,22,.07);
  overflow: hidden;
}

.ag-fav-group-header {
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(56,38,22,.08);
  background: #fdf9f4;
}

.ag-fav-group-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(56,38,22,.45);
}

.ag-fav-crumb-sep { color: rgba(56,38,22,.25); }

.ag-fav-group-name {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 600;
  color: #382616;
  line-height: 1.3;
}

.ag-fav-lesson {
  padding: 4px 0;
  border-bottom: 1px solid rgba(56,38,22,.06);
}
.ag-fav-lesson:last-child { border-bottom: none; }

.ag-fav-lesson-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 6px;
}

.ag-fav-lesson-link {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #382616;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.12s;
}
.ag-fav-lesson-link:hover { color: #835a2d; text-decoration: none; }

.ag-fav-heart {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: opacity 0.15s, transform 0.15s;
}
.ag-fav-heart svg { display: block; fill: #E53935; }
.ag-fav-heart:hover  { opacity: .7; transform: scale(1.15); }
.ag-fav-heart:disabled { opacity: .35; cursor: default; transform: none; }

/* Note wrap inside favorites */
.ag-fav-note-wrap { padding: 0 20px 6px; }

/* --- In Progress page --- */
.ag-inprogress { max-width: 1320px; margin: 0 auto; padding: 24px; }

.ag-inp-empty {
  color: #aaa;
  font-size: 1rem;
  padding: 40px 0;
  text-align: center;
}

.ag-inp-count {
  font-size: 18px;
  color: rgba(56,38,22,.45);
  margin-bottom: 16px;
}

.ag-inp-list { display: flex; flex-direction: column; gap: 12px; }

.ag-inp-group {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56,38,22,.07);
  overflow: hidden;
}

.ag-inp-lesson {
  padding: 4px 0;
  border-bottom: 1px solid rgba(56,38,22,.06);
}
.ag-inp-lesson:last-child { border-bottom: none; }

.ag-inp-lesson-main {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 4px;
}

.ag-inp-lesson-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ag-inp-lesson-link {
  font-size: 16px;
  color: #382616;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.12s;
}
.ag-inp-lesson-link:hover { color: #835a2d; text-decoration: none; }

.ag-inp-gaps {
  font-size: 14px;
  color: #e67e22;
  font-weight: 500;
}

/* --- Artifacts --- */
.ag-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.ag-artifact-item         { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; }
.ag-artifact-item img     { width: 100%; height: 100%; object-fit: cover; }
.ag-artifact-locked img   { filter: grayscale(100%) blur(2px); }
.ag-artifact-lock-icon    {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.ag-artifacts-coming      { color: #888; font-size: 0.95rem; padding: 24px 0; }

/* --- Общие утилиты --- */
.ag-loading { color: #aaa; font-size: 0.9rem; padding: 16px 0; }
.ag-empty   { color: #aaa; font-size: 0.9rem; padding: 16px 0; }
.ag-error   { color: #E53935; font-size: 0.85rem; }

/* --- Login prompt (для незарегистрированных) --- */
.ag-login-prompt {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a2e;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
}
.ag-login-prompt-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ag-login-prompt-btn {
  padding: 7px 16px;
  background: #1976D2;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}
.ag-login-prompt-btn:hover { background: #1565C0; color: #fff; }
.ag-login-prompt-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 4px;
}
.ag-login-prompt-close:hover { color: #fff; }

@media (max-width: 600px) {
  .ag-login-prompt {
    left: 16px;
    right: 16px;
    transform: translateY(20px);
    white-space: normal;
  }
  .ag-login-prompt-visible { transform: translateY(0); }
}
