/* =============================================================================
   AkademiQ Campus - Component Styles
   ============================================================================= */

/* -------------------------------------------------------------------------
   APP LAYOUT
   ------------------------------------------------------------------------- */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

.page-content {
  padding: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.page-content.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  max-width: 1200px;
}

@media (max-width: 1024px) {
  .page-content.with-sidebar {
    grid-template-columns: 1fr;
  }

  .page-content.with-sidebar .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .app-content {
    margin-left: 0;
  }
}

/* -------------------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: var(--z-fixed);
  transition: transform var(--duration-medium) var(--ease-out);
}

.sidebar-header {
  padding: var(--space-7);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  height: 32px;
  width: auto;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-6) 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: var(--space-7);
}

.nav-section-title {
  padding: 0 var(--space-7);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-7);
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--color-accent);
  background: rgba(94, 234, 212, 0.08);
  border-left-color: var(--color-accent);
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item-badge {
  margin-left: auto;
  background: var(--color-accent-purple);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: var(--space-6) var(--space-7);
  border-top: 1px solid var(--border-color);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  color: var(--color-accent);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-plan {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Mobile sidebar */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-medium) var(--ease-out);
  }

  .sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

/* -------------------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--space-7);
  z-index: var(--z-sticky);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.navbar-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-menu-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .navbar {
    left: 0;
  }

  .navbar-menu-btn {
    display: flex;
  }
}

.navbar-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.navbar-search {
  position: relative;
  width: 280px;
}

.navbar-search-input {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  padding-left: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-search-input::placeholder {
  color: var(--text-muted);
}

.navbar-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.navbar-search-icon {
  position: absolute;
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.navbar-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar-icon-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.navbar-icon-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-error);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.lang-toggle {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2px;
}

.lang-toggle-btn {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.lang-toggle-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-7);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-xl);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: scale(1.02);
}

.btn:not(:disabled):active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--text-inverse);
}

.btn-primary:not(:disabled):hover {
  background: #6EF4DE;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:not(:disabled):hover {
  background: var(--bg-elevated);
  border-color: var(--border-color-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:not(:disabled):hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn-purple {
  background: var(--color-accent-purple);
  color: white;
}

.btn-purple:not(:disabled):hover {
  background: #8B5CF6;
  box-shadow: var(--shadow-glow-purple);
}

.btn-sm {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-base);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* -------------------------------------------------------------------------
   CARDS
   ------------------------------------------------------------------------- */

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-hover);
}

.card-header {
  padding: var(--space-6) var(--space-7);
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: var(--space-7);
}

.card-footer {
  padding: var(--space-6) var(--space-7);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

/* Post Card */
.post-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-7);
}

.post-card:hover {
  transform: none;
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-7);
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  flex-shrink: 0;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-author {
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.post-time {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.post-content {
  padding: 0 var(--space-7) var(--space-6);
}

.post-content p {
  line-height: var(--leading-relaxed);
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-7);
  border-top: 1px solid var(--border-color);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.post-action-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.post-action-btn.liked {
  color: var(--color-error);
}

.post-action-btn.liked svg {
  fill: currentColor;
}

.post-comments {
  padding: var(--space-6) var(--space-7);
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

/* Course Card */
.course-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.course-info {
  padding: var(--space-6);
}

.course-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-instructor {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-progress {
  margin-top: var(--space-5);
}

.progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-medium) var(--ease-out);
}

/* Member Card */
.member-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-7);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.member-name {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.member-title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* Category Card */
.category-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-active);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(94, 234, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}

.category-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.category-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.category-stats {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Event Card */
.event-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-5);
  transition: all var(--duration-normal) var(--ease-out);
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
}

.event-date {
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
}

.event-date-day {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  line-height: 1;
}

.event-date-month {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: var(--space-2);
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-3);
}

.event-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   BADGES & TAGS
   ------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-category {
  background: rgba(94, 234, 212, 0.15);
  color: var(--color-accent);
}

