@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic');

:root {
  --brand-primary: #569FF7;
  --brand-secondary: #3788d8;/*3788d8*/
  --brand-dark: #101828;
  --brand-muted: #667085;
  --brand-soft: #f8fafc;
  --brand-border: #e4e7ec;
  --brand-success: #12b76a;
  --brand-warning: #f79009;
  --brand-danger: #f04438;
}

html,
body {
  font-family: 'Lato', sans-serif;
  background: #ffffff;
  color: var(--brand-dark);
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.logo-image {
  height: 45px;
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  filter: brightness(1.08);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.btn-outline-dark {
  padding: 0.75rem 1.15rem;
  font-weight: 700;
}

.form-control,
.form-select {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.card-soft {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.navbar-brand {
  letter-spacing: 0.2px;
}

.navbar-brand img {
  height: 55px;
}

.eyebrow {
  display: inline-block;
  background: rgba(43, 110, 243, 0.10);
  color: var(--brand-primary);
  border: 1px solid rgba(43, 110, 243, 0.15);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p.lead {
  color: var(--brand-muted);
  font-size: 1.15rem;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card,
.feature-card,
.category-card,
.pricing-card,
.dashboard-card {
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.metric-card {
  padding: 1rem;
}

.metric-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.hero-visual {
  padding: 1.25rem;
}

.text-danger {
  color: var(--brand-danger);
}

.dashboard-card {
  padding: 1.25rem;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(43, 110, 243, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-stat {
  background: var(--brand-soft);
  border-radius: 1rem;
  padding: 0.85rem;
}

.mini-stat strong {
  display: block;
  font-size: 1.25rem;
}

.mini-stat span {
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reminder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
}

.reminder-item h6 {
  margin: 0 0 0.15rem;
  font-weight: 700;
}

.reminder-item p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.status {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-warning {
  background: rgba(247, 144, 9, 0.12);
  color: var(--brand-warning);
}

.status-danger {
  background: rgba(240, 68, 56, 0.12);
  color: var(--brand-danger);
}

.status-success {
  background: rgba(18, 183, 106, 0.12);
  color: var(--brand-success);
}

.status-neutral {
  background: rgba(18, 183, 106, 0.12);
  color: var(--brand-primary);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title p {
  color: var(--brand-muted);
  font-size: 1.05rem;
  margin: 0;
}

.feature-card,
.category-card,
.pricing-card {
  padding: 1.5rem;
  height: 100%;
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: rgba(43, 110, 243, 0.1);
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card h5,
.category-card h5,
.pricing-card h4 {
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-card p,
.category-card p,
.pricing-card p,
.pricing-card li {
  color: var(--brand-muted);
}

.pricing-card.featured {
  border: 2px solid rgba(43, 110, 243, 0.35);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--brand-primary);
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.product-preview {
  background: var(--brand-soft);
}

.preview-shell {
  border: 1px solid var(--brand-border);
  border-radius: 1.5rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--brand-border);
}

.preview-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 430px;
}

.preview-sidebar {
  background: #fafafa;
  border-right: 1px solid var(--brand-border);
  padding: 1rem;
}

.preview-sidebar .nav-link {
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  margin-bottom: 0.35rem;
}

.preview-sidebar .nav-link.active {
  background: rgba(43, 110, 243, 0.1);
  color: var(--brand-primary);
}

.preview-content {
  padding: 1.25rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  color: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 18px 45px rgba(43, 110, 243, 0.25);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--brand-muted);
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 5rem;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--brand-border);
  }
}

@media (max-width: 767.98px) {
  .hero-metrics,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .reminder-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}

.navbar-toggler {
  border: 1px solid var(--brand-border);
  padding: 0.45rem 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(43, 110, 243, 0.12);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2816,24,40,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    display: none;
    width: 100%;
    padding-top: 1rem;
  }

  .navbar .navbar-collapse.show {
    display: block;
  }

  .navbar .navbar-nav {
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  .navbar .nav-link,
  .navbar .btn {
    width: 100%;
  }

  .navbar .btn.ms-lg-2 {
    margin-left: 0 !important;
  }
}

@media (min-width: 992px) {
  .navbar .navbar-collapse {
    display: flex !important;
    justify-content: flex-end;
    flex-basis: auto;
  }
}

#features,
#categories,
#product,
#pricing {
  scroll-margin-top: 90px;
}

/* =========================================
   AUTHENTICATED APP LAYOUT
   ========================================= */

.app-shell {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f5f7fb;
}

rf-sidebar {
  display: block;
  width: 235px;
  flex: 0 0 235px;
  background: #ffffff;
  border-right: 1px solid #dde3ec;
}

.sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 18px;
  margin-bottom: 10px;
}

.sidebar-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e9efff;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar-brand-text {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
  background: #eef3ff;
  color: var(--brand-secondary);
}

.sidebar-link.active {
  background: #dfe7f6;
  color: var(--brand-secondary);
}

.sidebar-link-muted {
  color: #8b95a7;
  cursor: default;
}

.sidebar-link-icon {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--brand-primary);
}

.sidebar-footer {
  border-top: 1px solid #dde3ec;
  padding-top: 16px;
  margin-top: 18px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4ebff;
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sidebar-user-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.sidebar-user-email {
  font-size: 0.92rem;
  color: #667085;
}

.sidebar-logout-btn {
  width: 100%;
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 400;
}

.sidebar-logout-btn:hover {
  background: #f8fafc;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

rf-topbar {
  display: block;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #dde3ec;
  padding: 16px 26px 14px;
}

.topbar-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.topbar-subtitle {
  margin: 6px 0 0;
  color: #667085;
  font-size: 1.05rem;
}

.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background: #f5f7fb;
}

.app-page-container {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100%;
}

/* =========================================
   PAGE HEADERS
   ========================================= */

.page-header,
.page-hero {
  margin-bottom: 26px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-title {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.page-subtitle {
  margin: 8px 0 0;
  color: #667085;
  font-size: 1.05rem;
}

.page-action-btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.8rem 1.1rem;
}

/* =========================================
   CARDS / PANELS
   ========================================= */

.panel-card {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 20px;
  padding: 20px;
  box-shadow: none;
}

.panel-card-large {
  min-height: 230px;
}

.panel-title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.empty-state,
.loading-state {
  color: #667085;
  text-align: center;
  padding: 28px 10px;
}

/* =========================================
   DASHBOARD
   ========================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 20px;
  padding: 24px 22px;
}

.stat-value {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.stat-label {
  color: #667085;
  font-size: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0);
  gap: 20px;
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reminder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e6ebf2;
}

.reminder-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.reminder-row-title a {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.reminder-row-meta {
  color: #667085;
  font-size: 0.95rem;
}

.build-steps {
  margin: 0;
  padding-left: 20px;
  color: #475467;
}

.build-steps li + li {
  margin-top: 7px;
}

/* =========================================
   REMINDERS LIST
   ========================================= */

.reminder-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e6ebf2;
}

.reminder-table-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.reminder-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================
   FORM
   ========================================= */

.form-panel {
  padding: 22px 20px;
}

.form-row-single + .form-row-single,
.form-row-single + .form-grid,
.form-grid + .form-grid,
.form-grid + .form-actions,
.form-divider + .form-grid {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0f172a;
}

.form-control,
.form-select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid #c9d2df;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.15rem rgba(43, 110, 243, 0.12);
}

.form-textarea {
  min-height: 105px;
  resize: vertical;
}

.form-divider {
  border: 0;
  border-top: 1px solid #dde3ec;
  margin: 32px 0 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-warning {
  background: #fef0c7;
  color: #9a6700;
}

.status-success {
  background: #d1fadf;
  color: #067647;
}

.status-danger {
  background: #fee4e2;
  color: #d92d20;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .app-shell {
    flex-direction: column;
  }

  rf-sidebar {
    width: 100%;
    flex: 0 0 auto;
  }

  .sidebar {
    min-height: auto;
  }

  .topbar {
    padding: 16px 18px 14px;
  }

  .app-content {
    padding: 18px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .reminder-row,
  .reminder-table-row,
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .reminder-table-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.reminder-form-label {
  margin-top: 1rem;
}

.rf-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
}

.rf-toast-item {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rf-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.rf-toast-hide {
    opacity: 0;
    transform: translateX(40px);
}

.rf-toast-item .toast-body {
    font-size: 0.95rem;
}

.calendar-page {
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.page-subtitle {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.calendar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.calendar-toolbar {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.calendar-loading-text {
    display: inline-block;
    padding: 0.5rem 0;
}

#renewal-calendar {
    width: 100%;
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.fc .fc-button {
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    color: var(--brand-primary);
    box-shadow: none;
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
}

.fc .fc-button:hover {
    background: #dfe7ff;
    border-color: #cdd8ff;
    color: var(--brand-secondary);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: #ffffff;
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.fc .fc-daygrid-event {
    border-radius: 8px;
    padding: 2px 4px;
    border: none;
    font-size: 0.8rem;
}

.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border-color: #edf0f5;
}

/* Make day cells feel clickable */
.fc .fc-daygrid-day {
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover highlight */
.fc .fc-daygrid-day:hover {
  background-color: #f8f9fa; /* light highlight */
}

/* Optional: slightly highlight the inner frame instead */
.fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
  background-color: #eef4ff;
  border-radius: 6px;
}

/* Optional: stronger visual cue for the day number */
.fc .fc-daygrid-day:hover .fc-daygrid-day-number {
  font-weight: 600;
  text-decoration: underline;
}

/* Interactive calendar day hover */
.fc .fc-daygrid-day:hover .fc-daygrid-day-frame {
  background-color: #f3f8ff;
  border-radius: 8px;
}

/* Interactive event hover */
.fc .fc-event {
  cursor: pointer;
  transition: all 0.18s ease-in-out;
}

.fc .fc-event:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

select.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

select.form-select option {
  color: #1f2d3d;
  background-color: #ffffff;
}

select.form-select option:hover,
select.form-select option:focus,
select.form-select option:checked {
  background: var(--brand-primary);
  color: #fff;
}

input.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

input.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.categories-page .page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e9edf5;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.category-description {
    font-size: 0.92rem;
    line-height: 1.4;
}

.empty-state-card {
    background: #ffffff;
    border: 1px dashed #d6dce8;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.empty-state-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-control-color {
    width: 56px;
    min-width: 56px;
    height: 40px;
    padding: 0.35rem;
    border-radius: 10px;
}

.app-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e9edf5;
}

.app-topbar-left {
    flex: 1;
    min-width: 0;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.rf-breadcrumb-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.rf-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.rf-breadcrumb .breadcrumb-item {
    font-size: 0.95rem;
    font-weight: 500;
}

.rf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #98a2b3;
}

.rf-breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #667085;
    transition: color 0.2s ease;
}

.rf-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-primary)
}

.rf-breadcrumb .breadcrumb-item.active {
    color: #101828;
    font-weight: 600;
}

.topbar-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #344054;
}

.app-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e9edf5;
}

.app-topbar-left {
    flex: 1;
    min-width: 0;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.rf-user-menu {
    position: relative;
}

.rf-icon-menu-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.rf-icon-menu-toggle:hover,
.rf-icon-menu-toggle:focus,
.rf-icon-menu-toggle:active,
.rf-icon-menu-toggle.show {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.rf-icon-menu-toggle::after {
    display: none !important;
}

.rf-icon-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-icon-menu-toggle:hover .rf-icon-avatar {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}

.rf-user-dropdown {
    width: 260px;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
    margin-top: 0.75rem;
}

.rf-user-dropdown-header {
    padding: 0.75rem 0.85rem 0.5rem;
}

.rf-user-dropdown-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: 0.15rem;
}

.rf-user-dropdown-email {
    font-size: 0.85rem;
    color: #667085;
    word-break: break-word;
}

.rf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    color: #344054;
    font-weight: 500;
}

.rf-dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: #667085;
}

.rf-dropdown-item:hover {
    background: #f9fafb;
    color: #101828;
}

.rf-dropdown-logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.rf-dropdown-logout:hover {
    background: #f2f6fe;
    color: var(--brand-primary)
}

.rf-dropdown-logout:hover i {
    color: var(--brand-primary)
}

.billing-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.billing-shell-card {
    padding: 32px 36px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.billing-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.billing-summary-card {
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    padding: 24px;
}

.billing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.billing-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.billing-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.billing-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.billing-plan-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.billing-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e7edf5;
    color: #475569;
}

.billing-info-row strong {
    color: #0f172a;
    font-weight: 700;
}

.billing-actions {
    margin-top: 24px;
}

.billing-payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.billing-payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eaf2ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.billing-payment-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.billing-payment-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.billing-history-section {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    overflow: hidden;
}

.billing-history-head {
    padding: 24px 24px 18px;
    margin-bottom: 0;
}

.billing-table {
    margin-bottom: 0;
}

.billing-table thead th {
    padding: 14px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e7edf5;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.billing-table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #0f172a;
}

.billing-table tbody tr:last-child td {
    border-bottom: none;
}

.billing-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.billing-status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.billing-status-badge.paid {
    background: #dbeafe;
    color: var(--brand-secondary);
}

@media (max-width: 991.98px) {
    .billing-shell-card {
        padding: 24px;
    }

    .billing-top-grid {
        grid-template-columns: 1fr;
    }
}

.billing-top-grid-free {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-feature-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.billing-feature-list li {
    line-height: 1.5;
}

.rf-bootstrap-modal {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.rf-bootstrap-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.rf-bootstrap-modal .modal-body {
    color: #475569;
    line-height: 1.6;
}

.rf-bootstrap-modal .modal-header,
.rf-bootstrap-modal .modal-footer {
    padding-left: 24px;
    padding-right: 24px;
}

.rf-bootstrap-modal .modal-body {
    padding: 16px 24px 8px;
}

.rf-bootstrap-modal .modal-footer {
    padding-bottom: 24px;
}

.btn-primary:hover {
    color: var(--brand-border);
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    color: var(--brand-border);
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.btn-outline-danger:hover {
  color: var(--brand-border);
  background-color: var(--brand-danger);
  border-color: var(--brand-danger);
}

a {
  color: var(--brand-primary);
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  display: flex;
  align-items: center;  
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e7edf5;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-info-card {
  padding: 2.5rem 2rem;
}

.auth-card-header {
  margin-bottom: 1.75rem;
}

.auth-brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d6efd;
  margin-bottom: 0.75rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #172033;
  margin-bottom: 0.75rem;
}

.auth-subtitle {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.auth-card .form-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.auth-card .form-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d7e0ea;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  box-shadow: none;
  transition: all 0.2s ease;
}

.auth-card .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.auth-card .form-check-input {
  margin-top: 0.2rem;
}

.auth-card .form-check-label {
  color: #475569;
  font-size: 0.95rem;
}

.auth-btn,
.auth-btn-secondary {
  height: 48px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-btn {
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.auth-btn:hover,
.auth-btn:focus {
  transform: translateY(-1px);
}

.auth-link {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-footer {
  font-size: 0.95rem;
}

.auth-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f2ff;
  color: #0d6efd;
  font-size: 1.75rem;
}

.auth-icon-success {
  background: #e8f8ee;
  color: #198754;
}

.auth-icon-error {
  background: #fdecec;
  color: #dc3545;
}

.auth-helper-text {
  color: #64748b;
  font-size: 0.92rem;
}

.auth-loading-state {
  padding: 1rem 0;
  color: #475569;
}

.auth-card .alert {
  border-radius: 14px;
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .auth-page {
    align-items: stretch;
    padding: 1.5rem 0;
  }

  .auth-card,
  .auth-info-card {
    border-radius: 20px;
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.65rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }
}