:root {
  --nc-ink: #172033;
  --nc-muted: #64748b;
  --nc-line: #e2e8f0;
  --nc-soft: #f8fafc;
  --nc-primary: #5966e8;
  --nc-primary-hover: #4854d6;
  --nc-secondary: #0ea5e9;
  --nc-success: #10b981;
  --nc-danger: #ef4444;
  --nc-warning: #f59e0b;
  --nc-radius: 18px;
  --nc-radius-sm: 10px;
  --nc-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --nc-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --nc-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);
}

/* ==================== GLOBAL CONTAINERS & COMMON ==================== */
.nc-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nc-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.nc-section-sub {
  padding-top: 48px;
  padding-bottom: 48px;
}

.nc-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.nc-section-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--nc-ink);
  margin: 6px 0 2px;
}

.nc-section-heading p {
  color: var(--nc-muted);
  margin: 0;
  font-size: 14px;
}

.nc-count, .nc-section-note {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nc-band {
  background: #f8fafc;
  border-top: 1px solid var(--nc-line);
  border-bottom: 1px solid var(--nc-line);
}

.nc-kicker, .nc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Buttons */
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nc-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.nc-btn-sm {
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 8px;
}

.nc-btn-xs {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 6px;
}

.nc-btn-primary {
  background: var(--nc-primary);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(89, 102, 232, 0.25);
}

.nc-btn-primary:hover {
  background: var(--nc-primary-hover);
  box-shadow: 0 8px 22px rgba(89, 102, 232, 0.35);
}

.nc-btn-secondary {
  background: #e0f2fe;
  color: #0369a1 !important;
}

.nc-btn-secondary:hover {
  background: #bae6fd;
}

.nc-btn-ghost {
  background: #fff;
  color: var(--nc-ink) !important;
  border: 1px solid var(--nc-line);
}

.nc-btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.nc-btn-light {
  background: #f1f5f9;
  color: #334155 !important;
}

.nc-btn-light:hover {
  background: #e2e8f0;
}

.nc-btn-icon {
  background: #f1f5f9;
  border: 1px solid var(--nc-line);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #475569;
  transition: 0.15s;
}

.nc-btn-icon:hover {
  background: #e2e8f0;
  color: var(--nc-primary);
}

/* Breadcrumbs */
.nc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nc-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.nc-breadcrumbs a:hover {
  color: var(--nc-primary);
}

.nc-breadcrumb-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.nc-breadcrumb-current {
  color: var(--nc-ink);
  font-weight: 700;
}

/* ==================== SEARCH BAR ==================== */
.nc-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 20px 0 24px;
}

.nc-search-box-category {
  max-width: 440px;
  margin: 0;
}

.nc-search-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.nc-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--nc-ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.2s;
}

.nc-search-input:focus {
  outline: none;
  border-color: var(--nc-primary);
  box-shadow: 0 0 0 3px rgba(89, 102, 232, 0.15);
}

.nc-search-clear {
  position: absolute;
  right: 14px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  color: #475569;
  font-size: 14px;
}

.nc-search-input-sm {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  font-size: 12px;
}

/* Category Toolbar */
.nc-category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nc-line);
}

/* ==================== 3.1 HERO SECTION ==================== */
.nc-hero {
  padding: 68px 0 64px;
  background: radial-gradient(circle at 82% 20%, rgba(89, 102, 232, 0.14), transparent 35%),
              linear-gradient(135deg, #f8faff, #f1f4fd 50%, #f9faff);
  border-bottom: 1px solid var(--nc-line);
}

.nc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.nc-hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.18;
  letter-spacing: -1.5px;
  color: var(--nc-ink);
  margin: 16px 0 14px;
  font-weight: 850;
}

.nc-hero h1 span {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nc-hero p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--nc-muted);
  max-width: 580px;
  margin: 0;
}

.nc-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nc-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.nc-hero-meta i {
  color: var(--nc-success);
  margin-right: 4px;
}

/* Hero Art Window */
.nc-hero-art {
  padding: 10px;
}

.nc-art-window {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
  transform: rotate(1deg);
  transition: transform 0.3s;
}

.nc-art-window:hover {
  transform: rotate(0deg);
}

