/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ============================================================
   STYLES: Christus Art Auctions (Black & White Theme)
   ============================================================ */

  :root {
    --primary: #FFFFFF;
    --primary-light: #F0F0F0;
    --accent: #FFFFFF;
    --accent-hover: #E0E0E0;
    --accent-light: #1A1A1A;
    --bg: #000000;
    --bg-dark: #000000;
    --text: #F8F7F4;
    --text-light: #A0A0A0;
    --text-on-dark: #F8F7F4;
    --border: #333333;
    --card-bg: #111111;
    --surface: #1A1A1A;
    --font-heading: "Barlow Condensed", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.08);
    --shadow-md: 0 4px 12px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 12px 32px rgba(255, 255, 255, 0.12);
    --shadow-lift: 0 16px 40px rgba(255, 255, 255, 0.16);
    --radius: 2px;
    --radius-lg: 4px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  a { color: inherit; text-decoration: none; transition: color var(--transition); }
  img { max-width: 100%; display: block; }

  .pattern-stripes {
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px);
  }
  .pattern-dots {
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
  }

  .section-padding { padding: 6rem 1.5rem; }
  .container { max-width: 1200px; margin: 0 auto; width: 100%; }

  .section-heading { text-align: center; margin-bottom: 3.5rem; }
  .section-heading h2 { font-size: 2.75rem; color: var(--primary); margin-bottom: 0.75rem; position: relative; display: inline-block; }
  .section-heading h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary); margin: 0.75rem auto 0; border-radius: 2px; }
  .section-heading p { font-size: 1.1rem; color: var(--text-light); max-width: 540px; margin: 0 auto; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    letter-spacing: 0.04em; text-transform: uppercase; padding: 0.85rem 2rem;
    border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1;
  }
  .btn-primary { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
  .btn-primary:hover { background: transparent; color: #FFFFFF; border-color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
  .btn-secondary { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
  .btn-secondary:hover { background: #FFFFFF; color: #000000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }

  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
  .fade-in-delay-4 { transition-delay: 0.4s; }
  .fade-in-delay-5 { transition-delay: 0.5s; }
  .fade-in-delay-6 { transition-delay: 0.6s; }

  /* NAV */
  .acme-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(0,0,0,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition); }
  .acme-nav.scrolled { box-shadow: var(--shadow-md); }
  .acme-nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 72px; }
  .acme-nav__logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.06em; color: var(--primary); text-transform: uppercase; display: flex; align-items: center; gap: 0.15rem; text-decoration: none; }
  .acme-nav__logo-accent { color: var(--primary); font-size: 2rem; line-height: 1; margin-left: 1px; }
  .acme-nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
  .acme-nav__links a { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); transition: color var(--transition); position: relative; }
  .acme-nav__links a::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
  .acme-nav__links a:hover { color: var(--primary); }
  .acme-nav__links a:hover::after { width: 100%; }
  .acme-nav__settings { background: none; border: none; cursor: pointer; font-size: 1.35rem; color: var(--text-light); transition: color var(--transition), transform var(--transition); padding: 0.4rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
  .acme-nav__settings:hover { color: var(--primary); transform: rotate(45deg); }
  .acme-nav__settings svg { width: 22px; height: 22px; }
  .acme-nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
  .acme-nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all var(--transition); }
  .acme-nav__mobile { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card-bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 1.5rem; }
  .acme-nav__mobile.open { display: block; }
  .acme-nav__mobile-links { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .acme-nav__mobile-links a { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); padding: 0.85rem 0; border-bottom: 1px solid var(--border); transition: color var(--transition); }
  .acme-nav__mobile-links li:last-child a { border-bottom: none; }
  .acme-nav__mobile-links a:hover { color: var(--primary); }

  /* HERO */
  .hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; margin-top: 72px; }
  .hero__bg { position: absolute; inset: 0; z-index: 0; }
  .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(100%) brightness(0.4); }
  .hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%); z-index: 1; }
  .hero__content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; width: 100%; }
  .hero__tagline { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
  .hero__tagline::before { content: ""; display: block; width: 40px; height: 2px; background: var(--primary); }
  .hero__title { font-size: clamp(3rem, 7vw, 5rem); color: #fff; margin-bottom: 1.25rem; max-width: 700px; line-height: 1.05; letter-spacing: -0.02em; }
  .hero__subtitle { font-family: var(--font-body); font-weight: 400; font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 2.25rem; line-height: 1.7; }
  .hero__cta .btn-primary { padding: 1rem 2.5rem; font-size: 1.05rem; }
  .hero__geometric { position: absolute; z-index: 1; bottom: -60px; right: 8%; width: 200px; height: 200px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; opacity: 0.5; }
  .hero__geometric::before { content: ""; position: absolute; top: 30px; left: 30px; right: 30px; bottom: 30px; border: 2px solid rgba(255,255,255,0.05); border-radius: 50%; }

  /* PRODUCTS */
  .products { background: var(--bg); position: relative; }
  .products__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2rem; gap: 2rem; }
  .product-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
  .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--primary); }
  .product-card__image { position: relative; width: 100%; height: 220px; overflow: hidden; background: #000; }
  .product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(100%); opacity: 0.8; }
  .product-card:hover .product-card__image img { transform: scale(1.05); filter: grayscale(0%); opacity: 1; }
  .product-card__body { padding: 1.5rem; }
  .product-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.35rem; }
  .product-card__price { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text-light); margin-bottom: 0.65rem; }
  .product-card__desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.55; margin-bottom: 1.25rem; min-height: 2.8em; }
  .product-card .btn-secondary { width: 100%; padding: 0.7rem 1rem; font-size: 0.85rem; }

  /* FEATURES */
  .features { background: var(--bg-dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
  .features::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px); pointer-events: none; }
  .features .section-heading h2 { color: var(--text-on-dark); }
  .features .section-heading p { color: rgba(255,255,255,0.6); }
  .features__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2.5rem; gap: 2.5rem; position: relative; z-index: 1; }
  .feature-card { text-align: center; padding: 2.5rem 2rem; border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: background var(--transition), transform var(--transition); }
  .feature-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
  .feature-card__icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .feature-card__icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .feature-card__title { font-size: 1.4rem; margin-bottom: 0.75rem; letter-spacing: 0.03em; color: var(--primary); }
  .feature-card__desc { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

  /* TESTIMONIALS */
  .testimonials { background: var(--surface); position: relative; }
  .testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2rem; gap: 2rem; }
  .testimonial-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
  .testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
  .testimonial-card__stars { color: var(--primary); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
  .testimonial-card__quote { font-style: italic; font-size: 1rem; color: var(--text); line-height: 1.7; margin-bottom: 1.5rem; position: relative; padding-left: 1.25rem; border-left: 3px solid var(--primary); }
  .testimonial-card__author { display: flex; align-items: center; gap: 0.85rem; }
  .testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); filter: grayscale(100%); }
  .testimonial-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.03em; }
  .testimonial-card__role { font-size: 0.825rem; color: var(--text-light); }

  /* FOOTER */
  .acme-footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 4rem 1.5rem 2rem; border-top: 1px solid var(--border); }
  .acme-footer__inner { max-width: 1200px; margin: 0 auto; }
  .acme-footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); grid-gap: 2.5rem; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .acme-footer__brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-on-dark); display: flex; align-items: center; gap: 0.15rem; margin-bottom: 0.75rem; }
  .acme-footer__brand-accent { color: var(--primary); font-size: 2rem; line-height: 1; }
  .acme-footer__tagline { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 260px; margin-bottom: 1.5rem; }
  .acme-footer__socials { display: flex; gap: 0.75rem; }
  .acme-footer__social-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background var(--transition); color: var(--text-on-dark); }
  .acme-footer__social-icon:hover { background: var(--primary); color: #000; }
  .acme-footer__social-icon svg { width: 16px; height: 16px; fill: currentColor; }
  .acme-footer__col-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 1.25rem; }
  .acme-footer__col-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
  .acme-footer__col-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
  .acme-footer__col-links a:hover { color: var(--primary); }
  .acme-footer__bottom { padding-top: 2rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .products__grid { grid-template-columns: repeat(2, 1fr); }
    .acme-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  }
  @media (max-width: 768px) {
    .section-padding { padding: 4rem 1.25rem; }
    .section-heading h2 { font-size: 2.2rem; }
    .acme-nav__links { display: none; }
    .acme-nav__hamburger { display: flex; }
    .hero { min-height: 80vh; }
    .hero__title { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .hero__subtitle { font-size: 1.05rem; }
    .hero__geometric { display: none; }
    .products__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .features__grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 480px; margin: 0 auto; }
    .testimonials__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .acme-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  }
  @media (max-width: 480px) {
    .products__grid { grid-template-columns: 1fr; }
    .product-card__image { height: 200px; }
    .hero__title { font-size: 2.5rem; }
  }

