@import url('auth.css');

/* ==========================================================================
       1. CSS VARIABLES & RESET
       ========================================================================== */
    :root {
      /* User Specified Brand Colors */
      --primary: #e77817;
      --primary-hover: #cf6710;
      --primary-light: #fff5ed;
      --border-color: #dddddd;

      /* Accent Colors */
      --accent-blue: #2563eb;
      --accent-teal: #0d9488;
      --accent-purple: #7c3aed;
      --accent-orange: #e77817;

      /* Theme Layout Colors */
      --bg-body: #f7f9fb;
      --bg-card: #ffffff;
      --bg-card-subtle: #fafbfd;

      --text-main: #1f2937;
      --text-muted: #6b7280;
      --text-inverse: #ffffff;

      --status-paid: #15803d;
      --status-paid-bg: #dcfce7;
      --status-trial: #6b7280;
      --status-trial-bg: #f3f4f6;

      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 18px;
      --radius-full: 9999px;

      --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
      --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
      --shadow-hover: 0 10px 25px rgba(0,0,0,0.09);

      --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      --max-width: 1220px;
    }

    /* Dark Mode Theme */
    body.dark-mode {
      --bg-body: #0d131f;
      --bg-card: #162032;
      --bg-card-subtle: #1e2c44;
      --border-color: #2c3a52;
      --text-main: #f3f4f6;
      --text-muted: #9ca3af;
      --primary-light: #2c1a0e;
      --status-trial-bg: #27354a;
      --status-trial: #d1d5db;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
      --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
      --shadow-hover: 0 10px 25px rgba(0,0,0,0.45);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      overflow-x: hidden;
      width: 100%;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: var(--bg-body);
      color: var(--text-main);
      line-height: 1.5;
      transition: background-color 0.3s ease, color 0.3s ease;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      width: 100%;
    }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: var(--transition);
    }

    a:hover {
      color: var(--primary-hover);
    }

    button {
      font-family: inherit;
      cursor: pointer;
    }

    input, textarea, select {
      font-family: inherit;
      font-size: 0.9rem;
      color: var(--text-main);
    }

    :focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    /* ==========================================================================
       2. HEADER & NAVIGATION
       ========================================================================== */
    .top-bar {
      background-color: var(--bg-card);
      border-bottom: 1px solid var(--border-color);
      padding: 0.8rem 1.5rem;
    }

    .top-bar-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--primary);
      text-decoration: none !important;
    }

    .brand-logo svg {
      width: 28px;
      height: 28px;
      fill: var(--primary);
    }

    .brand-logo-img {
      max-height: 48px;
      width: auto;
      object-fit: contain;
    }

    .top-meta {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      font-size: 0.85rem;
    }

    .help-link {
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .user-greeting {
      color: var(--text-muted);
    }

    .user-greeting strong {
      color: var(--text-main);
    }

    /* Top User Account Dropdown */
    .user-profile-menu {
      position: relative;
    }

    .user-profile-trigger {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.65rem;
      background: var(--bg-card-subtle);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      color: var(--text-main);
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .user-profile-trigger:hover,
    .user-profile-trigger[aria-expanded="true"] {
      border-color: var(--primary);
      color: var(--primary);
      box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.12);
    }

    .user-avatar-circle {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--primary-light);
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .user-avatar-circle svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
    }

    .user-dropdown-arrow {
      font-size: 0.7rem;
      transition: transform 0.2s ease;
      color: var(--text-muted);
    }

    .user-profile-menu.open .user-dropdown-arrow {
      transform: rotate(180deg);
    }

    .user-dropdown-pane {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 220px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
      padding: 0.5rem 0;
      display: none;
      z-index: 1000;
      animation: dropdownFade 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes dropdownFade {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .user-profile-menu.open .user-dropdown-pane {
      display: block;
    }

    .dropdown-header-info {
      padding: 0.5rem 1rem 0.65rem;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 0.35rem;
    }

    .dropdown-header-info .name {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text-main);
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dropdown-header-info .email {
      font-size: 0.75rem;
      color: var(--text-muted);
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-dropdown-pane a {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.6rem 1rem;
      color: var(--text-main);
      font-size: 0.85rem;
      font-weight: 500;
      transition: var(--transition);
      text-decoration: none;
    }

    .user-dropdown-pane a svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      color: var(--text-muted);
      transition: var(--transition);
    }

    .user-dropdown-pane a:hover {
      background-color: var(--primary-light);
      color: var(--primary);
    }

    .user-dropdown-pane a:hover svg {
      color: var(--primary);
    }

    .user-dropdown-pane hr {
      border: none;
      border-top: 1px solid var(--border-color);
      margin: 0.35rem 0;
    }

    /* Sticky Navigation */
    .navbar {
      background-color: var(--bg-card);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--shadow-sm);
    }

    .navbar-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1rem;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 0.25rem;
      overflow: visible;
    }

    .nav-item {
      position: relative;
      list-style: none;
    }

    .nav-item a {
      display: inline-block;
      padding: 0.85rem 0.75rem;
      color: var(--text-main);
      font-weight: 500;
      font-size: 0.875rem;
      text-decoration: none;
      border-bottom: 2.5px solid transparent;
      white-space: nowrap;
      transition: var(--transition);
    }

    .nav-item a:hover,
    .nav-item.active a {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .social-links {
      display: flex;
      gap: 0.45rem;
    }

    .social-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: var(--radius-full);
      background-color: var(--bg-card-subtle);
      color: var(--text-muted);
      border: 1px solid var(--border-color);
      transition: var(--transition);
    }

    .social-icon:hover {
      color: var(--primary);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .theme-toggle-btn {
      background: none;
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      border-radius: var(--radius-full);
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .theme-toggle-btn:hover {
      color: var(--primary);
      border-color: var(--primary);
    }

    .mobile-menu-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--text-main);
      padding: 0.5rem;
      font-size: 1.3rem;
    }

    /* ==========================================================================
       3. STAT CARDS
       ========================================================================== */
    .container {
      max-width: var(--max-width);
      margin: 1.8rem auto 3rem;
      padding: 0 1rem;
      width: 100%;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
      margin-bottom: 2rem;
    }

    .stat-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 1.35rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }

    .stat-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background-color: var(--accent);
    }

    .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(231, 120, 23, 0.4);
    }

    .stat-icon-wrapper {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background-color: var(--accent-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      flex-shrink: 0;
    }

    .stat-info .stat-value {
      font-size: 1.55rem;
      font-weight: 700;
      line-height: 1.2;
      color: var(--text-main);
    }

    .stat-info .stat-label {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.2rem;
    }

    /* ==========================================================================
       4. TWO-COLUMN LAYOUT
       ========================================================================== */
    .dashboard-layout {
      display: grid;
      grid-template-columns: 2fr 1.15fr;
      gap: 1.75rem;
      align-items: start;
      min-width: 0;
      width: 100%;
    }

    .col-left, .col-right {
      display: flex;
      flex-direction: column;
      gap: 1.75rem;
      min-width: 0;
      width: 100%;
    }

    .card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      /*margin-bottom: 1.25rem;*/
      padding-bottom: 14.4px;
      border-bottom: 1px solid var(--border-color);
    }

    .card-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Table Styles */
    .table-container {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-bottom: 0.5rem;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.875rem;
      min-width: 480px;
    }

    th {
      padding: 0.75rem 0.5rem;
      font-weight: 600;
      color: var(--text-muted);
      background-color: var(--bg-card-subtle);
      border-bottom: 1px solid var(--border-color);
    }

    td {
      padding: 0.9rem 0.5rem;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-main);
    }

    tbody tr:hover {
      background-color: var(--bg-card-subtle);
    }

    /* Badges & Buttons */
    .badge {
      display: inline-block;
      padding: 0.25rem 0.65rem;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      font-weight: 600;
    }

    .badge-paid {
      background-color: var(--status-paid-bg);
      color: var(--status-paid);
    }

    .badge-trial, .badge-free {
      background-color: var(--status-trial-bg);
      color: var(--status-trial);
      border: 1px solid var(--border-color);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.55rem 1.15rem;
      font-size: 0.85rem;
      font-weight: 600;
      border-radius: var(--radius-sm);
      border: 1px solid transparent;
      transition: var(--transition);
      text-decoration: none !important;
    }

    .btn-sm {
      padding: 0.35rem 0.75rem;
      font-size: 0.78rem;
    }

    .btn-primary {
      background-color: var(--primary);
      color: #ffffff;
      box-shadow: 0 2px 6px rgba(231, 120, 23, 0.25);
    }

    .btn-primary:hover {
      background-color: var(--primary-hover);
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(231, 120, 23, 0.35);
    }

    /* Form Elements */
    .form-group {
      margin-bottom: 1.1rem;
    }

    .form-label {
      display: block;
      margin-bottom: 0.4rem;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-main);
    }

    .form-control {
      width: 100%;
      padding: 0.7rem 0.9rem;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      background-color: var(--bg-card);
      transition: var(--transition);
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
    }

    /* Learn Products Section */
    .learn-products-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.15rem;
    }

    .learn-product-card {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      background-color: var(--bg-card);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: var(--transition);
      position: relative;
    }

    .learn-product-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-hover);
      border-color: var(--primary);
    }

    .learn-product-media {
      position: relative;
      height: 135px;
      background: linear-gradient(135deg, rgba(231,120,23,0.08), rgba(37,99,235,0.08));
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .learn-product-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }

    .learn-product-card:hover .learn-product-media img {
      transform: scale(1.04);
    }

    .learn-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
      padding: 0.25rem 0.6rem;
      border-radius: var(--radius-sm);
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .learn-badge--free {
      background: #dcfce7;
      color: #15803d;
    }

    .learn-badge--buy {
      background: #ffedd5;
      color: #c2410c;
    }

    .learn-badge--active {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .learn-product-body {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .learn-product-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 0.35rem;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .learn-product-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.85rem;
      line-height: 1.45;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex-grow: 1;
    }

    .learn-product-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-top: auto;
      padding-top: 0.65rem;
      border-top: 1px solid var(--border-color);
    }

    .learn-product-price {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--primary);
    }

    .learn-product-price.free {
      color: #15803d;
    }

    @media (max-width: 600px) {
      .learn-products-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Recent Posts */
    .posts-list {
      display: flex;
      flex-direction: column;
      gap: 1.15rem;
    }

    .post-item {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      padding-bottom: 1.15rem;
      border-bottom: 1px solid var(--border-color);
    }

    .post-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .post-thumbnail {
      width: 84px;
      height: 64px;
      object-fit: cover;
      border-radius: var(--radius-sm);
      background-color: var(--bg-card-subtle);
      border: 1px solid var(--border-color);
      flex-shrink: 0;
    }

    .post-content {
      flex: 1;
    }

    .post-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
      line-height: 1.35;
    }

    .post-date {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 0.35rem;
    }

    .post-excerpt {
      font-size: 0.825rem;
      color: var(--text-muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.45;
    }

    /* ==========================================================================
       5. REDESIGNED RIGHT COLUMN (WHATSAPP & NOTICES)
       ========================================================================== */
    
    /* WhatsApp Card Modernized */
    .whatsapp-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-md);
      background: var(--bg-card);
      border-top: 4px solid #25d366;
    }

    .whatsapp-header-banner {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      margin-bottom: 0.85rem;
    }

    .whatsapp-icon-bubble {
      width: 44px;
      height: 44px;
      background: #25d366;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
      flex-shrink: 0;
    }

    .whatsapp-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-main);
      line-height: 1.2;
    }

    .whatsapp-subtitle {
      font-size: 0.78rem;
      color: #15803d;
      font-weight: 500;
    }

    .whatsapp-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.45;
      margin-bottom: 1.1rem;
    }

    .phone-input-wrapper {
      display: flex;
      align-items: center;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      background-color: var(--bg-card-subtle);
      transition: var(--transition);
      overflow: hidden;
    }

    .phone-input-wrapper:focus-within {
      border-color: #25d366;
      box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
      background-color: var(--bg-card);
    }

    .country-code {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0 0.85rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-muted);
      border-right: 1px solid var(--border-color);
      background-color: rgba(0,0,0,0.02);
      height: 44px;
    }

    .phone-input {
      flex: 1;
      border: none;
      background: transparent;
      padding: 0.65rem 0.85rem;
      height: 44px;
      font-weight: 500;
      font-size: 0.95rem;
    }

    .phone-input:focus {
      outline: none;
    }

    .whatsapp-actions {
      display: flex;
      gap: 0.6rem;
      margin-top: 0.85rem;
    }

    .btn-whatsapp-save {
      width: 100%;
      background-color: #25d366;
      color: #ffffff;
      padding: 0.7rem 1.2rem;
      font-size: 0.88rem;
      border-radius: var(--radius-sm);
      font-weight: 600;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
      transition: var(--transition);
    }

    .btn-whatsapp-save:hover {
      background-color: #20ba5a;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    }

    /* Attractive Notices Card */
    .notices-wrapper {
      box-shadow: var(--shadow-md);
      border: 1px solid var(--border-color);
    }

    .notices-list {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    .notice-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 1.15rem;
      transition: var(--transition);
      position: relative;
    }

    .notice-card::before {
      content: '';
      position: absolute;
      top: 14px;
      bottom: 14px;
      left: 0;
      width: 3.5px;
      border-radius: 0 4px 4px 0;
      background-color: var(--border-color);
      transition: var(--transition);
    }

    .notice-card.is-important::before {
      background-color: var(--primary);
    }

    .notice-card:hover {
      border-color: #cbd5e1;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .notice-meta-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.45rem;
    }

    .notice-date-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.85rem;
      color: #000000;
      background-color: var(--bg-card-subtle);
      padding: 0.55rem 0.55rem;
      border-radius: var(--radius-full);
      border: 1px solid #000000;
    }

    .notice-important-pill {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
      color: #ffffff;
      padding: 0.2rem 0.6rem;
      border-radius: var(--radius-full);
      box-shadow: 0 2px 5px rgba(220, 38, 38, 0.25);
    }

    .notice-title {
      font-size: 0.925rem;
      font-weight: 600;
      color: var(--text-main);
      line-height: 1.4;
      margin-bottom: 0.35rem;
    }

    .notice-body {
      font-size: 0.825rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .notice-footer {
      display: flex;
      justify-content: flex-end;
      margin-top: 0.5rem;
      border-top: 1px dashed var(--border-color);
      padding-top: 0.4rem;
    }

    .notice-toggle-btn {
      color: var(--primary);
      font-size: 0.78rem;
      font-weight: 600;
      background: none;
      border: none;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      transition: var(--transition);
    }

    .notice-toggle-btn:hover {
      color: var(--primary-hover);
      text-decoration: underline;
    }

    /* Footer */
    footer {
      margin-top: auto;
      border-top: 1px solid var(--border-color);
      background-color: var(--bg-card);
      padding: 1.25rem 1.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .footer-container {
      max-width: 1188px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .footer-copyright {
      margin: 0;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .footer-social-links {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .footer-social-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      color: #ffffff;
      text-decoration: none;
      transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    }

    .footer-social-icon.facebook {
      background-color: #1877f2;
    }

    .footer-social-icon.youtube {
      background-color: #ff0000;
    }

    .footer-social-icon.instagram {
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .footer-social-icon:hover {
      transform: translateY(-2px);
      filter: brightness(1.1);
      color: #ffffff;
    }

    .footer-social-icon.facebook:hover {
      box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    }

    .footer-social-icon.youtube:hover {
      box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    }

    .footer-social-icon.instagram:hover {
      box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
    }

    /* ==========================================================================
       6. RESPONSIVENESS
       ========================================================================== */
    @media (max-width: 992px) {
      .dashboard-layout {
        grid-template-columns: 1fr;
      }
      
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .mobile-menu-toggle {
        display: block;
      }

      .top-meta {
        gap: 0.65rem;
      }
      .user-greeting {
        display: none;
      }

      /* Mobile Header: Show only avatar logo in userProfile, remove name and arrow */
      .user-greeting-name {
        display: none !important;
      }

      .user-dropdown-arrow {
        display: none !important;
      }

      .user-profile-trigger {
        padding: 3px !important;
        gap: 0 !important;
        border-radius: 50% !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        justify-content: center !important;
      }

      .user-avatar-circle {
        width: 30px !important;
        height: 30px !important;
      }

      .help-link {
        font-size: 0.8rem;
        white-space: nowrap;
      }

      .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
      }

      .nav-menu.open {
        display: flex;
      }

      .nav-item a {
        padding: 0.6rem 0;
        width: 100%;
      }

      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
      }

      .stat-card {
        padding: 1rem;
      }

      .stat-info .stat-value {
        font-size: 1.25rem;
      }

      .top-bar {
        padding: 0.6rem 0.85rem !important;
      }
      .navbar-inner {
        padding: 0 0.85rem !important;
      }
      .container {
        padding: 0 0.85rem !important;
      }
      .card {
        padding: 1.15rem 0.95rem !important;
      }
      .footer-container {
        padding: 1.25rem 0.85rem !important;
      }
      .footer-container {
        flex-direction: column-reverse;
        gap: 0.75rem;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .top-bar {
        padding: 0.5rem 0.65rem !important;
      }
      .navbar-inner {
        padding: 0 0.65rem !important;
      }
      .container {
        padding: 0 0.65rem !important;
      }
      .card {
        padding: 1rem 0.75rem !important;
      }
      .footer-container {
        padding: 1.25rem 0.65rem !important;
      }
      .brand-logo-img {
        max-height: 38px !important;
        width: auto !important;
      }
      .top-bar-inner {
        gap: 0.35rem;
      }
      .top-meta {
        gap: 0.4rem !important;
      }
      .help-link {
        font-size: 0.725rem;
      }
      .help-link svg {
        width: 14px;
        height: 14px;
      }
      .user-profile-trigger {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
      }
      .user-avatar-circle {
        width: 26px !important;
        height: 26px !important;
      }
      .user-avatar-circle svg {
        width: 20px !important;
        height: 20px !important;
      }
      .user-dropdown-pane {
        width: min(240px, calc(100vw - 1.5rem)) !important;
        right: 0 !important;
      }
    }

/* ==========================================================================
   ADDITIONAL ENHANCEMENTS FOR SYSTEM INTEGRATION
   ========================================================================== */

/* 1. Navigation Dropdown Pane Alignment */
.nav-menu {
  overflow: visible !important;
}
.nav-item {
  position: relative !important;
}
.nav-item.has-dropdown {
  position: relative !important;
}
.nav-item.has-dropdown > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}
.nav-arrow {
  font-size: 1.25rem !important;
  line-height: 1 !important;
  display: inline-block !important;
  transition: transform 0.2s ease !important;
  opacity: 0.75;
}
.nav-dropdown-pane {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 200px !important;
  background: var(--bg-card, #ffffff) !important;
  border: 1px solid var(--border-color, #dddddd) !important;
  border-radius: var(--radius-sm, 8px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  padding: 0.35rem 0 !important;
  margin: 0 !important;
  z-index: 1000 !important;
  list-style: none !important;
  animation: dropdownFade 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dropdown-pane a {
  display: block !important;
  width: 100% !important;
  padding: 0.6rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--text-main, #1f2937) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  white-space: nowrap !important;
  transition: var(--transition, all 0.25s) !important;
  box-sizing: border-box !important;
  list-style: none !important;
}
.nav-dropdown-pane a:hover,
.nav-dropdown-pane a.active {
  background-color: var(--primary-light, #fff5ed) !important;
  color: var(--primary, #e77817) !important;
}
@media (min-width: 769px) {
  .nav-item.has-dropdown:hover .nav-dropdown-pane,
  .nav-item.has-dropdown.open .nav-dropdown-pane {
    display: block !important;
  }
  .nav-item.has-dropdown:hover .nav-arrow,
  .nav-item.has-dropdown.open .nav-arrow {
    transform: rotate(180deg) !important;
  }
}
@media (max-width: 768px) {
  .nav-item.has-dropdown.open .nav-dropdown-pane {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: var(--bg-card-subtle, #fafbfd) !important;
    padding: 0.25rem 0 0.25rem 0.75rem !important;
    margin-top: 0.25rem !important;
  }
}

/* 2. Notice Content Exact Font-Size Harmonization */
.notice-card .notice-body,
.notice-card .notice-body p,
.notice-card .notice-body span,
.notice-card .notice-body span[style*="font-size"],
.notice-card .notice-body h1,
.notice-card .notice-body h2,
.notice-card .notice-body h3,
.notice-card .notice-body h4,
.notice-card .notice-body h5,
.notice-card .notice-body h6 {
  font-size: 0.825rem !important;
  line-height: 1.45 !important;
  font-family: inherit !important;
}
.notice-card .notice-body h1,
.notice-card .notice-body h2,
.notice-card .notice-body h3,
.notice-card .notice-body h4,
.notice-card .notice-body strong {
  font-weight: 600 !important;
  color: var(--text-main) !important;
}
.notice-card .notice-body a {
  color: var(--primary) !important;
  text-decoration: underline !important;
  font-weight: 500;
  word-break: break-all;
}
.notice-card .notice-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}
.notice-card .notice-body.collapsible-content {
  max-height: 130px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}
.notice-card .notice-body.collapsible-content.expanded {
  max-height: 3500px;
}
.notice-card .notice-body.collapsible-content:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

/* 3. Pure Modern Responsive Grid (No Bootstrap CSS needed) */
.container {
  width: 100%;
  max-width: var(--max-width, 1220px);
  margin: 1.8rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .col-sm-4 { width: 33.333333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-12 { width: 100%; }
}

/* 4. Modern Subpage Components (Breadcrumbs, Dialogs, Cards, Forms) */
.breadcomb-area {
  padding: 1.5rem 0 0.5rem;
}
.breadcomb-list {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.breadcomb-ctn h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.dialog-inner,
.normal-table-list,
.data-table-list,
.widget-tabs-list,
.form-element-list,
.view-mail-list {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.dialog-inner h2,
.basic-tb-hd h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.nk-block {
  width: 100%;
  margin: 1.5rem auto 2.5rem;
}
.nk-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.form-control,
.nk-int-st .form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--text-main);
  transition: var(--transition);
  box-sizing: border-box;
}
.form-control:focus,
.nk-int-st .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}
.btn-info,
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}
.btn-success {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}
.btn-danger {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.table-bordered {
  border: 1px solid var(--border-color) !important;
}
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
  border: 1px solid var(--border-color) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--bg-card-subtle) !important;
}

/* 5. System Flash Alert */
.system-flash-banner {
  max-width: var(--max-width, 1220px);
  margin: 1rem auto 0;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.system-flash-banner.alert-success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.system-flash-banner.alert-error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.system-flash-banner .close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  line-height: 1;
  padding: 0 0.5rem;
}


/* ==========================================================================
   6. INNER PAGE & COMPETITIONS STYLING (Modern Theme)
   ========================================================================== */

/* Breadcrumb Navigation */
.inner-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  width: fit-content;
  max-width: 100%;
}
.inner-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none !important;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  transition: var(--transition);
}
.inner-breadcrumb a:first-child::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 11-1.06 1.06l-.91-.91V20.25a.75.75 0 01-.75.75h-4.5a.75.75 0 01-.75-.75v-4.5h-2.5v4.5a.75.75 0 01-.75.75h-4.5a.75.75 0 01-.75-.75V12.68l-.91.91a.75.75 0 01-1.06-1.06l8.69-8.69z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11.47 3.84a.75.75 0 011.06 0l8.69 8.69a.75.75 0 11-1.06 1.06l-.91-.91V20.25a.75.75 0 01-.75.75h-4.5a.75.75 0 01-.75-.75v-4.5h-2.5v4.5a.75.75 0 01-.75.75h-4.5a.75.75 0 01-.75-.75V12.68l-.91.91a.75.75 0 01-1.06-1.06l8.69-8.69z'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.85;
}
.inner-breadcrumb a:hover {
  color: var(--primary) !important;
  background: rgba(231, 120, 23, 0.08);
}
.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.72rem;
  font-weight: 400;
  user-select: none;
}
.breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  /*max-width: 260px;*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.dark-mode .inner-breadcrumb {
  background: #1e293b;
  border-color: #334155;
}

/* Page Header Banner (Compact & Sleek) */
.inner-page-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: var(--transition);
}

.inner-page-header:hover {
  box-shadow: var(--shadow-md);
}

.page-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-title-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0 0;
  line-height: 1.3;
}

.page-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(231, 120, 23, 0.25);
}