.nc-window-bar {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.nc-window-bar b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.nc-window-bar b:nth-child(1) { background: #fda4af; }
.nc-window-bar b:nth-child(2) { background: #fde047; }
.nc-window-bar b:nth-child(3) { background: #86efac; }

.nc-window-bar span {
  margin-left: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.nc-art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nc-art-tile {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.2s;
}

.nc-art-tile:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.nc-art-tile i { font-size: 24px; }
.nc-art-tile b { font-size: 15px; font-weight: 800; }
.nc-art-tile small { font-size: 11px; opacity: 0.8; }

.nc-art-code { background: #eef2ff; color: #4f46e5; }
.nc-art-graphic { background: #fdf2f8; color: #db2777; }
.nc-art-image { background: #f0fdf4; color: #059669; }
.nc-art-data { background: #fffbeb; color: #d97706; }
.nc-art-lottery { background: #fffbeb; color: #b45309; }
.nc-tag-lottery { background: #fffbeb; color: #b45309; }

.nc-studio-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.nc-app-grid-5cols {
  grid-template-columns: repeat(5, 1fr);
}

.nc-art-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.nc-mobile-nav-group {
  padding: 6px 0;
}

.nc-mobile-nav-group .nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  transition: all 0.15s;
}

.nc-mobile-nav-group .nav-link:hover {
  background: #f1f5f9;
}

.nc-art-footer {
  padding: 14px 6px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.nc-art-footer span:last-child {
  margin-left: auto;
}

.nc-pulse, .nc-live-status i {
  width: 7px;
  height: 7px;
  background: var(--nc-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

/* ==================== STUDIO CATEGORIES (3.5) ==================== */
.nc-studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.nc-studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  padding: 24px 22px;
  text-decoration: none;
  transition: all 0.22s ease;
  overflow: hidden;
}

.nc-studio-card:hover {
  transform: translateY(-5px);
  border-color: var(--studio-color);
  box-shadow: var(--nc-shadow);
  text-decoration: none;
}

.nc-studio-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--studio-color) 12%, white);
  color: var(--studio-color);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.nc-card-count {
  position: absolute;
  right: 18px;
  top: 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.nc-studio-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--nc-ink);
  margin: 0 0 4px;
}

.nc-card-thai {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
  display: block;
}

.nc-studio-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--nc-muted);
  margin: 0 0 18px;
  flex: 1;
}

.nc-card-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--studio-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nc-card-link i {
  transition: transform 0.2s;
}

.nc-studio-card:hover .nc-card-link i {
  transform: translateX(4px);
}

/* ==================== APP CARDS (HIGHLIGHT, RECOMMENDED, LATEST) ==================== */
.nc-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.nc-app-grid-featured .nc-app-card {
  border-color: #cbd5e1;
  background: #fff;
}

.nc-app-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nc-app-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--nc-shadow);
  text-decoration: none;
}

.nc-app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nc-app-symbol {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f1f5f9;
  color: var(--nc-primary);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}

.nc-card-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.nc-tag {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 4px 8px;
}

.nc-tag-studio {
  font-size: 10px;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 8px;
}

.nc-tag-code { background: #eef2ff; color: #4f46e5; }
.nc-tag-graphic { background: #fdf2f8; color: #db2777; }
.nc-tag-image { background: #f0fdf4; color: #059669; }
.nc-tag-data { background: #fffbeb; color: #d97706; }

.nc-app-card h3 {
  font-size: 15px;
  color: var(--nc-ink);
  font-weight: 800;
  margin: 0 0 6px;
}

.nc-app-card p {
  font-size: 12px;
  color: var(--nc-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.nc-app-open {
  font-size: 12px;
  font-weight: 800;
  color: var(--nc-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nc-app-open i {
  transition: transform 0.2s;
}

.nc-app-card:hover .nc-app-open i {
  transform: translateX(4px);
}

/* Latest list */
.nc-latest-list {
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
  overflow: hidden;
}

.nc-latest-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.15s;
}

.nc-latest-item:last-child {
  border-bottom: none;
}

.nc-latest-item:hover {
  background: #f8fafc;
  text-decoration: none;
}

.nc-latest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nc-latest-info b {
  font-size: 13px;
  color: var(--nc-ink);
}

.nc-latest-info small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-latest-date {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.nc-latest-item > i {
  color: #cbd5e1;
  font-size: 12px;
}

/* ==================== 3.6 LOTTERY CALLOUT ==================== */
.nc-lottery-callout {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 0 54px;
}

.nc-lottery-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fffbeb;
  color: #d97706;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.nc-lottery-callout h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 6px;
  color: var(--nc-ink);
}

.nc-lottery-callout p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--nc-muted);
  margin: 0;
}

/* ==================== CATEGORY & APP HERO ==================== */
.nc-studio-hero {
  padding: 42px 0 46px;
  background: linear-gradient(130deg, color-mix(in srgb, var(--studio-color) 10%, white), #f8fafc);
  border-bottom: 1px solid var(--nc-line);
}

.nc-studio-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nc-studio-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 850;
  color: var(--nc-ink);
  margin: 6px 0 8px;
}

.nc-studio-hero p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nc-muted);
  max-width: 620px;
  margin: 0 0 10px;
}

.nc-studio-subtitle {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.nc-studio-big-icon {
  width: 95px;
  height: 95px;
  border-radius: 24px;
  background: #fff;
  color: var(--studio-color);
  display: grid;
  place-items: center;
  font-size: 40px;
  box-shadow: var(--nc-shadow);
}

.nc-app-hero {
  padding: 36px 0 32px;
  background: linear-gradient(135deg, #f8faff, #fff);
  border-bottom: 1px solid var(--nc-line);
}

.nc-app-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.nc-app-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.nc-badge-browser {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nc-app-hero h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 850;
  color: var(--nc-ink);
  margin: 4px 0 6px;
}

.nc-app-hero p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nc-muted);
  margin: 0;
  max-width: 680px;
}

/* ==================== WORKSPACE STYLING ==================== */
.nc-section-app {
  padding-top: 36px;
  padding-bottom: 48px;
}

.nc-workspace {
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  background: #fff;
  box-shadow: var(--nc-shadow);
  padding: 26px;
}

.nc-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.nc-workspace-head b {
  display: block;
  color: var(--nc-ink);
  font-size: 15px;
}

.nc-workspace-head small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.nc-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #059669;
  font-weight: 700;
}

.nc-tool-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}

.nc-tool-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.nc-tool-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.nc-tool-alert.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Tool Toolbar & Inputs */
.nc-tool-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.nc-toolbar-left, .nc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nc-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nc-workspace label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
}

.nc-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: #1e293b;
  background: #f8fafc;
  resize: vertical;
  transition: border-color 0.15s;
}

.nc-textarea:focus {
  outline: none;
  border-color: var(--nc-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(89, 102, 232, 0.12);
}

.nc-input, .nc-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13px;
  color: var(--nc-ink);
  background: #fff;
}

.nc-input:focus, .nc-select:focus {
  outline: none;
  border-color: var(--nc-primary);
}

.nc-select-sm {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 12px;
  background: #fff;
}

.nc-inline-label {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  margin-bottom: 0 !important;
}

.nc-checkbox-inline {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 0 !important;
  font-weight: 600 !important;
}

.nc-tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Tabs */
.nc-tabs-wrap {
  width: 100%;
}

.nc-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--nc-line);
  margin-bottom: 18px;
}

.nc-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nc-tab-btn:hover {
  color: var(--nc-primary);
}

.nc-tab-btn.active {
  color: var(--nc-primary);
  border-bottom-color: var(--nc-primary);
}

.nc-tab-content {
  display: none;
}

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

.nc-pill-count {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
}

/* Upload Drop Zone */
.nc-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  align-items: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.nc-upload-zone:hover {
  background: #f1f5f9;
  border-color: var(--nc-primary);
}

.nc-upload-zone i {
  font-size: 34px;
  color: var(--nc-primary);
  margin-bottom: 8px;
}

.nc-upload-zone b {
  font-size: 15px;
  color: var(--nc-ink);
}

.nc-upload-zone small {
  color: #64748b;
  font-weight: 400;
}

.nc-upload-zone input {
  display: none;
}

/* Chips */
.nc-preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nc-chip {
  background: #f1f5f9;
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.nc-chip:hover, .nc-chip.active {
  background: #e0e7ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

/* ==================== GRAPHIC STUDIO WORKSPACES ==================== */
/* Color Palette */
.nc-palette-container {
  width: 100%;
}

.nc-palette-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-height: 280px;
}

.nc-palette-col {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--nc-shadow-sm);
}

.nc-palette-color-preview {
  flex: 1;
  min-height: 180px;
  cursor: pointer;
  transition: transform 0.15s;
}

.nc-palette-color-preview:hover {
  opacity: 0.95;
}

.nc-palette-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  position: relative;
}

.nc-palette-hex {
  font-size: 13px;
  font-weight: 800;
  color: var(--nc-ink);
  cursor: pointer;
  font-family: monospace;
}

.nc-palette-rgb {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
}

.nc-palette-lock {
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  color: #64748b;
  margin-top: 4px;
  transition: 0.15s;
}

.nc-palette-lock.locked {
  background: #fef3c7;
  color: #b45309;
}

.nc-color-input-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Gradient Maker */
.nc-gradient-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.nc-gradient-preview-wrap {
  display: flex;
  flex-direction: column;
}

.nc-gradient-preview-box {
  min-height: 260px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.nc-preview-text {
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nc-stops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.nc-stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--nc-line);
}

.nc-stop-item input[type=color] {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.nc-stop-item input[type=range] {
  flex: 1;
}

/* Box Shadow */
.nc-shadow-workspace-grid, .nc-radius-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.nc-shadow-preview-area, .nc-radius-preview-area {
  min-height: 280px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid var(--nc-line);
  display: grid;
  place-items: center;
  padding: 30px;
}

.nc-shadow-box {
  width: 200px;
  height: 160px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.1s ease;
}

.nc-radius-box {
  width: 220px;
  height: 170px;
  background: linear-gradient(135deg, #6478f5, #20a88a);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: border-radius 0.1s ease;
}

/* Color Contrast Checker */
.nc-color-input-square {
  width: 44px;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

.nc-input-hex {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: monospace;
  font-weight: 700;
}

.nc-contrast-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
}

.nc-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 100px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--nc-line);
  box-shadow: var(--nc-shadow-sm);
}

.nc-score-number {
  font-size: 26px;
  font-weight: 850;
  color: var(--nc-ink);
}

.nc-score-circle small {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.nc-score-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.nc-badge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 10px;
  font-size: 12px;
}

.badge-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 10px;
}

