/* TaskCentro core styles — extracted from templates/base.html (Nov 2026).
   Loaded on every page that extends base.html; cached by the browser. */
/* Self-hosted fonts (latin subset, variable woff2; SIL Open Font License).
   Files in static/fonts/, fetched from Google Fonts Nov 2026. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/dm-sans-italic-latin.woff2') format('woff2'); }

:root {
        --primary-aqua: #00C9DE;
        --primary-navy: #2A3563;
        --light-gray: #F4F4F4;
        --white: #FFFFFF;
        --black: #000000;
        --gray-100: #F7F8F9;
        --gray-200: #E5E7EB;
        --gray-300: #D1D5DB;
        --gray-400: #9CA3AF;
        --gray-500: #6B7280;
        --gray-600: #4B5563;
        --gray-700: #374151;
        --gray-800: #1F2937;
        --gray-900: #111827;
        --green-500: #10B981;
        --yellow-500: #F59E0B;
        --red-500: #EF4444;
        --blue-500: #3B82F6;
        --success-light: rgba(16, 185, 129, 0.1);
        --warning-light: rgba(245, 158, 11, 0.1);
        --error-light: rgba(239, 68, 68, 0.1);
        --info-light: rgba(59, 130, 246, 0.1);
        --aqua-light: rgba(0, 201, 222, 0.1);
        --navy-light: rgba(42, 53, 99, 0.1);
        /* TC design system */
        --tc-green: #00C9DE;
        --tc-green-dark: #2A3563;
        --tc-green-light: rgba(0,201,222,0.10);
        --tc-green-mid: #009eb0;
        --tc-text: #2A3563;
        --tc-muted: #5a6478;
        --tc-border: rgba(42,53,99,0.12);
        --tc-shadow: 0 2px 24px rgba(42,53,99,0.08);
        --tc-radius: 16px;
        --tc-radius-sm: 10px;
        --font-head: 'Nunito', sans-serif;
        --font-nav: 'Nunito', sans-serif;
        --font-body: 'DM Sans', sans-serif;
    }

    .dark-mode {
      --bg-color: #121212;
      --text-color: #ffffff;
      --chat-bg: #202c33;
      --chat-mine: #056162;
      --chat-yours: #2a2f32;
      --input-bg: #2a2f32;
      --input-text: #ffffff;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      line-height: 1.6;
      color: var(--tc-text);
      background: #ffffff;
      min-height: 100vh;
      overflow-x: hidden;
    }

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

    .container {
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* ——— TC NAV ——— */
    .tc-nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--tc-border);
      padding: 0 2rem;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      flex-shrink: 0;
    }

    .nav-logo-mark {
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .nav-logo-mark img {
      height: 100%;
      width: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.75rem;
      list-style: none;
    }

    .nav-mobile-only {
      display: none;
    }

    .nav-links a {
      font-size: 0.9rem;
      font-weight: 600;
      font-family: var(--font-nav);
      color: var(--tc-muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--tc-green); }

    .nav-messages-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
    .nav-unread-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #e53e3e;
      color: #fff;
      font-size: 0.65rem;
      font-weight: 700;
      min-width: 16px;
      height: 16px;
      border-radius: 8px;
      padding: 0 4px;
      line-height: 1;
    }
    .nav-unread-badge.is-hidden {
      display: none !important;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-shrink: 0;
    }

    /* TC nav buttons */
    .tc-btn {
      font-family: var(--font-body);
      font-weight: 500;
      font-size: 0.9rem;
      border-radius: 100px;
      padding: 0.5rem 1.25rem;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: none;
      line-height: 1;
    }

    .tc-btn-ghost {
      background: transparent;
      color: var(--tc-green);
      border: 1.5px solid var(--tc-border);
    }

    .tc-btn-ghost:hover {
      background: var(--tc-green-light);
      border-color: var(--tc-green);
    }

    .tc-btn-primary {
      background: var(--tc-green);
      color: white;
    }

    .tc-btn-primary:hover {
      background: var(--tc-green-dark);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(0,201,222,0.25);
    }

    /* nav user pill */
    .nav-user {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-nav);
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--tc-text);
      text-decoration: none;
      padding: 0.4rem 0.9rem;
      border-radius: 100px;
      border: 1.5px solid var(--tc-border);
      transition: all 0.2s;
      cursor: pointer;
    }

    .nav-user:hover { border-color: var(--tc-green); background: var(--tc-green-light); }

    .nav-user-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--tc-green-light);
      color: var(--tc-green);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      font-weight: 700;
      flex-shrink: 0;
      overflow: hidden;
    }

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

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 28px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      z-index: 1001;
    }

    .bar {
      display: block;
      width: 100%;
      height: 2.5px;
      background: var(--tc-green-dark);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    .hamburger.active .bar:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Responsive Nav */
    @media (max-width: 1024px) {  /* nav collapses to the hamburger menu (links no longer fit) */
      .tc-nav { padding: 0 1rem; }

      .hamburger { display: flex; }

      .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 0 !important;
        padding: 1rem 0;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 8px 24px rgba(42,53,99,0.12);
        border-bottom: 1px solid var(--tc-border);
      }

      .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
      }

      .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(42,53,99,0.06);
      }

      .nav-links a { font-size: 1rem; }

      .nav-actions { display: none; }

      .nav-mobile-only {
        display: flex;
        width: 100%;
      }

      .nav-mobile-divider {
        border-top: 1px solid rgba(42,53,99,0.08);
        margin-top: 0.35rem;
        padding-top: 0.75rem;
      }

      .nav-mobile-stack {
        width: 100%;
        padding: 0.25rem 1rem 0.75rem;
        display: grid;
        gap: 0.65rem;
      }

      .nav-mobile-user {
        justify-content: center;
        width: 100%;
      }

      .nav-mobile-stack .tc-btn,
      .nav-mobile-stack .dropdown-item {
        justify-content: center;
        width: 100%;
      }

      .nav-mobile-stack form {
        width: 100%;
      }
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(
        135deg,
        rgba(0, 201, 218, 0.95),
        rgba(42, 53, 99, 0.95)
      );
      color: white;
      text-align: center;
      padding: 6rem 0;
      margin-bottom: 4rem;
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
      letter-spacing: -0.02em;
    }

    .hero p {
      font-size: 1.3rem;
      font-weight: 400;
      margin-bottom: 3rem;
      opacity: 0.95;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-button {
      display: inline-block;
      background: #00c9da;
      color: white;
      padding: 1.2rem 2.5rem;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 201, 218, 0.3);
      border: none;
    }

    .cta-button:hover {
      background: #2a3563;
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 201, 218, 0.4);
    }

    /* Section Styles */
    .section {
      background: #f4f4f4;
      margin: 4rem 0;
      padding: 4rem 0;
      border-radius: 0;
      box-shadow: none;
    }

    .section:nth-child(even) {
      background: white;
    }

    .section-title {
      text-align: center;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 3rem;
      color: #2a3563;
      position: relative;
      letter-spacing: -0.02em;
    }

    /* .section-title::after {
      content: "";
      position: absolute;
      bottom: -15px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: #00c9da;
      border-radius: 2px;
    } */

    /* Carousel Styles */
    .carousel-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        padding: 20px 10px;
    }

    @media (max-width: 768px) {
      .carousel-container {
        padding: 0;
      }
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease;
    }

    .profile-card {
      min-width: 320px;
      background: white;
      margin: 0 10px;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 20px rgba(42, 53, 99, 0.08);
      transition: all 0.3s ease;
      border: 1px solid rgba(0, 201, 218, 0.1);
    }

    /* .profile-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(42, 53, 99, 0.15);
      border-color: #00c9da;
    } */

    .profile-header {
      display: flex;
      align-items: center;
      margin-bottom: 1.5rem;
    }

    .profile-avatar {
      width: 64px;
      height: 64px;
      border-radius: 12px;
      background: linear-gradient(135deg, #00c9da, #2a3563);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 1.3rem;
      margin-right: 1rem;
    }

    .profile-avatar.initials {
        font-weight: 600;
        text-align: center;
      }

    .profile-info h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #2a3563;
      letter-spacing: -0.01em;
      line-height: 1.1;
    }

    .profile-info .title {
      color: #00c9da;
      font-weight: 500;
      font-size: 1rem;
    }

    .profile-description {
      color: #2a3563;
      opacity: 0.8;
      margin-bottom: 1.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.5;
    }

    .profile-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .skill-tag {
      background: rgba(0, 201, 218, 0.1);
      color: #00c9da;
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 500;
    }

    .profile-meta {
      display: flex;
      /* justify-content: space-between; */
      align-items: center;
      font-size: 0.9rem;
      color: #2a3563;
      font-weight: 500;
    }

    .boost-badge {
      background: linear-gradient(45deg, #00c9da, #2a3563);
      color: white;
      padding: 0.3rem 0.8rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Carousel Navigation */
    .carousel-nav {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 3rem;
    }

    .nav-btn {
      background: #2a3563;
      color: white;
      border: none;
      padding: 1rem 2rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.3s ease;
    }

    .nav-btn:hover {
      background: #00c9da;
      transform: translateY(-2px);
    }

    .nav-btn:disabled {
      background: #f4f4f4;
      color: #2a3563;
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    /* Job Categories Grid */
    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }

    .category-card {
      background: white;
      color: #2a3563;
      padding: 2.5rem;
      border-radius: 12px;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      border: 2px solid transparent;
      box-shadow: 0 4px 20px rgba(42, 53, 99, 0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .category-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #00c9da, #2a3563);
    }

    .category-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(42, 53, 99, 0.15);
      border-color: #00c9da;
    }

    .category-icon {
      margin-bottom: 1.5rem;
      background: #000;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .category-card h3 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.8rem;
      color: #2a3563;
      letter-spacing: -0.01em;
    }

    .category-count {
      font-size: 1rem;
      color: #2a3563;
      opacity: 0.7;
      font-weight: 500;
    }

    /* Latest Jobs Grid */
    .jobs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }

    .job-card {
      background: white;
      border: 2px solid transparent;
      border-radius: 12px;
      padding: 2rem;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(42, 53, 99, 0.08);
    }

    .job-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #00c9da, #2a3563);
    }

    .job-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(42, 53, 99, 0.15);
      border-color: #00c9da;
    }

    .job-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }

    .job-title {
      font-size: 1.4rem;
      font-weight: 600;
      color: #2a3563;
      margin-bottom: 0.5rem;
      letter-spacing: -0.01em;
    }

    .company-name {
      color: #00c9da;
      font-weight: 500;
      font-size: 1rem;
    }

    .job-budget {
      background: #00c9da;
      color: white;
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.95rem;
    }

    .job-description {
      color: #2a3563;
      opacity: 0.8;
      margin-bottom: 1.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.5;
    }

    .job-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      color: #2a3563;
    }

    .job-type {
      background: rgba(0, 201, 218, 0.1);
      color: #00c9da;
      padding: 0.4rem 1rem;
      border-radius: 6px;
      font-weight: 500;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2.8rem;
      }

      .hero p {
        font-size: 1.1rem;
      }

      .section-title {
        font-size: 1.8rem;
      }

      .nav-links {
        display: none;
      }

      .profile-card {
        min-width: 280px;
      }

      .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }

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

      .hero {
        padding: 4rem 0;
      }

      .section {
        padding: 3rem 0;
        margin: 2rem 0;
      }

      .section-title {
        font-size: 1rem;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 2.2rem;
      }

      .section-title {
        font-size: 1rem;
      }

      .container {
        padding: 0 1px;
      }

      .nav {
        padding: 0 1rem;
      }

      .profile-card,
      .job-card,
      .category-card {
        padding: 1.5rem;
      }
    }

    /* Animation classes for smooth loading */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.6s ease forwards;
    }

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

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: 0.8rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
    }

    .profile-form h3 {
      margin-bottom: 1.5rem;
    }


    /* Dashboard Grid */
    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(42, 53, 99, 0.06);
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      border: 1px solid #eee;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 25px rgba(42, 53, 99, 0.1);
    }

    .card-header {
      padding: 1rem 1.5rem;
      background-color: #f9f9f9;
      border-bottom: 1px solid #eee;
    }

    .card-header h3 {
      margin: 0;
      font-size: 1.25rem;
    }

    .card-body {
      padding: 1.5rem;
    }

    /* Profile Avatar */
    .profile-avatar-large {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin: 0 auto 1rem auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #00c9da, #2a3563);
      color: white;
      font-size: 2.5rem;
      overflow: hidden;
    }

    .profile-avatar-large img {
      border-radius: 50%;
      object-fit: cover;
    }

    /* Info List */
    .info-list {
      list-style: none;
      padding-left: 0;
    }

    .info-list li {
      margin-bottom: 0.75rem;
    }

    .info-list strong {
      color: #555;
      width: 100px;
      display: inline-block;
    }

    /* Buttons */
    .btn {
      display: inline-block;
      background: #00c9da;
      color: white;
      padding: 0.6rem 1.2rem;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn:hover {
      background: #2a3563;
    }

    .btn-outline {
      background: transparent;
      color: #2a3563;
      border: 2px solid #2a3563;
      padding: 0.5rem 1rem;
      font-weight: 500;
    }

    .btn-outline:hover {
      background: #2a3563;
      color: white;
    }

    .btn-sm {
      font-size: 0.85rem;
    }

    .text-muted {
      color: #888;
    }

    .document-item {
      margin-bottom: 1.5rem;
    }

    .hamburger.active .bar:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* User Dropdown Styles */
    .user-dropdown {
      position: relative;
    }

    .user-dropdown-toggle {
      display: flex !important;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      transition: all 0.3s ease;
      cursor: pointer;
      text-decoration: none;
      color: #2a3563 !important;
      background: rgba(0, 201, 218, 0.1);
    }

    .user-dropdown-toggle:hover {
      background: rgba(0, 201, 218, 0.2);
      color: #00c9da !important;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #00c9da, #2a3563);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .user-name {
      font-weight: 500;
      font-size: 0.9rem;
      color: inherit;
    }

    .dropdown-arrow {
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }

    .user-dropdown.active .dropdown-arrow {
      transform: rotate(180deg);
    }

    .user-dropdown-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(0, 0, 0, 0.1);
      min-width: 280px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 1000;
      overflow: hidden;
    }

    .user-dropdown-menu.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-header {
      padding: 1.5rem;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .user-info .user-name-full {
      font-weight: 600;
      font-size: 1rem;
      color: #2a3563;
      margin-bottom: 0.25rem;
    }

    .user-info .user-email {
      font-size: 0.85rem;
      color: #6b7280;
      margin-bottom: 0.25rem;
    }

    .user-info .user-role {
      font-size: 0.75rem;
      color: #00c9da;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .dropdown-divider {
      height: 1px;
      background: rgba(0, 0, 0, 0.1);
      margin: 0.5rem 0;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1.5rem;
      color: #2a3563;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: all 0.2s ease;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
    }

    .dropdown-item:hover {
      background: rgba(0, 201, 218, 0.1);
      color: #00c9da;
    }

    .dropdown-item svg {
      flex-shrink: 0;
      opacity: 0.7;
    }

    .dropdown-item:hover svg {
      opacity: 1;
    }

    .logout-item {
      color: #ef4444;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      margin-top: 0.5rem;
    }

    .logout-item:hover {
      background: rgba(239, 68, 68, 0.1);
      color: #dc2626;
    }

    /* Mobile adjustments for dropdown */
    @media (max-width: 768px) {
      .user-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        min-width: auto;
        width: 100%;
      }

      .dropdown-header {
        background: transparent;
        border-bottom: none;
        padding: 1rem 0;
      }

      .dropdown-item {
        padding: 1rem 0;
        justify-content: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }

      .user-dropdown-toggle {
        justify-content: center;
        background: transparent;
      }

      .user-name {
        display: none;
      }

      .dropdown-arrow {
        display: none;
      }
    }

    /* Auth Dropdown Styles */
    .auth-dropdown {
      position: relative;
    }

    .auth-dropdown-toggle {
      display: flex !important;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      transition: all 0.3s ease;
      cursor: pointer;
      text-decoration: none;
      color: #2a3563 !important;
      background: rgba(0, 201, 218, 0.1);
      border: 1px solid gainsboro;
    }

    .auth-dropdown-toggle:hover {
      background: rgba(0, 201, 218, 0.2);
      color: #00c9da !important;
    }

    .auth-text {
      font-weight: 500;
      font-size: 0.9rem;
      color: inherit;
    }

    .auth-dropdown.active .dropdown-arrow {
      transform: rotate(180deg);
    }

    .auth-dropdown-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(0, 0, 0, 0.1);
      min-width: 200px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 1000;
      overflow: hidden;
    }

    .auth-dropdown-menu.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* ——— Auth Modal ——— */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(10, 15, 40, 0.55);
      backdrop-filter: blur(4px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .modal-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background: white;
      border-radius: 20px;
      max-width: 460px;
      width: 94%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 24px 80px rgba(10,15,40,0.25);
      transform: translateY(16px) scale(0.97);
      transition: transform 0.25s ease;
    }

    .modal-overlay.show .modal-content {
      transform: translateY(0) scale(1);
    }

    .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(42,53,99,0.06);
      border: none;
      font-size: 1.1rem;
      cursor: pointer;
      color: #5a6478;
      z-index: 1;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      transition: all 0.2s ease;
    }

    .modal-close:hover {
      background: rgba(42,53,99,0.1);
      color: #2A3563;
    }

    #authModalContent {
      padding: 0;
    }

    /* Responsive adjustments for auth dropdown */
    @media (max-width: 768px) {
      .auth-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        min-width: auto;
        width: 100%;
      }

      .auth-dropdown-toggle {
        justify-content: center;
        background: transparent;
      }

      .auth-text {
        display: none;
      }

      .dropdown-arrow {
        display: none;
      }

      .dropdown-item {
        padding: 1rem 0;
        justify-content: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }

      .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
      }

      #authModalContent {
        padding: 1.5rem;
      }
    }

    /* ——— TC FOOTER ——— */
    .tc-footer {
      background: var(--tc-text);
      color: rgba(255,255,255,0.7);
      padding: 3.5rem 5rem 2rem;
      margin-top: 4rem;
    }

    .tc-footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

    .tc-footer-brand p {
      font-size: 0.85rem;
      line-height: 1.7;
      margin-top: 0.75rem;
      max-width: 260px;
    }

    .tc-footer-logo-text {
      font-family: var(--font-head);
      font-size: 1.1rem;
      font-weight: 700;
      color: white;
    }

    .tc-footer-col h4 {
      font-family: var(--font-head);
      font-size: 0.82rem;
      font-weight: 700;
      color: white;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1rem;
    }

    .tc-footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .tc-footer-col ul li a {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.55);
      text-decoration: none;
      transition: color 0.2s;
    }

    .tc-footer-col ul li a:hover { color: white; }

    .tc-footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.8rem;
    }

    .tc-footer-social {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .tc-social-link {
      width: 36px;
      height: 36px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.78);
      border: 1px solid rgba(255,255,255,0.16);
      background: rgba(255,255,255,0.04);
      transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .tc-social-link:hover {
      color: white;
      border-color: rgba(255,255,255,0.35);
      background: rgba(255,255,255,0.1);
      transform: translateY(-1px);
    }

    .tc-social-link svg {
      width: 16px;
      height: 16px;
    }

    @media (max-width: 900px) {
      .tc-footer { padding: 3rem 2rem 1.5rem; }
      .tc-footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 480px) {
      .tc-footer-grid { grid-template-columns: 1fr; }
      .tc-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
      .tc-footer-social { justify-content: center; }
    }



/* ==========================================================================
   Motion tokens + SPA-feel navigation (Nov 2026 web polish, Phase 1)
   ========================================================================== */
:root {
  --tc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --tc-dur-fast: 150ms;
  --tc-dur-base: 220ms;
  --tc-shadow-sm: 0 1px 2px rgba(42,53,99,0.06), 0 1px 1px rgba(42,53,99,0.04);
  --tc-shadow-md: 0 4px 12px rgba(42,53,99,0.08), 0 1px 3px rgba(42,53,99,0.06);
  --tc-shadow-lg: 0 12px 32px rgba(42,53,99,0.12), 0 2px 6px rgba(42,53,99,0.06);
}

/* Cross-document view transitions: real page loads, app-like change.
   Both the old and new page must opt in, which every page that extends
   base.html does via this file. Unsupported browsers just navigate. */
@view-transition { navigation: auto; }

.tc-nav { view-transition-name: tc-nav; }
.tc-footer { view-transition-name: tc-footer; }

@keyframes tc-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes tc-vt-in { from { opacity: 0; transform: translateY(8px); } }

::view-transition-old(root) { animation: tc-vt-out 160ms var(--tc-ease) both; }
::view-transition-new(root) { animation: tc-vt-in 240ms var(--tc-ease) both; }
/* Nav stays put; footer simply cross-fades. */
::view-transition-group(tc-nav) { animation: none; }
::view-transition-old(tc-nav), ::view-transition-new(tc-nav) { animation: none; }

/* Top progress bar (htmx requests + slow navigations) */
.tc-progress {
  position: fixed; top: 0; left: 0; z-index: 3000;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--tc-green), var(--tc-green-mid));
  transform-origin: 0 50%; transform: scaleX(0);
  opacity: 0; pointer-events: none;
  transition: transform 400ms var(--tc-ease), opacity 200ms linear;
  view-transition-name: tc-progress;
}
.tc-progress.is-active { opacity: 1; }

