/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    position: relative;
}

body.chat-page .date-separator {
    display: none !important;
}

.js-auth-only[hidden],
.js-guest-only[hidden] {
    display: none !important;
}

.favschool-language-switcher {
    position: relative;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favschool-language-button {
    width: 48px;
    height: 48px;
    border: 0;
    outline: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favschool-language-flag-img {
    width: 24px;
    height: 18px;
    display: block;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.favschool-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    grid-template-columns: repeat(2, 44px);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.favschool-language-switcher.open .favschool-language-menu {
    display: grid;
}

.favschool-language-option {
    width: 44px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favschool-language-option:hover,
.favschool-language-option.active {
    background: #eef7f4;
}

.chat-page .favschool-language-button {
    width: 46px;
    height: 46px;
}

@media (max-width: 480px) {
    .favschool-language-button {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }
}

/* ===== COMMON UTILITIES ===== */
.highlight {
    color: #4A6FFF;
}

.btn-primary {
    background: rgba(29, 71, 186);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 111, 255, 0.3);
}

.btn-secondary {
    background: rgba(27, 33, 53);
    color: #fff;
    border: 2px solid #222737;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #4A6FFF;
    background: #F8FAFC;
    color: #4A6FFF;
}

.or {
    text-align: center;
    margin: 16px 0;
}

/* ===== LANDING PAGE ===== */
.landing-page {
    background: linear-gradient(
  180deg,
  rgba(29, 71, 186) 0%,
  rgb(1, 8, 30) 50%
);
    color: white;
    min-height: 100vh;
}

.landing-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
}

.landing-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.landing-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.pagination-dots {
    display: flex;
    justify-content: left;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

.dot.active {
    background: #0442fd;
    width: 24px;
    border-radius: 4px;
}

.auth-footer {
    text-align: center;
}
.create-account {
    color: #043ef0;
    font-weight: bold;
}

.skip-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.skip-link:hover {
    color: white;
}

/* ===== DASHBOARD PAGE ===== */
.dashboard-page {
background: linear-gradient(
  180deg,
  rgba(27, 64, 168) 0%,
  rgb(1, 8, 30) 80%
);    min-height: 100vh;
    padding-bottom: 80px; 
}

.dashboard-header {
    background: rgba(25, 56, 149);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left .app-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.user-greeting {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 25px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #ffffff;
    font-size: 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.2),
      0 4px 12px rgba(0, 0, 0, 0.2);

    transition: background 0.2s, transform 0.15s;
}


.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn:active {
    transform: scale(0.95);
}


.notification-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: #ff3b30;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    color: white;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RIGHT SIDEBAR ===== */
body.sidebar-open {
    overflow: hidden;
}
.right-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(27, 64, 168, 0.95) 0%,
        rgba(1, 8, 30, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.right-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 90px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A6FFF, #38bdf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.user-info h4 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.user-info p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 12px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu-item.active {
    background: rgba(74, 111, 255, 0.2);
    border-left: 3px solid #4A6FFF;
}

.sidebar-menu-item i:first-child {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.sidebar-menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.sidebar-menu-item.logout {
    color: #ff6b6b;
    margin-top: 10px;
}

.sidebar-menu-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

@media (max-width: 768px) {
    .right-sidebar {
        width: 250px;
    }
}

.dashboard-main {
    padding: 20px;
}

.ads {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 18px;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ads img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ads p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #333;
}

.promo-card {
    position: relative;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.12) 100%
    );

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;

    padding: 22px;
    margin-bottom: 24px;

    color: #ffffff;

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.35),
      0 14px 32px rgba(0, 0, 0, 0.28);
}


.promo-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.promo-card p {
    opacity: 0.6;
    margin-bottom: 20px;
    font-size: 10px;
}

.promo-buttons {
    display: flex;
    justify-content: flex-start;

    .right-btn {
        margin-left: 5px;
    }
}

.btn-chat {
    background: #0444fd;
    color: #fff;
    border: none;
    padding: 12px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-chat:hover {
    transform: translateY(-2px);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; 

    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.8),
        rgba(59, 130, 246, 0.5),
        rgba(14, 165, 233, 0.3)
    );

    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    pointer-events: none;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 18px;
    border-radius: 18px;

    background: rgba(10, 15, 25, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: none;

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.05),
      0 10px 30px rgba(0, 0, 0, 0.6);

    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-4px);
box-shadow:
      0 0 0 1px rgba(59, 130, 246, 0.4),
      0 12px 36px rgba(0, 0, 0, 0.8);
    border-color: #4A6FFF;
}
.action-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;

    background: radial-gradient(
      circle at top,
      #38bdf8,
      #2563eb
    );

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 18px;
}

.action-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #fff;
}

.action-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
}

.chat-history {
    margin-top: 24px;
}

.chat-history-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1F2937;
    padding: 8px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-history-item:hover {
    background: #374151;
}

.chat-history-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-icon {
    font-size: 16px;
    color: #fff;
}

.chat-text {
    color: #E5E7EB;
    font-size: 14px;
    font-weight: 500;
}

.chat-arrow {
    color: #9CA3AF;
    font-size: 18px;
}


/* ================= PHONE VERIFY MODAL ================= */

.phone-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);

  display: none;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(6px);
  z-index: 9999;
}

.phone-modal-content {

  width: 320px;
  padding: 26px;

  border-radius: 18px;

  background: linear-gradient(
      180deg,
      rgba(27,64,168,0.95) 0%,
      rgba(1,8,30,0.95) 100%
  );

  color: white;

  box-shadow:
      0 20px 40px rgba(0,0,0,0.5),
      inset 0 1px 1px rgba(255,255,255,0.2);

  display: flex;
  flex-direction: column;
  gap: 12px;

  animation: fadeIn 0.25s ease;
}

.phone-modal-content h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
}

/* inputs */

.phone-modal-content input {

  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);

  color: white;
  font-size: 14px;
  outline: none;
}

.phone-modal-content input::placeholder {
  color: rgba(255,255,255,0.5);
}

.phone-modal-content input:focus {
  border-color: #4A6FFF;
  box-shadow: 0 0 0 2px rgba(74,111,255,0.3);
}

/* buttons */

.phone-modal-content button {

  padding: 12px;
  border-radius: 12px;

  border: none;
  cursor: pointer;

  font-size: 14px;
  font-weight: 600;

  transition: transform 0.15s, box-shadow 0.15s;
}

/* send code */

#sendCodeBtn {
  background: linear-gradient(135deg,#4A6FFF,#3A5BDB);
  color: white;
}

#sendCodeBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(74,111,255,0.4);
}

/* verify */

#verifyCodeBtn {
  background: #22c55e;
  color: white;
}

#verifyCodeBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(34,197,94,0.35);
}

/* close */

#closePhoneModal {
  background: rgba(255,255,255,0.1);
  color: white;
}

#closePhoneModal:hover {
  background: rgba(255,255,255,0.2);
}

/* ================= PHONE WARNING BANNER ================= */

#phoneWarningBanner {

  position: sticky;
  top: 0;
  z-index: 500;

  background: linear-gradient(135deg,#ef4444,#dc2626);

  color: white;

  padding: 14px 16px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* verify button */

#verifyPhoneBtn {

  background: white;
  color: #dc2626;

  border: none;
  padding: 8px 14px;

  border-radius: 20px;

  font-weight: 600;
  font-size: 13px;

  cursor: pointer;

  transition: transform 0.15s, box-shadow 0.15s;
}

#verifyPhoneBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.phone-modal-content {
  animation: modalPop 0.2s ease;
}

/* Optional: subtle ad styling */
/* .chat-history-item.ad {
    opacity: 0.85;
} */


/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 64px;
    background: #0F172A;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    height: 48px;
    margin: 0 4px;
    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 20px;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.2);

    transition: background 0.2s, transform 0.15s;
}


.nav-btn:hover {
    background: #1E293B;
    color: #E5E7EB;
}

.nav-btn.active {
    background: rgba(37, 99, 235, 0.45);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* ===== CHAT PAGE ===== */
.chat-page {
    background: #0F172A;
    color: white;
    min-height: 100vh;
    padding-bottom: 80px; 
}

.dark-theme {
    background: #0F172A;
    color: white;
}

.chat-header {
    background: #1E293B;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #334155;
}

.back-btn {
    background: transparent;
    border: none;
    color: #CBD5E1;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.chat-header-center {
    flex: 1;
    text-align: center;
}

.provider-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.provider-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}

.provider-name {
    font-weight: 600;
    font-size: 16px;
}

.provider-name img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.edit-btn {
    background: transparent;
    border: none;
    color: #CBD5E1;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-container {
    padding: 20px;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.date-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.date-separator span {
    background: #1E293B;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #94A3B8;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.chat-scroll-down {
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #1f2937;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 40;
}

.chat-scroll-down:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
    transform: translate(-50%, 6px);
}

.chat-scroll-down.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

@media (max-width: 600px) {
    .chat-scroll-down {
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 23px;
    }
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.message.user {
    background: #4A6FFF;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: #334155;
    color: #E2E8F0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-reply-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #475569;
    color: #E2E8F0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4A6FFF;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #94A3B8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E293B;
    padding: 16px 20px;
    border-top: 1px solid #334155;
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-container input {
    flex: 1;
    background: #334155;
    border: 1px solid #475569;
    color: white;
    padding: 12px 16px;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: #4A6FFF;
}

.input-container input::placeholder {
    color: #94A3B8;
}

.input-actions {
    display: flex;
    gap: 8px;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #4A6FFF;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

/* .map-btn {
    background: #475569;
}

.map-btn:hover {
    background: #64748B;
    transform: scale(1.05);
} */

.send-btn:hover {
    background: #3A5BDB;
    transform: scale(1.05);
}

.suggestions-container {
    position: absolute;
    bottom: 100%;
    left: 20px;
    right: 20px;
    background: #fffaf5;
    border: 1px solid #f1d7c8;
    border-radius: 12px;
    margin-bottom: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.suggestions-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1d7c8;
    font-size: 14px;
    color: #0f766e;
    font-weight: 700;
}

.suggestions-list {
    padding: 8px;
}

.suggestion-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s;
}

.suggestion-item:hover {
    background: #fff0e8;
}

.suggestion-icon {
    color: #ff5a2f;
    font-size: 16px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-main {
    font-weight: 500;
    margin-bottom: 2px;
    color: #111827;
}

.suggestion-secondary {
    font-size: 12px;
    color: #64748b;
}

.suggestion-item.saved {
  background: #fff4ed;
}

.suggestion-divider {
  padding: 6px 10px;
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
}


.ride-time-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
}

.time-option-label {
    display: block;
    cursor: pointer;
    margin-bottom: 12px;
}

.time-option-label input[type="radio"] {
    display: none;
}

.time-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.time-option-label input[type="radio"]:checked + .time-option-content {
    background: rgba(74, 111, 255, 0.2);
    border-color: #4A6FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 111, 255, 0.2);
}

.time-option-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-option-text {
    flex: 1;
}

.time-option-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.time-option-text small {
    font-size: 12px;
    opacity: 0.7;
    display: block;
}

.schedule-fields {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.schedule-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #CBD5E1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.datetime-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.datetime-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.datetime-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94A3B8;
}

.datetime-icon {
    font-size: 16px;
}

.datetime-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.datetime-input:focus {
    border-color: #4A6FFF;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.2);
}

.datetime-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

.timezone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94A3B8;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.timezone-icon {
    font-size: 14px;
}

.confirm-time-btn {
    background: linear-gradient(135deg, #4A6FFF 0%, #3A5BDB 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.confirm-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 111, 255, 0.4);
}

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

.passenger-selection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
}

.passenger-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: #E2E8F0;
    font-weight: 500;
}

.passenger-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.passenger-option {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.passenger-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.passenger-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.passenger-option.selected .passenger-option-content {
    background: rgba(74, 111, 255, 0.2);
    border-color: #4A6FFF;
}

.passenger-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.passenger-details {
    flex: 1;
}

.passenger-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #E2E8F0;
}

.passenger-desc {
    font-size: 14px;
    color: #94A3B8;
}

.passenger-check {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    transition: all 0.3s ease;
}

.passenger-option.selected .passenger-check {
    background: #4A6FFF;
    border-color: #4A6FFF;
    color: white;
}

.passenger-hint {
    font-size: 12px;
    color: #94A3B8;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rides-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rides-header {
    margin-bottom: 24px;
}

.rides-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #E2E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rides-subtitle {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.rides-schedule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 111, 255, 0.1);
    color: #4A6FFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.schedule-icon {
    font-size: 16px;
}

.rides-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ride-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.ride-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 111, 255, 0.3);
}

.ride-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.provider-name {
    font-size: 20px;
    font-weight: 700;
    color: #E2E8F0;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #FBBF24;
}

.rating-star {
    color: #FBBF24;
}

.provider-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ride-card-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.feature-icon {
    font-size: 16px;
    opacity: 0.8;
}

.ride-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ride-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.ride-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.cheapest-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.fastest-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.badge-icon {
    font-size: 14px;
}

.option-type {
    font-size: 16px;
    font-weight: 600;
    color: #E2E8F0;
}

.option-price {
    font-size: 32px;
    font-weight: 800;
    color: #E2E8F0;
    line-height: 1;
}

.option-price::before {
    content: '€';
    font-size: 20px;
    opacity: 0.7;
}

.option-details {
    display: flex;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #94A3B8;
}

.detail-icon {
    font-size: 16px;
    opacity: 0.8;
}