.badge-status.pass { background: #dcfce7; color: #15803d; }
.badge-status.fail { background: #fee2e2; color: #b91c1c; }

.nc-contrast-preview-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

/* ==================== IMAGE STUDIO WORKSPACES ==================== */
.nc-img-info-strip {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid var(--nc-line);
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
}

.nc-img-preview-box {
  background: #f1f5f9;
  border-radius: 14px;
  border: 1px solid var(--nc-line);
  padding: 16px;
  display: grid;
  place-items: center;
  max-height: 420px;
  overflow: hidden;
}

.nc-img-preview-box img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
}

.nc-compress-stats-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
}

.stat-col {
  display: flex;
  flex-direction: column;
}

.stat-col small { font-size: 11px; color: #047857; }
.stat-col b { font-size: 16px; color: #064e3b; }
.stat-arrow { color: #10b981; font-size: 18px; }
.stat-saved {
  margin-left: auto;
  font-weight: 800;
  font-size: 15px;
  color: #047857;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Cropper */
.nc-cropper-canvas-container {
  display: flex;
  justify-content: center;
  background: #0f172a;
  border-radius: 14px;
  padding: 14px;
  max-height: 440px;
  overflow: auto;
}

#cropCanvas {
  max-width: 100%;
  max-height: 400px;
  cursor: crosshair;
}

/* Image Color Picker */
.nc-dominant-palette {
  display: flex;
  gap: 8px;
  height: 40px;
}

.nc-dominant-swatch {
  flex: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  transition: transform 0.15s;
}

.nc-dominant-swatch:hover {
  transform: scale(1.05);
}

.nc-picker-stage-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.nc-picker-canvas-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

#pickerCanvas {
  max-width: 100%;
  max-height: 380px;
  cursor: crosshair;
}

.nc-picker-loupe {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 10;
}

.nc-picker-current-card {
  background: #f8fafc;
  border: 1px solid var(--nc-line);
  border-radius: 14px;
  padding: 18px;
}

.nc-picked-swatch {
  height: 80px;
  border-radius: 10px;
  border: 1px solid var(--nc-line);
  margin-bottom: 14px;
  background: #fff;
}

.nc-picked-codes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.nc-picked-history {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nc-history-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--nc-line);
  cursor: pointer;
  transition: transform 0.15s;
}

.nc-history-swatch:hover {
  transform: scale(1.15);
}

/* ==================== DATA STUDIO WORKSPACES ==================== */
/* Table styling */
.nc-table-wrap, .nc-datatable-box {
  border: 1px solid var(--nc-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.nc-table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nc-line);
  background: #f8fafc;
}

.nc-table-scroll {
  max-height: 400px;
  overflow: auto;
}

.nc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nc-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nc-line);
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.nc-table th:hover {
  background: #f1f5f9;
}