.badge-pro {
  background: linear-gradient(135deg, var(--color-accent-purple), #A78BFA);
  color: white;
}

.badge-free {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.badge-live {
  background: var(--color-error);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
}

.tag:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.tag.active {
  background: rgba(94, 234, 212, 0.15);
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   FORMS & INPUTS
   ------------------------------------------------------------------------- */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-input.error {
  border-color: var(--color-error);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-3);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Post composer */
.post-composer {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
  margin-bottom: var(--space-7);
}

.post-composer-input {
  width: 100%;
  min-height: 80px;
  padding: var(--space-5);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  resize: none;
}

.post-composer-input:focus {
  outline: none;
}

.post-composer-input::placeholder {
  color: var(--text-muted);
}

.post-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-5);
}

.post-composer-actions {
  display: flex;
  gap: var(--space-3);
}

/* -------------------------------------------------------------------------
   MODALS
   ------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-medium) var(--ease-out);
}

.modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-medium) var(--ease-out);
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-lg {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-7);
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-7);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-7);
  border-top: 1px solid var(--border-color);
}

/* -------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   ------------------------------------------------------------------------- */

.toast-container {
  position: fixed;
  bottom: var(--space-7);
  right: var(--space-7);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--duration-medium) var(--ease-out);
  min-width: 280px;
}

.toast.is-leaving {
  animation: slideOutRight var(--duration-medium) var(--ease-out) forwards;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--color-success); }
.toast-error .toast-icon { color: var(--color-error); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-info .toast-icon { color: var(--color-info); }

.toast-message {
  flex: 1;
  font-size: var(--text-sm);
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}

.toast-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   CALENDAR
   ------------------------------------------------------------------------- */

.calendar {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-7);
  border-bottom: 1px solid var(--border-color);
}

.calendar-title {
  font-weight: var(--font-semibold);
}

.calendar-nav {
  display: flex;
  gap: var(--space-3);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
}

.calendar-weekday {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--space-4);
  gap: var(--space-2);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-elevated);
}

.calendar-day.other-month {
  color: var(--text-muted);
}

.calendar-day.today {
  background: rgba(94, 234, 212, 0.15);
  color: var(--color-accent);
  font-weight: var(--font-semibold);
}

.calendar-day.selected {
  background: var(--color-accent);
  color: var(--text-inverse);
}

.calendar-day-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--color-accent-purple);
  border-radius: 50%;
}

/* -------------------------------------------------------------------------
   TABS
   ------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-7);
}

.tab {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--duration-fast) var(--ease-out);
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   ACCORDION
   ------------------------------------------------------------------------- */

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.accordion-header:hover {
  background: var(--bg-elevated);
}

.accordion-title {
  font-weight: var(--font-medium);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration-normal) var(--ease-out);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 var(--space-6) var(--space-6);
  display: none;
}

.accordion-item.is-open .accordion-content {
  display: block;
}

/* -------------------------------------------------------------------------
   FILTERS
   ------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.filter-group {
  display: flex;
  gap: var(--space-3);
}

/* -------------------------------------------------------------------------
   RIGHT SIDEBAR (for feed, etc.)
   ------------------------------------------------------------------------- */

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.sidebar-widget {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
}

.sidebar-widget-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}

/* -------------------------------------------------------------------------
   PROFILE
   ------------------------------------------------------------------------- */

.profile-header {
  position: relative;
  margin-bottom: var(--space-7);
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-purple));
  border-radius: var(--radius-2xl);
}

.profile-info {
  display: flex;
  align-items: flex-end;
  gap: var(--space-6);
  margin-top: calc(var(--space-9) * -1);
  padding: 0 var(--space-7);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 4px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.profile-details {
  flex: 1;
  padding-bottom: var(--space-5);
}

.profile-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.profile-title {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.profile-stats {
  display: flex;
  gap: var(--space-7);
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-accent);
}

.profile-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   LOGIN PAGE
   ------------------------------------------------------------------------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  padding: var(--space-9);
  text-align: center;
}

.login-logo {
  margin-bottom: var(--space-7);
}

.login-logo svg {
  height: 48px;
  width: auto;
  margin: 0 auto;
}

.login-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.login-form {
  text-align: left;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-7) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-footer {
  margin-top: var(--space-7);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.login-footer a {
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

.login-footer a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   LOCKED CONTENT (Pro)
   ------------------------------------------------------------------------- */

.locked-overlay {
  position: relative;
}

.locked-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.8);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* -------------------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-7);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--text-muted);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.empty-state-desc {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}