.badge-count-pill.blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.25);
}

.badge-count-pill strong {
  font-weight: 700;
}

/* Ensure row columns flex equally so all cards in a row have exact same height */
.col-lg-6, .col-md-6, .col-sm-6, .col-xs-12,
.col-lg-4, .col-md-4 {
  display: flex;
  flex-direction: column;
}

/* Equal Height Competition Card */
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex: 1 1 auto;
  height: calc(100% - 1.25rem);
}

.comp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(231, 120, 23, 0.4);
}

.comp-card.is-enrolled {
  border-top: 3px solid #10b981;
}

.comp-card.is-completed {
  border-top: 3px solid #3b82f6;
}

.comp-card-header {
  margin-bottom: 0.35rem;
  min-height: 4.2rem;
  display: flex;
  flex-direction: column;
}

.comp-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.comp-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-transform: capitalize;
  line-height: 1.2;
}

.comp-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.comp-mode-pill.mode-online {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.comp-mode-pill.mode-offline {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

body.dark-mode .comp-mode-pill.mode-online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .comp-mode-pill.mode-offline {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.3);
}

.mode-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.comp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: auto;
  line-height: 1.2;
}

.comp-status-pill.status-enrolled,
.comp-status-pill.status-pass {
  background: var(--status-paid-bg);
  color: var(--status-paid);
  border: 1px solid #86efac;
}