.nc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.nc-table tr:hover td {
  background: #fafbff;
}

/* Data Cleaner */
.nc-cleaner-options {
  background: #f8fafc;
  border: 1px solid var(--nc-line);
  border-radius: 12px;
  padding: 14px 18px;
}

.nc-clean-stats-row {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 12px;
  color: #065f46;
}

/* Text Statistics Dashboard */
.nc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.nc-stat-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--nc-line);
  border-radius: 12px;
}

.nc-stat-card .val {
  font-size: 22px;
  font-weight: 850;
  color: var(--nc-ink);
}

.nc-stat-card .lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
}

/* Text Diff */
.nc-diff-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.nc-diff-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.nc-diff-badge.added { background: #dcfce7; color: #15803d; }
.nc-diff-badge.removed { background: #fee2e2; color: #b91c1c; }
.nc-diff-badge.unchanged { background: #f1f5f9; color: #475569; }

.nc-diff-view {
  border: 1px solid var(--nc-line);
  border-radius: 12px;
  max-height: 380px;
  overflow: auto;
  font-family: monospace;
  font-size: 12px;
  background: #fff;
}

.nc-diff-line {
  padding: 3px 12px;
  display: flex;
  gap: 12px;
  white-space: pre-wrap;
}

.nc-diff-line.added { background: #f0fdf4; color: #166534; }
.nc-diff-line.removed { background: #fef2f2; color: #991b1b; }
.nc-diff-line.neutral { background: #fff; color: #334155; }

.nc-render-preview-box {
  min-height: 140px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

/* ==================== HOW-TO & FAQ SECTIONS ==================== */
.nc-howto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nc-howto-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--nc-shadow-sm);
}

.nc-howto-num {
  font-size: 28px;
  font-weight: 850;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.nc-howto-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--nc-ink);
  margin: 0 0 6px;
}

.nc-howto-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--nc-muted);
  margin: 0;
}

/* FAQ */
.nc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.nc-faq-item {
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}

.nc-faq-item[open] {
  box-shadow: var(--nc-shadow-sm);
  border-color: #cbd5e1;
}

.nc-faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--nc-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.nc-faq-question::-webkit-details-marker {
  display: none;
}

.nc-faq-question i {
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.2s;
}

.nc-faq-item[open] .nc-faq-question i {
  transform: rotate(180deg);
}

.nc-faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--nc-muted);
}