/* htmx in-flight feedback for partial swaps */
.htmx-request.tc-swap-target, .tc-swap-target.htmx-request { opacity: 0.55; transition: opacity var(--tc-dur-fast) linear; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .tc-progress { transition: none; }
  html { scroll-behavior: auto; }
}

/* Line icons (templates/components/icon.html) — replace emoji-as-icons */
.tc-icon {
  width: 1.1em; height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.18em;
  stroke-width: 2;
}
.tc-icon--accent { color: var(--tc-green-mid); }
.tc-icon--star { fill: #f5b301; stroke: #f5b301; }
.tc-icon--star-off { color: #d5d9e0; }
:where(h2, h3, .info-label, .detail-label) > .tc-icon { color: var(--tc-green-mid); margin-right: 0.35em; }

/* Active route in the main nav */
.nav-links a.is-active { color: var(--tc-text); position: relative; }
@media (min-width: 1025px) {
  .nav-links a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
    height: 2px; border-radius: 2px; background: var(--tc-green);
  }
}
/* Signed-in/staff navs carry up to nine links: tighten just above the collapse point. */
@media (min-width: 1025px) and (max-width: 1200px) {
  .tc-nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.1rem !important; }
  .nav-links a { font-size: 0.85rem; }
}

/* Full-bleed auth/form pages (main.tc-auth-page): gradient runs straight into the footer. */
body:has(main.tc-auth-page) .tc-footer { margin-top: 0; }