.comp-status-pill.status-fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

body.dark-mode .comp-status-pill.status-enrolled,
body.dark-mode .comp-status-pill.status-pass {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

body.dark-mode .comp-status-pill.status-fail {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.comp-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  min-height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact Metadata / Schedule / Results - Equal Height */
.comp-meta-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.5rem 0 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  min-height: 52px;
  box-sizing: border-box;
}

.comp-meta-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comp-meta-line .meta-icon {
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.comp-meta-line .meta-icon.blue {
  color: #2563eb;
}

.comp-meta-line .meta-label {
  font-weight: 600;
  color: var(--text-muted);
}

.comp-meta-line .meta-val {
  color: var(--text-main);
  font-weight: 500;
}

/* Card Actions Footer */
.comp-card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
}

.comp-actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-comp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1.25;
  box-sizing: border-box;
}

.btn-comp-enroll {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.btn-comp-enroll:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(231, 120, 23, 0.3);
}

.btn-comp-materials {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
}

.btn-comp-materials:hover {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.btn-comp-exam {
  background: #10b981;
  color: #ffffff !important;
  border-color: #10b981;
}

.btn-comp-exam:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.btn-comp-answersheet {
  background: #3b82f6;
  color: #ffffff !important;
  border-color: #3b82f6;
}

.btn-comp-answersheet:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.btn-comp-cert {
  background: #10b981;
  color: #ffffff !important;
  border-color: #10b981;
}

.btn-comp-cert:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.btn-comp-retry {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-comp-retry:hover {
  background: var(--primary-light);
  color: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.btn-comp-perf {
  background: #7c3aed;
  color: #ffffff !important;
  border-color: #7c3aed;
}

.btn-comp-perf:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
}

.btn-comp-letter {
  background: #0d9488;
  color: #ffffff !important;
  border-color: #0d9488;
}

.btn-comp-letter:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
}

.btn-comp-policy {
  background: transparent;
  color: var(--text-muted) !important;
  border-color: var(--border-color);
}

.btn-comp-policy:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main) !important;
  border-color: var(--text-muted);
}

.btn-comp-detail {
  background: transparent;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  margin-left: auto;
}

.btn-comp-detail:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Exam Button Pulse Effect */
.pulse-exam {
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* CoEiL Packages Section */
.inner-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.inner-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon-box.orange {
  background: var(--primary-light);
  color: var(--primary);
}

.inner-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.1rem 0;
  line-height: 1.25;
}

.inner-section-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.coeil-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  flex: 1 1 auto;
  height: calc(100% - 1.25rem);
}

.coeil-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(231, 120, 23, 0.4);
}

.coeil-card-media {
  width: 100%;
  height: 180px;
  background: var(--bg-card-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coeil-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.coeil-card:hover .coeil-card-media img {
  transform: scale(1.03);
}

.coeil-card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.coeil-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
  line-height: 1.35;
}

.coeil-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.coeil-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-comp-buy {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  font-weight: 700;
}

.btn-comp-buy:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(231, 120, 23, 0.3);
}

.btn-comp-outline {
  background: transparent;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}

.btn-comp-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Empty State */
.comp-empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 540px;
  margin: 1.5rem auto 2.5rem;
  box-shadow: var(--shadow-sm);
}

.comp-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-empty-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.comp-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
}

.comp-empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 auto 1.25rem;
  max-width: 400px;
}


/* ==========================================================================
   SECTION 7: AUTHENTICATION PAGES (LOGIN & REGISTER)
   ========================================================================== */
.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: var(--bg-body);
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2.25rem;
  box-sizing: border-box;
  transition: var(--transition);
}

.auth-card.auth-card-wide {
  max-width: 860px;
  padding: 2.75rem 2.75rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.auth-brand-logo:hover {
  transform: scale(1.02);
}

.auth-brand-logo img {
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.45rem 0;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Grid for Registration Form */
.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1.25rem;
}

.auth-grid-col-2 {
  grid-column: 1 / -1;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.auth-grid-2 .auth-field-group {
  margin-bottom: 0;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.auth-label .required {
  color: #ef4444;
  font-weight: 700;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.auth-forgot-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.auth-forgot-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.auth-input,
.auth-select,
.auth-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  transition: var(--transition);
  box-sizing: border-box;
}

.auth-input,
.auth-select {
  height: 48px;
}

.auth-input.no-icon,
.auth-select.no-icon,
.auth-textarea.no-icon {
  padding-left: 0.9rem;
}

.auth-input.has-toggle {
  padding-right: 2.75rem;
}

.auth-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}

.auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.auth-password-toggle:hover {
  color: var(--text-main);
}

.auth-error-msg {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.35rem;
  min-height: 1rem;
  display: block;
  font-weight: 500;
}

.auth-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
}

.auth-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-checkbox-group a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 0.5rem;
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.3);
}

.auth-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 120, 23, 0.4);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.75rem 0 1.25rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Alert Boxes in Auth Pages */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-alert-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.35rem;
}

/* Google Sign-in Button Styles */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  height: 44px;
  letter-spacing: 0.2px;
  outline: none;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.gsi-material-button:hover {
  background-color: var(--bg-card-subtle);
  border-color: #c5c7cb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
  display: flex;
  align-items: center;
}

.gsi-material-button-contents {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer / Switch links */
.auth-card-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.auth-switch-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

.auth-switch-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.auth-switch-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.auth-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-secondary-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.25);
}

.auth-secondary-btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(231, 120, 23, 0.35);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .auth-card.auth-card-wide {
    padding: 2rem 1.25rem;
  }
  .auth-card {
    padding: 2rem 1.25rem;
  }
}