.nc-faq-answer p {
  margin: 0;
}

/* Empty State */
.nc-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.nc-empty-state i {
  font-size: 36px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.nc-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--nc-ink);
  margin: 0 0 6px;
}

.nc-empty-state p {
  font-size: 13px;
  color: var(--nc-muted);
  margin: 0;
}

.nc-app-footnote {
  font-size: 11px;
  color: #64748b;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .nc-studio-grid,
  .nc-studio-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .nc-app-grid,
  .nc-app-grid-5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .nc-art-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .nc-app-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-palette-bars {
    grid-template-columns: repeat(3, 1fr);
  }
  .nc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-howto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nc-studio-grid,
  .nc-studio-grid-5,
  .nc-app-grid,
  .nc-app-grid-5cols,
  .nc-art-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-hero {
    padding: 48px 0;
  }
  .nc-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nc-hero h1 {
    font-size: 32px;
  }
  .nc-studio-hero-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .nc-studio-big-icon {
    width: 65px;
    height: 65px;
    font-size: 28px;
  }
  .nc-tool-grid {
    grid-template-columns: 1fr;
  }
  .nc-gradient-workspace-grid,
  .nc-shadow-workspace-grid,
  .nc-radius-workspace-grid,
  .nc-picker-stage-grid {
    grid-template-columns: 1fr;
  }
  .nc-contrast-score-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nc-score-badges {
    grid-template-columns: 1fr;
  }
  .nc-app-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nc-container {
    width: min(100% - 24px, 1180px);
  }
  .nc-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .nc-studio-grid,
  .nc-studio-grid-5,
  .nc-app-grid,
  .nc-app-grid-5cols,
  .nc-art-grid,
  .nc-art-grid-5,
  .nc-app-grid-wide,
  .nc-palette-bars,
  .nc-stats-grid,
  .nc-howto-grid {
    grid-template-columns: 1fr;
  }
  .nc-workspace {
    padding: 16px;
  }
  .nc-latest-date {
    display: none;
  }
  .nc-lottery-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
