:root {
      --dark: #1f1f1f;
      --dark-2: #292929;
      --body: #f5f5f5;
      --white: #ffffff;
      --text: #1f1f1f;
      --muted: #777777;
      --muted-2: #999999;
      --border: #e4e4e4;
      --border-2: #d7d7d7;
      --success: #198754;
      --warning: #f59e0b;
      --danger: #dc2626;
      --info: #2563eb;
      --purple: #7c3aed;
      --sidebar: 260px;
      --header: 70px;
      --radius: 10px;
      --shadow: 0 12px 34px rgba(0,0,0,0.07);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Kanit", sans-serif;
      background: var(--body);
      color: var(--text);
      min-height: 100vh;
    }

    button,
    input,
    select,
    textarea {
      font-family: inherit;
    }

    button {
      cursor: pointer;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

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

    .sidebar {
      width: var(--sidebar);
      height: 100vh;
      background: var(--dark);
      color: #ffffff;
      position: fixed;
      left: 0;
      top: 0;
      z-index: 50;
      display: flex;
      flex-direction: column;
      border-right: 1px solid #111111;
      transition: 0.25s ease;
    }

    .brand {
      height: var(--header);
      display: flex;
      align-items: center;
      padding: 0 22px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      gap: 12px;
    }

    .brand-icon {
      width: 38px;
      height: 38px;
      background: #ffffff;
      color: var(--dark);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      letter-spacing: -1px;
      border-radius: var(--radius);
    }

    .brand-text strong {
      display: block;
      font-size: 17px;
      font-weight: 600;
      line-height: 1;
    }

    .brand-text span {
      display: block;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      margin-top: 5px;
    }

    .menu {
      padding: 18px 0;
      flex: 1;
      overflow-y: auto;
    }

    .menu::-webkit-scrollbar {
      width: 5px;
    }

    .menu::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.18);
      border-radius: 20px;
    }

    .menu-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: rgba(255,255,255,0.38);
      padding: 15px 22px 8px;
    }

    .menu-item {
      width: calc(100% - 24px);
      height: 50px;
      border: 0;
      background: transparent;
      color: rgba(255,255,255,0.72);
      display: flex;
      align-items: center;
      gap: 13px;
      padding: 0 16px;
      margin: 0 12px 6px;
      font-size: 15px;
      font-weight: 400;
      border-radius: var(--radius);
      transition: 0.2s ease;
      text-align: left;
    }

    .menu-item svg {
      width: 19px;
      height: 19px;
      stroke-width: 2;
    }

    .menu-item:hover {
      color: #ffffff;
      background: rgba(255,255,255,0.06);
    }

    .menu-item.active {
      background: rgba(255,255,255,0.12);
      color: #ffffff;
    }

    .sidebar-bottom {
      padding: 18px 22px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.55);
      font-size: 13px;
    }

    .sidebar-bottom strong {
      display: block;
      color: #ffffff;
      font-weight: 500;
      margin-top: 4px;
    }

    .main {
      margin-left: var(--sidebar);
      width: calc(100% - var(--sidebar));
      min-height: 100vh;
    }

    .header {
      height: var(--header);
      background: var(--dark);
      color: #ffffff;
      position: sticky;
      top: 0;
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .mobile-menu {
      display: none;
      background: transparent;
      border: 0;
      color: #ffffff;
      width: 36px;
      height: 36px;
      align-items: center;
      justify-content: center;
    }

    .header-title strong {
      display: block;
      font-size: 18px;
      font-weight: 500;
      line-height: 1;
    }

    .header-title span {
      display: block;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      margin-top: 6px;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .header-icon {
      border: 0;
      background: transparent;
      color: rgba(255,255,255,0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      transition: 0.2s ease;
      position: relative;
    }

    .header-icon:hover {
      color: #ffffff;
      transform: translateY(-1px);
    }

    .header-icon svg {
      width: 21px;
      height: 21px;
      stroke-width: 2;
    }

    .dot {
      width: 8px;
      height: 8px;
      background: var(--danger);
      border-radius: 50%;
      position: absolute;
      right: -2px;
      top: -2px;
      border: 2px solid var(--dark);
    }

    .user {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-left: 18px;
      border-left: 1px solid rgba(255,255,255,0.12);
    }

    .avatar {
      width: 38px;
      height: 38px;
      background: #ffffff;
      color: var(--dark);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      border-radius: var(--radius);
      overflow: hidden;
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .user-info strong {
      display: block;
      font-size: 14px;
      font-weight: 500;
      line-height: 1;
    }

    .user-info span {
      display: block;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      margin-top: 5px;
    }

    .content {
      padding: 28px;
    }

    .page {
      display: none;
      animation: fade 0.2s ease;
    }

    .page.active {
      display: block;
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .page-head {
      background: transparent;
      border: 0;
      padding: 0;
      margin-bottom: 22px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .page-tools-left {
      margin-right: auto;
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .mini-title {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    .mini-title strong {
      color: var(--text);
      font-size: 16px;
      font-weight: 500;
    }

    .btn {
      min-height: 46px;
      border: 0;
      background: var(--dark);
      color: #ffffff;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-size: 14px;
      font-weight: 500;
      border-radius: var(--radius);
      transition: 0.2s ease;
      white-space: nowrap;
    }

    .btn:hover {
      background: #000000;
      transform: translateY(-1px);
    }

    .btn svg {
      width: 18px;
      height: 18px;
    }

    .btn-sm {
      min-height: 36px;
      padding: 0 13px;
      font-size: 13px;
    }

    .btn-lg {
      min-height: 54px;
      padding: 0 22px;
      font-size: 15px;
    }

    .btn-light {
      background: #ffffff;
      color: var(--dark);
      border: 1px solid var(--border);
    }

    .btn-light:hover {
      background: #f2f2f2;
    }

    .btn-ghost {
      background: transparent;
      color: var(--dark);
      border: 1px solid transparent;
    }

    .btn-ghost:hover {
      background: #eeeeee;
    }

    .btn-success {
      background: var(--success);
    }

    .btn-warning {
      background: var(--warning);
    }

    .btn-danger {
      background: var(--danger);
    }

    .btn-info {
      background: var(--info);
    }

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

    .btn-block {
      width: 100%;
    }

    .grid {
      display: grid;
      gap: 18px;
    }

    .grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    .grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .grid-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .card {
      background: #ffffff;
      border: 1px solid var(--border);
      padding: 22px;
      border-radius: var(--radius);
    }

    .card-soft {
      background: #fafafa;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px;
    }

    .card-dark {
      background: var(--dark);
      color: #ffffff;
      border: 1px solid var(--dark);
      padding: 22px;
      border-radius: var(--radius);
    }

    .card-hover {
      transition: 0.2s ease;
    }

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

    .stat {
      min-height: 135px;
      display: flex;
      justify-content: space-between;
      gap: 18px;
    }

    .stat span {
      color: var(--muted);
      font-size: 14px;
    }

    .stat h2 {
      font-size: 32px;
      font-weight: 600;
      margin-top: 8px;
      letter-spacing: -1px;
    }

    .stat small {
      display: block;
      margin-top: 10px;
      color: var(--success);
      font-size: 13px;
    }

    .stat-icon {
      width: 46px;
      height: 46px;
      background: #f2f2f2;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      border-radius: var(--radius);
    }

    .section-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .section-subtitle {
      font-size: 14px;
      color: var(--muted);
      margin-top: -10px;
      margin-bottom: 18px;
    }

    .divider {
      height: 1px;
      background: var(--border);
      margin: 22px 0;
    }

    .table-wrap {
      overflow-x: auto;
      border-radius: var(--radius);
      border: 1px solid var(--border);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 760px;
      background: #ffffff;
    }

    th,
    td {
      padding: 15px 16px;
      border-bottom: 1px solid var(--border);
      text-align: left;
      font-size: 14px;
      vertical-align: middle;
    }

    th {
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: .5px;
      background: #fafafa;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    tbody tr {
      transition: .18s ease;
    }

    tbody tr:hover {
      background: #fafafa;
    }

    .table-user {
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .table-avatar {
      width: 34px;
      height: 34px;
      background: var(--dark);
      color: #fff;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 600;
      flex: 0 0 auto;
    }

    .table-user strong {
      display: block;
      font-size: 14px;
      font-weight: 500;
    }

    .table-user span {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      font-size: 12px;
      font-weight: 500;
      border: 1px solid transparent;
      border-radius: var(--radius);
      line-height: 1;
      min-height: 28px;
    }

    .badge::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
    }

    .badge-clean::before {
      display: none;
    }

    .badge-success {
      background: rgba(25,135,84,0.09);
      color: var(--success);
      border-color: rgba(25,135,84,0.2);
    }

    .badge-warning {
      background: rgba(245,158,11,0.12);
      color: #a16207;
      border-color: rgba(245,158,11,0.25);
    }

    .badge-danger {
      background: rgba(220,38,38,0.09);
      color: var(--danger);
      border-color: rgba(220,38,38,0.2);
    }

    .badge-info {
      background: rgba(37,99,235,0.09);
      color: var(--info);
      border-color: rgba(37,99,235,0.2);
    }

    .badge-dark {
      background: #f2f2f2;
      color: #333333;
      border-color: #dddddd;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #f4f4f4;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      color: #333;
    }

    .chip button {
      border: 0;
      background: transparent;
      display: flex;
      color: var(--muted);
    }

    .search-area {
      display: flex;
      gap: 12px;
      margin-bottom: 18px;
    }

    .search-box {
      flex: 1;
      position: relative;
    }

    .search-box svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      color: var(--muted);
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid var(--border);
      background: #ffffff;
      height: 46px;
      padding: 0 14px;
      outline: none;
      font-size: 14px;
      border-radius: var(--radius);
      transition: 0.2s ease;
      color: var(--text);
    }

    .search-box input {
      padding-left: 42px;
    }

    textarea {
      min-height: 110px;
      padding-top: 12px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: #1f1f1f;
      box-shadow: 0 0 0 4px rgba(31,31,31,0.08);
    }

    input.error,
    select.error,
    textarea.error {
      border-color: var(--danger);
      box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
    }

    input.success,
    select.success,
    textarea.success {
      border-color: var(--success);
      box-shadow: 0 0 0 4px rgba(25,135,84,0.08);
    }

    .field-help {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 6px;
    }

    .field-error {
      display: block;
      color: var(--danger);
      font-size: 12px;
      margin-top: 6px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .form-group {
      margin-bottom: 14px;
    }

    .form-group label {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 7px;
    }

    .input-with-action {
      display: flex;
      gap: 10px;
    }

    .input-with-action input {
      flex: 1;
    }

    .switch {
      position: relative;
      width: 48px;
      height: 28px;
      display: inline-flex;
    }

    .switch input {
      display: none;
    }

    .slider {
      position: absolute;
      inset: 0;
      background: #dddddd;
      border-radius: 999px;
      transition: .2s ease;
    }

    .slider:before {
      content: "";
      width: 22px;
      height: 22px;
      background: #fff;
      border-radius: 50%;
      position: absolute;
      left: 3px;
      top: 3px;
      transition: .2s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,.14);
    }

    .switch input:checked + .slider {
      background: var(--dark);
    }

    .switch input:checked + .slider:before {
      transform: translateX(20px);
    }

    .check-row {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 14px;
      color: #333;
    }

    .check-row input {
      width: 18px;
      height: 18px;
      accent-color: var(--dark);
    }

    .ticket-item {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 15px;
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
    }

    .ticket-item:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .ticket-left {
      display: flex;
      gap: 12px;
    }

    .ticket-icon {
      width: 42px;
      height: 42px;
      background: #f2f2f2;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      border-radius: var(--radius);
    }

    .ticket-left strong {
      display: block;
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .ticket-left span {
      color: var(--muted);
      font-size: 13px;
    }

    .elements-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .element-box {
      border: 1px solid var(--border);
      background: #ffffff;
      padding: 18px;
      border-radius: var(--radius);
    }

    .element-box h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .element-box p {
      color: var(--muted);
      font-size: 14px;
    }

    .element-section {
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 18px;
      overflow: hidden;
    }

    .element-header {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      background: #fafafa;
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
    }

    .element-header h2 {
      font-size: 18px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .element-number {
      width: 32px;
      height: 32px;
      background: var(--dark);
      color: #fff;
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      flex: 0 0 auto;
    }

    .element-header span {
      color: var(--muted);
      font-size: 13px;
    }

    .element-body {
      padding: 20px;
    }

    .demo-line {
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
    }

    .demo-line:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .demo-label {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 10px;
      display: block;
    }

    .list {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
    }

    .list-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      border-bottom: 1px solid var(--border);
      transition: .18s ease;
    }

    .list-item:last-child {
      border-bottom: 0;
    }

    .list-item:hover {
      background: #fafafa;
    }

    .list-icon {
      width: 42px;
      height: 42px;
      border-radius: var(--radius);
      background: #f2f2f2;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .list-content {
      flex: 1;
      min-width: 0;
    }

    .list-content strong {
      display: block;
      font-size: 15px;
      font-weight: 500;
    }

    .list-content span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-top: 3px;
    }

    .list-meta {
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }

    .alert {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      border: 1px solid var(--border);
      padding: 15px;
      border-radius: var(--radius);
      background: #fff;
    }

    .alert svg {
      width: 20px;
      height: 20px;
      flex: 0 0 auto;
      margin-top: 1px;
    }

    .alert strong {
      display: block;
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 3px;
    }

    .alert span {
      color: var(--muted);
      font-size: 13px;
      display: block;
    }

    .alert-success {
      border-color: rgba(25,135,84,.22);
      background: rgba(25,135,84,.06);
      color: var(--success);
    }

    .alert-warning {
      border-color: rgba(245,158,11,.28);
      background: rgba(245,158,11,.08);
      color: #a16207;
    }

    .alert-danger {
      border-color: rgba(220,38,38,.22);
      background: rgba(220,38,38,.06);
      color: var(--danger);
    }

    .alert-info {
      border-color: rgba(37,99,235,.22);
      background: rgba(37,99,235,.06);
      color: var(--info);
    }

    .toast-box {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 999;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .toast {
      min-width: 300px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px 15px;
      box-shadow: var(--shadow);
      display: none;
      align-items: flex-start;
      gap: 12px;
      animation: slideToast .22s ease;
    }

    .toast.show {
      display: flex;
    }

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

    .toast strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
    }

    .toast span {
      display: block;
      font-size: 13px;
      color: var(--muted);
      margin-top: 2px;
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 990;
      background: rgba(0,0,0,.5);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-overlay.show {
      display: flex;
    }

    .modal {
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      animation: modalIn .18s ease;
    }

    @keyframes modalIn {
      from {
        opacity: 0;
        transform: scale(.98);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .modal-header,
    .modal-footer {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .modal-footer {
      border-bottom: 0;
      border-top: 1px solid var(--border);
      justify-content: flex-end;
    }

    .modal-header strong {
      font-size: 18px;
      font-weight: 600;
    }

    .modal-body {
      padding: 20px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .close-btn {
      border: 0;
      background: transparent;
      color: var(--muted);
      display: flex;
    }

    .faq {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
    }

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

    .faq-item:last-child {
      border-bottom: 0;
    }

    .faq-question {
      width: 100%;
      border: 0;
      background: #fff;
      padding: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      font-size: 15px;
      font-weight: 500;
      color: var(--text);
      text-align: left;
    }

    .faq-answer {
      display: none;
      padding: 0 16px 16px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .faq-item.active .faq-answer {
      display: block;
    }

    .faq-item.active .faq-question svg {
      transform: rotate(180deg);
    }

    .tabs {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .tab-buttons {
      display: flex;
      background: #fafafa;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
    }

    .tab-btn {
      border: 0;
      background: transparent;
      min-height: 48px;
      padding: 0 18px;
      color: var(--muted);
      font-size: 14px;
      white-space: nowrap;
    }

    .tab-btn.active {
      background: #fff;
      color: var(--dark);
      font-weight: 500;
    }

    .tab-content {
      display: none;
      padding: 18px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .tab-content.active {
      display: block;
    }

    .progress {
      width: 100%;
      height: 10px;
      background: #eeeeee;
      border-radius: 999px;
      overflow: hidden;
    }

    .progress span {
      display: block;
      height: 100%;
      background: var(--dark);
      border-radius: 999px;
    }

    .progress.success span {
      background: var(--success);
    }

    .progress.warning span {
      background: var(--warning);
    }

    .timeline {
      position: relative;
      padding-left: 24px;
    }

    .timeline::before {
      content: "";
      width: 1px;
      background: var(--border);
      position: absolute;
      left: 7px;
      top: 4px;
      bottom: 4px;
    }

    .timeline-item {
      position: relative;
      padding-bottom: 20px;
    }

    .timeline-item:last-child {
      padding-bottom: 0;
    }

    .timeline-item::before {
      content: "";
      width: 14px;
      height: 14px;
      background: var(--dark);
      border: 3px solid #fff;
      box-shadow: 0 0 0 1px var(--border);
      border-radius: 50%;
      position: absolute;
      left: -24px;
      top: 2px;
    }

    .timeline-item strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
    }

    .timeline-item span {
      display: block;
      font-size: 13px;
      color: var(--muted);
      margin-top: 3px;
    }

    .empty-state {
      border: 1px dashed var(--border-2);
      background: #fafafa;
      border-radius: var(--radius);
      padding: 36px 20px;
      text-align: center;
    }

    .empty-state .empty-icon {
      width: 54px;
      height: 54px;
      border-radius: var(--radius);
      background: #fff;
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
    }

    .empty-state strong {
      display: block;
      font-size: 17px;
      font-weight: 600;
    }

    .empty-state span {
      display: block;
      color: var(--muted);
      font-size: 14px;
      margin-top: 5px;
      margin-bottom: 16px;
    }

    .pagination {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .page-btn {
      min-width: 38px;
      height: 38px;
      border: 1px solid var(--border);
      background: #fff;
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      color: var(--text);
    }

    .page-btn.active {
      background: var(--dark);
      color: #fff;
      border-color: var(--dark);
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .breadcrumb a {
      color: var(--text);
      font-weight: 500;
    }

    .dropdown {
      position: relative;
      display: inline-flex;
    }

    .dropdown-menu {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      width: 220px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      display: none;
      overflow: hidden;
      z-index: 20;
    }

    .dropdown.open .dropdown-menu {
      display: block;
    }

    .dropdown-menu button {
      width: 100%;
      border: 0;
      background: #fff;
      padding: 12px 14px;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text);
      font-size: 14px;
    }

    .dropdown-menu button:hover {
      background: #fafafa;
    }

    .profile-card {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }

    .profile-image {
      width: 72px;
      height: 72px;
      background: var(--dark);
      color: #fff;
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 700;
      flex: 0 0 auto;
    }

    .profile-card h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .profile-card p {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 12px;
    }

    .price-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 22px;
      background: #fff;
    }

    .price-card.featured {
      background: var(--dark);
      color: #fff;
      border-color: var(--dark);
    }

    .price-card span {
      color: var(--muted);
      font-size: 13px;
    }

    .price-card.featured span,
    .price-card.featured p,
    .price-card.featured li {
      color: rgba(255,255,255,.7);
    }

    .price-card h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .price {
      font-size: 32px;
      font-weight: 700;
      margin: 12px 0;
    }

    .price-card ul {
      list-style: none;
      display: grid;
      gap: 8px;
      margin: 18px 0;
      font-size: 14px;
      color: var(--muted);
    }

    .upload-box {
      border: 1px dashed var(--border-2);
      border-radius: var(--radius);
      background: #fafafa;
      padding: 28px;
      text-align: center;
    }

    .upload-box svg {
      margin-bottom: 10px;
      color: var(--muted);
    }

    .upload-box strong {
      display: block;
      font-size: 15px;
      font-weight: 600;
    }

    .upload-box span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-top: 4px;
    }

    .kanban {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .kanban-col {
      background: #fafafa;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
    }

    .kanban-col h3 {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .kanban-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
      margin-bottom: 10px;
    }

    .kanban-card strong {
      font-size: 14px;
      font-weight: 600;
      display: block;
    }

    .kanban-card span {
      color: var(--muted);
      font-size: 13px;
      display: block;
      margin-top: 3px;
    }

    .invoice-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      background: #fff;
    }

    .invoice-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

    .invoice-top strong {
      font-size: 17px;
      font-weight: 600;
    }

    .invoice-total {
      background: #fafafa;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
      display: flex;
      justify-content: space-between;
      margin-top: 16px;
      font-weight: 600;
    }

    .message-card {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .message-card .avatar {
      background: var(--dark);
      color: #fff;
      flex: 0 0 auto;
    }

    .message-bubble {
      background: #fafafa;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 13px 14px;
      flex: 1;
    }

    .message-bubble strong {
      font-size: 14px;
      font-weight: 600;
    }

    .message-bubble p {
      color: var(--muted);
      font-size: 14px;
      margin-top: 5px;
      line-height: 1.5;
    }

    .mini-metric {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
      background: #fff;
    }

    .mini-metric span {
      color: var(--muted);
      font-size: 13px;
    }

    .mini-metric strong {
      display: block;
      font-size: 18px;
      font-weight: 600;
      margin-top: 2px;
    }

    .code-box {
      background: #1f1f1f;
      color: #f5f5f5;
      border-radius: var(--radius);
      padding: 16px;
      font-family: Consolas, Monaco, monospace;
      font-size: 13px;
      overflow-x: auto;
      line-height: 1.6;
    }

    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 45;
    }

    @media (max-width: 1180px) {
      .grid-4 {
        grid-template-columns: repeat(2, 1fr);
      }

      .grid-3,
      .kanban {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 850px) {
      .sidebar {
        transform: translateX(-100%);
      }

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

      .main {
        width: 100%;
        margin-left: 0;
      }

      .mobile-menu {
        display: flex;
      }

      .overlay.show {
        display: block;
      }

      .header {
        padding: 0 18px;
      }

      .content {
        padding: 18px;
      }

      .user-info {
        display: none;
      }

      .page-head {
        justify-content: flex-start;
      }
    }

    @media (max-width: 680px) {
      .grid-4,
      .grid-3,
      .grid-2,
      .form-row,
      .kanban {
        grid-template-columns: 1fr;
      }

      .search-area {
        flex-direction: column;
      }

      .btn {
        width: 100%;
      }

      .header-actions {
        gap: 14px;
      }

      .header-title span {
        display: none;
      }

      .list-item,
      .ticket-item,
      .profile-card,
      .invoice-top {
        flex-direction: column;
      }

      .list-meta {
        white-space: normal;
      }

      .toast {
        min-width: auto;
        width: calc(100vw - 44px);
      }
    }
