/* ============================================
   LPO PLATFORM — Dashboard
   ============================================ */

.lpo-dashboard {
  max-width: var(--lpo-max-width);
  margin: 0 auto;
  padding: var(--lpo-space-3xl) var(--lpo-space-lg) var(--lpo-space-xl);
}

.lpo-dashboard__header {
  margin-bottom: var(--lpo-space-xl);
}

.lpo-dashboard__greeting {
  font-size: var(--lpo-text-2xl);
  font-weight: var(--lpo-font-bold);
  color: var(--lpo-text);
  margin: 0 0 var(--lpo-space-xs);
}

.lpo-dashboard__sub {
  font-size: var(--lpo-text-base);
  color: var(--lpo-text-secondary);
  margin: 0;
}

/* — App Cards Grid — */
.lpo-dashboard__apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "foodup law handycook"
    "foodup law lazyhands";
  align-items: stretch;
  column-gap: var(--lpo-space-xl);
  row-gap: 20px;
  margin-bottom: var(--lpo-space-3xl);
}

.lpo-dashboard-card {
  background: var(--lpo-surface);
  border: 1px solid var(--lpo-border);
  border-radius: var(--lpo-radius-lg);
  padding: var(--lpo-space-xl);
  transition: transform var(--lpo-transition), box-shadow var(--lpo-transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 0;
}

.lpo-dashboard-card--foodup {
  grid-area: foodup;
}

.lpo-dashboard-card--handycook {
  grid-area: handycook;
}

.lpo-dashboard-card--lazyhands {
  grid-area: lazyhands;
}

.lpo-dashboard-card--law-is-for-all {
  grid-area: law;
}

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

.lpo-dashboard-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.lpo-dashboard-card__accent--foodup {
  background: var(--lpo-foodup);
}

.lpo-dashboard-card__accent--handycook {
  background: var(--lpo-handycook);
}

.lpo-dashboard-card__accent--lazyhands {
  background: var(--lpo-lazyhands);
}

.lpo-dashboard-card__accent--law-is-for-all {
  background: var(--lpo-law-is-for-all);
}

.lpo-dashboard-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background: #ffffff;
  border: 1px solid var(--lpo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--lpo-space-md);
  overflow: hidden;
}

.lpo-dashboard-card__icon-logo {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.lpo-dashboard-card__name {
  font-size: var(--lpo-text-lg);
  font-weight: var(--lpo-font-bold);
  margin: 0 0 var(--lpo-space-xs);
  color: var(--lpo-text);
}

.lpo-dashboard-card__name-bg {
  font-size: var(--lpo-text-lg);
  font-weight: var(--lpo-font-bold);
  line-height: var(--lpo-leading-tight);
  margin: 0 0 var(--lpo-space-sm);
  color: var(--lpo-text-secondary);
}

.lpo-dashboard-card__desc {
  font-size: var(--lpo-text-sm);
  color: var(--lpo-text-secondary);
  margin: 0 0 var(--lpo-space-md);
  line-height: var(--lpo-leading-relaxed);
}

.lpo-dashboard-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--lpo-space-xs);
  font-size: var(--lpo-text-xs);
  font-weight: var(--lpo-font-semibold);
  padding: 4px 12px;
  border-radius: var(--lpo-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lpo-dashboard-card__status--active {
  background: var(--lpo-secondary-light);
  color: var(--lpo-secondary);
}

.lpo-dashboard-card__status--coming-soon {
  background: #0F172A3D;
  color: #0c1d41;
}

/* — Subscription Banner — */
.lpo-dashboard__subscription {
  background: linear-gradient(135deg, var(--lpo-primary), var(--lpo-accent));
  color: white;
  border-radius: var(--lpo-radius-lg);
  padding: var(--lpo-space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lpo-space-lg);
}

.lpo-dashboard__subscription-text h3 {
  font-size: var(--lpo-text-lg);
  font-weight: var(--lpo-font-bold);
  margin: 0 0 var(--lpo-space-xs);
}

.lpo-dashboard__subscription-text p {
  font-size: var(--lpo-text-sm);
  margin: 0;
  opacity: 0.85;
}

.lpo-dashboard__subscription-btn {
  padding: 10px 24px;
  background: white;
  color: var(--lpo-primary);
  font-weight: var(--lpo-font-semibold);
  font-size: var(--lpo-text-sm);
  border: none;
  border-radius: var(--lpo-radius);
  cursor: pointer;
  transition: all var(--lpo-transition);
  white-space: nowrap;
  text-decoration: none;
}

.lpo-dashboard__subscription-btn:hover {
  background: var(--lpo-primary-light);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .lpo-dashboard__apps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "foodup"
      "handycook"
      "lazyhands"
      "law";
    row-gap: var(--lpo-space-xl);
  }

  .lpo-dashboard-card,
  .lpo-dashboard-card--law-is-for-all {
    width: 100%;
  }

  .lpo-dashboard__subscription {
    flex-direction: column;
    text-align: center;
  }
}