/* Dark mode support */
body.dark-mode .auth-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
body.dark-mode .auth-input,
body.dark-mode .auth-select,
body.dark-mode .auth-textarea {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}
body.dark-mode .auth-divider span {
  background: var(--bg-card);
}
body.dark-mode .gsi-material-button {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}
body.dark-mode .gsi-material-button:hover {
  background-color: #27354a;
}
body.dark-mode .auth-secondary-btn {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
body.dark-mode .auth-secondary-btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}


/* ==========================================================================
   SECTION 8: MODERN SEARCHABLE DROPDOWNS (SELECT2)
   ========================================================================== */
.select2-container {
  width: 100% !important;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-input-wrapper .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  transition: var(--transition);
  padding-left: 2.45rem !important;
  padding-right: 0.85rem !important;
  box-sizing: border-box !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}

.auth-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-main) !important;
  line-height: 46px !important;
  height: 46px !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
  font-size: 0.9rem !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
}

.auth-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
  top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-muted) transparent transparent transparent;
  border-width: 5px 4px 0 4px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--text-muted) transparent;
  border-width: 0 4px 5px 4px;
}

/* Dropdown pane */
.select2-dropdown {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-family: inherit;
  z-index: 1050;
  overflow: hidden;
}

.select2-search--dropdown {
  padding: 8px 10px;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
}

.select2-search--dropdown .select2-search__field {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  background-color: var(--bg-card);
  color: var(--text-main);
  box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(231, 120, 23, 0.15);
}

.select2-results__option {
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Dark mode for Select2 */
body.dark-mode .select2-container--default .select2-selection--single {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
}
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-main);
}
body.dark-mode .select2-dropdown {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}
body.dark-mode .select2-search--dropdown {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
}
body.dark-mode .select2-search--dropdown .select2-search__field {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}
body.dark-mode .select2-results__option {
  color: var(--text-main);
}
body.dark-mode .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #27354a;
  color: #ffffff;
}



/* ==========================================================================
   SECTION 9: MODERN SUBPAGES (STUDENT HELP CENTER & NOTICES)
   ========================================================================== */

/* Universal Page Header Box */
.page-header-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.page-header-content {
  flex: 1;
  min-width: 260px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  /*max-width: 680px;*/
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.page-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* Category Tabs */
.help-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.help-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.help-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.help-tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(231, 120, 23, 0.25);
}

/* Help Center Grid */
.help-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .help-center-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.help-card-header {
  padding: 1.25rem 1.35rem 0.85rem;
}

.help-card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.help-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.help-type-badge.video {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.help-type-badge.pdf {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.help-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.help-card-body {
  padding: 0 1.35rem 1.35rem;
  margin-top: auto;
}

/* 16:9 Responsive Video */
.help-video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.help-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PDF Preview Box */
.help-pdf-container {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.help-pdf-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.help-pdf-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-pdf-info {
  flex: 1;
  min-width: 0;
}

.help-pdf-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-pdf-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.help-pdf-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
  flex: 1;
}

.help-btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
}

.help-btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.25);
}

.help-btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}

.help-btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Support Help Banner */
.help-support-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.help-support-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(231, 120, 23, 0.15);
  flex-shrink: 0;
}

.help-support-content {
  flex: 1;
  min-width: 260px;
}

.help-support-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7c2d12;
  margin: 0 0 0.35rem;
}

.help-support-text {
  font-size: 0.85rem;
  color: #9a3412;
  margin: 0;
  line-height: 1.45;
}

.help-support-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.help-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.help-support-btn.email {
  background-color: #ffffff;
  color: #7c2d12;
  border: 1px solid #fdba74;
}

.help-support-btn.email:hover {
  background-color: #fff7ed;
  border-color: var(--primary);
  color: var(--primary);
}

.help-support-btn.whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border: 1px solid #22c55e;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.help-support-btn.whatsapp:hover {
  background-color: #1eb956;
  color: #ffffff;
}

/* Empty State Card */
.help-empty-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
}

.help-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.help-empty-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.35rem;
}

.help-empty-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Notices Grid & Search Component */
.notice-search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  width: 250px;
  transition: var(--transition);
}

.notice-search-box:focus-within {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.12);
}

.notice-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.notice-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-main);
  width: 100%;
}

.notice-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.notice-count-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.notice-count-badge .count {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
}

.notice-filter-hint {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .notices-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .notice-search-box {
    width: 100%;
  }
}



/* ==========================================================================
   SECTION 10: ARTICLES & COURSES (LEARN) COMPONENTS
   ========================================================================== */

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.article-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
  overflow: hidden;
}

.article-card-image {
  width: 100%;
  height: 100%;
  object-fit: unset;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-image {
  transform: scale(1.04);
}

.article-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.article-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 0.5rem;
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none !important;
  transition: var(--transition);
}

.article-read-btn:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

/* Article Detail Content */
.article-detail-container {
  /*max-width: 900px;*/
  margin: 0 auto;
}

.article-detail-hero {
  margin-bottom: 2rem;
}

.article-detail-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.75rem;
}

.article-rich-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  overflow-x: auto;
  word-break: break-word;
}

.article-rich-content img,
.article-rich-content table,
.article-rich-content video,
.article-rich-content iframe {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .article-rich-content {
    padding: 1.25rem 1.35rem;
  }
}

.article-rich-content p {
  margin-bottom: 1.25rem;
}

.article-rich-content h2,
.article-rich-content h3,
.article-rich-content h4 {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-rich-content ul,
.article-rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-rich-content li {
  margin-bottom: 0.4rem;
}

.article-rich-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Courses & Learn Grid */
.courses-section {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.courses-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
}

.courses-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.courses-section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(231, 120, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(231, 120, 23, 0.08);
}

.courses-section-icon-blue {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.courses-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.courses-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.courses-count-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid rgba(231, 120, 23, 0.28);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.courses-count-pill-blue {
  color: #1d4ed8;
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.courses-section-subtitle {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

body.dark-mode .courses-section-icon {
  background-color: rgba(231, 120, 23, 0.15);
  border-color: rgba(231, 120, 23, 0.3);
}

body.dark-mode .courses-section-icon-blue {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

body.dark-mode .courses-count-pill-blue {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.course-card-media {
  position: relative;
  width: 100%;
  height: 190px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.course-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.course-card:hover .course-card-image {
  transform: scale(1.04);
}

.course-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.course-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
  flex: 1;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

.course-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  text-decoration: none !important;
  transition: var(--transition);
}

.course-action-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(231, 120, 23, 0.25);
}

.course-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}


/* ==========================================================================
   SECTION 11: LEARN DETAIL PAGE
   ========================================================================== */
.learn-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .learn-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.learn-media-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.learn-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 290px;
  background-color: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learn-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.learn-action-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.learn-price-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.learn-price-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.learn-currency {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--primary);
}

.learn-amount {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.5px;
}

.learn-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #c2410c;
  background-color: #fff7ed;
  border: 1.5px solid #fed7aa;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-left: auto;
  white-space: nowrap;
}

.learn-type-badge-free {
  color: #047857;
  background-color: #ecfdf5;
  border-color: #a7f3d0;
}

.learn-summary-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.learn-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.learn-perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

.learn-perk-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learn-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.learn-btn-enroll {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(231, 120, 23, 0.28);
}

.learn-btn-enroll:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 120, 23, 0.35);
}

.learn-btn-activate {
  background-color: #059669;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.learn-btn-activate:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.learn-btn-launch {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.learn-btn-launch:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.learn-active-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.learn-active-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learn-active-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 0.15rem 0;
}

.learn-active-banner-sub {
  font-size: 0.825rem;
  color: #047857;
  margin: 0;
  line-height: 1.4;
}

.learn-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.learn-warning-icon {
  color: #e11d48;
  flex-shrink: 0;
  margin-top: 2px;
}

.learn-warning-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 0.2rem;
}

.learn-warning-text p {
  font-size: 0.825rem;
  color: #be123c;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.learn-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #be123c;
  text-decoration: underline;
}

.learn-curriculum-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.learn-rich-content {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.learn-rich-content img,
.learn-rich-content table,
.learn-rich-content video,
.learn-rich-content iframe {
  max-width: 100% !important;
  height: auto !important;
}

.learn-rich-content h1,
.learn-rich-content h2,
.learn-rich-content h3,
.learn-rich-content h4 {
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
  line-height: 1.35 !important;
  font-family: inherit !important;
}

.learn-rich-content h1 { font-size: 1.45rem !important; }
.learn-rich-content h2 { font-size: 1.3rem !important; }
.learn-rich-content h3 { font-size: 1.15rem !important; }
.learn-rich-content h4 { font-size: 1.05rem !important; }

.learn-rich-content p,
.learn-rich-content span,
.learn-rich-content div,
.learn-rich-content li {
  line-height: 1.65;
}

.learn-rich-content ul,
.learn-rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.learn-rich-content li {
  margin-bottom: 0.4rem;
}

.learn-rich-content p {
  margin-bottom: 1rem;
}

/* Subscription Plans List in Detail Page */
.learn-plans-wrap {
  margin-top: 2.25rem;
}

.learn-plans-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.learn-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.learn-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.learn-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.learn-plan-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
}

.learn-plan-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.learn-plan-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Dark mode overrides for Learn Detail */
body.dark-mode .learn-media-wrapper {
  background-color: #1e293b;
}

