    @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

    :root {
      --brand: #15448c;
      --brand-light: #5a9fd4;
      --brand-strong: #0d2d5e;
      --brand-soft: #e8eef7;
      --accent: #7ec8e3;
      --accent-soft: #d4f1f9;
      --text: #1a1f36;
      --muted: #5e6c84;
      --bg: #f5f7fa;
      --card: #ffffff;
      --line: rgba(21, 68, 140, 0.1);
      --shadow: 0 8px 24px rgba(21, 68, 140, 0.08);
      --shadow-strong: 0 16px 48px rgba(21, 68, 140, 0.12);
      --radius: 16px;
      --font-sans: "Manrope", "Segoe UI", sans-serif;
      --font-display: "Sora", "Manrope", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: var(--font-sans);
      color: var(--text);
      background: radial-gradient(circle at top right, rgba(126, 200, 227, 0.08), transparent 50%),
        radial-gradient(circle at bottom left, rgba(21, 68, 140, 0.06), transparent 50%),
        linear-gradient(180deg, #f8f9fb 0%, #f5f7fa 100%);
      min-height: 100vh;
    }

    h1, h2, h3 {
      font-family: var(--font-display);
      letter-spacing: -0.2px;
    }

    body.modal-open {
      overflow: hidden;
    }

    /* App Layout */
    .app-layout {
      display: flex;
      min-height: 100vh;
    }

    /* Sidebar */
    .sidebar {
      width: 280px;
      background: linear-gradient(180deg, #15448c 0%, #1a5bb8 100%);
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      position: fixed;
      left: 0;
      top: 0;
      height: 100vh;
      z-index: 30;
      box-shadow: 2px 0 20px rgba(21, 68, 140, 0.25);
      transition: transform 0.3s ease, width 0.3s ease;
    }

    .sidebar.collapsed {
      width: 70px;
    }

    .sidebar.collapsed .sidebar-title,
    .sidebar.collapsed .sidebar-nav-label,
    .sidebar.collapsed .sidebar-section-title,
    .sidebar.collapsed .playlist-count,
    .sidebar.collapsed .sidebar-add-btn {
      display: none;
    }

    .sidebar.collapsed .sidebar-header {
      justify-content: center;
    }

    .sidebar.collapsed .sidebar-nav-item,
    .sidebar.collapsed .sidebar-footer-btn {
      justify-content: center;
      padding: 10px;
    }

    .sidebar.collapsed .sidebar-section-header {
      justify-content: center;
    }

    .sidebar-header {
      padding: 24px 20px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }

    .sidebar-toggle {
      position: absolute;
      right: -15px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #fff;
      border: 1.5px solid var(--line);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      color: var(--brand);
      transition: all 0.2s ease;
      z-index: 10;
      box-shadow: 0 2px 8px rgba(21, 68, 140, 0.1);
    }

    .sidebar-toggle:hover {
      background: var(--brand);
      color: #fff;
      transform: translateY(-50%);
      box-shadow: 0 6px 16px rgba(21, 68, 140, 0.25);
    }

    .sidebar.collapsed .sidebar-toggle {
      right: -15px;
    }

    .sidebar-logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      object-fit: cover;
      border: 2px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
      background: #ffffff;
      filter: brightness(1);
    }

    .sidebar-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin: 0;
      color: #fff;
      font-family: var(--font-display);
      transition: opacity 0.3s ease;
      white-space: nowrap;
    }

    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      padding: 16px 12px;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .sidebar-section {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sidebar-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 8px;
      margin-bottom: 4px;
    }

    .sidebar-section-title {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: rgba(255, 255, 255, 0.65);
      margin: 0 0 8px 0;
      padding: 0 8px;
    }

    .sidebar-add-btn {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      font-size: 1.2rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s ease;
      padding: 0;
      line-height: 1;
    }

    .sidebar-add-btn:hover {
      background: transparent;
      color: #000;
    }

    .sidebar-nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 0.95rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.85);
      transition: all 0.2s ease;
      text-align: left;
      width: 100%;
      position: relative;
    }

    .sidebar-nav-item:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    .sidebar-nav-item.active {
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .sidebar-nav-item.active .sidebar-nav-icon {
      
    }

    .sidebar-nav-icon {
      font-size: 1.2rem;
      width: 24px;
      text-align: center;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .sidebar-nav-label {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: opacity 0.3s ease;
    }

    .playlist-count {
      font-size: 0.75rem;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.15);
      color: rgba(255, 255, 255, 0.9);
      padding: 2px 8px;
      border-radius: 10px;
      min-width: 24px;
      text-align: center;
      transition: opacity 0.3s ease;
    }

    .sidebar-nav-item.active .playlist-count {
      background: rgba(255, 255, 255, 0.3);
      color: #fff;
    }

    .playlist-item {
      position: relative;
    }

    .playlist-item:hover .playlist-actions {
      opacity: 1;
      pointer-events: auto;
    }

    .playlist-actions {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 4px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    .playlist-action-btn {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: none;
      background: rgba(255, 255, 255, 0.9);
      color: var(--muted);
      cursor: pointer;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .playlist-action-btn:hover {
      background: #fff;
      color: var(--brand);
      box-shadow: 0 2px 8px rgba(21, 68, 140, 0.15);
    }

    .sidebar-footer {
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sidebar-footer-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.7);
      transition: all 0.2s ease;
      text-align: left;
      width: 100%;
    }

    .sidebar-footer-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    /* Main Content */
    .main-content {
      flex: 1;
      margin-left: 280px;
      min-height: 100vh;
      transition: margin-left 0.3s ease;
    }

    body.sidebar-collapsed .main-content {
      margin-left: 70px;
    }

    /* Playlist Action Modal */
    .playlist-action-list {
      display: grid;
      gap: 8px;
      margin-top: 16px;
    }

    .playlist-action-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1.5px solid var(--line);
      background: #fff;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .playlist-action-item:hover {
      border-color: var(--brand);
      background: var(--brand-soft);
      
      box-shadow: 0 2px 8px rgba(21, 68, 140, 0.1);
    }

    .playlist-action-item.selected {
      background: var(--brand);
      border-color: var(--brand);
      color: #fff;
    }

    .playlist-action-icon {
      font-size: 1.2rem;
    }

    .playlist-action-name {
      flex: 1;
      font-weight: 600;
    }

    .playlist-action-count {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .playlist-action-item.selected .playlist-action-count {
      color: rgba(255, 255, 255, 0.8);
    }

    .playlist-action-create-new {
      border-color: var(--brand);
      border-style: dashed;
      background: var(--brand-soft);
    }

    .playlist-action-create-new:hover {
      border-style: solid;
      background: var(--brand);
      color: #fff;
    }

    .playlist-action-create-new:hover .playlist-action-icon svg {
      stroke: #fff;
    }

    .playlist-action-create-new .playlist-action-icon {
      color: var(--brand);
    }

    .playlist-action-create-new:hover .playlist-action-icon {
      color: #fff;
    }

    .icon {
      font-size: 18px;
      display: inline-block;
      vertical-align: middle;
    }

    @media (max-width: 980px) {
      .header-bar {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 20px;
        gap: 10px;
      }

      .header-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
      }

      .nav-tabs,
      .header-actions {
        width: 100%;
        flex-wrap: wrap;
      }
    }

    .page-section {
      display: none;
    }

    .page-section.active {
      display: block;
    }

    .section-shell {
      width: min(1600px, 96%);
      margin: 0 auto;
    }

    .hero-section + .section-shell {
      margin-top: 40px;
    }

    .hero-section {
      background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
      color: #fff;
      padding: 28px 0 24px;
      border-bottom: 1px solid rgba(21, 68, 140, 0.1);
      box-shadow: 0 4px 20px rgba(21, 68, 140, 0.12);
      position: relative;
      overflow: hidden;
    }

    .hero-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at top right, rgba(126, 200, 227, 0.15), transparent 60%);
      pointer-events: none;
    }

    .hero-section .section-shell {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }

    .hero-section .hero-content {
      flex: 1;
      min-width: 300px;
    }

    .hero-section h1 {
      margin: 0 0 6px;
      font-size: 1.9rem;
      font-weight: 700;
      letter-spacing: -0.4px;
      position: relative;
      z-index: 1;
    }

    .hero-section p {
      margin: 0;
      color: rgba(255, 255, 255, 0.92);
      font-size: 0.95rem;
      max-width: 600px;
      line-height: 1.5;
      position: relative;
      z-index: 1;
    }

    .hero-section--light {
      background: #f0f3f7;
      color: var(--text);
    }

    .hero-section--light p {
      color: var(--muted);
    }

    .hero-section--light .stat-card {
      background: #ffffff;
      border: 1px solid rgba(27, 38, 54, 0.18);
      color: var(--text);
      box-shadow: 0 10px 20px rgba(22, 36, 54, 0.08);
    }

    .hero-stats {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }

    .stat-card {
      background: rgba(255, 255, 255, 0.16);
      border: 1.5px solid rgba(255, 255, 255, 0.28);
      padding: 14px 18px;
      border-radius: 14px;
      min-width: 160px;
      backdrop-filter: blur(10px);
      transition: all 0.25s ease;
    }

    .stat-card:hover {
      background: rgba(255, 255, 255, 0.24);
      border-color: rgba(255, 255, 255, 0.4);
      
    }

    .stat-card strong {
      font-size: 1.6rem;
      display: block;
      margin-bottom: 3px;
      color: #fff;
      font-weight: 700;
    }

    .stat-card span {
      color: rgba(255, 255, 255, 0.85);
      font-size: 0.88rem;
    }

    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 18px;
      margin-top: 0;
      padding-bottom: 40px;
      max-width: 100%;
    }

    @media (min-width: 1800px) {
      .cards-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

    @media (min-width: 1400px) and (max-width: 1799px) {
      .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (min-width: 960px) and (max-width: 1399px) {
      .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .recommended-cards {
      margin-top: 16px;
    }

    .recommended-toolbar {
      margin-bottom: 44px;
    }

    @media (max-width: 959px) {
      .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .cards-grid {
        grid-template-columns: 1fr;
      }
    }

    .info-card {
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      padding: 24px;
      border: 1px solid var(--line);
      display: grid;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      position: relative;
      min-height: 240px;
      overflow: visible;
    }

    .info-card::after {
      content: "";
      display: none;
    }

    .info-card::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 5px;
      background: var(--brand);
      border-radius: 20px 20px 0 0;
    }

    .info-card:focus-visible {
      outline: 3px solid rgba(21, 68, 140, 0.3);
      outline-offset: 4px;
    }

    .info-card:hover {
      box-shadow: 0 16px 40px rgba(21, 68, 140, 0.2);
      border-color: var(--brand);
    }

    .info-card:hover::after {
      
    }


    .info-card h3 {
      margin: 4px 80px 0 0;
      font-size: 1.05rem;
      color: var(--brand-strong);
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      padding-right: 10px;
      max-height: 3.15rem;
      line-height: 1.05rem;
    }

    .info-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .tag-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .tag {
      background: var(--brand-soft);
      color: var(--brand);
      font-weight: 600;
      font-size: 0.8rem;
      padding: 6px 12px;
      border-radius: 8px;
      border: 1px solid var(--line);
      pointer-events: none;
      user-select: none;
    }

    .page-title {
      text-align: center;
      margin: 28px 0 6px;
      color: var(--brand-strong);
      font-weight: 600;
    }

    .subline {
      text-align: center;
      margin: 0 0 20px;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .toolbar {
      width: min(1600px, 96%);
      margin: 32px auto 0 auto;
      padding: 20px 28px;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(20px);
      border-radius: 20px;
      border: 1px solid var(--line);
      box-shadow: 0 8px 24px rgba(21, 68, 140, 0.08);
      display: flex;
      flex-direction: column;
      gap: 16px;
      position: relative;
      z-index: 2147483640;
    }

    .toolbar-row {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .toolbar-row-main {
      justify-content: space-between;
    }

    .toolbar-dates {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .toolbar-search {
      margin-left: auto;
    }

    .filter-summary {
      width: min(1600px, 96%);
      margin: 12px auto 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .filter-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-left: auto;
    }

    .filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      min-height: 36px;
    }

    .filter-chip {
      border-radius: 10px;
      background: linear-gradient(135deg, var(--brand-soft), rgba(126, 200, 227, 0.12));
      border: 1px solid var(--line);
      color: var(--brand);
      font-weight: 600;
      font-size: 0.85rem;
      padding: 8px 16px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.25s ease;
    }

    .filter-chip:hover {
      background: linear-gradient(135deg, var(--brand), var(--accent));
      color: #fff;
      border-color: transparent;
      
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.15);
    }

    .filter-count {
      font-weight: 600;
      color: var(--muted);
    }

    .filter-empty {
      color: var(--muted);
      font-size: 0.85rem;
    }

    .toolbar label {
      font-weight: 600;
      color: var(--muted);
      margin-right: 6px;
      font-size: 0.9rem;
    }

    .toolbar input[type="date"],
    .toolbar input[type="text"] {
      padding: 8px 12px;
      border: 1px solid rgba(27, 38, 54, 0.14);
      border-radius: 10px;
      font-size: 15px;
      background: #fff;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .toolbar input[type="date"]:focus,
    .toolbar input[type="text"]:focus {
      border-color: var(--brand);
      outline: none;
      box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
    }

    .toolbar input[type="text"] { width: 190px; }

    .toolbar-filter {
      position: relative;
      z-index: 2147483640;
    }

    .toolbar-filter.show {
      z-index: 2147483647;
    }

    .dropdown-btn {
      padding: 10px 18px;
      border: 1.5px solid var(--line);
      border-radius: 12px;
      background: #fff;
      font-size: 15px;
      color: var(--brand);
      cursor: pointer;
      font-weight: 600;
      transition: all 0.25s ease;
      box-shadow: 0 2px 8px rgba(21, 68, 140, 0.04);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .dropdown-btn svg {
      flex-shrink: 0;
    }

    .dropdown-btn:hover {
      border-color: var(--brand);
      background: var(--brand-soft);
      
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.1);
    }

    .dropdown-content {
      display: none;
      position: absolute;
      left: 0;
      top: 110%;
      background: #fff;
      min-width: 240px;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(21, 68, 140, 0.2);
      padding: 14px 16px;
      border: 1px solid rgba(27, 38, 54, 0.12);
      z-index: 2147483647;
    }

    .toolbar-filter.show .dropdown-content { display: block; }

    .dropdown-content label {
      display: flex;
      align-items: center;
      font-size: 14px;
      color: #444;
      margin: 8px 0;
      gap: 8px;
    }

    .dropdown-content input[type="checkbox"] {  }

    .dropdown-title {
      font-weight: 600;
      font-size: 14px;
      color: var(--brand-strong);
      margin-bottom: 6px;
    }

    .filter-count-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--brand);
      color: white;
      border-radius: 10px;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      font-size: 12px;
      font-weight: 700;
      margin-left: 4px;
    }

    .reset-btn {
      padding: 8px 16px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      font-weight: 500;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .reset-btn svg {
      width: 16px;
      height: 16px;
    }

    .reset-btn:hover {
      background: rgba(0, 0, 0, 0.04);
      color: var(--text);
      border-color: var(--brand);
      
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.1);
    }

    .container {
      width: min(1600px, 96%);
      margin: 30px auto 60px;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 24px;
    }

    .container.details-closed {
      grid-template-columns: 1fr;
    }

    .table-box {
      background: var(--card);
      border-radius: 20px;
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      overflow: hidden;
      border: 1px solid var(--line);
      max-width: 100%;
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      table-layout: fixed;
      min-width: 780px;
    }

    th, td {
      padding: 12px 16px;
      text-align: left;
      font-size: 0.9rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    th {
      background: #f8f9fb;
      color: #64748b;
      font-weight: 600;
      letter-spacing: 0.3px;
    }

    th.sortable {
      padding: 0;
    }

    .sort-btn {
      width: 100%;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 6px;
      border: none;
      background: transparent;
      color: inherit;
      font: inherit;
      cursor: pointer;
      text-align: left;
    }

    .sort-indicator {
      font-size: 0.85rem;
      opacity: 0.5;
    }

    .sort-indicator.active {
      opacity: 1;
    }

    .sort-btn:hover .sort-indicator {
      opacity: 0.85;
    }

    tbody tr {
      cursor: pointer;
      transition: background 0.15s;
    }

    tbody tr:hover {
      background: #f8f9fb;
    }

    tbody tr.active {
      background: var(--brand-soft);
      box-shadow: inset 0 0 0 9999px rgba(21, 68, 140, 0.03);
    }

    tbody tr.active td:first-child {
      position: relative;
    }

    tbody tr.active td:first-child::before {
      content: "";
      position: absolute;
      left: 0;
      top: 6px;
      bottom: 6px;
      width: 4px;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--brand), var(--accent));
    }

    .details-box {
      background: var(--card);
      border-radius: 20px;
      box-shadow: 0 8px 24px rgba(21, 68, 140, 0.12);
      padding: 24px;
      border: 1px solid var(--line);
      min-height: 320px;
      display: none;
      position: sticky;
      top: 100px;
      align-self: start;
      overflow: hidden;
      max-height: calc(100vh - 120px);
      overflow-y: auto;
    }

    .details-box h2 {
      margin: 0 0 16px;
      color: var(--brand);
      font-size: 1.5rem;
      padding-right: 140px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .details-box::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 5px;
      background: var(--brand);
      border-radius: 20px 20px 0 0;
    }

    .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      background: transparent;
      color: #6b7280;
      border: none;
      border-radius: 10px;
      padding: 8px;
      cursor: pointer;
      font-weight: 400;
      font-size: 24px;
      line-height: 1;
      transition: all 0.2s ease;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      z-index: 101;
    }

    .close-btn:hover {
      color: #000;
      background: rgba(0, 0, 0, 0.05);
    }

    .detail-field {
      margin: 10px 0;
      color: var(--text);
      background: #f8f9fb;
      border-radius: 12px;
      padding: 12px 16px;
      border: 1px solid var(--line);
      pointer-events: none;
      user-select: text;
    }

    .detail-field strong {
      display: block;
      color: var(--brand);
      font-size: 0.75rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      margin-bottom: 4px;
      font-weight: 700;
    }

    .detail-description {
      line-height: 1.45;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 8px;
    }

    @media (max-width: 960px) {
      .detail-grid {
        grid-template-columns: 1fr;
      }
    }


    .content-section {
      padding: 50px 0;
    }

    .preset-section {
      padding-top: 22px;
      padding-bottom: 18px;
    }

    .preset-card {
      background: #fff;
      border-radius: 20px;
      padding: 24px;
      border: 1px solid var(--line);
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      display: grid;
      gap: 10px;
      transition: all 0.3s ease;
    }

    .preset-card:hover {
      
      box-shadow: 0 8px 24px rgba(21, 68, 140, 0.12);
    }

    .preset-card strong {
      color: var(--brand-strong);
      font-size: 1.05rem;
    }

    .preset-meta {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr);
      gap: 32px;
    }

    .contact-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 28px;
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
    }

    .contact-list {
      display: grid;
      gap: 12px;
      color: var(--muted);
    }

    .contact-form label {
      display: block;
      margin-bottom: 6px;
      color: var(--brand-strong);
      font-weight: 600;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #c6cbe2;
      font-size: 0.95rem;
    }

    .contact-form button {
      margin-top: 16px;
      padding: 12px 24px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.25s ease;
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.2);
    }

    .contact-form button:hover {
      
      box-shadow: 0 6px 20px rgba(21, 68, 140, 0.3);
    }

    footer {
      background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
      color: #fff;
      margin-top: 60px;
      margin-left: 280px;
      position: relative;
      overflow: hidden;
      transition: margin-left 0.3s ease;
    }

    body.sidebar-collapsed footer {
      margin-left: 70px;
    }

    footer::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      background: radial-gradient(circle at top right, rgba(126, 200, 227, 0.15), transparent 70%);
      pointer-events: none;
    }

    .footer-shell {
      width: min(1100px, 92%);
      margin: 0 auto;
      padding: 60px 0 32px;
      position: relative;
      z-index: 1;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 28px;
    }

    .footer-grid h3 {
      margin: 0 0 12px;
      font-size: 1.05rem;
    }

    .footer-grid p,
    .footer-grid li {
      color: #c7ccdf;
      font-size: 0.92rem;
      line-height: 1.5;
      margin: 0;
    }

    .footer-grid ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .footer-link {
      color: #c7ccdf;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-link:hover {
      color: #fff;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      margin-top: 24px;
      padding-top: 20px;
      text-align: center;
      color: #c7ccdf;
      font-size: 0.9rem;
    }

    .detail-modal {
      position: fixed;
      inset: 0;
      background: rgba(16, 19, 36, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2147483647;
      padding: 24px;
    }

    .detail-modal.open {
      display: flex;
    }

    .detail-modal-content {
      background: #fff;
      border-radius: 24px;
      padding: 32px;
      width: min(720px, 100%);
      max-height: 85vh;
      overflow-y: auto;
      box-shadow: 0 24px 64px rgba(21, 68, 140, 0.2);
      border: 1px solid var(--line);
      position: relative;
    }

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      border: none;
      background: transparent;
      color: #6b7280;
      border-radius: 10px;
      padding: 8px;
      cursor: pointer;
      font-weight: 400;
      font-size: 24px;
      line-height: 1;
      transition: all 0.2s ease;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .modal-close:hover {
      color: #000;
      background: rgba(0, 0, 0, 0.05);
    }

    .icon-btn {
      border: none;
      background: transparent;
      color: #6b7280;
      border-radius: 10px;
      padding: 8px;
      cursor: pointer;
      font-weight: 400;
      font-size: 24px;
      line-height: 1;
      transition: all 0.2s ease;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .icon-btn:hover {
      color: #000;
      background: rgba(0, 0, 0, 0.05);
    }

    .icon-btn svg {
      width: 20px;
      height: 20px;
    }

    .modal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .modal-item {
      background: #f3f7f9;
      border-radius: 10px;
      padding: 10px 12px;
      color: var(--text);
      font-size: 0.9rem;
    }

    .detail-actions {
      position: absolute;
      top: 20px;
      right: 60px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      z-index: 100;
    }

    .details-box .detail-actions {
      top: 16px;
      right: 50px;
    }

    .detail-actions-bottom {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      margin-top: 20px;
      margin-bottom: 0;
      padding-bottom: 20px;
    }

    .settings-tabs,
    .admin-tabs {
      display: flex;
      gap: 10px;
      margin: 16px 0;
    }

    .settings-tab,
    .admin-tab {
      border: 1.5px solid var(--line);
      background: #fff;
      color: var(--brand);
      border-radius: 12px;
      padding: 10px 20px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .settings-tab:hover,
    .admin-tab:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
    }

    .settings-tab.active,
    .admin-tab.active {
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.25);
    }

    .settings-panel,
    .admin-panel {
      display: none;
    }

    .settings-panel.active,
    .admin-panel.active {
      display: block;
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }

    .settings-grid label {
      display: block;
      margin: 8px 0;
      color: var(--text);
    }

    .settings-grid h4 {
      margin: 0 0 6px;
      color: var(--brand-strong);
      font-size: 0.95rem;
    }

    .settings-hint {
      color: var(--muted);
      margin: 0 0 12px;
    }

    .settings-actions {
      margin-top: 16px;
    }

    .admin-modal-content {
      width: min(920px, 100%);
    }

    .admin-card {
      background: #fff;
      border-radius: 20px;
      padding: 24px;
      border: 1px solid var(--line);
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      margin: 20px 0;
    }

    .admin-form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      align-items: end;
    }

    .admin-field label {
      display: block;
      margin-bottom: 6px;
      color: var(--brand-strong);
      font-weight: 600;
    }

    .admin-field input,
    .admin-field select {
      width: 100%;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid #c6cbe2;
      font-size: 0.95rem;
      background: #fff;
    }

    .admin-field-full {
      grid-column: 1 / -1;
    }

    .admin-list-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .admin-count {
      background: linear-gradient(135deg, var(--brand-soft), rgba(126, 200, 227, 0.15));
      border: 1px solid var(--line);
      color: var(--brand);
      border-radius: 10px;
      padding: 6px 16px;
      font-weight: 700;
      font-size: 0.85rem;
    }

    .admin-table {
      border: 1px solid rgba(27, 38, 54, 0.18);
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
    }

    .admin-table table {
      min-width: 0;
      table-layout: auto;
    }

    .admin-table th,
    .admin-table td {
      white-space: normal;
    }

    .admin-table td:last-child {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .settings-profile {
      display: grid;
      gap: 8px;
      color: var(--text);
      background: #f6f7ff;
      border-radius: 12px;
      padding: 14px;
      border: 1px solid var(--line);
    }

    .chat-section {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 2px solid var(--line);
    }

    .chat-title {
      margin: 0 0 16px;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--brand-strong);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .chat-count {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--muted);
      background: var(--brand-soft);
      padding: 2px 10px;
      border-radius: 12px;
    }

    .chat-window {
      display: grid;
      gap: 16px;
      max-height: 400px;
      overflow-y: auto;
      margin-bottom: 16px;
    }

    .chat-message {
      display: grid;
      gap: 8px;
      padding: 0;
      background: transparent;
      position: relative;
      grid-template-columns: auto auto;
      direction: rtl;
      justify-content: flex-start;
    }

    .chat-message > * {
      direction: ltr;
    }

    .chat-message.me {
      grid-template-columns: auto auto;
      direction: ltr;
      justify-content: flex-start;
    }

    .chat-message.me > * {
      direction: ltr;
    }

    .comment-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 6px;
    }

    .comment-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand), var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .comment-author {
      font-weight: 700;
      color: var(--text);
      font-size: 0.9rem;
    }

    .comment-date {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .comment-body-wrapper {
      min-width: 0;
      max-width: 70%;
    }

    .comment-body {
      background: #f8f9fb;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 16px;
      color: var(--text);
      line-height: 1.5;
      font-size: 0.9rem;
      position: relative;
    }

    .comment-body-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .comment-body p {
      margin: 0;
    }

    .chat-message.me .comment-avatar {
      background: linear-gradient(135deg, var(--accent), var(--brand-light));
    }

    .chat-message.me .comment-body {
      background: rgba(126, 200, 227, 0.08);
      border-color: rgba(126, 200, 227, 0.3);
    }

    .chat-actions {
      display: flex;
      gap: 6px;
      margin-top: 8px;
    }

    .chat-action-btn {
      background: transparent;
      border: none;
      color: #6b7280;
      cursor: pointer;
      padding: 4px;
      border-radius: 6px;
      transition: all 0.2s ease;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .chat-action-btn:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--brand);
    }

    .chat-action-delete:hover {
      background: rgba(239, 68, 68, 0.1);
      color: #ef4444;
    }

    .chat-input {
      display: grid;
      gap: 12px;
      background: linear-gradient(135deg, #f8f9fb, #ffffff);
      border: 1.5px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      transition: all 0.25s ease;
    }

    .chat-input:focus-within {
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(21, 68, 140, 0.1);
    }

    .chat-input-wrapper {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .chat-input-wrapper .comment-avatar {
      margin-top: 4px;
    }

    .chat-input textarea {
      flex: 1;
      border: none;
      background: transparent;
      font-family: var(--font-sans);
      font-size: 0.9rem;
      resize: vertical;
      min-height: 60px;
      padding: 8px;
      outline: none;
      color: var(--text);
    }

    .chat-input-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .chat-input-actions button {
      padding: 8px 18px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      border: none;
    }

    .chat-input-actions .btn-cancel {
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--line);
    }

    .chat-input-actions .btn-cancel:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      color: var(--brand);
    }

    .chat-input-actions .btn-submit {
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      color: #fff;
      box-shadow: 0 2px 8px rgba(21, 68, 140, 0.2);
    }

    .chat-input-actions .btn-submit:hover {
      
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.3);
    }

    .chat-input input {
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid rgba(31, 111, 139, 0.25);
      background: #fff;
      font-size: 0.95rem;
    }

    .action-btn {
      border: 1.5px solid var(--brand);
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      color: #fff;
      border-radius: 12px;
      padding: 8px 16px;
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.2);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .action-btn:hover {
      background: linear-gradient(135deg, #0d2d5e, var(--brand));
      
      box-shadow: 0 6px 20px rgba(21, 68, 140, 0.3);
    }

    .action-btn:focus-visible {
      outline: 3px solid rgba(21, 68, 140, 0.3);
      outline-offset: 3px;
    }

    .playlist-add-btn {
      padding: 8px 14px;
      font-size: 0.85rem;
    }

    .icon-btn.reminder-btn.reminder-set {
      color: #16a34a;
    }

    .icon-btn.reminder-btn.reminder-set:hover {
      color: #15803d;
      background: rgba(22, 163, 74, 0.1);
    }

    .favorite-btn {
      border: none;
      background: transparent;
      color: #64748b;
      border-radius: 999px;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .favorite-btn svg {
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .favorite-btn:hover {
      color: #475569;
    }

    .favorite-btn.active {
      color: #ef4444;
    }

    .favorite-btn.active svg {
      animation: heartBeat 0.3s ease-in-out;
    }

    .favorite-btn.active:hover {
      color: #dc2626;
    }

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

    .favorite-btn:focus-visible {
      outline: 3px solid rgba(31, 111, 139, 0.35);
      outline-offset: 2px;
    }

    .favorite-cell {
      width: 70px;
    }

    .card-actions {
      position: absolute;
      top: 16px;
      right: 8px;
      display: flex;
      gap: 8px;
      align-items: center;
      z-index: 1;
    }

    .pagination-bar {
      width: min(1600px, 96%);
      margin: 24px auto 50px;
      padding: 16px 24px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(20px);
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
      font-size: 0.95rem;
      color: var(--muted);
    }

    .pagination-spacer {
      flex: 1;
    }

    .pagination-label {
      font-weight: 600;
      color: var(--text);
    }

    .pagination-select {
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid rgba(27, 38, 54, 0.2);
      background: #f7f9fb;
      font-weight: 600;
      color: var(--brand-strong);
    }

    .pagination-count {
      font-weight: 600;
      color: var(--text);
    }

    .pagination-actions {
      display: flex;
      gap: 8px;
    }

    .pagination-actions button {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid rgba(27, 38, 54, 0.2);
      background: #ffffff;
      color: var(--brand-strong);
      font-weight: 600;
      cursor: pointer;
    }

    .pagination-actions button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .card-hint {
      color: var(--muted);
      font-size: 0.85rem;
    }

    @media (max-width: 960px) {
      .header-bar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 14px;
      }

      .container {
        grid-template-columns: 1fr;
      }

      .details-box {
        position: static;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 600px) {
      .toolbar {
        gap: 12px;
      }

      .hero-section h1 {
        font-size: 1.8rem;
      }
    }

    /* Wizard Styles */
    .wizard-container {
      margin-top: 20px;
    }

    .wizard-progress {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
      position: relative;
      padding: 0 20px;
    }

    .wizard-progress::before {
      content: "";
      position: absolute;
      top: 20px;
      left: 60px;
      right: 60px;
      height: 3px;
      background: var(--line);
      z-index: 0;
    }

    .wizard-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      position: relative;
      z-index: 1;
    }

    .wizard-step-number {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--muted);
      transition: all 0.3s ease;
    }

    .wizard-step.active .wizard-step-number,
    .wizard-step.completed .wizard-step-number {
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      border-color: var(--brand);
      color: #fff;
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.25);
    }

    .wizard-step-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
      text-align: center;
      max-width: 90px;
    }

    .wizard-step.active .wizard-step-label {
      color: var(--brand);
    }

    .wizard-content {
      background: #fff;
      border-radius: 20px;
      padding: 32px;
      border: 1px solid var(--line);
      box-shadow: 0 4px 16px rgba(21, 68, 140, 0.08);
      min-height: 400px;
      margin-bottom: 24px;
    }

    .wizard-page {
      display: none;
    }

    .wizard-page.active {
      display: block;
      animation: wizardFadeIn 0.3s ease;
    }

    @keyframes wizardFadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .wizard-page h3 {
      margin: 0 0 12px;
      color: var(--brand);
      font-size: 1.5rem;
    }

    .wizard-hint {
      color: var(--muted);
      margin: 0 0 12px;
      line-height: 1.5;
    }

    .wizard-select-all {
      border: 1px solid var(--brand);
      background: transparent;
      color: var(--brand);
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 0.9rem;
      cursor: pointer;
      margin-bottom: 20px;
      transition: all 0.2s ease;
    }

    .wizard-select-all:hover {
      background: var(--brand);
      color: #fff;
    }

    .wizard-form {
      display: grid;
      gap: 12px;
    }

    .wizard-form label {
      display: block;
      font-weight: 600;
      color: var(--brand);
      margin-bottom: 8px;
    }

    .wizard-form input[type="text"] {
      width: 100%;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1.5px solid var(--line);
      font-size: 1rem;
      transition: all 0.25s ease;
    }

    .wizard-form input[type="text"]:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(21, 68, 140, 0.1);
    }

    .wizard-options {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 12px;
    }

    .wizard-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-radius: 12px;
      border: 1.5px solid var(--line);
      background: #fff;
      cursor: pointer;
      transition: all 0.25s ease;
      position: relative;
    }

    .wizard-option:hover {
      border-color: var(--brand);
      background: var(--brand-soft);
      
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.1);
    }

    .wizard-option input[type="checkbox"] {
      width: 20px;
      height: 20px;
      cursor: pointer;
      accent-color: var(--brand);
    }

    .wizard-option input[type="checkbox"]:checked + span {
      color: var(--brand);
      font-weight: 600;
    }

    .wizard-option span {
      flex: 1;
      color: var(--text);
      font-size: 0.95rem;
    }

    .wizard-summary {
      display: grid;
      gap: 20px;
    }

    .wizard-summary-section {
      background: linear-gradient(135deg, #f8f9fb, #ffffff);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid var(--line);
    }

    .wizard-summary-section h4 {
      margin: 0 0 12px;
      color: var(--brand);
      font-size: 1.1rem;
    }

    .wizard-summary-items {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .wizard-summary-item {
      background: linear-gradient(135deg, var(--brand-soft), rgba(126, 200, 227, 0.15));
      color: var(--brand);
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 600;
      border: 1px solid var(--line);
    }

    .wizard-actions {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .wizard-btn {
      padding: 12px 32px;
      border-radius: 12px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      border: none;
    }

    .wizard-btn-back {
      background: #fff;
      border: 1.5px solid var(--line);
      color: var(--brand);
    }

    .wizard-btn-back:hover {
      background: var(--brand-soft);
      border-color: var(--brand);
      
    }

    .wizard-btn-back:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .wizard-btn-next,
    .wizard-btn-save {
      background: linear-gradient(135deg, var(--brand), #1a5bb8);
      color: #fff;
      box-shadow: 0 4px 12px rgba(21, 68, 140, 0.2);
    }

    .wizard-btn-next:hover,
    .wizard-btn-save:hover {
      
      box-shadow: 0 6px 20px rgba(21, 68, 140, 0.3);
    }

    .wizard-success {
      text-align: center;
      padding: 40px 20px;
    }

    .wizard-success-icon {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand), var(--accent));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      margin: 0 auto 20px;
      box-shadow: 0 8px 24px rgba(21, 68, 140, 0.2);
    }

    .wizard-success h3 {
      color: var(--brand);
      font-size: 1.8rem;
      margin: 0 0 12px;
    }

    .wizard-success p {
      color: var(--muted);
      font-size: 1.1rem;
      margin: 0;
    }

    @media (max-width: 960px) {
      .wizard-progress {
        flex-wrap: wrap;
        gap: 20px;
      }

      .wizard-progress::before {
        display: none;
      }

      .wizard-options {
        grid-template-columns: 1fr;
      }
    }

/* Admin Page Styles */
.admin-page-container {
  width: min(1600px, 96%);
  margin: 0 auto;
  padding: 32px 0;
}

.admin-scope-hint {
  background: rgba(21, 68, 140, 0.05);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  margin: 0 0 24px 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-count-text {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Delete Button Styling */
.action-btn-delete {
  background: #dc2626 !important;
  color: #fff !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn-delete:hover {
  background: #b91c1c !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.action-btn-delete svg {
  stroke: #fff;
}

/* Re-invite Button Styling */
.action-btn-reinvite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Action Button with Icon */
.action-btn svg {
  flex-shrink: 0;
}

/* Admin Preset Grid - Optimized Layout */
.admin-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.admin-preset-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-preset-grid h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--brand);
  font-weight: 600;
  border-bottom: 2px solid var(--brand-soft);
  padding-bottom: 6px;
}

/* Remove gradient from admin count (old style) */
.admin-count {
  background: transparent !important;
  border: none !important;
  color: var(--muted);
  font-weight: 500;
  padding: 0;
}

/* Wizard Summary Header with Edit Button */
.wizard-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard-summary-header h3 {
  margin: 0;
}

.wizard-edit-btn {
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
}

.wizard-edit-btn:hover {
  background: var(--brand);
  color: #fff;
}

.wizard-edit-btn svg {
  stroke: currentColor;
}

/* Wizard Steps - Clickable and No Strikethrough */
.wizard-step.clickable {
  cursor: pointer;
  transition: all 0.25s ease;
}

.wizard-step.clickable:hover .wizard-step-number {
  background: var(--brand);
  color: #fff;
  transform: scale(1.1);
}

.wizard-step.clickable:hover .wizard-step-label {
  color: var(--brand);
}

/* Remove text-decoration from completed steps */
.wizard-step.completed .wizard-step-number,
.wizard-step.completed .wizard-step-label {
  text-decoration: none !important;
}

.wizard-step.completed .wizard-step-number {
  background: var(--brand);
  color: #fff;
  opacity: 1;
}

.wizard-step.completed .wizard-step-label {
  opacity: 1;
  color: var(--text);
}

/* Delete Confirmation Dialog */
.delete-confirm-dialog {
  position: fixed;
  inset: 0;
  background: rgba(16, 19, 36, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.delete-confirm-dialog.open {
  display: flex;
}

.delete-confirm-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.delete-confirm-content h3 {
  margin: 0 0 12px 0;
  color: #dc2626;
  font-size: 1.3rem;
}

.delete-confirm-content p {
  margin: 0 0 24px 0;
  color: var(--text);
  line-height: 1.6;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.delete-confirm-cancel,
.delete-confirm-delete {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.delete-confirm-cancel {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--text);
}

.delete-confirm-cancel:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.delete-confirm-delete {
  background: #dc2626;
  border: none;
  color: #fff;
}

.delete-confirm-delete:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