.book-btn {
    background: linear-gradient(135deg, #4A6FFF 0%, #3A5BDB 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    margin-top: auto;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 111, 255, 0.4);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.book-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.scheduled-ride {
    background: linear-gradient(135deg, rgba(74, 111, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(74, 111, 255, 0.2);
}

.scheduled-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 111, 255, 0.2);
    color: #4A6FFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.scheduled-details {
    margin-bottom: 24px;
}

.ride-type {
    font-size: 20px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.ride-features {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94A3B8;
}

.book-btn-scheduled {
    background: linear-gradient(135deg, #4A6FFF 0%, #3A5BDB 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.book-btn-scheduled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 111, 255, 0.4);
}

.rides-footer {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ride-card.bolt .provider-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.ride-card.uber .provider-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.ride-card.ecabs .provider-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

/* ================= MAP MODAL ================= */

.map-modal {
  position: fixed;
  inset: 0;
  background: #0f172a; 
  z-index: 9999;

  display: flex;
  flex-direction: column;
}

.map-modal.hidden {
  display: none;
}

/* ================= HEADER ================= */

.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;
  background: #020617;
  color: #fff;

  font-size: 16px;
  font-weight: 600;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-modal-header button {
  background: transparent;
  border: none;
  color: #cbd5f5;
  font-size: 18px;
  cursor: pointer;

  transition: color 0.2s ease;
}

.map-modal-header button:hover {
  color: #fff;
}

/* ================= CONTROLS ================= */

.map-controls {
  padding: 12px 16px;
  background: #020617;

  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-controls input {
  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);

  color: #fff;
  font-size: 14px;
  outline: none;
}

.map-controls input::placeholder {
  color: #94a3b8;
}

.map-controls input:focus {
  border-color: #6366f1;
}

#useMyLocationBtn {
  padding: 12px;
  border-radius: 12px;

  border: none;
  background: #1e293b;
  color: #e5e7eb;

  font-size: 14px;
  font-weight: 500;
  cursor: pointer;

  transition: background 0.2s ease;
}

#useMyLocationBtn:hover {
  background: #334155;
}

/* ================= MAP ================= */

.map-container {
  flex: 1;
}

/* ================= FOOTER ================= */

.map-footer {
  padding: 14px 16px;
  background: #020617;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#confirmMapSelection {
  width: 100%;
  padding: 14px;

  border-radius: 14px;
  border: none;

  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#confirmMapSelection:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* ================= GOOGLE AUTOCOMPLETE FIX ================= */

.pac-container {
  z-index: 10000 !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}


@media (max-width: 768px) {
    .ride-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ride-card {
        padding: 16px;
    }
    
    .option-price {
        font-size: 28px;
    }
    
    .rides-container {
        padding: 16px;
    }
    
    .rides-title {
        font-size: 20px;
    }
}


/* ===== SUBSCRIPTION PAGE ===== */
.subscription-page {
    min-height: 100vh;
    background: radial-gradient(
        circle at top left,
        #0B2A6F,
        #020617 60%
    );
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

.subscription-header {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
}

.change-plan-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    pointer-events: none; 
}

.subscription-header h1 {
    display: none;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: #fff;
}


.subscription-container {
    padding: 24px 20px;
}

.subscription-title {
    text-align: left;
    margin-bottom: 32px;
}

.subscription-title h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.subscription-title .highlight {
    color: #3B82F6;
}

.subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.25),
        0 20px 40px rgba(0,0,0,0.35);

    min-width: 310px;  
    max-width: 280px;

    scroll-snap-align: start;
    flex-shrink: 0;
}

.plan-header {
    border-bottom: none;
    text-align: left;
    padding-bottom: 0;
}

.plan-header h3 {
    font-size: 18px;
    opacity: 0.9;
}

.price {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
}

.period {
    color: rgba(255,255,255,0.6);
}


.feature-list {
    margin-left: 20px;
}

.feature-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.feature-list i {
    color: #ffffff;
    opacity: 0.9;
}


.btn-select-plan {
    background-color: #0443fd;
    color: white;
    border: none;
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 40px;
}

.btn-select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 111, 255, 0.4);
}

.featured {
    background-color: #0443fd;

    .btn-select-plan {
        background-color: #fff;
        color: #0443fd;
    }
}

.terms-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.plans-wrapper {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: visible;

    padding-bottom: 16px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.plans-wrapper::-webkit-scrollbar {
    display: none;
}
.plans-wrapper {
    scrollbar-width: none;
}

/* ===== CURRENT SUBSCRIPTION PLAN BUTTON ===== */

.btn-select-plan.current-plan,
.btn-select-plan:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;

  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: not-allowed;

  pointer-events: none; 
  opacity: 0.7;
}

.btn-select-plan.current-plan:hover,
.btn-select-plan:disabled:hover {
  transform: none;
  box-shadow: none;
}


/* ===== SAVED PLACES PAGE ===== */

.saved-page {
  min-height: 100vh;
  background: #f4f6fb;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.saved-header {
  display: flex;
  justify-content: flex-start;
}

#back-btn {
    color: #111;
}

.saved-content {
  flex: 1;
  position: relative;
  padding-top: 8px;
}

.saved-title {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 8px;
  color: #0f172a;
}

.saved-subtitle {
  font-size: 14px;
  color: #64748b;
  max-width: 280px;
}

.saved-bg {
  position: absolute;
  inset: 0;
  background: url("assets/location.png") center bottom no-repeat;
  background-size: contain;
  opacity: 0.9;
  pointer-events: none;
}

.saved-footer {
  padding: 16px 0;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: #0b0f2f;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b0f2f;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}


.saved-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(11, 15, 47, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}


.saved-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saved-info strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.saved-info span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.3;
}