body.dark-mode .learn-active-banner {
  background-color: rgba(5, 150, 105, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .learn-active-banner-title {
  color: #34d399;
}

body.dark-mode .learn-active-banner-sub {
  color: #6ee7b7;
}

body.dark-mode .learn-warning-box {
  background-color: rgba(225, 29, 72, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
}

body.dark-mode .learn-warning-text strong {
  color: #fca5a5;
}

body.dark-mode .learn-warning-text p,
body.dark-mode .learn-verify-link {
  color: #fda4af;
}

body.dark-mode .learn-perk-icon {
  background-color: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

/* Learn Detail Mobile Responsive Refinements */
@media (max-width: 768px) {
  .learn-detail-container {
    padding-top: 1rem !important;
    padding-bottom: 2.5rem !important;
  }

  .learn-detail-container .page-header-box {
    padding: 1.15rem 1.1rem;
    margin-bottom: 1.25rem;
  }

  .learn-detail-container .page-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .learn-detail-container .page-subtitle {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .learn-detail-grid {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .learn-media-wrapper {
    min-height: 200px;
    max-height: 260px;
  }

  .learn-media-wrapper .course-badge-floating {
    top: 8px;
    left: 8px;
    font-size: 0.72rem !important;
    padding: 0.25rem 0.65rem !important;
  }

  .learn-action-panel {
    padding: 1.25rem 1.15rem;
  }

  .learn-price-tag {
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
  }

  .learn-currency,
  .learn-amount {
    font-size: 1.65rem;
  }

  .learn-type-badge {
    font-size: 0.825rem;
    padding: 0.35rem 0.85rem;
    margin-left: 0;
  }

  .learn-summary-desc {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .learn-perks-list {
    margin-bottom: 1.25rem;
    gap: 0.55rem;
  }

  .learn-perk-item {
    font-size: 0.825rem;
    gap: 0.55rem;
  }

  .learn-primary-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .learn-curriculum-panel {
    padding: 1.25rem 1.1rem;
    margin-top: 1.5rem;
  }

  .learn-rich-content {
    font-size: 0.885rem;
    line-height: 1.6;
  }

  .learn-rich-content h1 { font-size: 1.25rem !important; }
  .learn-rich-content h2 { font-size: 1.15rem !important; }
  .learn-rich-content h3 { font-size: 1.05rem !important; }
  .learn-rich-content h4 { font-size: 0.95rem !important; }

  .learn-plans-wrap {
    margin-top: 1.5rem;
  }

  .learn-plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .learn-plan-card {
    padding: 1.15rem;
  }
}


/* ==========================================================================
   SECTION 12: DATA TABLES & ACCOUNT SUBPAGES
   ========================================================================== */
.account-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 2rem;
  overflow: visible;
}

/* Outer table-responsive reset if present */
.account-table-card > .table-responsive {
  width: 100%;
  overflow: visible;
}

/* Custom DataTables Clean Styling */
.dataTables_wrapper {
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-main) !important;
  width: 100% !important;
  position: relative !important;
  clear: both !important;
}

/* Top controls container (Length & Filter) */
.dt-controls-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
}

.dt-controls-top .dataTables_length {
  margin: 0 !important;
  float: none !important;
}

.dt-controls-top .dataTables_filter {
  margin: 0 !important;
  float: none !important;
  margin-left: auto !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.85rem !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  margin: 0 0.4rem !important;
  outline: none !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.95rem !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  margin-left: 0.5rem !important;
  outline: none !important;
  transition: var(--transition) !important;
  font-size: 0.875rem !important;
  min-width: 220px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15) !important;
}

/* Modern Data Table Scroll Container */
.table-responsive.dt-table-scroll,
.dataTables_wrapper .table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0.75rem 0 1rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-card) !important;
  position: relative !important;
}

/* Subtle Horizontal Scrollbar for Table */
.table-responsive.dt-table-scroll::-webkit-scrollbar,
.dataTables_wrapper .table-responsive::-webkit-scrollbar {
  height: 6px !important;
}

.table-responsive.dt-table-scroll::-webkit-scrollbar-track,
.dataTables_wrapper .table-responsive::-webkit-scrollbar-track {
  background: var(--bg-card-subtle) !important;
  border-radius: 4px !important;
}

.table-responsive.dt-table-scroll::-webkit-scrollbar-thumb,
.dataTables_wrapper .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(231, 120, 23, 0.35) !important;
  border-radius: 4px !important;
}

.table-responsive.dt-table-scroll::-webkit-scrollbar-thumb:hover,
.dataTables_wrapper .table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary) !important;
}

/* Modern Data Table Rows */
table.dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  border-bottom: none !important;
}

table.dataTable thead th {
  background-color: var(--bg-card-subtle) !important;
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.95rem 1rem !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-top: none !important;
  white-space: nowrap !important;
}

table.dataTable thead th:first-child,
table.dataTable tbody td:first-child {
  padding-left: 1.25rem !important;
}

table.dataTable thead th:last-child,
table.dataTable tbody td:last-child {
  padding-right: 1.25rem !important;
}

table.dataTable tbody td {
  padding: 0.95rem 1rem !important;
  font-size: 0.875rem !important;
  color: var(--text-main) !important;
  border-top: 1px solid var(--border-color) !important;
  border-bottom: none !important;
  vertical-align: middle !important;
}

table.dataTable.no-footer {
  border-bottom: none !important;
}

table.dataTable tbody tr:hover td {
  background-color: rgba(231, 120, 23, 0.03) !important;
}

/* Bottom controls container (Info & Pagination) */
.dt-controls-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  margin-top: 1.25rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--border-color) !important;
  width: 100% !important;
}

.dt-controls-bottom .dataTables_info {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  float: none !important;
}

.dt-controls-bottom .dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  margin-left: auto !important;
}

/* DataTables Pagination & Info General Styles */
.dataTables_wrapper .dataTables_info {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

.dataTables_wrapper .dataTables_paginate span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 0.65rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

/* Mobile Responsiveness for DataTable Controls */
@media (max-width: 768px) {
  .dt-controls-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .dt-controls-top .dataTables_filter {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .dt-controls-top .dataTables_filter input {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
  .dt-controls-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }
  .dt-controls-bottom .dataTables_paginate {
    margin-left: 0 !important;
    justify-content: center !important;
  }
}

/* Custom Table Badges & Action Buttons */
.table-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.table-status-pill.status-paid,
.table-status-pill.status-active {
  color: #047857;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.table-status-pill.status-pending {
  color: #c2410c;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
}

.table-status-pill.status-canceled,
.table-status-pill.status-failed {
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.table-action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  transition: var(--transition);
  text-decoration: none !important;
}

.table-action-icon-btn:hover {
  background-color: #dc2626;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.table-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid rgba(231, 120, 23, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.table-link-btn:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

.table-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.table-cancel-btn:hover {
  background-color: #dc2626;
  color: #ffffff !important;
}

/* Account Form Card (Change Password) */
.account-form-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.account-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

/* Dark Mode Overrides for Section 12 */
body.dark-mode .account-table-card,
body.dark-mode .account-form-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-mode .table-responsive.dt-table-scroll {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

body.dark-mode .dt-controls-bottom {
  border-color: var(--border-color) !important;
}

body.dark-mode table.dataTable thead th {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

body.dark-mode table.dataTable tbody td {
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_length select,
body.dark-mode .dataTables_wrapper .dataTables_filter input {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}


/* Profile Form Modern Styles */
.profile-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.profile-form-card .form-group {
  margin-bottom: 1.25rem;
}

.profile-form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.profile-form-card label span {
  color: #ef4444;
  margin-right: 2px;
}

.profile-form-card .form-control {
  width: 100%;
  height: 46px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.profile-form-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}

.profile-form-card .form-control[disabled],
.profile-form-card .form-control[readonly] {
  background-color: var(--bg-card-subtle);
  cursor: not-allowed;
  opacity: 0.85;
}

.profile-form-card textarea.form-control {
  height: auto;
  min-height: 90px;
}

body.dark-mode .profile-form-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-mode .profile-form-card .form-control {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-main);
}


/* ==========================================================================
   SECTION 13: ACCOUNT SETTINGS & CHANGE PASSWORD
   ========================================================================== */
.settings-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .settings-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.settings-guidance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.settings-guidance-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(231, 120, 23, 0.2);
}

.settings-guidance-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.settings-guidance-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.settings-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
}

.settings-check-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.settings-support-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.settings-support-box a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.settings-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.settings-card-header {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
}

.settings-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-field-group {
  margin-bottom: 1.25rem;
}

.settings-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.settings-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.settings-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.settings-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.settings-input {
  width: 100%;
  height: 48px;
  padding: 0.6rem 2.75rem 0.6rem 2.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.settings-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}

.settings-input[disabled],
.settings-input[readonly] {
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.85;
}

.settings-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.settings-password-toggle:hover {
  color: var(--primary);
}

.settings-error-msg {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 0.35rem;
  min-height: 18px;
}

.settings-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.settings-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(231, 120, 23, 0.25);
}

.settings-save-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 120, 23, 0.35);
}

.settings-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.settings-cancel-btn:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-main) !important;
  border-color: #cbd5e1;
}

/* Dark Mode Overrides */
body.dark-mode .settings-guidance-card,
body.dark-mode .settings-form-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-mode .settings-input {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-main);
}

body.dark-mode .settings-support-box {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
}

body.dark-mode .settings-cancel-btn:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
}


/* ==========================================================================
   SECTION 14: PROFILE PAGE, SEARCHABLE DROPDOWNS & MODAL STYLES
   ========================================================================== */

/* Full 4-sided borders and consistent sizing for profile form controls */
.profile-form-card .form-control {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  height: 46px !important;
  padding: 0.6rem 0.95rem !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: var(--transition) !important;
}

.profile-form-card .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15) !important;
}

.profile-form-card .form-control[disabled],
.profile-form-card .form-control[readonly] {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

.profile-form-card textarea.form-control {
  height: auto !important;
  min-height: 86px !important;
  line-height: 1.5 !important;
}

.profile-form-card input[type="file"].form-control {
  height: 46px !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.825rem !important;
  line-height: 1.6 !important;
}

.profile-form-card input[type="date"].form-control {
  height: 46px !important;
  line-height: 1.5 !important;
}

/* Error Labels scoping */
.profile-form-card .error,
.profile-form-card .error b,
.profile-form-card .error p {
  color: #ef4444 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  display: block;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Size Chart Trigger Link */
.size-chart-trigger-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary) !important;
  background-color: rgba(231, 120, 23, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  vertical-align: middle;
}

.size-chart-trigger-link:hover {
  background-color: rgba(231, 120, 23, 0.2);
  color: var(--primary-hover) !important;
  transform: translateY(-1px);
}

/* Verified Badge & Verify Button */
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

.profile-verify-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.65rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.profile-verify-btn:hover {
  background-color: var(--primary-hover);
}

/* Upload Previews */
.profile-upload-preview {
  display: inline-block;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.profile-upload-preview img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* Select2 Searchable Dropdowns for Profile */
.profile-form-card .select2-container--default .select2-selection--single {
  height: 46px !important;
  min-height: 46px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--bg-card) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  outline: none !important;
  transition: var(--transition) !important;
}

.profile-form-card .select2-container--default.select2-container--open .select2-selection--single,
.profile-form-card .select2-container--default .select2-selection--single:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15) !important;
}

.profile-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  height: 44px !important;
  font-size: 0.9rem !important;
  color: var(--text-main) !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 0.95rem !important;
  padding-right: 2rem !important;
}

.profile-form-card .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted) !important;
}

.profile-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 12px !important;
  top: 0 !important;
}

.select2-dropdown {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  z-index: 1060 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.875rem !important;
  color: var(--text-main) !important;
  outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(231, 120, 23, 0.15) !important;
}

