/* Roadmap Progress */
.roadmap-progress-compact {
  max-width: 410px;
  margin: auto auto 0;
}

.roadmap-progress-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px 28px;
  border: 1px solid #e5e7eb;
}

.progress-info {
  text-align: left;
  flex-grow: 1;
  min-width: 0;
}

.progress-info h3 {
  width: fit-content;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.tasks-text {
  font-weight: 500;
}

.privacy-badge {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #c6deff;
  color: #1d4ed8;
}

.progress-circle-small {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-left: auto;
}

.progress-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle-bg {
  cx: 50;
  cy: 50;
  r: 44;
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 7;
}

.progress-circle-fg {
  cx: 50;
  cy: 50;
  r: 44;
  fill: none;
  stroke: url(#gradient);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 1s ease-out;
}

.progress-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.progress-center-text strong {
  font-size: 1.75rem;
  line-height: 1;
}

.progress-center-text small {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 2px;
}

#reset-roadmap-progress {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reset-roadmap-progress:hover {
  color: #ef4444;
}

@media (max-width: 370px) {
  .roadmap-progress-bar {
    display: block;
  }

  .progress-info h3 {
    margin: 0 auto 8px;
  }

  .progress-info {
    text-align: center;
  }

  .progress-circle-small {
    margin: 10px auto 0;
  }
}

/* Roadmap Tabs */
#roadmap {
  width: 100%;
}

#roadmap .tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  flex-wrap: nowrap;
}

#roadmap .tab-wrapper {
  display: flex;
}

#roadmap input[type="radio"] {
  display: none;
}

#roadmap .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 40px;
  padding: 0 18px;

  font-size: 0.95rem;
  font-weight: 600;

  background: #ffffff;
  color: #3067b3;

  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  cursor: pointer;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 10px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

#roadmap .tab:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08);
  background-color: #f9fbff;
  border-color: rgba(24, 94, 224, 0.3);
}

#roadmap .tab:active {
  transform: translateY(0);

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08);
}

#roadmap input[type="radio"]:checked + .tab {
  background-color: hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 45) / var(--tw-bg-opacity));
  border-color: rgba(24, 94, 224, 0.6);
  color: #fff;
  box-shadow:
    0 2px 6px rgba(24, 94, 224, 0.35);
}

#roadmap .tab-separator {
  color: #9ca3af;
  font-size: 1.8rem;
  user-select: none;
}

@media (max-width: 530px) {
  #roadmap .tabs {
    display: grid;
    grid-template-columns: auto 10px auto;
    grid-template-rows: auto 10px auto;
  }

  #roadmap .tabs > .tab-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #roadmap .tab {
    min-width: 84px;
    width: auto;
    box-sizing: border-box;
  }

  #roadmap .tabs > .tab-wrapper:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  #roadmap .tabs > .tab-separator:nth-of-type(1)   { grid-column: 2; grid-row: 1; justify-self: center; }
  #roadmap .tabs > .tab-wrapper:nth-of-type(2) { grid-column: 3; grid-row: 1; }

  #roadmap .tabs > .tab-separator:nth-of-type(2) {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
    transform: rotate(90deg);
    transform-origin: center;
  }

  #roadmap .tabs > .tab-wrapper:nth-of-type(4) { grid-column: 1; grid-row: 3; }
  #roadmap .tabs > .tab-separator:nth-of-type(3) {
    grid-column: 2;
    grid-row: 3;
    transform: rotate(180deg);
  }
  #roadmap .tabs > .tab-wrapper:nth-of-type(3) { grid-column: 3; grid-row: 3; }
}

/* Roadmap Cards */
.notiway-feature-card {
  overflow: visible;
  height: 255px;
}

.notiway-feature-card h4 {
  font-size: 1.2rem !important;
  font-weight: bolder;
}

.completed-badge {
  background-color: #10b981; 
  color: white; 
  font-size: 0.75rem; 
  font-weight: 600; 
  padding: 4px 10px; 
  border-radius: 9999px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Roadmap Grid */
.roadmap-section ol {
  padding: 0;
  --unit: 0.8rem;
  content: "";
  clear: both;
  display: table;
}

.roadmap-section ol li:not(.content ul li):not(.content ol li) {
  --height: 7rem;
  position: relative;
  display: block;
}

.roadmap-section ol li:not(.content ul li):not(.content ol li)::before {
  content: "";
  background-color: inherit;
  position: absolute;
  display: block;
  width: var(--unit);
  height: var(--unit);
  top: 100%;
  left: calc(50% - (var(--unit) / 2));
}

.roadmap-section ol li:not(.content ul li):not(.content ol li)::after {
  content: "";
  position: absolute;
  display: block;
  top: calc(100% + var(--unit) / 1.2);
  left: calc(50% - (var(--unit)));
  border: var(--unit) solid transparent;
  border-top-color: var(--roadmap-step-pointer);
}

.roadmap-section
  ol
  li:not(.content ul li):not(.content ol li):last-child::before,
.roadmap-section
  ol
  li:not(.content ul li):not(.content ol li):last-child::after {
  content: none;
}

@media (max-width: 670px) {
  .roadmap-section ol li:not(.content ul li):not(.content ol li) {
    padding: 1rem;
    margin: 2rem 0;
  }
  .roadmap-section ol {
    margin: auto;
  }
}

@media (min-width: 671px) and (max-width: 974px) {
  .roadmap-section ol li:not(.content ul li):not(.content ol li) {
    margin: 1rem;
    width: calc(50% - 2rem);
    float: left;
    min-height: var(--height);
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 3),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 4) {
    float: right;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 1)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: 100%;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 1)::after {
    top: calc(var(--height) / 1.1);
    left: calc(100% + 0.6rem);
    border: var(--unit) solid transparent;
    border-left-color: var(--roadmap-step-pointer);
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 3)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: -1rem;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(4n + 3)::after {
    top: calc(var(--height) / 1.1);
    left: -2.2rem;
    border: var(--unit) solid transparent;
    border-right-color: var(--roadmap-step-pointer);
  }
}