.delete-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  padding: 16px;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.modal-input {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  outline: none;
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.address-suggestions {
  background: #fffaf5;
  border: 1px solid #f1d7c8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.suggestion {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #111827;
  border-bottom: 1px solid #f1d7c8;
}

.suggestion:last-child {
  border-bottom: none;
}

.suggestion:hover {
  background: #fff0e8;
}

.modal-footer {
  margin-top: 14px;
}


.danger-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.danger-btn:hover {
  background: #dc2626;
}

.modal-hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

/* ================= Address input with map icon ================= */

.address-input-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.address-input-wrapper .modal-input {
  padding-right: 44px;
}

.map-icon-btn {

  width: 80px;
  height: 40px;

  border: none;
  border-radius: 14px;

  background: #f3f4f6;         
  color: #4b5563;             
  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.map-icon-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.map-icon-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.map-icon-btn i {
  font-size: 15px;
}

.map-icon-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}


/* ===== PROFILE PAGE ===== */

.profile-page {
  background: linear-gradient(
    180deg,
    #2b3b6a 0%,
    #1f2c4c 55%,
    #01081e 100%
  );
  min-height: 100vh;
  color: white;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.profile-header h1 {
  font-size: 18px;
  font-weight: 600;
}

.edit-btn {
  margin-left: auto; 
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 12px;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  width: 80px;
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.edit-btn i {
  font-size: 12px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
}

.profile-content {
  padding: 20px;
}

.profile-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.change-photo {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 13px;
  cursor: pointer;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.form-group label span {
  color: #ef4444;
}

.form-group input,
.form-group select {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 14px;
  outline: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.full-width {
  width: 100%;
  margin-top: 16px;
}

.form-group select option {
    background-color: #01081e;
}


/* ===== Account Page ===== */

.account-page {
    padding: 25px;
}

.account-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.account-tab {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}

.account-tab.active {
  background: #6366f1;
  color: #fff;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.membership-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 18px;
  max-width: 520px;
}

.membership-badge {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}

.membership-row {
  margin: 10px 0;
  font-size: 14px;
}

.membership-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.membership-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.membership-btn.primary {
  background: #6366f1;
  color: white;
}

.membership-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* ===============================
   SECURITY TAB
================================ */

.security-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.security-item:hover {
  background: #f9fafb;
}

.security-item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.security-icon {
  font-size: 18px;
  color: #666;
  width: 24px;
  text-align: center;
}

.security-content {
  flex: 1;
}

.security-title {
  font-weight: 600;
  font-size: 15px;
  color: #111;
}

.security-subtitle {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.security-status {
  font-size: 12px;
  color: #16a34a;
  margin-top: 4px;
}

.security-arrow {
  font-size: 16px;
  color: #999;
}

/* SLIDE PANEL */
.slide-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #0f0f0f;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  color: #fff;
}

.slide-panel.active {
  right: 0;
}

/* HEADER */
.slide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* CONTENT */
.slide-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slide-content label {
  font-size: 13px;
  opacity: 0.7;
}

.slide-content input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #1c1c1c;
  color: white;
}

.error-text {
  color: #f87171;
  font-size: 13px;
}

/* ===== QUICK LINKS TAB ===== */

.quick-links-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 18px 20px;
  cursor: pointer;

  font-size: 15px;
  font-weight: 500;
  color: #111827;

  transition: background 0.2s ease, transform 0.1s ease;
}

.quick-link-item:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.quick-link-item i:first-child {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: #4b5563;
}

.quick-link-item span {
  flex: 1;
}

.quick-link-item i:last-child {
  font-size: 14px;
  color: #9ca3af;
}

.quick-link-item:hover {
  background: #f9fafb;
}

.quick-link-item:active {
  transform: scale(0.99);
}

.quick-link-item.danger {
  color: #dc2626;
}

.quick-link-item.danger i:first-child {
  color: #dc2626;
}

.quick-link-item.danger:hover {
  background: #fef2f2;
}

.account-page {
    /* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  color: #374151;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.secondary-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.danger-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
}

.danger-btn:hover {
  background: #b91c1c;
}

}

/* ===== PAYMENT HISTORY ===== */

.history-page {
  background:
    radial-gradient(circle at top left, rgba(255, 90, 44, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 166, 166, 0.14), transparent 32%),
    #f5f7fb;
  min-height: 100vh;
  padding: 16px;
}

.history-container {
  padding: 18px 24px 32px;
}

.history-header {
  align-items: center;
  color: #10182f;
  display: flex;
  justify-content: center;
  min-height: 110px;
  position: relative;
  text-align: center;
}

.history-header h1 {
  color: #10182f;
  font-size: 42px;
  font-weight: 900;
  margin: 0;
}

.history-header .back-btn {
  background: #ffffff;
  border: 1px solid rgba(8, 127, 120, 0.12);
  color: #087f78;
  left: 4px;
  position: absolute;
  top: 20px;
  box-shadow: 0 10px 24px rgba(8, 127, 120, 0.12);
}

.history-header .favschool-language-switcher {
  position: absolute;
  right: 4px;
  top: 20px;
}

.history-tabs {
  display: flex;
  background: #fff;
  border: 1px solid rgba(8, 127, 120, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(16, 24, 47, 0.08);
  margin-bottom: 20px;
  padding: 8px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px;
  font-weight: 800;
  border-radius: 14px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: linear-gradient(135deg, #087f78, #14b8a6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 127, 120, 0.22);
}

.tab-content {
  display: none;
}

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

.payment-card {
  background: #fff;
  border: 1px solid rgba(8, 127, 120, 0.10);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 35px rgba(16,24,47,0.08);
}

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

.payment-amount {
  font-size: 18px;
  font-weight: bold;
}

.payment-status {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(20, 184, 166, 0.12);
  color: #087f78;
  font-weight: 700;
}

.payment-status.failed {
  background: rgba(255, 90, 44, 0.12);
  color: #ff5a2c;
}

.payment-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

.invoice-link {
  margin-top: 10px;
  display: inline-block;
  font-size: 13px;
  color: #087f78;
  text-decoration: none;
  font-weight: 800;
}

.booking-history-title {
  font-size: 18px;
  font-weight: 800;
  color: #10182f;
}

.booking-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}

.booking-history-grid div {
  background: #f5fbfa;
  border: 1px solid rgba(8, 127, 120, 0.08);
  border-radius: 12px;
  color: #10182f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.booking-history-grid span {
  color: #6b7280;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ===== WHY MALTA PAGE ===== */

.why-malta-page {
  background:
    radial-gradient(circle at 10% 5%, rgba(20, 184, 166, 0.10), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(255, 90, 44, 0.10), transparent 22%),
    #f8fafc;
}

.why-malta-main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 30px 36px 120px;
}

.why-malta-hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  min-height: 520px;
}

.why-malta-kicker {
  color: #ff5a2c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.why-malta-hero h1 {
  color: #10182f;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 950;
  line-height: 1.05;
  margin: 0 0 28px;
}

.why-malta-hero-copy > p:last-child {
  color: #506078;
  font-size: 18px;
  line-height: 1.9;
  max-width: 520px;
}

.orange-text {
  color: #ff5a2c;
}

.teal-text {
  color: #0ea5b7;
}

.why-malta-map-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
}

.why-malta-map-wrap img {
  filter: drop-shadow(0 18px 35px rgba(14, 165, 183, 0.12));
  max-width: 100%;
}

.why-malta-locations h2 {
  color: #10182f;
  font-size: 30px;
  font-weight: 900;
  margin: 10px 0 28px;
  text-align: center;
}

.malta-location-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 47, 0.07);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(16, 24, 47, 0.08);
  display: grid;
  gap: 32px;
  grid-template-columns: 360px minmax(220px, 0.8fr) minmax(260px, 1fr);
  margin-bottom: 16px;
  padding: 18px;
}

.malta-location-card > img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.location-copy h3 {
  color: #10182f;
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 8px;
}

.location-tag {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 22px;
}

.location-copy p:last-child {
  color: #506078;
  font-size: 16px;
  line-height: 1.8;
}

.location-activities {
  border-left: 1px solid rgba(16, 24, 47, 0.10);
  display: grid;
  gap: 20px;
  grid-template-columns: 70px 1fr;
  min-height: 170px;
  padding-left: 28px;
}

.activity-icon,
.trust-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.orange-soft {
  background: rgba(255, 90, 44, 0.12);
  color: #ff5a2c;
}

.teal-soft {
  background: rgba(14, 165, 183, 0.12);
  color: #0ea5b7;
}

.location-activities h4 {
  color: #10182f;
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 12px;
}

.location-activities ul {
  color: #10182f;
  line-height: 1.9;
  margin: 0;
  padding-left: 20px;
}

.study-explore-enjoy {
  align-items: center;
  background: linear-gradient(135deg, #fff1ea, #fffaf6);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(255, 90, 44, 0.10);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr);
  margin: 30px 0 24px;
  min-height: 250px;
  overflow: hidden;
  padding: 34px 52px;
}

.study-illustration {
  height: 210px;
  position: relative;
}

.study-illustration .sun {
  background: #ff9f1c;
  border-radius: 50%;
  height: 38px;
  left: 130px;
  position: absolute;
  top: 20px;
  width: 38px;
}

.study-illustration .lighthouse {
  background: linear-gradient(180deg, #f8fafc 0 16%, #0ea5b7 16% 24%, #f8fafc 24% 100%);
  border-radius: 16px 16px 4px 4px;
  bottom: 0;
  height: 170px;
  left: 84px;
  position: absolute;
  width: 70px;
}

.study-illustration .lighthouse::before {
  background: #ff5a2c;
  border-radius: 6px 6px 0 0;
  content: "";
  height: 22px;
  left: 12px;
  position: absolute;
  top: -16px;
  width: 46px;
}

.study-illustration .building {
  border-radius: 10px 10px 0 0;
  bottom: 0;
  position: absolute;
}

.building-one {
  background: #f4bd72;
  height: 76px;
  left: 5px;
  width: 130px;
}

.building-two {
  background: #7bd2df;
  height: 108px;
  left: 155px;
  width: 120px;
}

.study-copy h2 {
  color: #10182f;
  font-size: 34px;
  font-weight: 950;
  margin: 0 0 14px;
}

.study-copy p {
  color: #506078;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 24px;
}

.why-malta-cta {
  align-items: center;
  background: linear-gradient(135deg, #0ea5b7, #087f78);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(8, 127, 120, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 16px;
  justify-content: center;
  padding: 16px 28px;
}

.malta-worldwide-section {
  margin-top: 24px;
}

.malta-stats-banner {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(244, 251, 253, 0.96), rgba(244, 251, 253, 0.88)),
    radial-gradient(circle at 48% 45%, rgba(14, 165, 183, 0.12), transparent 30%);
  border: 1px solid rgba(14, 165, 183, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16, 24, 47, 0.06);
  display: grid;
  gap: 26px;
  grid-template-columns: 1.4fr repeat(3, 0.55fr);
  padding: 30px 36px;
}

.malta-stats-copy h2,
.malta-trust h2 {
  color: #10182f;
  font-size: 26px;
  font-weight: 950;
  margin: 0 0 10px;
}

.malta-stats-copy p {
  color: #10182f;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

.malta-stat-item {
  align-items: center;
  color: #10182f;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.malta-stat-item i {
  color: #bd6f40;
  font-size: 34px;
}

.malta-stat-item strong {
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
}

.malta-stat-item span {
  color: #3d4b61;
  font-size: 16px;
}

.malta-trust {
  padding: 42px 0 0;
  text-align: center;
}

.malta-trust-grid {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
}

.malta-trust-item {
  align-items: center;
  border-right: 1px solid rgba(16, 24, 47, 0.10);
  display: flex;
  gap: 20px;
  justify-content: center;
  min-height: 86px;
  padding: 0 24px;
  text-align: left;
}

.malta-trust-item:last-child {
  border-right: 0;
}

.malta-trust-item p {
  color: #10182f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .why-malta-main {
    padding: 12px 18px 120px;
  }

  .why-malta-hero {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .why-malta-hero h1 {
    font-size: 42px;
  }

  .why-malta-hero-copy > p:last-child {
    font-size: 16px;
  }

  .malta-location-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px;
  }

  .malta-location-card > img {
    height: 210px;
  }

  .location-activities {
    border-left: 0;
    border-top: 1px solid rgba(16, 24, 47, 0.10);
    grid-template-columns: 56px 1fr;
    padding-left: 0;
    padding-top: 20px;
  }

  .study-explore-enjoy {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .study-illustration {
    height: 170px;
  }

  .malta-stats-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .malta-stats-copy p {
    margin: 0 auto;
  }

  .malta-trust-grid {
    grid-template-columns: 1fr;
  }

  .malta-trust-item {
    border-bottom: 1px solid rgba(16, 24, 47, 0.10);
    border-right: 0;
    justify-content: flex-start;
    padding: 18px 8px;
  }

  .malta-trust-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .why-malta-hero h1 {
    font-size: 36px;
  }

  .location-copy h3 {
    font-size: 28px;
  }

  .malta-location-card > img {
    height: 180px;
  }

  .why-malta-cta {
    width: 100%;
  }

  .malta-stats-banner {
    padding: 24px 18px;
  }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

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


/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .landing-container {
        max-width: 500px;
        padding: 60px 40px;
    }
    
    .landing-title {
        font-size: 40px;
    }
    
    .dashboard-main {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .chat-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .voice-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .subscription-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.dark-theme ::-webkit-scrollbar-track {
    background: #1E293B;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* ================= HOME PAGE ================= */

.home-page {
  background: #f5f7fb;
  font-family: 'Inter', sans-serif;
}

/* ===== HEADER ===== */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: transparent;
}

.logo img{
  width: 200px;
  margin-top: 10px;
  color: #111;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 15px;
  position: relative;
}

.nav a.active {
  color: #ff5a2c;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff5a2c;
  border-radius: 2px;
}

/* RIGHT SIDE */

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

.sign-in-btn {
  background: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #6b21a8;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== HERO ===== */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
}

/* LEFT */

.hero-left {
  max-width: 520px;
}

.tag {
  font-size: 12px;
  color: #f59e0b;
  background: #fff3e0;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  color: #1e293b;
}

.hero h1 span {
  background: linear-gradient(90deg, #ff5a2c, #00a6a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 20px;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

/* RIGHT IMAGE */

.hero-right {
  position: relative;
}

.hero-right img {
  width: 600px;
}

/* ===== SEARCH BOX ===== */



/* SEARCH ITEMS */

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-item i {
  font-size: 18px;
  color: #6b7280;
}

.search-item small {
  font-size: 12px;
  color: #9ca3af;
}

.search-item span {
  font-size: 14px;
  font-weight: 500;
}

/* BUTTON */

.search-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #ff5a2c, #ff7a00);
  color: white;

  border: none;
  padding: 14px 24px;
  border-radius: 14px;

  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 8px;

  box-shadow: 0 8px 20px rgba(255,90,44,0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ICON BUTTON (bell) */
.home-page .icon-btn {
  position: relative;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: #ffffff;
  color: #111;

  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
}

/* RED DOT */
.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 8px;
  height: 8px;
  background: #ff3b30;

  border-radius: 50%;
}

.notification-dot.has-count,
.notification-badge.has-count {
  top: -5px;
  right: -6px;
  width: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.notification-menu-wrap {
  position: relative;
  display: inline-flex;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: -8px;
  z-index: 2000;
  width: min(420px, calc(100vw - 32px));
  overflow: visible;
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.notification-dropdown[hidden] {
  display: none;
}

.notification-dropdown-arrow {
  position: absolute;
  top: -11px;
  right: 24px;
  width: 22px;
  height: 22px;
  background: #4f95d8;
  transform: rotate(45deg);
}

.notification-dropdown-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: #4f95d8;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.notification-dropdown-header span {
  font-size: 16px;
  font-weight: 800;
  opacity: 0.95;
}

.notification-dropdown-list {
  max-height: 420px;
  overflow: auto;
  padding: 12px 0;
}

.notification-mini-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid #eef2f7;
}

.notification-mini-card:last-child {
  border-bottom: 0;
}

.notification-mini-card.is-opened {
  opacity: 0.62;
}

.notification-mini-card h4 {
  margin: 0 0 5px;
  color: #151333;
  font-size: 16px;
  font-weight: 900;
}

.notification-mini-card p {
  margin: 0;
  color: #8a86a6;
  font-size: 14px;
  line-height: 1.45;
}

.notification-mini-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.notification-mini-card a:hover {
  background: #0f766e;
  color: #fff;
}

.notification-empty {
  margin: 0;
  padding: 22px 28px;
  color: #8a86a6;
}

.notification-see-all {
  display: block;
  padding: 18px 28px 22px;
  color: #14b8a6;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.notification-see-all:hover {
  color: #0f766e;
}

/* SIGN IN BUTTON */
.sign-in-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;

  border-radius: 999px;
  background: #ffffff;

  color: #444444;
  font-weight: 500;

  text-decoration: none;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.home-bookings-btn,
.home-logout-btn {
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  color: #444444;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 600;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
}

.home-bookings-btn {
  color: #087f78;
}

.home-logout-btn {
  color: #ff5a2c;
}

.home-bookings-btn[hidden],
.home-logout-btn[hidden],
.sign-in-btn[hidden],
.mobile-signin-btn[hidden] {
  display: none !important;
}

.mobile-menu .mobile-logout-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
}

/* ICON inside sign in */
.sign-in-btn i {
  color: #666;
  font-size: 14px;
}



/* MAIN CARD */
.search-box {
display: flex;
  align-items: center;
  gap: 30px;
  background: #ffffff;
    margin: 30px 10px;
  padding: 24px;
  border-radius: 24px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column; /* 👈 THIS FIXES EVERYTHING */
}


/* TITLE INSIDE BOX */
.search-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px; /* 👈 important */
  color: #1e293b;
}

.search-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ITEMS */
.search-item {
  flex: 1;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  background: #fff;
  cursor: pointer;
  position: relative;
}

/* ICON */
.search-item i:first-child {
  color: #6b7280;
}

/* TEXT */
.search-item small {
  font-size: 12px;
  color: #9ca3af;
}

.search-item span {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

/* DROPDOWN */
.dropdown-icon {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.search-dropdown.open .search-dropdown-menu {
  display: grid;
  gap: 4px;
}

.search-dropdown-menu button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-dropdown-menu button:hover {
  background: #f1f7f5;
  color: #0e7a73;
}

.search-date {
  position: relative;
}

.search-date input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* BUTTON */
.search-btn {
  padding: 16px 26px;

  border-radius: 16px;
  border: none;

  font-weight: 600;
  color: white;

  background: linear-gradient(90deg, #ff5a2c, #00a6a6);

  display: flex;
  align-items: center;
  gap: 10px;

  white-space: nowrap;
}

/* ===== COURSES ===== */

.courses {
  padding: 80px 60px;
  text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    max-width: 1200px;
    margin: 60px auto 0;
}

.section-subtitle {
  color: #ff6b35;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}



/* CARD */

.course-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 300px;
  text-align: left;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
}

/* BADGE */

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffe8e0;
  color: #ff6b35;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.badge.blue {
  background: #e0f4f7;
  color: #1ea7b6;
}

.badge.orange {
  background: #ffe8e0;
  color: #ff6b35;
}

/* ICON */

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffe8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 20px;
  font-size: 24px;
  color: #ff6b35;
}

.icon-circle.blue {
  background: #e0f4f7;
  color: #1ea7b6;
}

.icon-circle.orange {
  background: #ffe8e0;
  color: #ff6b35;
}

/* TEXT */

.course-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.level {
  font-size: 13px;
  color: #777;
}

.course-card p {
  font-size: 14px;
  color: #555;
  margin: 15px 0 25px;
}

/* FOOTER */

.card-footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #666;
  position: relative;
}

.card-footer i {
  margin-right: 5px;
}

/* ARROW BUTTON */

.arrow-btn {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;

  background: #ff6b35;
  color: white;
  cursor: pointer;
}

.arrow-btn.blue {
  background: #1ea7b6;
}

/* ===== STATS ===== */

.stats {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.stats-title {
  text-align: center;
  color: #111;
  font-weight: 700;
  font-size: 24px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.stats-icon i{
  font-size: 40px
}

.stats-icon.orange {
  background: #ffe8e0;
  color: #ff6b35;
}

.stats-icon.blue {
  background: #e0f4f7;
  color: #1ea7b6;
}

.stat strong {
  display: block;
}

.stat span {
  font-size: 20px;
  color: #777;
}

.divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

/* ===== BENEFITS ===== */

.benefits {
  padding: 80px 60px;
  text-align: left;
  background: linear-gradient(180deg, #f7f9fc, #eef2f6);
  border-radius: 30px;
  margin: 0 40px;
  position: relative;
}

/* TITLE */

.benefits-subtitle {
  color: #2fa4c7;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefits-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
}

/* GRID */

.benefits-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}

/* CARD */

.benefit {
  max-width: 220px;
}

/* ICON BOX */

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 20px;
}

.benefit-icon.orange {
  background: #ffe8e0;
  color: #ff6b35;
}

.benefit-icon.blue {
  background: #e0f4f7;
  color: #1ea7b6;
}

/* TEXT */

.benefit h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.benefit p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* BUTTON */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 30px;
  border: none;

  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;

  background: linear-gradient(90deg, #ff6b35, #1ea7b6);
}

.cta-btn i {
  font-size: 14px;
}

/* ===== ABOUT HERO ===== */

.about-hero {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 60px;
  position: relative;
}

/* LEFT */

.about-left {
  max-width: 520px;
}

.about-tag {
  color: #ff6b35;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.about-left h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.about-left h1 span {
  background: linear-gradient(90deg, #ff6b35, #1ea7b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-description {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b7280;
  max-width: 420px;
}

.about-description.second {
  margin-top: 14px;
}

/* RIGHT */

.about-right {
  position: relative;
}

.about-right img {
  width: 600px;
}

/* ===== STUDENT PROBLEMS ===== */

.student-problems {
  padding: 80px 60px;
  text-align: center;
}

/* TITLE */

.problems-title {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

/* DESCRIPTION */

.problems-description {
  max-width: 850px;
  margin: 0 auto 50px;

  font-size: 17px;
  line-height: 1.8;
  color: #6b7280;
}

/* WHITE BOX */

.problems-box {
  background: #ffffff;

  border-radius: 28px;
  padding: 40px;

  display: flex;
  justify-content: space-between;

  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* ITEM */

.problem-item {
  flex: 1;
  padding: 0 24px;
  text-align: left;
  position: relative;
}

/* DIVIDER */

.problem-item:not(:last-child)::after {
  content: "";

  position: absolute;
  right: 0;
  top: 10px;

  width: 1px;
  height: 85%;

  background: #ececec;
}

/* ICON */

.problem-icon {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  font-size: 26px;
}

.problem-icon.blue {
  background: #e7f8fb;
  color: #1ea7b6;
}

.problem-icon.orange {
  background: #fff1ea;
  color: #ff6b35;
}

/* TEXT */

.problem-item h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.problem-item p {
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
}

/* ===== OUR SOLUTION ===== */

.our-solution {
  padding: 20px 60px 80px;
  text-align: center;
}

/* TITLE */

.solution-title {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

/* DESCRIPTION */

.solution-description {
  max-width: 850px;
  margin: 0 auto 50px;

  font-size: 17px;
  line-height: 1.8;
  color: #6b7280;
}

/* BOX */

.solution-box {
  background: #ffffff;

  border-radius: 28px;
  padding: 40px;

  display: flex;
  justify-content: space-between;

  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* ITEM */

.solution-item {
  flex: 1;
  padding: 0 24px;
  text-align: left;
  position: relative;
}

/* DIVIDER */

.solution-item:not(:last-child)::after {
  content: "";

  position: absolute;
  right: 0;
  top: 10px;

  width: 1px;
  height: 85%;

  background: #ececec;
}

/* ICON */

.solution-icon {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  font-size: 26px;
}

.solution-icon.blue {
  background: #e7f8fb;
  color: #1ea7b6;
}

.solution-icon.orange {
  background: #fff1ea;
  color: #ff6b35;
}

/* TEXT */

.solution-item h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.solution-item p {
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
}


/* ===== WORLDWIDE SECTION ===== */

.worldwide-section {

  margin: 80px 60px;

  padding: 50px 40px;

  border-radius: 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background:
    linear-gradient(rgba(240,248,252,0.95), rgba(240,248,252,0.95)),
    url('/assets/world-map.png');

  background-size: cover;
  background-position: center;

  overflow: hidden;
}

/* LEFT */

.worldwide-left {
  max-width: 320px;
}

.worldwide-left h3 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111827;
}

.worldwide-left p {
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
}

/* STATS */

.worldwide-stats {
  display: flex;
  gap: 80px;
}

/* ITEM */

.world-stat {
  text-align: center;
}

/* ICON */

.world-stat i {
  font-size: 38px;
  margin-bottom: 18px;
}

/* COLORS */

.world-stat:nth-child(1) i {
  color: #1ea7b6;
}

.world-stat:nth-child(2) i {
  color: #ff6b35;
}

.world-stat:nth-child(3) i {
  color: #1ea7b6;
}

/* NUMBERS */

.world-stat strong {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

/* LABEL */

.world-stat span {
  font-size: 16px;
  color: #4b5563;
}

/* ===== WHY CHOOSE ===== */

.why-choose {
  padding: 40px 60px 80px;
  text-align: center;
}

/* TITLE */

.why-title {
  font-size: 38px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 50px;
}

/* GRID */

.why-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ITEM */

.why-item {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 0 40px;
  text-align: left;

  position: relative;
}

/* DIVIDER */

.why-item:not(:last-child)::after {
  content: "";

  position: absolute;
  right: 0;
  top: 50%;

  transform: translateY(-50%);

  width: 1px;
  height: 70px;

  background: #e5e7eb;
}

/* ICON BOX */

.why-icon {
  width: 64px;
  height: 64px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;

  flex-shrink: 0;
}

.why-icon.blue {
  background: #e7f8fb;
  color: #1ea7b6;
}

.why-icon.orange {
  background: #fff1ea;
  color: #ff6b35;
}

/* TEXT */

.why-item p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  font-weight: 500;
}

/* ===== SUPPORT CTA ===== */

.support-cta {

  margin: 80px 60px;

  padding: 40px 50px;

  border-radius: 30px;

  background: #fff7f4;

  display: flex;
  justify-content: space-between;
  align-items: center;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* IMAGE */

.support-image img {
  width: 600px;
  display: block;
}

/* CONTENT */

.support-content {
  max-width: 420px;
}

.support-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
}

.support-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 28px;
}

/* BUTTON */

.support-btn {

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 16px 30px;

  border: none;
  border-radius: 999px;

  background: linear-gradient(90deg, #1ea7b6, #1593a1);

  color: white;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 10px 25px rgba(30,167,182,0.25);

  transition: 0.2s;
}

.support-btn:hover {
  transform: translateY(-2px);
}

.support-btn i {
  font-size: 14px;
}

/* ===== CONTACT HERO ===== */

.contact-hero {

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 60px;

  position: relative;
}

/* LEFT */

.contact-left {
  max-width: 480px;
}

.contact-tag {

  color: #ff6b35;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 22px;
}

.contact-left h1 {

  font-size: 64px;
  line-height: 1.1;

  font-weight: 800;

  color: #0f172a;

  margin-bottom: 24px;
}

.contact-description {

  font-size: 18px;
  line-height: 1.8;

  color: #6b7280;

  max-width: 380px;
}

/* RIGHT */

.contact-right {
  position: relative;
}

.contact-right img {
  width: 600px;
  display: block;
}

/* ===== CONTACT CONTENT ===== */

.contact-content {

  display: grid;
  grid-template-columns: 1.2fr 0.9fr;

  gap: 30px;

  padding: 0 60px 80px;
}

/* ===== LEFT FORM ===== */

.contact-form-card,
.contact-info-card,
.help-box,
.mini-support-box {

  background: #ffffff;

  border-radius: 24px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.contact-form-card {
  padding: 20px;
}

.contact-form-card h3,
.contact-side h3 {

  font-size: 24px;
  font-weight: 700;

  margin-bottom: 30px;

  color: #111827;
}

/* FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group label {

  display: block;

  font-size: 14px;
  font-weight: 500;

  margin-bottom: 10px;

  color: #374151;
}

/* INPUTS */

.form-group input,
.select-wrapper,
.form-group textarea {

  width: 100%;

  border: 1px solid #e5e7eb;

  border-radius: 14px;

  padding: 16px;

  font-size: 14px;

  background: #fff;

  color: #111827;

  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.select-wrapper select {
  color: #111827;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .select-wrapper select {
  color: #111827 !important;
  background: #ffffff !important;
  caret-color: #111827;
}

.contact-form .select-wrapper,
.contact-form .select-wrapper select,
.contact-form .select-wrapper option {
  background: #ffffff !important;
  color: #111827 !important;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: #9ca3af !important;
}

.form-group input:focus,
.form-group textarea:focus,
.select-wrapper:focus-within {
  border-color: #ff6b35;
}

/* TEXTAREA */

.form-group textarea {

  min-height: 420px;
  resize: none;
}

/* SELECT */

.select-wrapper {

  display: flex;
  align-items: center;

  padding-right: 16px;
}

.select-wrapper select {

  border: none;
  outline: none;
  background: transparent;

  width: 100%;

  font-size: 14px;

  appearance: none;
}

/* BUTTON */

.contact-submit-btn {

  height: 56px;

  border: none;
  border-radius: 16px;

  background: linear-gradient(90deg, #ff6b35, #1ea7b6);

  color: white;

  font-size: 15px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: pointer;

  margin-top: 10px;
}

/* ===== RIGHT ===== */

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
}

/* INFO CARD */

.contact-info-card {
  padding: 10px 24px;
}

/* ITEM */

.info-item {

  display: flex;
  align-items: flex-start;

  gap: 16px;

  padding: 24px 0;

  position: relative;
}

.info-item-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.info-item-link:hover .side-arrow {
  color: #ff6b35;
}

.info-email {
  display: inline-block;
  margin-top: 6px;
  color: #ff6b35;
  font-size: 14px;
  font-weight: 600;
}

.info-item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

/* ICON */

.info-icon {

  width: 54px;
  height: 54px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  font-size: 20px;
}

.info-icon.orange {
  background: #fff1ea;
  color: #ff6b35;
}

.info-icon.blue {
  background: #e7f8fb;
  color: #1ea7b6;
}

/* TEXT */

.info-content h4 {

  font-size: 16px;
  font-weight: 700;

  margin-bottom: 6px;
}

.info-content p,
.info-content span {

  font-size: 14px;
  color: #6b7280;

  line-height: 1.7;
}

.info-content a {

  display: inline-block;
  margin-top: 6px;

  color: #ff6b35;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;
}

/* SIDE ARROW */

.side-arrow {

  margin-left: auto;

  color: #9ca3af;
}

/* HELP BOX */

.help-box {

  padding: 28px;
  background: #f8fbfd;
}

.help-box h4 {

  font-size: 18px;
  margin-bottom: 14px;
}

.help-box p {

  font-size: 14px;
  line-height: 1.8;

  color: #6b7280;

  margin-bottom: 18px;
}

.help-box a {

  color: #1ea7b6;
  text-decoration: none;

  font-weight: 600;
}

/* MINI SUPPORT */

.mini-support-box {

  padding: 24px;

  background: #fff7f4;
}

.mini-support-box img {

  width: 100%;
  max-width: 220px;

  display: block;

  margin-bottom: 20px;
}

.mini-support-box h4 {

  font-size: 18px;
  margin-bottom: 10px;
}

.mini-support-box p {

  font-size: 14px;
  line-height: 1.8;

  color: #6b7280;
}

/* =========================================
   CHAT PAGE NEW DESIGN
========================================= */

.chat-page {
    background: #f8f7f5;
    color: #1f2937;
    min-height: 100vh;
    padding-bottom: 120px;
}

/* ===== HEADER ===== */

.chat-header {
    background: transparent;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.back-btn,
.edit-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #374151;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    text-decoration: none;
}

.provider-selector {
    background: white;
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.provider-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.provider-name img {
    width:200px;
    height: 40px;
    margin-right: 8px;
}

/* ===== MAIN CHAT ===== */

.chat-container {
    padding: 10px 18px 30px;
}

.date-separator {
    display: flex;
    justify-content: center;
    margin: 10px 0 24px;
}

.date-separator span {
    background: #fff1ea;
    color: #ff6b2c;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== MESSAGE AREA ===== */

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* BOT ROW */

.message.bot {
    align-self: flex-start;
    display: flex;
    align-items: flex-end;
    gap: 12px;

    background: transparent;
    padding: 0;
    max-width: 85%;
}

/* BOT AVATAR */

.message.bot::before {
    content: "";
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background:
        url('/assets/android-chrome-512x512.png')
        center/cover no-repeat;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* BOT BUBBLE */

.message.bot {
    color: #374151;
    line-height: 1.6;
}

.message.bot .bubble,
.message.bot {
    background: white;
    border-radius: 22px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* USER MESSAGE */

.message.user {
    align-self: flex-end;

    background: linear-gradient(
        135deg,
        #ff7a2f,
        #ff5b1f
    );

    color: white;
    border-radius: 18px;
    padding: 14px 22px;

    max-width: fit-content;

    font-weight: 500;

    box-shadow: 0 8px 20px rgba(255,106,44,0.25);
}

/* ===== QUICK REPLIES ===== */

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.quick-reply-btn {
    height: 52px;

    padding: 0 24px;

    border-radius: 999px;

    border: 2px solid #ff6b2c;

    background: white;

    color: #ff6b2c;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.quick-reply-btn:hover {
    transform: translateY(-2px);
    background: #fff4ef;
}

.quick-reply-btn.selected,
.quick-reply-btn.active {
    background: linear-gradient(
        135deg,
        #12b5cb,
        #0e9bb0
    );

    border-color: transparent;
    color: white;
}

/* ===== FOOTER ===== */

.chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

     z-index: 9999;

    background: rgba(248,247,245,0.95);

    padding: 16px 18px 24px;

    border: none;

    backdrop-filter: blur(12px);
}

/* INPUT */

.input-container {
    background: white;
    border-radius: 999px;
    padding: 8px;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.input-container input {
    flex: 1;
    border: none;
    background: transparent;

    font-size: 15px;
    color: #111827;

    padding: 12px 14px;

    outline: none;
}

.input-container input::placeholder {
    color: #9ca3af;
}

.footer-start-new-search {
    margin: 10px 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    color: #ff5a1f;
    border-radius: 0;
    padding: 2px 0;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-start-new-search:hover {
    background: transparent;
    color: #e64d16;
    transform: translateY(-1px);
    box-shadow: none;
}

.footer-start-new-search span:first-child {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff5a1f;
    color: white;
    line-height: 1;
    font-size: 15px;
    font-weight: 900;
}

/* ===== ACCOUNT SETTINGS PAGE ===== */
body.account-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: #111827;
    background: linear-gradient(135deg, #fff7f2 0%, #f7fbff 48%, #e9fbf8 100%);
}

.account-header,
.account-container {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.account-back-btn,
.profile-icon-btn {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #087f78;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    cursor: pointer;
}

.profile-icon-btn {
    width: 46px;
    height: 46px;
}

.account-kicker {
    margin: 0 0 4px;
    color: #ff5a2c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.account-container {
    display: grid;
    gap: 18px;
}

.account-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(8, 127, 120, 0.08);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.account-card-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.account-card-title > i {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #087f78;
    background: #e8faf7;
    font-size: 19px;
}

.account-card-title h2 {
    margin: 0 0 5px;
    color: #101828;
    font-size: 24px;
}

.account-card-title p,
.account-note {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-form label {
    display: grid;
    gap: 7px;
}

.account-form label span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-form input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #dfd4c8;
    border-radius: 16px;
    padding: 0 16px;
    color: #111827;
    background: #f3eee8;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.account-form input:focus {
    border-color: #087f78;
    box-shadow: 0 0 0 4px rgba(8, 127, 120, 0.12);
}

.account-primary-btn,
.social-login-btn {
    border: 0;
    border-radius: 16px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff5a2c, #08a99d);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(255, 90, 44, 0.18);
}

.account-primary-btn {
    justify-self: start;
    padding: 0 22px;
}

.account-message {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.account-message.success {
    color: #087f78;
}

.account-message.error {
    color: #dc2626;
}

.social-logins-card {
    display: grid;
    gap: 12px;
}

.social-login-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e6efed;
    border-radius: 18px;
    background: #fbfffd;
}

.social-login-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.social-login-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f7;
    color: #101828;
    font-size: 18px;
}

.social-login-icon-wrap.google { color: #4285f4; }
.social-login-icon-wrap.facebook { color: #1877f2; }
.social-login-icon-wrap.instagram { color: #c13584; }
.social-login-icon-wrap.x { color: #111827; }
.social-login-icon-wrap.telegram { color: #229ed9; }

.social-login-name,
.social-login-title {
    margin: 0 0 2px;
    color: #101828;
    font-weight: 900;
}

.social-login-status,
.social-login-subtitle {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.social-login-btn {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 0 18px;
}

.social-login-btn.disconnect {
    border: 1px solid #ff5a2c;
    background: #fff;
    color: #ff5a2c;
    box-shadow: none;
}

.social-login-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.telegram-connect-widget {
    flex: 0 0 auto;
    min-width: 132px;
    text-align: right;
}

.account-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
}

.account-links-card {
    padding: 10px;
}

.account-links-card a,
.account-links-card button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: 26px 1fr 18px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    color: #101828;
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account-links-card a:last-child,
.account-links-card button:last-child {
    border-bottom: 0;
}

.account-links-card i:first-child {
    color: #087f78;
}

.account-links-card i:last-child {
    color: #98a2b3;
}

@media (max-width: 700px) {
    body.account-page {
        padding: 16px;
    }

    .account-header {
        margin-bottom: 18px;
    }

    .account-back-btn {
        width: 46px;
        height: 46px;
    }

    .account-card {
        padding: 18px;
        border-radius: 22px;
    }

    .account-field-grid {
        grid-template-columns: 1fr;
    }

    .account-card-title h2 {
        font-size: 20px;
    }

    .account-primary-btn {
        width: 100%;
    }

    .social-login-item {
        align-items: stretch;
        flex-direction: column;
    }

    .social-login-btn,
    .telegram-connect-widget {
        width: 100%;
        min-width: 0;
    }
}

.footer-start-new-search span:not(:first-child) {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline;
    background: transparent;
    color: inherit;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* SEND BUTTON */

.send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;

    background: linear-gradient(
        135deg,
        #ff5a1f 0%,
        #ff7a2f 35%,
        #6d9f97 65%,
        #09b7c6 100%
    );

    color: white;
    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(255, 106, 44, 0.22),
        0 4px 14px rgba(9, 183, 198, 0.18);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.06);

    box-shadow:
        0 12px 24px rgba(255, 106, 44, 0.28),
        0 8px 20px rgba(9, 183, 198, 0.24);
}

.send-btn i {
    color: white;
}

/* ===== TYPING ===== */

.typing-indicator {
    background: white;
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.typing-indicator span {
    background: #ff6b2c;
}



/* ===== MOBILE HEADER ===== */

@media (max-width: 768px) {

  .main-header {
    padding: 18px 16px;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sign-in-btn {
    display: none;
  }

  .icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 20px rgba(0,0,0,0.06);

    position: relative;
  }

  .icon-btn i {
    font-size: 18px;
    color: #222;
  }

  .notification-dot {
    width: 7px;
    height: 7px;
    background: #ff6b2c;
    border-radius: 50%;

    position: absolute;
    top: 13px;
    right: 13px;
  }

  .burger-btn i {
    font-size: 17px;
  }

  .home-page .burger-btn{
    display: flex !important;
  }

}

.home-page .burger-btn {
    display: none;
}

/* ===== MOBILE MENU ===== */

.mobile-menu {

    position: fixed;

    top: 90px;
    left: 16px;
    right: 16px;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(18px);

    border-radius: 28px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    z-index: 999;

    box-shadow:
        0 12px 40px rgba(0,0,0,0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: all 0.25s ease;
}

/* OPEN */

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LINKS */

.mobile-menu a {

    text-decoration: none;

    color: #111827;

    font-size: 17px;
    font-weight: 600;

    padding: 14px 18px;

    border-radius: 16px;

    transition: 0.2s;
}

.mobile-menu a:hover {
    background: #f7f7f7;
}

.mobile-menu a.active {
    color: #ff5a1f;
    background: #fff3ee;
}

/* SIGN IN */

.mobile-signin-btn {

    margin-top: 8px;

    display: flex;
    align-items: center;
    gap: 10px;

    justify-content: center;

    height: 54px;

    background: linear-gradient(
        135deg,
        #ff6b2c,
        #ff5a1f
    );

    color: white !important;
}

/* DESKTOP */

@media (min-width: 769px) {

    .mobile-menu {
        display: none;
    }

}

/* ===== MOBILE HERO ===== */

@media (max-width: 768px) {

    .hero {

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 24px 18px 10px;

        gap: 14px;
    }

    .hero-left {
        width: 48%;
    }

    .hero-right {
        width: 52%;

        display: flex;
        justify-content: center;
    }

    .hero-right img {

        width: 100%;
        max-width: 250px;

        object-fit: contain;
    }

    .hero-left h1 {

        font-size: 56px;

        line-height: 0.95;

        letter-spacing: -2px;

        margin-bottom: 18px;
    }

    .hero-left h1 span {
        display: inline;
    }

    .subtitle {

        font-size: 16px;
        line-height: 1.8;

        color: #6b7280;

        max-width: 100%;
    }

}

@media (max-width: 768px) {

    .search-wrapper {

        padding: 0 18px;

        margin-top: 12px;
    }

    .search-box {

        width: 100%;

        padding: 22px;

        border-radius: 28px;

        background: white;

        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

    .search-title {

        font-size: 17px;
        font-weight: 700;

        margin-bottom: 20px;

        line-height: 1.4;
    }

    .search-row {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 14px;
    }

    .search-item {

        min-height: 88px;

        padding: 14px;

        border-radius: 18px;

        border: 1px solid #ececec;

        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-dropdown-menu {
        min-width: min(320px, calc(100vw - 56px));
        left: 0;
        right: auto;
    }

    .search-row .search-dropdown:nth-child(2) .search-dropdown-menu,
    .search-row .search-dropdown:nth-child(4) .search-dropdown-menu {
        left: auto;
        right: 0;
    }

    .search-item i:first-child {
        font-size: 20px;
    }

    .search-item small {

        display: block;

        font-size: 12px;

        color: #9ca3af;

        margin-bottom: 4px;
    }

    .search-item span {

        font-size: 16px;
        font-weight: 600;

        line-height: 1.4;
    }

    .dropdown-icon {
        font-size: 14px;
    }

    .search-btn {

        grid-column: 1 / -1;

        width: 100%;

        height: 64px;

        border-radius: 18px;

        margin-top: 4px;

        font-size: 17px;
        font-weight: 700;
    }

}
@media (max-width: 768px) {

    .courses {
        padding: 40px 0;
        overflow: hidden;
    }

    .section-subtitle {

        text-align: center;

        font-size: 12px;
        letter-spacing: 3px;

        margin-bottom: 10px;
    }

    .section-title {

        text-align: center;

        font-size: 42px;

        line-height: 1.2;

        margin-bottom: 30px;

        padding: 0 20px;
    }

    /* ===== CAROUSEL ===== */

    .course-grid {

    display: flex;

    gap: 18px;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scroll-padding-left: 20px;

    padding: 10px 20px 20px 20px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

    .course-grid::-webkit-scrollbar {
        display: none;
    }

    /* ===== CARD ===== */

    .course-card {

        min-width: 300px;

        width: 300px;

        flex-shrink: 0;

        scroll-snap-align: start;

        border-radius: 32px;

        padding: 26px;

        background: white;

        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .course-card:first-child {
    margin-left: 0;
}
    .course-card h3 {

        font-size: 26px;

        line-height: 1.25;

        margin-bottom: 8px;
    }

    .course-card p {

        font-size: 16px;

        line-height: 1.8;

        color: #6b7280;

        margin: 20px 0 28px;
    }

    .icon-circle {

        width: 110px;
        height: 110px;

        margin: 18px auto 24px;
    }

    .icon-circle i {
        font-size: 42px;
    }

    /* ===== FOOTER ===== */

    .card-footer {

        display: flex;

        flex-direction: column;

        gap: 14px;

        position: relative;
    }

    .card-footer div {

        display: flex;

        align-items: center;

        gap: 10px;

        font-size: 15px;
    }

    .arrow-btn {

        position: absolute;

        right: 0;
        bottom: 0;

        width: 58px;
        height: 58px;

        border-radius: 50%;
    }

}

@media (max-width: 768px) {

    .benefits {

        padding: 42px 0 120px;

        overflow: hidden;
    }

    .benefits-subtitle {

        text-align: center;

        font-size: 12px;
        letter-spacing: 2px;

        margin-bottom: 10px;
    }

    .benefits-title {

        text-align: center;

        font-size: 40px;

        line-height: 1.2;

        margin-bottom: 28px;

        padding: 0 20px;
    }

    /* ===== CAROUSEL ===== */

    .benefits-grid {

        display: flex;

        gap: 18px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        padding: 10px 20px 20px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .benefits-grid::-webkit-scrollbar {
        display: none;
    }

    /* ===== CARD ===== */

    .benefit {

        min-width: 280px;

        width: 280px;

        flex-shrink: 0;

        scroll-snap-align: start;

        padding: 24px;

        border-radius: 28px;

        background: white;

        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    /* ICON */

    .benefit-icon {

        width: 72px;
        height: 72px;

        border-radius: 22px;

        margin-bottom: 22px;
    }

    .benefit-icon i {

        font-size: 28px;
    }

    /* TITLE */

    .benefit h4 {

        font-size: 28px;

        line-height: 1.25;

        margin-bottom: 16px;
    }

    /* TEXT */

    .benefit p {

        font-size: 16px;

        line-height: 1.9;

        color: #6b7280;
    }

}
@media (max-width: 768px) {

    .stats {

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 10px;

        margin-top: 28px;

        padding: 0 16px;

        align-items: start;
    }

    .first-grid {
      display: grid;

        grid-template-columns: repeat(4, 1fr);
    }

    .divider {
        display: none;
    }

    .stat {

        display: flex;

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 10px;
    }

    .stat i {

        font-size: 24px;
    }

    .stat div {

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 4px;
    }

    .stat strong {

        font-size: 24px;

        line-height: 1.2;

        color: #111827;
    }

    .stat span {

        font-size: 13px;

        line-height: 1.6;

        color: #6b7280;
    }

}

/* ===== MOBILE BOTTOM NAV ===== */

.mobile-bottom-nav {

    position: fixed;

    left: 12px;
    right: 12px;
    bottom: 10px;

    height: 72px;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(18px);

    border-radius: 22px;

    display: none;

    align-items: center;
    justify-content: space-around;

    z-index: 9999;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.08);

    border: 1px solid rgba(255,255,255,0.6);
}

/* ITEM */

.mobile-nav-item {

    text-decoration: none;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #9ca3af;

    min-width: 62px;

    transition: 0.25s ease;
}

/* ICON */

.mobile-nav-item i {

    font-size: 20px;
}

/* TEXT */

.mobile-nav-item span {

    font-size: 11px;

    font-weight: 500;

    line-height: 1;
}

/* ACTIVE */

.mobile-nav-item.active {

    color: #ff5a1f;
}

.mobile-nav-item.active i {

    transform: translateY(-1px);
}

/* SHOW ONLY ON MOBILE */

@media (max-width: 768px) {

    .mobile-bottom-nav {
        display: flex;
    }

}

/* =========================================
   ABOUT PAGE MOBILE
========================================= */

@media (max-width: 768px) {

    /* ===== HEADER ===== */

    .main-header {
        padding: 18px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .main-header .sign-in-btn,
    .main-header .home-bookings-btn,
    .main-header .home-logout-btn {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .logo img {
        width: 150px;
    }

    /* ===== HERO ===== */

    .about-hero {
        flex-direction: column;
        padding: 20px 18px 40px;
        gap: 30px;
        text-align: left;
    }

    .about-left {
        width: 100%;
        order: 1;
    }

    .about-right {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .about-right img {
        width: 100%;
        max-width: 320px;
    }

    .about-tag {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .about-left h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .about-left h1 span {
        display: inline;
    }

    .about-description {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 14px;
    }

    /* ===== COMMON SECTION STYLES ===== */

    .student-problems,
    .our-solution,
    .why-choose {
        padding: 50px 18px;
    }

    .problems-title,
    .solution-title,
    .why-title {
        font-size: 34px;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 16px;
    }

    .problems-description,
    .solution-description {
        font-size: 16px;
        line-height: 1.8;
        text-align: center;
        margin-bottom: 30px;
    }

    /* ===== PROBLEMS CAROUSEL ===== */

    .problems-box {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .problems-box::-webkit-scrollbar {
        display: none;
    }

    .problem-item {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 26px;
    }

    /* ===== SOLUTION CAROUSEL ===== */

    .solution-box {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .solution-box::-webkit-scrollbar {
        display: none;
    }

    .solution-item {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 26px;
    }

    /* ===== WORLDWIDE ===== */

    .worldwide-section {
        flex-direction: column;
        padding: 30px 18px;
        gap: 30px;
        text-align: center;
    }

    .worldwide-left {
        width: 100%;
    }

    .worldwide-left h3 {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .worldwide-left p {
        font-size: 16px;
        line-height: 1.8;
    }

    .worldwide-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .world-stat {
        padding: 24px;
        border-radius: 24px;
    }

    /* ===== WHY CHOOSE ===== */

    .why-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .why-grid::-webkit-scrollbar {
        display: none;
    }

    .why-item {
        min-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 24px;
    }

    /* ===== SUPPORT CTA ===== */

    .support-cta {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        margin: 20px 18px 100px;
        border-radius: 28px;
        text-align: center;
    }

    .support-image img {
        width: 100%;
        max-width: 280px;
    }

    .support-content h2 {
        font-size: 34px;
        margin-bottom: 14px;
    }

    .support-content p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 22px;
    }

    .support-btn {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================
   CONTACT PAGE MOBILE
========================================= */

@media (max-width: 768px) {

    /* ===== HERO ===== */

    .contact-hero {
        flex-direction: column;
        padding: 20px 18px 40px;
        gap: 30px;
        text-align: left;
    }

    .contact-left {
        width: 100%;
        order: 1;
    }

    .contact-right {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .contact-right img {
        width: 100%;
        max-width: 320px;
    }

    .contact-tag {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .contact-left h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .contact-description {
        font-size: 16px;
        line-height: 1.8;
    }

    /* ===== MAIN CONTENT ===== */

    .contact-content {
      display:flex !important;
        flex-direction: column !important;
        gap: 24px;
        padding: 0 18px 80px;
    }

    /* ===== FORM CARD ===== */

    .contact-form-card {
        width: 100%;
        padding: 24px;
        border-radius: 28px;
    }

    .contact-form-card h3 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .contact-form {
        gap: 18px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .select-wrapper select {
        font-size: 15px;
        padding: 16px;
        border-radius: 16px;
    }

    .form-group textarea {
        min-height: 140px;
        resize: none;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        border-radius: 18px;
        margin-top: 10px;
    }

    /* ===== RIGHT SIDE ===== */

    .contact-side {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-side h3 {
        font-size: 28px;
        text-align: center;
    }

    /* ===== INFO CARD ===== */

    .contact-info-card {
        padding: 22px;
        border-radius: 28px;
    }

    .info-item {
        gap: 14px;
        align-items: flex-start;
        padding: 18px 0;
    }

    .info-icon {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .info-content h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .info-content p,
    .info-content span,
    .info-content a {
        font-size: 14px;
        line-height: 1.6;
    }

    .side-arrow {
        display: none;
    }

    /* ===== HELP BOX ===== */

    .help-box {
        padding: 24px;
        border-radius: 28px;
        text-align: left;
    }

    .help-box h4 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .help-box p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .help-box a {
        font-size: 15px;
    }

    /* ===== MINI SUPPORT ===== */

    .mini-support-box {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        border-radius: 28px;
        gap: 18px;
    }

    .mini-support-box img {
        width: 100%;
        max-width: 220px;
    }

    .mini-support-box h4 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .mini-support-box p {
        font-size: 15px;
        line-height: 1.7;
    }

}

/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {

    position: fixed;

    top: 82px;
    left: 16px;
    right: 16px;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(18px);

    border-radius: 28px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    z-index: 9999;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: 0.25s ease;
}

/* OPEN STATE */

.mobile-menu.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

/* LINKS */

.mobile-menu a {

    text-decoration: none;

    color: #111827;

    font-size: 16px;

    font-weight: 500;

    padding: 14px 16px;

    border-radius: 16px;

    transition: 0.2s ease;
}

.mobile-menu a:hover {

    background: #f3f4f6;
}

/* ACTIVE */

.mobile-menu a.active {

    background: rgba(255, 90, 31, 0.12);

    color: #ff5a1f;

    font-weight: 600;
}

/* SIGN IN BUTTON */

.mobile-signin-btn {

    margin-top: 10px;

    background: linear-gradient(
        135deg,
        #ff7a1a,
        #ff5a1f
    ) !important;

    color: white !important;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-weight: 600;
}

/* DESKTOP */

@media (min-width: 769px) {

    .mobile-menu {
        display: none;
    }

}

/* ===== LOGIN PAGE ===== */

.registration-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background:
        radial-gradient(circle at top left,
        rgba(255, 102, 0, 0.12),
        transparent 30%),

        radial-gradient(circle at top right,
        rgba(0, 191, 255, 0.12),
        transparent 30%),

        #f6f7fb;
}

/* CARD */

.registration-form {

    width: 100%;
    max-width: 430px;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.6);

    border-radius: 34px;

    padding: 42px 34px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.08),
        inset 0 1px 1px rgba(255,255,255,0.7);

    text-align: center;

    position: relative;
    overflow: hidden;
}

/* TOP GLOW */

.registration-form::before {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    background: linear-gradient(
        135deg,
        rgba(255,102,0,0.18),
        rgba(0,191,255,0.18)
    );

    border-radius: 50%;

    top: -120px;
    right: -100px;

    z-index: 0;
}

.registration-form * {
    position: relative;
    z-index: 2;
}

/* TITLE */

.registration-form h2 {

    font-size: 38px;
    line-height: 1.1;

    margin-bottom: 10px;

    color: #111827;
    font-weight: 800;
}

.registration-form h2 span {

    background: linear-gradient(
        90deg,
        #ff5a1f,
        #11b8d8
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SUBTITLE */

.auth-subtitle {

    font-size: 15px;
    color: #6b7280;

    margin-bottom: 32px;
}

/* INPUTS */

.registration-form input {

    width: 100%;

    height: 58px;

    border-radius: 18px;

    border: 1px solid #e5e7eb;

    background: rgba(255,255,255,0.85);

    padding: 0 18px;

    font-size: 15px;

    outline: none;

    margin-bottom: 16px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}

.registration-form input:focus {

    border-color: #11b8d8;

    box-shadow:
        0 0 0 4px rgba(17,184,216,0.12);

    transform: translateY(-1px);
}

.registration-form input::placeholder {
    color: #9ca3af;
}

/* MAIN BUTTON */

.registration-form button {

    width: 100%;
    height: 58px;

    border: none;

    border-radius: 18px;

    background: linear-gradient(
        90deg,
        #ff5a1f 0%,
        #ff6b3d 30%,
        #17b8d9 100%
    );

    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s,
        box-shadow 0.2s;

    margin-top: 6px;

    box-shadow:
        0 10px 24px rgba(255,90,31,0.22);
}

.registration-form button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(23,184,217,0.24);
}

button.forgot-password-link {
    width: auto !important;
    height: auto !important;
    display: block;
    margin: -4px 0 14px auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ff5a1f !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

button.forgot-password-link:hover {
    transform: none;
    box-shadow: none !important;
    text-decoration: underline;
}

.forgot-password-panel {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(255, 90, 31, 0.18);
    border-radius: 18px;
    background: #fff8f4;
    text-align: left;
}

.forgot-password-panel[hidden] {
    display: none !important;
}

.forgot-password-panel p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.forgot-password-panel input {
    margin-bottom: 0;
}

.forgot-password-panel button {
    height: 48px;
    margin-top: 0;
    border-radius: 15px;
}

.forgot-password-panel button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.forgot-password-message {
    color: #087f78 !important;
    font-weight: 800;
}

.forgot-password-message.error {
    color: #dc2626 !important;
}

/* DIVIDER */

.divider {

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 28px 0;

    color: #9ca3af;

    font-size: 14px;
}

.divider::before,
.divider::after {

    content: "";

    flex: 1;
    height: 1px;

    background: #e5e7eb;
}

/* SOCIAL BUTTONS */

.btn-secondary {

    width: 100%;

    height: 54px;

    border-radius: 18px;

    border: 1px solid #e5e7eb;

    background: rgba(255,255,255,0.9);

    color: #111827;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    margin-bottom: 14px;

    transition:
        transform 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.btn-secondary:hover {

    transform: translateY(-2px);

    border-color: #11b8d8;

    box-shadow:
        0 8px 20px rgba(17,184,216,0.12);
}

/* FOOTER */

.auth-footer {

    margin-top: 18px;

    font-size: 14px;

    color: #6b7280;
}

.auth-footer a {

    color: #ff5a1f;

    font-weight: 700;

    text-decoration: none;
}

/* TELEGRAM */

.telegram-btn {

    padding: 0 !important;
    overflow: hidden;
}

/* MOBILE */

@media (max-width: 768px) {

    .registration-container {
        padding: 20px;
    }

    .registration-form {

        padding: 34px 22px;

        border-radius: 28px;
    }

    .registration-form h2 {
        font-size: 32px;
    }
}

/* =========================================
   CHAT: COMPACT PHONE LAYOUT
========================================= */

@media (max-width: 600px) {
    html,
    body.chat-page {
        width: 100%;
        overflow-x: hidden;
    }

    body.chat-page {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
        background: #f7f5f1;
    }

    .chat-header {
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
        gap: 8px;
        background: rgba(247, 245, 241, 0.9);
        box-shadow: 0 1px 0 rgba(17, 24, 39, 0.05);
    }

    .back-btn,
    .edit-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 15px;
    }

    .chat-header-center,
    .provider-selector,
    .provider-name {
        min-width: 0;
    }

    .provider-selector {
        max-width: 100%;
        padding: 8px 12px;
        gap: 6px;
    }

    .provider-name {
        display: flex;
        align-items: center;
    }

    .provider-name img {
        width: min(156px, 43vw);
        height: 30px;
        margin-right: 0;
        object-fit: contain;
    }

    .chat-container {
        width: 100%;
        min-height: auto;
        padding: 6px 12px 26px;
    }

    .date-separator {
        margin: 8px 0 18px;
    }

    .date-separator span {
        padding: 5px 12px;
        font-size: 11px;
    }

    .chat-messages {
        gap: 14px;
        margin-bottom: 14px;
    }

    .message.bot {
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .message.bot::before {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .message.bot .bubble {
        width: fit-content;
        max-width: calc(100% - 42px);
        padding: 13px 15px;
        border-radius: 18px 18px 18px 6px;
        font-size: 14px;
        line-height: 1.55;
        box-shadow: 0 3px 14px rgba(42, 35, 28, 0.06);
    }

    .message.user {
        max-width: 84%;
        padding: 11px 15px;
        border-radius: 18px 18px 6px 18px;
        font-size: 14px;
        line-height: 1.45;
    }

    .quick-replies {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin: 18px 0 10px 42px;
    }

    .quick-reply-btn {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        height: auto;
        padding: 9px 10px;
        justify-content: center;
        text-align: center;
        font-size: 13px;
        line-height: 1.25;
        border-width: 1.5px;
    }

    .quick-reply-btn:only-child,
    .quick-reply-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .chat-footer {
        padding: 9px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(247, 245, 241, 0.94);
        border-top: 1px solid rgba(17, 24, 39, 0.05);
        box-shadow: 0 -8px 24px rgba(42, 35, 28, 0.06);
    }

    .input-container {
        min-height: 54px;
        padding: 5px 6px 5px 10px;
        gap: 6px;
        box-shadow: 0 5px 18px rgba(42, 35, 28, 0.08);
    }

    .input-container input {
        min-width: 0;
        padding: 10px 8px;
        font-size: 16px;
    }

    .send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    /* School result messages use the full phone width. */
    .message.bot:has(.school-result-card)::before {
        display: none;
    }

    .message.bot:has(.school-result-card) .bubble {
        width: 100%;
        max-width: 100%;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .school-result-card {
        width: 100%;
        border-radius: 22px !important;
        margin-bottom: 14px !important;
    }

    .school-result-card > div:first-child {
        height: 138px !important;
    }

    .school-result-card > div:nth-child(2) {
        gap: 11px !important;
        padding: 12px !important;
        margin-top: -48px !important;
    }

    .school-result-card > div:nth-child(2) > div:first-child {
        width: 86px !important;
        height: 86px !important;
        border-radius: 18px !important;
    }

    .school-result-card > div:nth-child(2) > div:nth-child(2) {
        min-width: 0;
        margin-top: 30px !important;
        padding-top: 0 !important;
    }

    .school-result-card > div:nth-child(2) > div:nth-child(2) > div {
        overflow-wrap: anywhere;
    }

    .school-result-card .school-card-tabs button {
        min-width: 0;
        padding: 13px 6px !important;
        font-size: 11px;
        line-height: 1.25;
    }

    .school-result-card .mobile-school-advantages {
        display: flex !important;
    }

    .school-result-card .mobile-school-open-action {
        display: block !important;
    }

    .school-result-card.mobile-expanded .mobile-school-open-action {
        display: none !important;
    }

    .school-result-card:not(.mobile-expanded) .school-card-tabs,
    .school-result-card:not(.mobile-expanded) .mobile-school-stepper,
    .school-result-card:not(.mobile-expanded) [id$="-content-courses"],
    .school-result-card:not(.mobile-expanded) [id$="-content-accommodations"],
    .school-result-card:not(.mobile-expanded) .school-terms-strip,
    .school-result-card:not(.mobile-expanded) .school-card-footer {
        display: none !important;
    }

    .school-result-card.mobile-expanded .school-card-tabs {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    .school-result-card.mobile-expanded .mobile-school-stepper {
        display: flex !important;
    }

    .school-result-card.mobile-expanded .mobile-course-continue-wrap {
        display: block !important;
    }

    .school-result-card.mobile-expanded [id$="-content-courses"][style*="none"] .mobile-course-continue-wrap,
    .school-result-card.mobile-expanded [id$="-content-accommodations"][style*="none"] .mobile-accommodation-continue-wrap {
        display: none !important;
    }

    .mobile-school-stepper {
        align-items: flex-start;
    }

    .mobile-school-advantage span:last-child {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .school-result-card input[type="text"] {
        padding: 13px 14px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    .course-row,
    .accommodation-row {
        padding: 13px !important;
        gap: 10px !important;
    }

    .course-title {
        font-size: 15px !important;
    }

    .course-duration-inline {
        font-size: 12px !important;
    }

    .course-row .course-row-selection {
        max-width: 44%;
        gap: 9px !important;
    }

    .course-row .course-price {
        font-size: 14px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .course-row .course-checkbox {
        flex: 0 0 auto;
    }

    .school-result-card > div:last-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
        padding: 14px !important;
    }

    .school-result-card > div:last-child > div:last-child {
        display: grid !important;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 8px !important;
        width: 100%;
    }

    .school-result-card > div:last-child a,
    .school-result-card > div:last-child button {
        padding: 11px 8px !important;
        text-align: center;
        font-size: 13px;
    }

    /* Booking modal becomes a bottom sheet on phones. */
    #school-booking-modal-overlay > div {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    #school-booking-modal-overlay > div > div {
        width: 100% !important;
        max-height: 94dvh !important;
        border-radius: 24px 24px 0 0 !important;
    }

    #school-booking-modal-overlay > div > div > div:first-child {
        padding: 18px 18px 14px !important;
    }

    #school-booking-modal-overlay > div > div > div:last-child {
        padding: 18px !important;
    }

    #school-booking-modal-overlay [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    #school-booking-modal-overlay select,
    #school-booking-modal-overlay input {
        font-size: 16px !important;
    }

    #school-booking-modal-overlay button {
        min-height: 48px;
        padding: 12px 10px !important;
        font-size: 14px !important;
    }

    .phone-modal-content {
        width: calc(100% - 28px);
        max-height: 92dvh;
        overflow-y: auto;
        padding: 22px 18px;
    }
}

@media (max-width: 360px) {
    .quick-replies {
        grid-template-columns: 1fr;
    }

    .quick-reply-btn,
    .quick-reply-btn:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .provider-name img {
        width: 132px;
    }
}

/* =========================================
   MOBILE QA OVERRIDES — chat + long languages
========================================= */

body.chat-page {
    --chat-footer-height: 108px;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.chat-page .chat-header {
    flex: 0 0 auto;
}

.chat-page .chat-container {
    height: calc(100dvh - 84px - var(--chat-footer-height));
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
}

.chat-page .chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-page .chat-messages::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.chat-page .quick-replies {
    flex: 0 0 auto;
    max-height: 38dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 2px 28px;
    margin-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-page .quick-replies::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.chat-page .chat-footer {
    min-height: var(--chat-footer-height);
    box-shadow: 0 -4px 18px rgba(42, 35, 28, 0.05);
}

@media (max-width: 600px) {
    .chat-page .chat-header {
        height: 64px;
        padding-top: calc(8px + env(safe-area-inset-top));
        background: #f7f5f1;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .chat-page .chat-container {
        height: calc(100dvh - 64px - var(--chat-footer-height) - env(safe-area-inset-bottom));
        padding: 4px 10px 4px;
    }

    .chat-page .chat-messages {
        gap: 10px;
        padding-bottom: 4px;
    }

    .chat-page .message {
        margin-bottom: 0;
    }

    .chat-page .date-separator {
        margin: 4px 0 10px;
    }

    .chat-page .message.bot {
        max-width: 100%;
        width: 100%;
        display: block;
    }

    .chat-page .message.bot::before {
        display: none !important;
    }

    .chat-page .message.bot .bubble {
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(42, 35, 28, 0.05);
        overflow-wrap: anywhere;
    }

    .chat-page .message.user {
        max-width: 92%;
        overflow-wrap: anywhere;
    }

    .chat-page .quick-replies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 6px 0 0;
        gap: 8px;
        max-height: 42dvh;
        padding: 10px 2px 22px;
    }

    .chat-page .quick-reply-btn {
        min-height: 48px;
        padding: 10px 9px;
        font-size: 12px;
        gap: 6px;
        white-space: normal;
        overflow: visible;
        transform: none;
    }

    .chat-page .quick-reply-btn:hover {
        transform: none;
        box-shadow: 0 5px 14px rgba(255, 92, 46, 0.12);
    }

    .chat-page .quick-reply-btn img {
        flex: 0 0 auto;
    }

    .chat-page .chat-footer {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: #f7f5f1;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .chat-page .footer-start-new-search {
        margin-top: 6px;
        margin-left: 12px;
        font-size: 12px;
    }

    .chat-page .footer-start-new-search span:first-child {
        width: 16px;
        height: 16px;
        font-size: 13px;
    }

    .chat-page .input-container {
        min-height: 50px;
        box-shadow: 0 3px 14px rgba(42, 35, 28, 0.07);
    }

    .chat-page .send-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}

@media (max-width: 380px) {
    .school-result-card .mobile-school-advantages {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .school-result-card .mobile-school-advantage {
        flex-direction: column !important;
        gap: 5px !important;
        padding: 0 4px !important;
        text-align: center !important;
    }

    .school-result-card .mobile-school-advantage-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 15px !important;
    }

    .school-result-card .mobile-school-advantage span:last-child {
        max-width: 76px;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding: 18px 16px 8px;
        gap: 8px;
        overflow: hidden;
        position: relative;
    }

    .hero-left {
        width: 100%;
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .hero-right {
        position: absolute;
        right: 12px;
        top: 96px;
        width: 34%;
        max-width: 150px;
        pointer-events: none;
    }

    .hero-right img {
        max-width: 100%;
        transform: none;
    }

    .hero-left h1,
    .hero h1 {
        max-width: 76%;
        font-size: clamp(32px, 9.2vw, 44px);
        line-height: 0.98;
        letter-spacing: -1.4px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }

    .hero-left h1 span {
        display: inline;
    }

    .subtitle {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.45;
    }

    .search-box {
        margin-top: 8px;
    }

    .mobile-bottom-nav,
    .bottom-nav {
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 8px 22px rgba(16, 24, 47, 0.08) !important;
    }

    .btn-primary,
    .find-class-btn,
    .why-malta-cta {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero-left {
        width: 100%;
    }

    .hero-right {
        width: 32%;
        right: 10px;
        top: 100px;
    }

    .hero-right img {
        max-width: 118px;
        transform: none;
    }

    .hero-left h1,
    .hero h1 {
        max-width: 78%;
        font-size: clamp(30px, 8.8vw, 35px);
        letter-spacing: -1px;
    }

    .chat-page .quick-replies {
        grid-template-columns: 1fr;
    }
}

/* Mobile layout polish: center stats/search and keep CTA aligned */
@media (max-width: 768px) {
    .stats-section .stats {
        display: grid !important;
        width: min(100%, 340px) !important;
        margin: 22px auto 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        justify-items: center !important;
        align-items: start !important;
    }

    .stats-section .first-grid {
        grid-template-columns: repeat(2, minmax(110px, 1fr)) !important;
        max-width: 280px !important;
        gap: 16px 18px !important;
    }

    .stats-section > .stats:not(.first-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 340px !important;
        gap: 8px !important;
    }

    .stats-section .divider {
        display: none !important;
    }

    .stats-section .stat {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .stats-section .stat > div:not(.stats-icon) {
        width: 100% !important;
        text-align: center !important;
    }

    .stats-section .stat strong {
        font-size: clamp(18px, 6vw, 24px) !important;
        line-height: 1.05 !important;
    }

    .stats-section .stat span {
        display: block !important;
        max-width: 104px !important;
        margin: 0 auto !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    .benefits .cta-btn {
        display: flex;
        width: max-content;
        max-width: calc(100% - 32px);
        margin: 20px auto 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .search-wrapper {
        display: flex;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 375px) {
    .stats-section .first-grid {
        max-width: 260px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stats-section > .stats:not(.first-grid) {
        max-width: 300px !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .stats-section .stat span {
        max-width: 86px !important;
        font-size: 10px !important;
    }
}

/* About page mobile: prevent sideways page drift and keep long translations visible */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-hero,
    .student-problems,
    .our-solution,
    .worldwide-section,
    .why-choose,
    .support-cta {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .about-left,
    .about-description {
        max-width: 100%;
        min-width: 0;
    }

    .about-left h1 {
        max-width: 100%;
        font-size: clamp(31px, 9.4vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.8px;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }

    .about-description {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 390px) {
    .about-hero {
        padding: 18px 14px 28px !important;
        gap: 18px !important;
    }

    .about-left h1 {
        font-size: clamp(29px, 9vw, 34px) !important;
        line-height: 1.01 !important;
    }

    .about-description {
        margin-top: 14px !important;
        font-size: 13px !important;
        line-height: 1.48 !important;
    }

    .about-right img {
        max-width: 280px !important;
    }
}

/* Final homepage mobile polish: keep translated text and controls inside cards */
@media (max-width: 768px) {
    .hero {
        min-height: 292px;
        padding-left: 18px !important;
        padding-right: 18px !important;
        overflow: hidden;
    }

    .hero-right {
        width: 48% !important;
        max-width: 210px !important;
        right: -10px !important;
        top: 108px !important;
        opacity: 0.98;
        z-index: 1;
    }

    .hero-right img {
        width: 100% !important;
        max-width: 210px !important;
        transform: rotate(-2deg);
    }

    .hero-left h1,
    .hero h1 {
        max-width: 76% !important;
        position: relative;
        z-index: 2;
    }

    .hero-left .subtitle,
    .hero .subtitle {
        max-width: 66% !important;
        position: relative;
        z-index: 2;
    }

    .search-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    .search-box {
        max-width: calc(100vw - 24px) !important;
        padding: 20px 14px !important;
        box-sizing: border-box;
        overflow: visible;
    }

    .search-row {
        width: 100%;
        box-sizing: border-box;
    }

    .search-item {
        min-width: 0;
        box-sizing: border-box;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .search-item > div {
        min-width: 0;
    }

    .search-item span {
        display: block;
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.25 !important;
    }

    .search-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: clamp(13px, 3.9vw, 16px) !important;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .stats-section .stat strong[data-i18n="home.stat_trusted"] {
        font-size: clamp(15px, 4.8vw, 19px) !important;
        line-height: 1.05 !important;
        max-width: 92px;
        margin: 0 auto;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
    }
}

@media (max-width: 390px) {
    .hero {
        min-height: 274px;
    }

    .hero-right {
        width: 48% !important;
        max-width: 184px !important;
        right: -14px !important;
        top: 112px !important;
    }

    .hero-right img {
        max-width: 184px !important;
    }

    .hero-left h1,
    .hero h1 {
        max-width: 76% !important;
    }

    .hero-left .subtitle,
    .hero .subtitle {
        max-width: 66% !important;
    }

    .search-box {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .search-row {
        gap: 12px !important;
    }

    .search-item {
        min-height: 82px !important;
        gap: 9px !important;
    }
}

@media (max-width: 360px) {
    .hero-right {
        width: 46% !important;
        max-width: 154px !important;
        right: -18px !important;
        top: 120px !important;
    }

    .hero-right img {
        max-width: 154px !important;
    }

    .hero-left h1,
    .hero h1 {
        max-width: 76% !important;
        font-size: clamp(29px, 8.4vw, 33px) !important;
    }

    .stats-section .stat strong[data-i18n="home.stat_trusted"] {
        font-size: 15px !important;
    }
}

/* /chat-mobile experiment: clearer searchable mobile select lists for school cards */
@media (max-width: 768px) {
    body.chat-mobile-select-page .school-card {
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    body.chat-mobile-select-page .mobile-school-select-control {
        width: calc(100% - 32px);
        margin: 16px 16px 0;
        min-height: 62px;
        border: 1px solid #d9d9d9;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
        padding: 10px 14px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
        align-items: center;
        text-align: left;
        cursor: pointer;
        color: #1f2937;
    }

    body.chat-mobile-select-page .mobile-school-select-label {
        grid-column: 1 / -1;
        color: #8a8f98;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    body.chat-mobile-select-page .mobile-school-select-value {
        min-width: 0;
        display: flex;
        align-items: baseline;
        gap: 10px;
        color: #111827;
        font-size: 18px;
        font-weight: 900;
        line-height: 1.15;
    }

    body.chat-mobile-select-page .mobile-school-select-value span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.chat-mobile-select-page .mobile-school-select-value strong {
        color: #0e7a73;
        font-size: 15px;
        white-space: nowrap;
    }

    body.chat-mobile-select-page .mobile-school-select-arrow {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f2f7f6;
        color: #0e7a73;
        font-size: 22px;
        font-weight: 900;
        transition: transform 0.18s ease;
    }

    body.chat-mobile-select-page .mobile-select-open .mobile-school-select-arrow {
        transform: rotate(180deg);
    }

    body.chat-mobile-select-page .mobile-school-select-menu {
        display: none;
        position: fixed;
        left: 14px;
        right: 14px;
        top: calc(72px + env(safe-area-inset-top));
        max-height: calc(100dvh - 122px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        z-index: 10050;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 20px 54px rgba(15, 23, 42, 0.28);
        overflow: hidden;
        border: 1px solid #e5e7eb;
    }

    body.chat-mobile-select-page .mobile-select-open .mobile-school-select-menu {
        display: flex;
        flex-direction: column;
    }

    body.chat-mobile-select-page .mobile-school-select-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 10040;
        background: rgba(15, 23, 42, 0.38);
        backdrop-filter: blur(2px);
    }

    body.chat-mobile-select-page .mobile-select-open .mobile-school-select-backdrop {
        display: block;
    }

    body.chat-mobile-select-page.mobile-select-modal-open {
        overflow: hidden;
    }

    body.chat-mobile-select-page .mobile-school-select-menu-header {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 14px 16px !important;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }

    body.chat-mobile-select-page .mobile-school-select-menu-header strong {
        font-size: 18px;
        font-weight: 900;
        color: #111827;
    }

    body.chat-mobile-select-page .mobile-school-select-close {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: #fff;
        color: #111827;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.10);
    }

    body.chat-mobile-select-page .mobile-school-select-menu > div:not(.mobile-school-select-menu-header) {
        padding: 0 !important;
    }

    body.chat-mobile-select-page .mobile-school-select-menu > div:last-child {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        border: none !important;
    }

    body.chat-mobile-select-page .course-search-input,
    body.chat-mobile-select-page .accommodation-search-input {
        min-height: 58px !important;
        border-radius: 0 !important;
        padding: 16px 16px 16px 50px !important;
        border: 1px solid #d9d9d9 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%238a8f98' d='M9.5 3a6.5 6.5 0 0 1 5.17 10.45l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 9.5 3Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: 16px center !important;
        box-shadow: none !important;
    }

    body.chat-mobile-select-page .course-row,
    body.chat-mobile-select-page .accommodation-row {
        min-height: 70px !important;
        padding: 18px 20px !important;
        background: #fff !important;
        border-bottom: 1px solid #e4e4e4 !important;
        border-radius: 0 !important;
        align-items: center !important;
        box-shadow: none !important;
    }

    body.chat-mobile-select-page .course-row:hover,
    body.chat-mobile-select-page .accommodation-row:hover {
        background: #f5faf8 !important;
    }

    body.chat-mobile-select-page .course-row:has(.course-checkbox[style*="#0e7a73"]),
    body.chat-mobile-select-page .accommodation-row:has(div[style*="background:#0e7a73"]) {
        background: #178fca !important;
        color: #fff !important;
    }

    body.chat-mobile-select-page .course-row:has(.course-checkbox[style*="#0e7a73"]) *,
    body.chat-mobile-select-page .accommodation-row:has(div[style*="background:#0e7a73"]) * {
        color: #fff !important;
    }

    body.chat-mobile-select-page .course-title,
    body.chat-mobile-select-page .accommodation-row > div > div:first-child > div:first-child {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    body.chat-mobile-select-page .course-duration-inline {
        display: inline-flex !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 13px !important;
    }

    body.chat-mobile-select-page .course-row:not(:has(.course-checkbox[style*="#0e7a73"])) .course-duration-inline {
        color: #667085 !important;
    }

    body.chat-mobile-select-page .course-checkbox {
        border-color: #9ca3af !important;
        border-radius: 5px !important;
    }

    body.chat-mobile-select-page .school-card-footer {
        position: static !important;
        bottom: auto !important;
        z-index: 1 !important;
        box-shadow: none !important;
        flex-wrap: wrap !important;
        gap: 14px !important;
    }

    body.chat-mobile-select-page .school-card-footer-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    body.chat-mobile-select-page .school-card-footer-actions button {
        width: 100% !important;
        max-width: none !important;
    }

    body.chat-mobile-select-page .mobile-price-breakdown-wrap {
        padding: 0 16px 14px !important;
        background: #f8f5ef !important;
    }

    body.chat-mobile-select-page .mobile-toggle-breakdown-btn {
        width: 100% !important;
        min-height: 42px !important;
        border: 1px solid rgba(14, 122, 115, 0.22) !important;
        background: #ffffff !important;
        color: #0e7a73 !important;
        border-radius: 14px !important;
        padding: 11px 14px !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        text-align: center !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
    }

    body.chat-mobile-select-page .mobile-price-breakdown-box {
        display: none;
        margin-top: 10px !important;
        background: #ffffff !important;
        border: 1px solid rgba(14, 122, 115, 0.14) !important;
        border-radius: 14px !important;
        padding: 14px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
    }

    body.chat-mobile-select-page .mobile-breakdown-row,
    body.chat-mobile-select-page .mobile-breakdown-total {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 12px !important;
        color: #344054 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        padding: 8px 0 !important;
    }

    body.chat-mobile-select-page .mobile-breakdown-row strong,
    body.chat-mobile-select-page .mobile-breakdown-total strong {
        color: #0e7a73 !important;
        white-space: nowrap !important;
        font-weight: 900 !important;
    }

    body.chat-mobile-select-page .mobile-breakdown-total {
        border-top: 1px solid #e7eee9 !important;
        margin-top: 6px !important;
        padding-top: 12px !important;
        color: #1a1a1a !important;
        font-weight: 900 !important;
    }

    body.chat-mobile-select-page .chat-scroll-down {
        bottom: 18px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.chat-mobile-select-page .chat-messages {
        padding-bottom: 16px !important;
    }

    body.chat-mobile-select-page .footer-start-new-search {
        margin-top: 4px !important;
        margin-left: 12px !important;
        line-height: 1.1 !important;
    }
}

body.chat-mobile-select-page .school-card-footer-actions {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

body.chat-mobile-select-page .school-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
}

body.chat-mobile-select-page .school-card-footer > div:first-child {
    width: 100% !important;
}

body.chat-mobile-select-page .school-card-footer-actions button {
    width: 100% !important;
    max-width: none !important;
}

.school-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
}

.school-card-footer-actions {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 100% !important;
    justify-content: stretch !important;
}

.school-card-footer-actions > button,
.school-card-footer button[id$="-book-btn"] {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
}

@media (min-width: 769px) {
    body.chat-mobile-select-page .mobile-school-select-control,
    body.chat-mobile-select-page .mobile-school-select-menu,
    body.chat-mobile-select-page .mobile-school-select-backdrop,
    body.chat-mobile-select-page .mobile-price-breakdown-wrap {
        display: none !important;
    }
}

/* Homepage mobile first-screen compact layout */
@media (max-width: 768px) {
    body.home-page .main-header {
        padding: 12px 14px 6px !important;
    }

    body.home-page .logo img {
        max-width: 142px !important;
        height: auto !important;
    }

    body.home-page .header-actions {
        gap: 8px !important;
    }

    body.home-page .icon-btn,
    body.home-page .burger-btn,
    body.home-page .favschool-language-button {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    body.home-page .hero {
        min-height: 160px !important;
        padding: 8px 14px 0 !important;
        align-items: flex-start !important;
        overflow: hidden !important;
    }

    body.home-page .hero-left {
        width: 68% !important;
        max-width: 68% !important;
        z-index: 2 !important;
    }

    body.home-page .tag {
        margin-bottom: 8px !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    body.home-page .hero-left h1,
    body.home-page .hero h1 {
        max-width: 100% !important;
        font-size: clamp(32px, 9.4vw, 42px) !important;
        line-height: 0.94 !important;
        letter-spacing: -1.2px !important;
        margin: 0 !important;
    }

    body.home-page .hero-left .subtitle,
    body.home-page .hero .subtitle {
        max-width: 100% !important;
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.home-page .hero-right {
        position: absolute !important;
        right: 10px !important;
        top: 50px !important;
        width: 34% !important;
        max-width: 126px !important;
        z-index: 1 !important;
    }

    body.home-page .hero-right img {
        width: 100% !important;
        max-width: 126px !important;
        transform: rotate(-2deg) !important;
    }

    body.home-page .search-wrapper {
        margin-top: 0 !important;
        padding: 0 12px !important;
    }

    body.home-page .search-box {
        max-width: calc(100vw - 24px) !important;
        padding: 14px 12px 12px !important;
        border-radius: 22px !important;
    }

    body.home-page .search-title {
        margin-bottom: 10px !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    body.home-page .search-row {
        gap: 10px !important;
    }

    body.home-page .search-item {
        min-height: 70px !important;
        padding: 10px !important;
        border-radius: 15px !important;
        gap: 8px !important;
    }

    body.home-page .search-item i:first-child {
        font-size: 17px !important;
    }

    body.home-page .search-item small {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    body.home-page .search-item span {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    body.home-page .search-btn {
        height: 52px !important;
        margin-top: 0 !important;
        border-radius: 15px !important;
        font-size: 14px !important;
        box-shadow: 0 8px 18px rgba(255, 90, 31, 0.24) !important;
    }
}

@media (max-width: 380px) {
    body.home-page .main-header {
        padding-top: 10px !important;
    }

    body.home-page .hero {
        min-height: 146px !important;
        padding-top: 4px !important;
    }

    body.home-page .hero-left h1,
    body.home-page .hero h1 {
        font-size: clamp(30px, 9vw, 34px) !important;
    }

    body.home-page .hero-right {
        top: 44px !important;
        max-width: 108px !important;
    }

    body.home-page .hero-right img {
        max-width: 108px !important;
    }

    body.home-page .search-box {
        padding: 12px 10px 10px !important;
    }

    body.home-page .search-item {
        min-height: 66px !important;
        padding: 9px !important;
    }

    body.home-page .search-btn {
        height: 50px !important;
    }
}

@media (max-width: 430px) and (max-height: 720px) {
    body.home-page {
        overflow-x: hidden !important;
    }

    body.home-page .main-header {
        padding: 8px 12px 4px !important;
        min-height: 44px !important;
    }

    body.home-page .logo img {
        max-width: 120px !important;
    }

    body.home-page .header-actions {
        gap: 6px !important;
    }

    body.home-page .icon-btn,
    body.home-page .burger-btn,
    body.home-page .favschool-language-button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    body.home-page .hero {
        min-height: 118px !important;
        padding: 2px 12px 0 !important;
    }

    body.home-page .hero-left {
        width: 69% !important;
        max-width: 69% !important;
    }

    body.home-page .tag {
        margin-bottom: 5px !important;
        padding: 4px 8px !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    body.home-page .hero-left h1,
    body.home-page .hero h1 {
        font-size: clamp(25px, 7.6vw, 31px) !important;
        line-height: 0.9 !important;
        letter-spacing: -0.8px !important;
    }

    body.home-page .hero-left .subtitle,
    body.home-page .hero .subtitle {
        margin-top: 5px !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    body.home-page .hero-right {
        top: 35px !important;
        right: 8px !important;
        width: 30% !important;
        max-width: 88px !important;
    }

    body.home-page .hero-right img {
        max-width: 88px !important;
    }

    body.home-page .search-wrapper {
        margin-top: -2px !important;
        padding: 0 10px !important;
    }

    body.home-page .search-box {
        max-width: calc(100vw - 20px) !important;
        padding: 10px 10px 9px !important;
        border-radius: 18px !important;
    }

    body.home-page .search-title {
        margin-bottom: 8px !important;
        font-size: 13px !important;
    }

    body.home-page .search-row {
        gap: 7px !important;
    }

    body.home-page .search-item {
        min-height: 54px !important;
        padding: 7px 8px !important;
        border-radius: 13px !important;
        gap: 6px !important;
    }

    body.home-page .search-item i:first-child {
        font-size: 15px !important;
    }

    body.home-page .search-item small {
        font-size: 9px !important;
        margin-bottom: 1px !important;
    }

    body.home-page .search-item span {
        font-size: 11px !important;
        line-height: 1.12 !important;
    }

    body.home-page .search-item .chevron {
        font-size: 13px !important;
    }

    body.home-page .search-btn {
        height: 44px !important;
        margin-top: 0 !important;
        border-radius: 13px !important;
        font-size: 12px !important;
    }
}
/* ===============================
   Shared FavSchool footer
================================ */
.favschool-site-footer {
  margin-top: 90px;
  padding: 78px 6vw 44px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  color: #556376;
}

.favschool-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.favschool-footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 48px;
  align-items: start;
}

.favschool-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 900;
  color: #121826;
}

.favschool-footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.favschool-footer-text {
  max-width: 270px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #637083;
}

.favschool-footer-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
}

.favschool-footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff0eb;
  color: #ff5b2e;
  font-size: 20px;
  flex: 0 0 auto;
}

.favschool-footer-contact small {
  display: block;
  margin-bottom: 4px;
  color: #7b8796;
  font-size: 13px;
}

.favschool-footer-contact a {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.favschool-footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favschool-footer-socials.is-empty {
  display: none;
}

.favschool-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.favschool-footer-socials a.is-hidden {
  display: none;
}

.favschool-footer-socials a:hover {
  transform: translateY(-2px);
  color: #ff5b2e;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.favschool-footer-socials a:nth-child(1) {
  color: #1877f2;
}

.favschool-footer-socials a:nth-child(2) {
  color: #e1306c;
}

.favschool-footer-socials a:nth-child(3) {
  color: #ff0000;
}

.favschool-footer-socials a:nth-child(4) {
  color: #0a66c2;
}

.favschool-footer-column h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.favschool-footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.favschool-footer-column .footer-accent-orange {
  color: #ff5b2e;
}

.favschool-footer-column .footer-accent-teal {
  color: #14b8a6;
}

.favschool-footer-column .footer-accent-blue {
  color: #0ea5e9;
}

.favschool-footer-column a {
  display: block;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.favschool-footer-column a:hover {
  color: #0f766e;
  transform: translateX(3px);
}

.favschool-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  padding-top: 32px;
  border-top: 1px solid rgba(100, 116, 139, 0.18);
  color: #64748b;
  font-size: 14px;
}

.favschool-footer-bottom p {
  margin: 0;
}

.favschool-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.favschool-footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
}

.favschool-footer-bottom-links a:hover {
  color: #0f766e;
}

@media (max-width: 980px) {
  .favschool-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .favschool-site-footer {
    margin-top: 56px;
    padding: 54px 22px calc(112px + env(safe-area-inset-bottom));
  }

  .favschool-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .favschool-footer-logo,
  .favschool-footer-contact,
  .favschool-footer-socials {
    justify-content: center;
  }

  .favschool-footer-text {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .favschool-footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .favschool-footer-column a:hover {
    transform: none;
  }

  .favschool-footer-bottom {
    flex-direction: column;
    margin-top: 44px;
    text-align: center;
  }

  .favschool-footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