.select2-container--default .select2-results__option {
  font-size: 0.875rem !important;
  padding: 0.55rem 0.95rem !important;
  color: var(--text-main) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(231, 120, 23, 0.12) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Modern Modal Styles */
body.modal-open {
  overflow: hidden !important;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal.show {
  display: flex !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: auto;
  pointer-events: auto;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.25s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  outline: 0;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.modal-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.modal-close-btn:hover {
  background-color: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
  background-color: var(--bg-card);
}

.size-chart-img-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.size-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Dark Mode Overrides for Profile & Modal */
body.dark-mode .size-chart-img-container {
  background-color: #0f172a;
}

body.dark-mode .modal-content,
body.dark-mode .modal-header,
body.dark-mode .modal-body {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-mode .modal-close-btn {
  background-color: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-muted);
}

body.dark-mode .modal-close-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
}

body.dark-mode .select2-dropdown {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

body.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--bg-card-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

body.dark-mode .select2-container--default .select2-results__option {
  color: var(--text-main) !important;
}


/* ==========================================================================
   COMPETITION & COEiL DETAIL PAGE STYLES
   ========================================================================== */
.comp-detail-container {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Hero Banner Card */
.comp-detail-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf8 50%, #fff5ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.comp-detail-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.comp-detail-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .comp-detail-hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.comp-detail-title-group {
  flex: 1;
  min-width: 0;
}

.comp-detail-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.comp-detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.comp-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  line-height: 1;
}

.comp-detail-pill-type {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.comp-detail-pill-mode {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.comp-detail-pill-mode.mode-online {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.25);
}

.comp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Action Buttons */
.btn-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-detail-price {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  cursor: default;
  font-weight: 700;
}

.btn-detail-enroll,
.btn-detail-buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-detail-enroll:hover,
.btn-detail-buy:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-detail-exam {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  animation: pulseCompExam 2.2s infinite;
}

.btn-detail-exam:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-detail-paid {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: default;
}

@keyframes pulseCompExam {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

/* Schedule Info Cards Grid */
.comp-schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .comp-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comp-schedule-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comp-schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.08);
}

.comp-schedule-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-schedule-icon.start {
  background-color: #ecfdf5;
  color: #059669;
}

.comp-schedule-icon.end {
  background-color: #fff1f2;
  color: #e11d48;
}

.comp-schedule-details {
  flex: 1;
  min-width: 0;
}

.comp-schedule-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.comp-schedule-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.comp-schedule-value span {
  font-weight: 500;
  color: #475569;
  font-size: 0.875rem;
}

/* Main Content Card (Description & Details) */
.comp-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.comp-content-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.comp-content-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #fff7ed;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-content-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Rich Description Body Typography */
.comp-description-body {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: auto;
  word-break: break-word;
}

.comp-description-body img,
.comp-description-body table,
.comp-description-body video,
.comp-description-body iframe {
  max-width: 100% !important;
  height: auto !important;
}

.comp-description-body h2,
.comp-description-body h3,
.comp-description-body h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 1.35rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.comp-description-body h2 { font-size: 1.35rem; }
.comp-description-body h3 { font-size: 1.15rem; }
.comp-description-body h4 { font-size: 1.05rem; }

.comp-description-body p {
  margin-bottom: 0.9rem;
}

.comp-description-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

.comp-description-body ul,
.comp-description-body ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.comp-description-body li {
  margin-bottom: 0.4rem;
}

.comp-description-body strong {
  color: #0f172a;
  font-weight: 600;
}

.comp-description-body a {
  color: #ea580c;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s ease;
}

.comp-description-body a:hover {
  color: #c2410c;
}

/* CoEiL Detail Specific Media Banner */
.coeil-detail-banner-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.coeil-detail-img {
  max-width: 100%;
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Back Link Row */
.comp-detail-nav-row {
  margin-bottom: 1rem;
}

.comp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.comp-back-link:hover {
  color: #ea580c;
}

/* Dark Mode Overrides for Detail Page */
body.dark-mode .comp-detail-hero {
  background: linear-gradient(135deg, #1e293b 0%, #1e2230 100%);
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .comp-detail-title {
  color: #f1f5f9;
}

body.dark-mode .comp-schedule-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .comp-schedule-value {
  color: #f8fafc;
}

body.dark-mode .comp-schedule-value span {
  color: #94a3b8;
}

body.dark-mode .comp-content-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .comp-content-header {
  border-bottom-color: #334155;
}

body.dark-mode .comp-content-title {
  color: #f8fafc;
}

body.dark-mode .comp-description-body {
  color: #cbd5e1;
}

body.dark-mode .comp-description-body h2,
body.dark-mode .comp-description-body h3,
body.dark-mode .comp-description-body h4,
body.dark-mode .comp-description-body strong {
  color: #f8fafc;
}

body.dark-mode .comp-description-body hr {
  border-top-color: #334155;
}


/* ==========================================================================
   EXAM & ORAL EVALUATION PAGE STYLES
   ========================================================================== */
.exam-page-container {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Exam Top Bar / Hero Header */
.exam-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf8 50%, #fff5ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.exam-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .exam-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.exam-title-group {
  flex: 1;
  min-width: 0;
}

.exam-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.exam-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.exam-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  font-weight: 600;
  font-size: 0.8125rem;
}

.exam-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.exam-bhashini-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Floating Live Countdown Timer Badge */
.exam-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.4);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.exam-timer-icon {
  width: 20px;
  height: 20px;
  color: #ea580c;
  animation: pulseTimerIcon 2s infinite ease-in-out;
}

@keyframes pulseTimerIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.exam-timer-display {
  font-family: 'Poppins', monospace, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c2410c;
  letter-spacing: 0.05em;
  min-width: 65px;
  text-align: center;
}

/* Exam Workspace & Round Navigation Tabs */
.exam-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.exam-nav-tabs-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
}

.exam-nav-tabs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-nav-tabs-list li {
  margin: 0;
}

.exam-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.exam-nav-tabs-list li.active .exam-tab-btn,
.exam-tab-btn.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.exam-tab-btn:hover:not(.active) {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.exam-tab-finish-btn {
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #dc2626 !important;
  background: #fff5f5 !important;
}

.exam-nav-tabs-list li.active .exam-tab-finish-btn,
.exam-tab-finish-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

/* Exam Tab Content Area */
.exam-tab-body {
  padding: 2rem;
  min-height: 420px;
}

/* Oral Examination Section (Tab 13, 14, 15, 16) */
.oral-instructions-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f97316;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.75;
  color: #334155;
  font-size: 0.95rem;
}

.oral-instructions-box p {
  margin-bottom: 0.75rem;
}

.oral-instructions-box b,
.oral-instructions-box strong {
  color: #0f172a;
}

.oral-btn-center-wrap {
  text-align: center;
  margin: 1.5rem 0;
}

/* Modern Primary Action Buttons */
.btn-exam-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-exam-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
  transform: translateY(-2px);
}

.btn-exam-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-exam-submit:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}

/* Finish Confirmation Box */
.exam-finish-card {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.exam-finish-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-finish-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.exam-finish-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Audio & Recording Control Pod */
.exam-audio-pod {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  max-width: 620px;
  margin: 1.5rem auto;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.exam-audio-instruction {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.exam-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-audio-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audio-speak {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.btn-audio-speak:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-audio-info {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.btn-audio-info:hover {
  background: #bae6fd;
  color: #0369a1;
}

.btn-audio-record {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.btn-audio-record:hover:not(:disabled) {
  background: #d1fae5;
  color: #047857;
}

.btn-audio-stop {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-audio-stop:hover:not(:disabled) {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-audio-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Tab pane display toggle fix */
.exam-tab-body .tab-pane {
  display: none;
}

.exam-tab-body .tab-pane.active {
  display: block;
}

/* Dark Mode Overrides for Exam */
body.dark-mode .exam-header-card {
  background: linear-gradient(135deg, #1e293b 0%, #1e2230 100%);
  border-color: rgba(249, 115, 22, 0.25);
}

body.dark-mode .exam-title {
  color: #f1f5f9;
}

body.dark-mode .exam-dates-badge {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .exam-timer-badge {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
}

body.dark-mode .exam-timer-display {
  color: #fb923c;
}

body.dark-mode .exam-workspace-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .exam-nav-tabs-bar {
  background: #0f172a;
  border-bottom-color: #334155;
}

body.dark-mode .exam-tab-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .exam-tab-btn:hover:not(.active) {
  background: #334155;
  color: #ffffff;
}

body.dark-mode .oral-instructions-box {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .oral-instructions-box b,
body.dark-mode .oral-instructions-box strong {
  color: #f8fafc;
}

body.dark-mode .exam-finish-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .exam-finish-title {
  color: #f8fafc;
}

body.dark-mode .exam-audio-pod {
  background: #0f172a;
  border-color: #334155;
}


/* ==========================================================================
   PERFORMANCE REPORT & DETAILED EVALUATION STYLES
   ========================================================================== */
.report-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.report-hero-left {
  flex: 1;
  min-width: 280px;
}

.report-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(231, 120, 23, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(231, 120, 23, 0.2);
}

.report-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.report-hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.report-summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.report-stat-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-stat-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.report-kpi-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-kpi-info {
  display: flex;
  flex-direction: column;
}

.report-kpi-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.report-kpi-lbl {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.report-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
  overflow: hidden;
}

.report-section-header {
  padding: 1.25rem 1.75rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.report-section-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.report-section-header .section-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(231, 120, 23, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-section-body {
  padding: 1.75rem;
}

.round-analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-xs);
}

.round-analysis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.round-title-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.round-score-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(231, 120, 23, 0.1);
  color: var(--primary);
}

.round-grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .round-grid-split {
    grid-template-columns: 1fr;
  }
}

.round-chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}

.aspect-elements-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}

.aspect-row-item {
  margin-bottom: 0.85rem;
}

.aspect-row-item:last-child {
  margin-bottom: 0;
}

.aspect-row-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.aspect-row-item .val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.round-feedback-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.05);
  border-left: 4px solid var(--accent-blue, #2563eb);
  font-size: 0.885rem;
  line-height: 1.55;
  color: var(--text-main);
}

.round-feedback-banner strong,
.round-feedback-banner b {
  color: var(--accent-blue, #2563eb);
}

.clean-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
}

.clean-report-table thead th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.95rem 1.15rem;
  border-bottom: 2px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.clean-report-table thead th:first-child {
  border-top-left-radius: var(--radius-sm);
  border-left: 1px solid var(--border-color);
}

.clean-report-table thead th:last-child {
  border-top-right-radius: var(--radius-sm);
  border-right: 1px solid var(--border-color);
}

.clean-report-table tbody td {
  padding: 0.95rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.clean-report-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-sm);
  border-left: 1px solid var(--border-color);
}

.clean-report-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-sm);
  border-right: 1px solid var(--border-color);
}

.clean-report-table tbody td:first-child {
  border-left: 1px solid var(--border-color);
}

.clean-report-table tbody td:last-child {
  border-right: 1px solid var(--border-color);
}

.clean-report-table tbody tr:hover td {
  background-color: rgba(231, 120, 23, 0.03);
}

.badge-student-mark {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(231, 120, 23, 0.12);
  color: var(--primary);
  font-weight: 700;
}

/* Dark mode adjustments */
body.dark-mode .report-hero-card,
body.dark-mode .report-stat-kpi,
body.dark-mode .report-section-card,
body.dark-mode .round-analysis-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-mode .report-section-header,
body.dark-mode .aspect-elements-box,
body.dark-mode .clean-report-table thead th {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
}

body.dark-mode .round-feedback-banner {
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
}


/* Responsive Scroll Containers for Charts & Tables */
.report-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

/* Custom subtle scrollbar */
.report-scroll-wrapper::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.report-scroll-wrapper::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-card-subtle);
  border-radius: 4px;
}

.report-scroll-wrapper::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(231, 120, 23, 0.3);
  border-radius: 4px;
}