@media (min-width: 975px) and (max-width: 1199px) {
  .roadmap-section ol li:not(.content ul li):not(.content ol li) {
    margin: 1rem;
    width: calc(33.33% - 2rem);
    float: left;
    min-height: 7rem;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 4),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 5),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 6) {
    float: right;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 1)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 2)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: 100%;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 1)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 2)::after {
    top: calc(var(--height) / 1.1);
    left: calc(100% + 0.6rem);
    border: var(--unit) solid transparent;
    border-left-color: var(--roadmap-step-pointer);
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 4)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 5)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: -1rem;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 4)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(6n + 5)::after {
    top: calc(var(--height) / 1.1);
    left: -2.2rem;
    border: var(--unit) solid transparent;
    border-right-color: var(--roadmap-step-pointer);
  }
}

@media (min-width: 1200px) {
  ol {
    width: 100%;
    margin: 0 auto;
  }

  .roadmap-section ol li:not(.content ul li):not(.content ol li) {
    margin: 1rem;
    width: calc(25% - 2rem);
    float: left;
    min-height: 7rem;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 5),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 6),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 7),
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 8) {
    float: right;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 1)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 2)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 3)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: 100%;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 1)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 2)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 3)::after {
    top: calc(var(--height) / 1.1);
    left: calc(100% + 0.6rem);
    border: var(--unit) solid transparent;
    border-left-color: var(--roadmap-step-pointer);
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 5)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 6)::before,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 7)::before {
    top: calc(var(--height) / 2 + var(--unit) / 2);
    left: -1rem;
  }

  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 5)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 6)::after,
  .roadmap-section
    ol
    li:not(.content ul li):not(.content ol li):nth-child(8n + 7)::after {
    top: calc(var(--height) / 1.1);
    left: -2.2rem;
    border: var(--unit) solid transparent;
    border-right-color: var(--roadmap-step-pointer);
  }
}

.centerRoadmapOL {
  display: flex !important;
  justify-content: center;
}

@media (max-width: 974px) {
  #startContent .centerRoadmapOL {
    display: table !important;
  }
}

/* Roadmap Hero */
#roadmap-hero .notiway-desc-text {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.6;
}
html[class~="dark"] #roadmap-hero .notiway-desc-text {
  color: #9ca3af;
}

/* Roadmap Panels */
.roadmap-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Subcategory */
.roadmap-subcategory {
  margin-bottom: 2.5rem;
}
.roadmap-subcategory-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}
html[class~="dark"] .roadmap-subcategory-title {
  color: #f1f5f9;
}
.roadmap-subcategory-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.roadmap-subcategory-icon svg {
  width: 18px;
  height: 18px;
}
.features-icon { background: #dbeafe; color: #2563eb; }
.plugins-icon { background: #ede9fe; color: #7c3aed; }
.products-icon { background: #fef3c7; color: #d97706; }
.other-icon { background: #d1fae5; color: #059669; }
html[class~="dark"] .features-icon { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
html[class~="dark"] .plugins-icon { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
html[class~="dark"] .products-icon { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
html[class~="dark"] .other-icon { background: rgba(5, 150, 105, 0.2); color: #34d399; }

/* Card Grid */
.roadmap-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .roadmap-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .roadmap-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Roadmap Card */
.roadmap-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.roadmap-card:hover::before {
  opacity: 1;
}
.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
/* Per-category accent colors */
.category-features .roadmap-card::before { background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%); }
.category-plugins .roadmap-card::before { background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%); }
.category-products .roadmap-card::before { background: linear-gradient(180deg, #d97706 0%, #fbbf24 100%); }
.category-other .roadmap-card::before { background: linear-gradient(180deg, #059669 0%, #34d399 100%); }
.roadmap-card.completed::before {
  opacity: 1;
  background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
}
html[class~="dark"] .roadmap-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
  border-color: #374151;
}
html[class~="dark"] .roadmap-card.completed {
  border-left-color: #34d399;
}

.roadmap-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #111827;
}
html[class~="dark"] .roadmap-card-title {
  color: #f1f5f9;
}
.roadmap-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}
html[class~="dark"] .roadmap-card-desc {
  color: #94a3b8;
}

/* Empty State */
.roadmap-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}
html[class~="dark"] .roadmap-empty-state {
  color: #9ca3af;
}
.roadmap-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: #374151;
}
html[class~="dark"] .roadmap-empty-state h3 {
  color: #e5e7eb;
}
.roadmap-empty-state p {
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.roadmap-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
}
.roadmap-empty-icon svg {
  width: 28px;
  height: 28px;
}
html[class~="dark"] .roadmap-empty-icon {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

/* Request Feature */
.roadmap-request-section {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.roadmap-request-card {
  max-width: 520px;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
html[class~="dark"] .roadmap-request-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
  border-color: #374151;
}
.roadmap-request-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: #111827;
}
html[class~="dark"] .roadmap-request-card h3 {
  color: #f1f5f9;
}
.roadmap-request-card > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
html[class~="dark"] .roadmap-request-card > p {
  color: #9ca3af;
}
.roadmap-request-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
}
.roadmap-request-icon svg {
  width: 24px;
  height: 24px;
}
html[class~="dark"] .roadmap-request-icon {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

/* Request Steps */
.roadmap-request-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.roadmap-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #374151;
}
html[class~="dark"] .roadmap-step {
  color: #d1d5db;
}
.roadmap-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

