/* Page-specific styles - design-system.css handles colors, fonts */
    body {
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }
    .chat-container {
      width: 100%;
      max-width: 900px;
      height: 85vh;
      background: var(--white);
      border-radius: var(--radius-2xl);
      box-shadow: 0 25px 80px rgba(0,0,0,0.4);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* Header */
    .chat-header {
      background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
      padding: 1.5rem 2rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      color: white;
    }

    .chat-avatar {
      width: 56px;
      height: 56px;
      background: rgba(255,255,255,0.15);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      overflow: hidden;
    }
    .chat-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .chat-title h1 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .chat-title p {
      font-size: 0.875rem;
      opacity: 0.9;
    }

    .status-indicator {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      font-size: 0.875rem;
    }

    .status-dot {
      width: 10px;
      height: 10px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse-green 2s infinite;
    }

    @keyframes pulse-green {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    /* Messages Area */
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem 2rem;
      background: var(--gray-100);
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    .chat-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
      background: var(--gray-300);
      border-radius: 3px;
    }

    .message {
      display: flex;
      gap: 0.75rem;
      max-width: 80%;
      animation: messageSlide 0.3s ease;
    }

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

    .message.user {
      margin-left: auto;
      flex-direction: row-reverse;
    }

    .message-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1rem;
    }

    .message.ai .message-avatar {
      background: transparent;
      overflow: hidden;
    }
    .message.ai .message-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .message.user .message-avatar {
      background: var(--gold);
      color: var(--navy);
    }

    .message-content {
      background: white;
      padding: 1rem 1.25rem;
      border-radius: 18px;
      border-bottom-left-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--gray-800);
    }

    .message-content .chat-link {
      color: var(--blue);
      font-weight: 600;
      text-decoration: underline;
    }
    .message-content .chat-link:hover {
      color: var(--gold);
    }

    .message.user .message-content {
      background: var(--blue);
      color: white;
      border-bottom-left-radius: 18px;
      border-bottom-right-radius: 4px;
    }

    .message-time {
      font-size: 0.75rem;
      color: var(--gray-600);
      margin-top: 0.25rem;
      opacity: 0.7;
    }

    .message.user .message-time {
      text-align: right;
      color: rgba(255,255,255,0.7);
    }

    /* Quick Actions */
    .quick-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      padding: 0 2rem;
      margin-top: 0.5rem;
    }

    .quick-btn {
      background: white;
      border: 1px solid var(--gray-200);
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.875rem;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .quick-btn:hover {
      background: var(--blue-pale);
      border-color: var(--blue);
      color: var(--blue);
    }

    /* Input Area */
    .chat-input-area {
      padding: 1.25rem 2rem;
      background: white;
      border-top: 1px solid var(--gray-200);
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .chat-input {
      flex: 1;
      padding: 0.875rem 1.25rem;
      border: 2px solid var(--gray-200);
      border-radius: 28px;
      font-size: 0.95rem;
      font-family: inherit;
      outline: none;
      transition: all 0.2s ease;
    }

    .chat-input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 4px var(--blue-pale);
    }

    .send-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
      color: white;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      transition: all 0.2s ease;
    }

    .send-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(43,92,230,0.3);
    }

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

    /* Back Button */
    .back-btn {
      position: absolute;
      top: 2rem;
      left: 2rem;
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.2);
      color: white;
      padding: 0.75rem 1.25rem;
      border-radius: 12px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

    .back-btn:hover {
      background: rgba(255,255,255,0.15);
    }

    /* Typing Indicator */
    .typing-indicator {
      display: flex;
      gap: 0.4rem;
      padding: 1rem 1.25rem;
    }

    .typing-dot {
      width: 8px;
      height: 8px;
      background: var(--gray-400);
      border-radius: 50%;
      animation: typingBounce 1.4s infinite ease-in-out both;
    }

    .typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .typing-dot:nth-child(2) { animation-delay: -0.16s; }

    @keyframes typingBounce {
      0%, 80%, 100% { transform: scale(0.6); }
      40% { transform: scale(1); }
    }

    /* Responsive */
    @media (max-width: 768px) {
      body {
        padding: 0;
      }

      .chat-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
      }

      .back-btn {
        display: none;
      }

      .chat-header {
        padding: 1rem 1.25rem;
      }

      .chat-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
      }

      .chat-title h1 {
        font-size: 1.25rem;
      }

      .chat-messages {
        padding: 1rem 1.25rem;
      }

      .message {
        max-width: 90%;
      }

      .quick-actions {
        padding: 0 1.25rem;
      }

      .chat-input-area {
        padding: 1rem 1.25rem;
      }
    }

    /* Typing animation for AI response */
    .typing-text::after {
      content: '|';
      animation: blink 1s infinite;
    }

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


/* CARDS: SQUARE CORNERS (ALL MODULES) */
.card,
[class$="-card"],
[class^="card-"] {
  border-radius: 0 !important;
}