.report-scroll-wrapper::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clean-report-table {
  min-width: 600px; /* guarantees full readability with horizontal scroll on small devices */
  white-space: nowrap;
}

.chart-scroll-inner {
  min-width: 520px; /* guarantees full bar labels and spacing on mobile */
  position: relative;
}

.round-chart-scroll-inner {
  min-width: 320px;
  position: relative;
  height: 220px;
}

@media (max-width: 768px) {
  .report-hero-card {
    padding: 1.25rem;
  }
  .report-hero-title {
    font-size: 1.35rem;
  }
  .report-section-body {
    padding: 1rem;
  }
  .round-analysis-card {
    padding: 1rem;
  }
  .aspect-elements-box {
    margin-top: 1rem;
  }
}


/* ==========================================================================
   EXAM QUESTION CARDS & INPUTS (TAB 1-12)
   ========================================================================== */
.exam-tab-body p strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Question Option Rows */
.exam-question-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.exam-question-item:hover {
  border-color: rgba(231, 120, 23, 0.4);
  box-shadow: var(--shadow-xs);
}

.exam-question-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* Radio button option cards */
.fm-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  width: 100%;
}

.fm-checkbox label:hover {
  border-color: var(--primary);
  background: rgba(231, 120, 23, 0.05);
}

.fm-checkbox input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

/* Complete the spelling inputs (Letter boxes) */
.completespell-disable,
.completespell {
  width: 38px !important;
  height: 42px !important;
  display: inline-block !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  margin: 0 3px 6px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.completespell-disable {
  background: var(--bg-card-subtle) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
}

.completespell {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  text-transform: uppercase !important;
}

.completespell:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.2) !important;
}

/* Single-word text inputs (Jumble, write spelling, proverb, etc.) */
.pictspell {
  text-transform: uppercase !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px !important;
  padding: 0.65rem 1rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  width: 100% !important;
  max-width: 320px !important;
  transition: all 0.2s ease !important;
}

.pictspell:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15) !important;
}

.nk-int-mk {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

/* Picture question card */
.tab-wd-img img {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  margin-bottom: 0.75rem;
}


/* Modern Option Cards for Multiple Choice Questions */
.exam-question-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.exam-question-item:hover {
  border-color: rgba(231, 120, 23, 0.35);
  box-shadow: 0 4px 12px rgba(231, 120, 23, 0.06);
}

.exam-question-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.exam-question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(231, 120, 23, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.exam-question-instruction {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
}

.exam-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .exam-options-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.exam-option-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  margin: 0;
}

.exam-option-card:hover {
  border-color: var(--primary);
  background: rgba(231, 120, 23, 0.04);
}

.exam-option-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: rgba(231, 120, 23, 0.09);
  box-shadow: 0 0 0 2px rgba(231, 120, 23, 0.2);
}

.exam-option-card input[type="radio"] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.exam-option-text {
  font-size: 0.985rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.3px;
}


/* Bottom Exam Actions Bar (Previous / Next / Finish) */
.exam-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.btn-wizard-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  transition: all 0.2s ease;
  user-select: none;
}

.btn-wizard-nav:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-wizard-prev {
  color: var(--text-muted);
}

.btn-wizard-next {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.3);
}

.btn-wizard-next:hover {
  background: var(--primary-dark, #cf630b);
  border-color: var(--primary-dark, #cf630b);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-wizard-finish {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.btn-wizard-finish:hover {
  background: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .exam-wizard-footer {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .btn-wizard-nav {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   ENHANCED QUESTION TYPES DESIGN (TYPES 1 TO 13)
   ========================================================================== */

/* Round 2: Missing Letters Tiles */
.exam-missing-letters-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  transition: all 0.2s ease;
}

.exam-missing-letters-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.06));
}

.exam-missing-qnum {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  min-width: 2rem;
}

.exam-tiles-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.exam-letter-box {
  width: 38px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.exam-letter-box:disabled {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  cursor: default !important;
}

.exam-letter-box:not(:disabled) {
  background: #ffffff !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}

.exam-letter-box:not(:disabled):focus {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18) !important;
  outline: none !important;
}

/* Picture Question Cards (Rounds 3 & 4) */
.exam-picture-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 1.5rem);
}

.exam-picture-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.06));
}

.exam-picture-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.exam-picture-img-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.exam-picture-img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.exam-picture-card:hover .exam-picture-img-wrap img {
  transform: scale(1.04);
}

.exam-picture-input-wrap {
  width: 100%;
}

.exam-picture-input-wrap .form-control {
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  height: 44px;
  transition: all 0.2s ease;
}

.exam-picture-input-wrap .form-control:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Jumble Words (Round 5) */
.exam-jumble-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  transition: all 0.2s ease;
}

.exam-jumble-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.06));
}

.exam-jumble-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.exam-jumble-word-tag {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ea580c;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
}

/* Proverbs with inline blank gaps (Round 7) */
.exam-proverb-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  line-height: 2.2;
}

.exam-proverb-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}

.exam-proverb-input {
  display: inline-block !important;
  width: auto !important;
  min-width: 130px !important;
  max-width: 200px !important;
  height: 38px !important;
  padding: 4px 12px !important;
  margin: 0 6px !important;
  border: 1.5px solid #fdba74 !important;
  border-radius: 8px !important;
  background: #fff7ed !important;
  font-weight: 700 !important;
  color: #c2410c !important;
  text-align: center !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
  transition: all 0.2s ease !important;
}

.exam-proverb-input:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18) !important;
  background: #ffffff !important;
  outline: none !important;
}

/* Make Spelling / Word Building (Round 8 / tab9) */
.exam-wordbuild-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.exam-wordbuild-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.exam-wordbuild-source {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1e293b;
  background: #f1f5f9;
  padding: 0.35rem 1rem;
  border-radius: 8px;
}

.exam-wordbuild-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

@media (max-width: 991px) {
  .exam-wordbuild-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .exam-wordbuild-grid {
    grid-template-columns: 1fr;
  }
}

/* S2E Translate (Round 10 / tab11) */
.exam-translate-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.exam-translate-word {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  min-width: 140px;
}

.exam-translate-input-wrap {
  flex: 1;
  max-width: 300px;
}

/* 4-Option Full-Width Grid for Proverbs & Grammar */
.exam-options-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (max-width: 991px) {
  .exam-options-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .exam-options-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* Exam Options Grid 4 mobile override */
@media (max-width: 768px) {
  .exam-options-grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile responsive fixes for Exam Dates and Proverbs */
@media (max-width: 768px) {
  .exam-dates {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  .exam-dates > span:not(.exam-dates-badge) {
    display: none !important;
  }
  .exam-dates-badge {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .exam-proverb-card {
    padding: 1rem 1rem !important;
    line-height: 2.2 !important;
  }
  .exam-proverb-text {
    font-size: 0.95rem !important;
    display: inline !important;
  }
  .exam-proverb-input {
    min-width: 100px !important;
    max-width: 140px !important;
    height: 34px !important;
    padding: 2px 8px !important;
    margin: 4px 4px !important;
    font-size: 0.95rem !important;
  }

  /* Exam page header responsive on mobile */
  .exam-page-container {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .exam-header-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }
  .exam-header-right {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  .exam-timer-badge {
    padding: 0.5rem 1rem !important;
    font-size: 0.82rem !important;
  }
  .exam-timer-display {
    font-size: 1.2rem !important;
  }

  /* Exam tabs horizontal swipe/scroll on mobile */
  .exam-nav-tabs-bar {
    padding: 0.6rem 0.75rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .exam-nav-tabs-list {
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    width: max-content !important;
  }
  .exam-tab-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
  .exam-tab-body {
    padding: 1.25rem 0.85rem !important;
  }

  /* Exam bottom wizard navigation buttons on mobile */
  .exam-wizard-footer {
    padding: 1rem 0.75rem !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
  }
  .btn-exam-nav {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
  }
}


/* ==========================================================================
   SECTION: LEARNING TOOL - BHASHINI TRANSLATOR
   ========================================================================== */
.bhashini-partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.bhashini-partner-badge .partner-label {
  display: none;
}

.bhashini-partner-logo {
  height: 48px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}

.translator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

/* Toolbar & Language Selectors */
.translator-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.lang-selector-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
}

.lang-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.lang-dot.source-dot { background-color: var(--primary); }
.lang-dot.target-dot { background-color: #10b981; }

.lang-select-wrapper {
  position: relative;
  flex: 1;
}

.lang-select {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.15);
}

.select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.lang-swap-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.lang-swap-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(180deg);
}

.translator-quick-tools {
  margin-left: auto;
}

.quick-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.quick-tool-btn:hover {
  color: #dc2626;
  border-color: #fecdd3;
  background-color: #fff1f2;
}

/* Alert */
.translator-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.translator-alert .alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.translator-alert .alert-close:hover { opacity: 1; }

/* Dual Panes Grid */
.translator-panes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.translator-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.translator-pane:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(231, 120, 23, 0.12);
}

.target-pane {
  background: var(--bg-card-subtle);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.pane-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.char-count, .target-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.translation-state-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--border-color);
  color: var(--text-muted);
}
.translation-state-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.translation-state-badge.busy {
  background: rgba(231, 120, 23, 0.15);
  color: var(--primary);
}

.pane-body {
  position: relative;
  flex: 1;
}

.result-display-wrapper {
  position: relative;
  height: 100%;
}

.translator-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  resize: vertical;
  min-height: 180px;
  outline: none;
}

.translator-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.target-textarea {
  color: var(--text-main);
  font-weight: 500;
  cursor: text;
}

.translator-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(2px);
  z-index: 5;
}