/* Status pages (permission denied, invalid invitation, saved confirmations) */
.tc-status-page {
  min-height: calc(100vh - 68px - 4rem);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0,201,222,0.10), transparent),
    #F7F8FA;
}
.tc-status-card {
  width: 100%; max-width: 480px; text-align: center;
  background: #fff; border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius); box-shadow: var(--tc-shadow-md);
  padding: 2.5rem 2rem 2rem;
}
.tc-status-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tc-green-light); color: var(--tc-green-mid);
}
.tc-status-icon .tc-icon { width: 30px; height: 30px; }
.tc-status-icon--danger { background: rgba(220,38,38,0.08); color: #dc2626; }
.tc-status-icon--success { background: rgba(22,163,74,0.10); color: #16a34a; }
.tc-status-card h1 { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--tc-text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.tc-status-card p { color: var(--tc-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.tc-status-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.tc-status-actions .tc-btn { min-width: 150px; justify-content: center; }
.tc-status-card .tc-status-messages { margin-bottom: 1rem; }
.tc-status-card .tc-status-messages div { background: rgba(22,163,74,0.08); color: #166534; border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.9rem; }

/* Sticky positioning: overflow-x:hidden on html/body (tc-core,
   mobile-cross-platform.css, landing page) turns body into a scroll
   container, so position:sticky elements stick to body, not the viewport.
   `clip` hides horizontal overflow without creating a scroll container. */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

/* Nav links share one alignment (Messages is inline-flex for its badge). */
@media (min-width: 1025px) {
  /* :not(.nav-mobile-only) — those items must stay display:none on desktop. */
  .nav-links > li:not(.nav-mobile-only) { display: flex; align-items: center; }
  .nav-links > li:not(.nav-mobile-only) > a { display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; white-space: nowrap; }
}

/* ── Get-the-app promos (badge, QR, Android banner, footer column) ───── */
.tc-play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
/* Google's artwork carries its own clear space; size by height. */
.tc-play-badge img { height: 58px; width: auto; display: block; }
.tc-play-badge--lg img { height: 72px; }
.tc-play-badge:focus-visible { outline: 2px solid var(--tc-green); outline-offset: 2px; }
.tc-app-qr { display: block; background: #fff; border-radius: 10px; image-rendering: pixelated; }

/* Android-only banner under the nav; hidden until tc-core.js shows it. */
.tc-app-banner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: #fff; border-bottom: 1px solid var(--tc-border);
  box-shadow: var(--tc-shadow-sm);
}
.tc-app-banner[hidden] { display: none; }
.tc-app-banner-logo { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.tc-app-banner-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.tc-app-banner-text strong { font-family: var(--font-head); font-weight: 800; color: var(--tc-text); font-size: 0.92rem; }
.tc-app-banner-text span { color: var(--tc-muted); font-size: 0.8rem; }
.tc-app-banner-cta {
  background: var(--tc-green); color: #fff; font-weight: 800; font-family: var(--font-head);
  padding: 0.45rem 1.1rem; border-radius: 999px; text-decoration: none; font-size: 0.9rem;
}
.tc-app-banner-close {
  border: 0; background: none; color: var(--tc-muted); cursor: pointer;
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.tc-app-banner-close:hover { background: rgba(42,53,99,0.06); }

/* Footer "Get the app" column (5th column on desktop). */
@media (min-width: 1025px) {
  .tc-footer-grid:has(.tc-footer-app) { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 2.25rem; }
}
.tc-footer-app-row { display: flex; align-items: center; gap: 0.9rem; }
.tc-footer-app-qr .tc-app-qr { width: 96px; height: 96px; padding: 4px; }
.tc-footer-app-cta p { font-size: 0.82rem; margin: 0 0 0.35rem; opacity: 0.8; }
.tc-footer-app .tc-play-badge img { height: 48px; margin-left: -6px; }
/* A phone can't scan its own screen: hide QR codes on small screens. */
@media (max-width: 768px) {
  .tc-footer-app-qr, .tc-hide-qr-mobile { display: none; }
}

/* /app/ landing page */
.tc-app-card-qr { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 0 auto 1.25rem; }
.tc-app-card-qr .tc-app-qr { width: 176px; height: 176px; border: 1px solid var(--tc-border); padding: 6px; }
.tc-app-card-qr span { font-size: 0.85rem; color: var(--tc-muted); }