/* ============================================================
   STYLES: Chat Widget + Settings Modal
   ============================================================ */

  .chat-widget {
    --cw-primary: #000000;
    --cw-accent: #FFFFFF;
    --cw-accent-hover: #F0F0F0;
    --cw-bg: #000000;
    --cw-text: #FFFFFF;
    --cw-text-light: rgba(255,255,255,0.6);
    --cw-border: #333333;
    --cw-card-bg: #111111;
    --cw-font-heading: "Barlow Condensed", sans-serif;
    --cw-font-body: "DM Sans", sans-serif;
    position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: var(--cw-font-body);
  }
  .chat-widget__toggle { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(255,255,255,0.2); position: relative; transition: background 0.2s ease, transform 0.2s ease; }
  .chat-widget__toggle:hover { background: #f0f0f0; transform: scale(1.05); }
  .chat-widget__toggle svg { width: 26px; height: 26px; fill: #000; transition: opacity 0.2s ease, transform 0.2s ease; }
  .chat-widget__toggle .chat-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); fill: none; stroke: #000; stroke-width: 2; }
  .chat-widget--open .chat-widget__toggle .chat-icon-open { opacity: 0; transform: rotate(90deg); }
  .chat-widget--open .chat-widget__toggle .chat-icon-close { opacity: 1; transform: rotate(0deg); }
  .chat-widget__toggle::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #FFFFFF; opacity: 0; animation: cw-pulse 2.5s ease-out infinite; }
  .chat-widget--open .chat-widget__toggle::before { animation: none; opacity: 0; }
  @keyframes cw-pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }

  .chat-widget__panel { position: absolute; bottom: 72px; right: 0; width: 380px; height: 520px; background: var(--cw-card-bg); border-radius: 16px; border: 1px solid var(--cw-border); box-shadow: 0 12px 48px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
  .chat-widget--open .chat-widget__panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

  .chat-widget__header { background: #000000; padding: 16px 18px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; border-bottom: 1px solid #333; }
  .chat-widget__header-avatar { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .chat-widget__header-avatar svg { width: 22px; height: 22px; fill: #fff; }
  .chat-widget__header-info { flex: 1 1; min-width: 0; }
  .chat-widget__header-title { font-family: var(--cw-font-heading); font-size: 18px; font-weight: 600; color: #fff; line-height: 1.2; letter-spacing: 0.02em; }
  .chat-widget__header-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
  .chat-widget__status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; display: inline-block; flex-shrink: 0; }
  .chat-widget__model-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 1px; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chat-widget__header-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(255,255,255,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; flex-shrink: 0; }
  .chat-widget__header-close:hover { background: rgba(255,255,255,0.2); }
  .chat-widget__header-close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; }

  .chat-widget__messages { flex: 1 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: #000000; }
  .chat-widget__messages::-webkit-scrollbar { width: 5px; }
  .chat-widget__messages::-webkit-scrollbar-track { background: transparent; }
  .chat-widget__messages::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

  .chat-widget__msg { display: flex; flex-direction: column; max-width: 85%; animation: cw-msg-in 0.25s ease-out; }
  @keyframes cw-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .chat-widget__msg--user { align-self: flex-end; align-items: flex-end; }
  .chat-widget__msg--assistant { align-self: flex-start; align-items: flex-start; }
  .chat-widget__msg-row { display: flex; align-items: flex-end; gap: 8px; }
  .chat-widget__msg--user .chat-widget__msg-row { flex-direction: row-reverse; }
  .chat-widget__msg-avatar { width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .chat-widget__msg-avatar svg { width: 14px; height: 14px; fill: #000; }
  .chat-widget__msg-bubble { padding: 10px 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
  .chat-widget__msg--user .chat-widget__msg-bubble { background: #FFFFFF; color: #000000; border-radius: 14px 14px 4px 14px; }
  .chat-widget__msg--assistant .chat-widget__msg-bubble { background: #1A1A1A; color: #FFFFFF; border-radius: 14px 14px 14px 4px; border: 1px solid #333; }
  .chat-widget__msg-time { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; padding: 0 34px; }
  .chat-widget__msg--user .chat-widget__msg-time { padding: 0; text-align: right; }

  .chat-widget__msg-bubble p { margin: 0 0 8px 0; }
  .chat-widget__msg-bubble p:last-child { margin-bottom: 0; }
  .chat-widget__msg-bubble strong { font-weight: 700; }
  .chat-widget__msg-bubble code { font-family: "SFMono-Regular","Consolas",monospace; font-size: 12.5px; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,0.1); }
  .chat-widget__msg-bubble pre { margin: 8px 0; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; line-height: 1.45; background: rgba(255,255,255,0.05); }
  .chat-widget__msg-bubble pre code { padding: 0; background: none; }
  .chat-widget__msg-bubble ul, .chat-widget__msg-bubble ol { margin: 6px 0; padding-left: 20px; }
  .chat-widget__msg-bubble li { margin-bottom: 3px; }

  .chat-widget__typing { display: none; align-self: flex-start; max-width: 85%; }
  .chat-widget__typing.active { display: flex; flex-direction: column; align-items: flex-start; animation: cw-msg-in 0.25s ease-out; }
  .chat-widget__typing-row { display: flex; align-items: flex-end; gap: 8px; }
  .chat-widget__typing-bubble { background: #1A1A1A; border: 1px solid #333; border-radius: 14px 14px 14px 4px; padding: 12px 18px; display: flex; gap: 5px; align-items: center; }
  .chat-widget__typing-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); animation: cw-bounce 1.4s ease-in-out infinite; }
  .chat-widget__typing-dot:nth-child(2) { animation-delay: 0.16s; }
  .chat-widget__typing-dot:nth-child(3) { animation-delay: 0.32s; }
  @keyframes cw-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

  .chat-widget__input-area { padding: 12px 14px; border-top: 1px solid #333; display: flex; gap: 8px; align-items: flex-end; background: #111; flex-shrink: 0; }
  .chat-widget__textarea { flex: 1 1; resize: none; border: 1.5px solid #333; border-radius: 12px; padding: 10px 14px; font-family: var(--cw-font-body); font-size: 14px; line-height: 1.45; color: #fff; background: #000; outline: none; max-height: calc(1.45em * 4 + 20px); overflow-y: auto; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
  .chat-widget__textarea::placeholder { color: rgba(255,255,255,0.3); }
  .chat-widget__textarea:focus { border-color: #FFFFFF; box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
  .chat-widget__send-btn { width: 40px; height: 40px; border-radius: 12px; border: none; background: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease; }
  .chat-widget__send-btn:hover:not(:disabled) { background: #f0f0f0; }
  .chat-widget__send-btn:active:not(:disabled) { transform: scale(0.94); }
  .chat-widget__send-btn:disabled { opacity: 0.45; cursor: not-allowed; }
  .chat-widget__send-btn svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* Settings & Lightbox Modal */
  .settings-modal__overlay { 
    position: fixed; 
    inset: 0; 
    z-index: 10000; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.25s ease; 
  }
  .settings-modal__overlay.active { display: flex; opacity: 1; }
  .settings-modal { background: #111; border: 1px solid #333; border-radius: 16px; padding: 32px; width: 100%; max-width: 480px; margin: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); font-family: "DM Sans", sans-serif; transform: translateY(12px); transition: transform 0.3s ease; }
  .settings-modal__overlay.active .settings-modal { transform: translateY(0); }
  .settings-modal__title { font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 24px 0; }
  .settings-modal__label { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
  .settings-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .settings-modal__close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
  .settings-modal__content { background: #111; border: 1px solid #333; border-radius: 16px; padding: 32px; width: 100%; margin: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); position: relative; }
  .settings-modal__key-input { width: 100%; padding: 12px 14px; border: 1.5px solid #333; border-radius: 10px; font-family: "DM Sans", sans-serif; font-size: 14px; color: #fff; background: #000; outline: none; transition: border-color 0.15s ease; box-sizing: border-box; }
  .settings-modal__save-btn { flex: 1 1; padding: 12px 20px; border: none; border-radius: 10px; background: #FFFFFF; color: #000; font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
  .settings-modal__cancel-btn { padding: 10px 20px; border: 1px solid #333; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font-weight: 600; }
  .settings-modal__warning { background: rgba(255,165,0,0.1); border: 1px solid orange; padding: 15px; border-radius: 8px; color: orange; font-size: 13px; margin-bottom: 20px; }

/* ============================================================
   STYLES: Instructor Panel
   ============================================================ */

  #instructor-toggle { position: fixed; left: 24px; bottom: 24px; z-index: 9998; background: #FFFFFF; color: #000000; border: none; padding: 12px 22px; border-radius: 999px; font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
  #instructor-toggle:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
  .instructor-panel { position: fixed; top: 0; left: 0; width: 420px; height: 100vh; background: #000000; z-index: 9997; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 4px 0 30px rgba(0,0,0,0.5); overflow: hidden; border-right: 1px solid #333; }
  .instructor-panel.open { transform: translateX(0); }
  .instructor-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); z-index: 9996; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
  .instructor-overlay.visible { opacity: 1; pointer-events: auto; }
  .ip-close-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background 0.15s, color 0.15s; z-index: 1; }
  .ip-close-btn:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
  .ip-content { flex: 1 1; overflow-y: auto; padding: 28px 24px 32px; color: #fff; }
  .ip-content::-webkit-scrollbar { width: 6px; }
  .ip-content::-webkit-scrollbar-track { background: transparent; }
  .ip-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
  .ip-header { margin-bottom: 28px; padding-right: 32px; }
  .ip-header h2 { font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 700; color: #FFFFFF; margin: 0 0 4px; letter-spacing: 0.5px; }
  .ip-header p { font-family: "DM Sans", sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
  .ip-section-label { font-family: "Barlow Condensed", sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.6); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
  .ip-section-label .ip-info-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); font-size: 10px; color: rgba(255,255,255,0.4); cursor: help; position: relative; }
  .ip-info-icon .ip-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #111; color: rgba(255,255,255,0.8); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 8px 12px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: none; z-index: 10; }
  .ip-info-icon:hover .ip-tooltip { display: block; }
  .ip-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .ip-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .ip-textarea { width: 100%; min-height: 180px; max-height: 400px; resize: vertical; background: #111; border: 1px solid #333; border-radius: 8px; color: #E2E8F0; font-family: "SF Mono","Fira Code","Consolas",monospace; font-size: 12.5px; line-height: 1.6; padding: 14px; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
  .ip-textarea:focus { outline: none; border-color: #FFFFFF; }
  .ip-textarea.flash-green { border-color: #34D399; box-shadow: 0 0 0 2px rgba(52,211,153,0.2); }
  .ip-char-count { font-family: "DM Sans", sans-serif; font-size: 11px; color: rgba(255,255,255,0.3); text-align: right; margin-top: 6px; }
  .ip-btn-primary { display: block; width: 100%; padding: 11px 20px; margin-top: 12px; background: #FFFFFF; color: #000000; border: none; border-radius: 8px; font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; }
  .ip-btn-primary:hover { background: #f0f0f0; }
  .ip-btn-primary:active { transform: scale(0.98); }
  .ip-btn-primary.applied { background: #059669; color: #fff; }
  .ip-reset-link { display: block; text-align: center; margin-top: 8px; background: none; border: none; color: rgba(255,255,255,0.6); font-family: "DM Sans", sans-serif; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  .ip-reset-link:hover { color: #FFFFFF; }
  .ip-select { width: 100%; padding: 10px 14px; background: #111; border: 1px solid #333; border-radius: 8px; color: #E2E8F0; font-family: "DM Sans", sans-serif; font-size: 14px; cursor: pointer; -moz-appearance: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: border-color 0.2s; }
  .ip-select:focus { outline: none; border-color: #FFFFFF; }
  .ip-select option { background: #111; color: #E2E8F0; }
  .ip-log-container { background: #000; border: 1px solid #333; border-radius: 8px; max-height: 300px; overflow-y: auto; padding: 14px; }
  .ip-log-container::-webkit-scrollbar { width: 5px; }
  .ip-log-container::-webkit-scrollbar-track { background: transparent; }
  .ip-log-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
  .ip-log-pre { margin: 0; font-family: "SF Mono","Fira Code","Consolas",monospace; font-size: 11.5px; line-height: 1.55; color: rgba(255,255,255,0.8); white-space: pre-wrap; word-break: break-word; }
  .ip-log-empty { color: rgba(255,255,255,0.4); font-style: italic; font-family: "DM Sans", sans-serif; font-size: 13px; text-align: center; padding: 24px 0; display: block; }
  .log-system { color: #FBBF24; } .log-user { color: #60A5FA; } .log-assistant { color: #34D399; } .log-key { color: rgba(255,255,255,0.7); } .log-brace { color: rgba(255,255,255,0.5); }
  .ip-controls-row { display: flex; gap: 10px; }
  .ip-btn-outline { flex: 1 1; padding: 10px 16px; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; color: rgba(255,255,255,0.8); font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
  .ip-btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.5); color: #FFFFFF; }
  .ip-btn-outline.copied { border-color: #34D399; color: #34D399; }
  .ip-accordion-item { border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; margin-bottom: 8px; overflow: hidden; background: rgba(255,255,255,0.05); }
  .ip-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; transition: background 0.15s; }
  .ip-accordion-header:hover { background: rgba(255,255,255,0.1); }
  .ip-accordion-title { font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 600; color: #FFFFFF; }
  .ip-accordion-chevron { font-size: 11px; color: rgba(255,255,255,0.5); transition: transform 0.25s ease; }
  .ip-accordion-item.open .ip-accordion-chevron { transform: rotate(180deg); }
  .ip-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
  .ip-accordion-item.open .ip-accordion-body { max-height: 800px; }
  .ip-accordion-content { padding: 0 14px 14px; }
  .ip-accordion-desc { font-family: "DM Sans", sans-serif; font-size: 12.5px; color: rgba(255,255,255,0.7); margin: 0 0 10px; }
  .ip-code-block { position: relative; background: #111; border: 1px solid #333; border-radius: 6px; padding: 10px 12px; padding-right: 60px; margin-bottom: 8px; }
  .ip-code-block code { font-family: "SF Mono","Fira Code","Consolas",monospace; font-size: 11.5px; line-height: 1.5; color: #FFFFFF; white-space: pre-wrap; word-break: break-word; }
  .ip-copy-btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; color: rgba(255,255,255,0.8); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 600; padding: 3px 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.15s, color 0.15s; }
  .ip-copy-btn:hover { background: rgba(255,255,255,0.2); color: #FFFFFF; }
  .ip-copy-btn.copied { color: #34D399; border-color: rgba(52,211,153,0.3); }
  @media (max-width: 480px) { .instructor-panel { width: 100vw; } }