body.dark-mode .translator-loading-overlay {
  background: rgba(15, 23, 42, 0.85);
}

.spinner-bubble {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(231, 120, 23, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinBubble 0.8s linear infinite;
}

@keyframes spinBubble {
  to { transform: rotate(360deg); }
}

.pane-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
}

.source-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.source-hint strong {
  color: var(--text-main);
}

.pane-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pane-action-icon {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.pane-action-icon:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.pane-action-btn.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-light);
  border: 1px solid rgba(231, 120, 23, 0.3);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.pane-action-btn.copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Bottom Controls */
.translator-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

.features-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.features-note svg {
  color: var(--primary);
  flex-shrink: 0;
}

.action-buttons-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-tool-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-tool-secondary:hover {
  color: var(--text-main);
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.btn-tool-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.3);
  transition: var(--transition);
}

.btn-tool-primary:hover {
  background: #cf660d;
  border-color: #cf660d;
  box-shadow: 0 4px 10px rgba(231, 120, 23, 0.4);
  transform: translateY(-1px);
}

.btn-tool-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Info Grid Cards */
.translator-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.tip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.tip-icon.orange {
  background: rgba(231, 120, 23, 0.12);
  color: var(--primary);
}
.tip-icon.green {
  background: #ecfdf5;
  color: #059669;
}

.tip-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.tip-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .translator-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .translator-panes-grid {
    grid-template-columns: 1fr;
  }
  .translator-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .lang-swap-btn {
    align-self: center;
  }
  .translator-bottom-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .action-buttons-group {
    width: 100%;
  }
  .action-buttons-group button {
    flex: 1;
    justify-content: center;
  }
}


/* ==========================================================================
   SECTION: RAZORPAY CHECKOUT & PAYMENT PAGE
   ========================================================================== */
.checkout-page-container {
  max-width: 680px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1rem;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  transition: var(--transition);
}

.checkout-card-header {
  background: linear-gradient(135deg, rgba(231, 120, 23, 0.08) 0%, rgba(231, 120, 23, 0.02) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.checkout-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(231, 120, 23, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.checkout-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.checkout-card-body {
  padding: 2rem;
}

.checkout-summary-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.9rem;
}

.checkout-summary-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-color);
}

.checkout-summary-row.total-row {
  border-bottom: none;
  padding-top: 0.85rem;
  margin-top: 0.4rem;
  border-top: 2px solid var(--border-color);
}

.checkout-summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-summary-val {
  color: var(--text-main);
  font-weight: 600;
}

.checkout-summary-row.total-row .checkout-summary-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.checkout-summary-row.total-row .checkout-summary-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.checkout-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.checkout-detail-item {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.checkout-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.checkout-detail-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.checkout-action-area {
  text-align: center;
  padding-top: 0.5rem;
}

/* Razorpay Auto-Generated Button Restyling */
.checkout-action-area form input[type="submit"],
.checkout-action-area .razorpay-payment-button,
.btn-razorpay-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  max-width: 380px !important;
  padding: 0.9rem 2rem !important;
  background: linear-gradient(135deg, var(--primary) 0%, #e06509 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(231, 120, 23, 0.35) !important;
  transition: all 0.25s ease !important;
  text-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
}

.checkout-action-area form input[type="submit"]:hover,
.checkout-action-area .razorpay-payment-button:hover,
.btn-razorpay-submit:hover {
  background: linear-gradient(135deg, #e06509 0%, #c45405 100%) !important;
  box-shadow: 0 6px 20px rgba(231, 120, 23, 0.45) !important;
  transform: translateY(-2px) !important;
}

.checkout-security-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.checkout-security-notice svg {
  color: #10b981;
  flex-shrink: 0;
}

.checkout-cancel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  margin-top: 0.75rem;
}

.checkout-cancel-link:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  text-decoration: none;
  transform: translateY(-1px);
}

.checkout-cancel-link svg {
  transition: transform 0.2s ease;
}

.checkout-cancel-link:hover svg {
  transform: translateX(-3px);
}

body.dark-mode .checkout-cancel-link {
  background-color: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

body.dark-mode .checkout-cancel-link:hover {
  background-color: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.4);
  color: #f87171;
}

@media (max-width: 600px) {
  .checkout-details-grid {
    grid-template-columns: 1fr;
  }
  .checkout-card-header {
    padding: 1.25rem 1.25rem;
  }
  .checkout-card-body {
    padding: 1.25rem;
  }
}


/* ==========================================================================
   MARKS / SCORECARD STYLES (MOVED FROM marks.php)
   ========================================================================== */
.marks-page-container {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.marks-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf8 50%, #fff5ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.marks-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .marks-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.marks-title-group h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 0 0 0.5rem;
}

.marks-dates-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.marks-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
}

.marks-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
  align-items: center;
}

.marks-pill-score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.marks-pill-score.total {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.marks-pill-score.percentage {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.marks-pill-score.pass {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.marks-pill-score.fail {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.marks-pill-score.time {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.marks-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.marks-nav-tabs-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
}

.marks-nav-tabs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marks-nav-tabs-list li {
  margin: 0;
}

.marks-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.marks-tab-btn:hover:not(.active) {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.marks-nav-tabs-list li.active .marks-tab-btn,
.marks-tab-btn.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.marks-tab-body {
  padding: 2rem;
  min-height: 420px;
}

.marks-tab-body .tab-pane {
  display: none;
}

.marks-tab-body .tab-pane.active {
  display: block !important;
}

.marks-question-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.marks-question-card:hover {
  border-color: rgba(231, 120, 23, 0.35);
  box-shadow: 0 4px 12px rgba(231, 120, 23, 0.06);
}

.marks-question-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.marks-question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.marks-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  min-width: 200px;
}

.marks-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.marks-options-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.marks-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  transition: all 0.2s ease;
  word-break: break-word;
}

.marks-option-item.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  box-shadow: 0 0 0 1px #10b981;
}

.marks-option-item.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 1px #ef4444;
}

.marks-option-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.marks-option-item.correct .marks-option-tag {
  background: #10b981;
  color: #ffffff;
}

.marks-option-item.wrong .marks-option-tag {
  background: #ef4444;
  color: #ffffff;
}

.marks-answer-banner {
      word-break: break-word;
    overflow-wrap: break-word;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #166534;
  font-weight: 600;
}

.marks-round-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 10px;
}

.marks-round-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #9a3412;
}

.marks-round-score-pill {
  background: #ea580c;
  color: #ffffff;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.marks-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.btn-marks-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-marks-nav:hover {
  border-color: var(--primary, #e77817);
  color: var(--primary, #e77817);
  background: #fffbf8;
}

.btn-marks-next {
  background: var(--primary, #e77817);
  color: #ffffff;
  border-color: var(--primary, #e77817);
  box-shadow: 0 2px 6px rgba(231, 120, 23, 0.3);
}

.btn-marks-next:hover {
  background: #cf630b;
  border-color: #cf630b;
  color: #ffffff;
}

.legend-box {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.green { background: #10b981; }
.legend-dot.red { background: #ef4444; }

.btn-audio-play {
  background: #e77817;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Dark mode support for Marks */
body.dark-mode .marks-header-card {
  background: linear-gradient(135deg, #1e293b 0%, #1e2230 100%);
  border-color: rgba(249, 115, 22, 0.25);
}

body.dark-mode .marks-workspace-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .marks-nav-tabs-bar,
body.dark-mode .marks-wizard-footer {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .marks-tab-btn,
body.dark-mode .btn-marks-nav {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .marks-tab-body {
  color: #f1f5f9;
}

body.dark-mode .marks-dates-badge {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .marks-question-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .marks-question-num {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
}

body.dark-mode .marks-question-text {
  color: #f1f5f9;
}

body.dark-mode .marks-option-item {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .marks-round-banner {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .marks-round-banner-title {
  color: #fb923c;
}

/* Responsive styles for tablets and mobile in Marks */
@media (max-width: 991px) {
  .marks-options-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .marks-options-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .marks-workspace-card {
    border-radius: 12px;
  }
  .marks-tab-body {
    padding: 1.5rem 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .marks-page-container {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .marks-header-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
  }
  .marks-title-group h1 {
    font-size: 1.25rem !important;
  }
  .marks-dates-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .marks-dates-wrap > span:not(.marks-dates-badge) {
    display: none !important;
  }
  .marks-dates-badge {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem !important;
    box-sizing: border-box !important;
  }

  .marks-meta-row {
    gap: 0.4rem !important;
    margin-top: 0.65rem !important;
  }
  .marks-pill-score {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.65rem !important;
  }

  .legend-box {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 0.75rem !important;
  }
  .legend-item {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .marks-nav-tabs-bar {
    padding: 0.6rem 0.75rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .marks-nav-tabs-list {
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    width: max-content !important;
  }
  .marks-tab-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  .marks-round-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.25rem !important;
  }
  .marks-round-banner-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
  .marks-round-score-pill {
    align-self: flex-start !important;
    font-size: 0.8rem !important;
    padding: 0.25rem 0.75rem !important;
  }

  .marks-tab-body {
    padding: 1rem 0.75rem !important;
  }
  .marks-question-card {
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  .marks-question-header {
    gap: 0.5rem !important;
    margin-bottom: 0.65rem !important;
  }
  .marks-question-text {
    font-size: 0.95rem !important;
  }

  .marks-options-grid,
  .marks-options-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }
  .marks-option-item {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.9rem !important;
    gap: 0.5rem !important;
  }
  .marks-option-tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.45rem !important;
  }

  .marks-answer-banner {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.84rem !important;
    margin-top: 0.75rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .marks-wizard-footer {
    padding: 1rem 0.75rem !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
  }
  .btn-marks-nav {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 480px) {
  .marks-dates-wrap,
  .legend-box {
    grid-template-columns: 1fr !important;
  }
  .marks-dates-badge {
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   CHECKIN PAGE STYLES (MOVED FROM checkin.php)
   ========================================================================== */
.checkin-page-container {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.checkin-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf8 50%, #fff5ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.08);
}

.checkin-hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.checkin-actions-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.checkin-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.checkin-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

@media (max-width: 991px) {
  .checkin-hero-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .checkin-actions-area {
    margin-top: 0.5rem;
    width: 100%;
  }
  .checkin-actions-area a,
  .checkin-actions-area button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .checkin-req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .checkin-page-container {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .checkin-hero-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
  }
  .checkin-hero-card h2 {
    font-size: 1.2rem !important;
  }
  .checkin-req-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .checkin-req-grid .account-form-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
  }
  .checkin-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .checkin-steps-box {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
  }
}
