/*=============================================
=            SHARED STYLES                    =
==============================================*/

/*=============================================
=            COLOR SCHEME CONFIGURATION       =
=============================================*/

/* BLUE THEME (Default) */
html:not([data-color-theme]), html[data-color-theme="Blue_Theme"] {
  --theme-primary: #1E88E5;
  --theme-primary-dark: #1565C0;
  --theme-primary-light: #42A5F5;
  --theme-secondary: #29B6F6;
  --theme-accent: #81D4FA;
  --theme-accent-subtle: #E3F2FD;
  --theme-gradient: linear-gradient(135deg, #1E88E5 0%, #42A5F5 50%, #29B6F6 100%);
  --theme-gradient-dark: linear-gradient(135deg, #1565C0 0%, #1E88E5 100%);
  --theme-shadow-color: rgba(30, 136, 229, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f5f9fe 0%, #f0f7ff 50%, #ffffff 100%);
}

/* PINK/CORAL THEME */
html[data-color-theme="Pink_Theme"] {
  --theme-primary: #E91E63;
  --theme-primary-dark: #C2185B;
  --theme-primary-light: #F06292;
  --theme-secondary: #FF6B6B;
  --theme-accent: #FFB6C1;
  --theme-accent-subtle: #FCE4EC;
  --theme-gradient: linear-gradient(135deg, #E91E63 0%, #FF6B6B 50%, #F06292 100%);
  --theme-gradient-dark: linear-gradient(135deg, #C2185B 0%, #E91E63 100%);
  --theme-shadow-color: rgba(233, 30, 99, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fef7f9 0%, #fff5f7 50%, #ffffff 100%);
}

/* PURPLE THEME */
html[data-color-theme="Purple_Theme"] {
  --theme-primary: #7C4DFF;
  --theme-primary-dark: #651FFF;
  --theme-primary-light: #B388FF;
  --theme-secondary: #9575CD;
  --theme-accent: #D1C4E9;
  --theme-accent-subtle: #EDE7F6;
  --theme-gradient: linear-gradient(135deg, #7C4DFF 0%, #B388FF 50%, #9575CD 100%);
  --theme-gradient-dark: linear-gradient(135deg, #651FFF 0%, #7C4DFF 100%);
  --theme-shadow-color: rgba(124, 77, 255, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f9f7fe 0%, #f5f0ff 50%, #ffffff 100%);
}

/* TEAL THEME */
html[data-color-theme="Teal_Theme"] {
  --theme-primary: #00897B;
  --theme-primary-dark: #00695C;
  --theme-primary-light: #26A69A;
  --theme-secondary: #4DB6AC;
  --theme-accent: #80CBC4;
  --theme-accent-subtle: #E0F2F1;
  --theme-gradient: linear-gradient(135deg, #00897B 0%, #26A69A 50%, #4DB6AC 100%);
  --theme-gradient-dark: linear-gradient(135deg, #00695C 0%, #00897B 100%);
  --theme-shadow-color: rgba(0, 137, 123, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f5fefb 0%, #f0fff9 50%, #ffffff 100%);
}

/* ORANGE THEME */
html[data-color-theme="Orange_Theme"] {
  --theme-primary: #FF7043;
  --theme-primary-dark: #F4511E;
  --theme-primary-light: #FF8A65;
  --theme-secondary: #FFAB91;
  --theme-accent: #FFCCBC;
  --theme-accent-subtle: #FBE9E7;
  --theme-gradient: linear-gradient(135deg, #FF7043 0%, #FF8A65 50%, #FFAB91 100%);
  --theme-gradient-dark: linear-gradient(135deg, #F4511E 0%, #FF7043 100%);
  --theme-shadow-color: rgba(255, 112, 67, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fffaf5 0%, #fff5f0 50%, #ffffff 100%);
}

/* GREEN THEME */
html[data-color-theme="Green_Theme"] {
  --theme-primary: #2E7D32;
  --theme-primary-dark: #1B5E20;
  --theme-primary-light: #4CAF50;
  --theme-secondary: #66BB6A;
  --theme-accent: #A5D6A7;
  --theme-accent-subtle: #E8F5E9;
  --theme-gradient: linear-gradient(135deg, #2E7D32 0%, #4CAF50 50%, #66BB6A 100%);
  --theme-gradient-dark: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  --theme-shadow-color: rgba(46, 125, 50, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f5fbf5 0%, #f0f9f0 50%, #ffffff 100%);
}

/* RED THEME */
html[data-color-theme="Red_Theme"] {
  --theme-primary: #E53935;
  --theme-primary-dark: #C62828;
  --theme-primary-light: #EF5350;
  --theme-secondary: #FF5252;
  --theme-accent: #FFCDD2;
  --theme-accent-subtle: #FFEBEE;
  --theme-gradient: linear-gradient(135deg, #C62828 0%, #E53935 50%, #EF5350 100%);
  --theme-gradient-dark: linear-gradient(135deg, #B71C1C 0%, #C62828 100%);
  --theme-shadow-color: rgba(229, 57, 53, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fef6f6 0%, #fff2f2 50%, #ffffff 100%);
}

/* YELLOW/GOLD THEME (deep gold so white text and logos stay readable) */
html[data-color-theme="Yellow_Theme"] {
  --theme-primary: #F59E0B;
  --theme-primary-dark: #D97706;
  --theme-primary-light: #FBBF24;
  --theme-secondary: #FCD34D;
  --theme-accent: #FDE68A;
  --theme-accent-subtle: #FEF9E7;
  --theme-gradient: linear-gradient(135deg, #E08E0B 0%, #F59E0B 50%, #FBBF24 100%);
  --theme-gradient-dark: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  --theme-shadow-color: rgba(245, 158, 11, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fffcf3 0%, #fff9eb 50%, #ffffff 100%);
}

/* SLATE THEME (blue-gray) */
html[data-color-theme="Slate_Theme"] {
  --theme-primary: #475569;
  --theme-primary-dark: #334155;
  --theme-primary-light: #64748B;
  --theme-secondary: #94A3B8;
  --theme-accent: #CBD5E1;
  --theme-accent-subtle: #F1F5F9;
  --theme-gradient: linear-gradient(135deg, #334155 0%, #475569 50%, #64748B 100%);
  --theme-gradient-dark: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  --theme-shadow-color: rgba(71, 85, 105, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f8fafc 0%, #f4f6f9 50%, #ffffff 100%);
}

/* SILVER THEME (a medium silver, so white text and logos stay readable) */
html[data-color-theme="Silver_Theme"] {
  --theme-primary: #6B7280;
  --theme-primary-dark: #4B5563;
  --theme-primary-light: #8A929D;
  --theme-secondary: #A3AAB4;
  --theme-accent: #D1D5DB;
  --theme-accent-subtle: #F3F4F6;
  --theme-gradient: linear-gradient(135deg, #6B7280 0%, #8A929D 50%, #A3AAB4 100%);
  --theme-gradient-dark: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
  --theme-shadow-color: rgba(107, 114, 128, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f9fafb 0%, #f5f6f7 50%, #ffffff 100%);
}

/* NAVY (DARK BLUE) THEME */
html[data-color-theme="Navy_Theme"] {
  --theme-primary: #1E3A8A;
  --theme-primary-dark: #172554;
  --theme-primary-light: #2B4C9B;
  --theme-secondary: #3B63B8;
  --theme-accent: #93C5FD;
  --theme-accent-subtle: #E8EDF7;
  --theme-gradient: linear-gradient(135deg, #172554 0%, #1E3A8A 50%, #2B4C9B 100%);
  --theme-gradient-dark: linear-gradient(135deg, #0B1437 0%, #172554 100%);
  --theme-shadow-color: rgba(30, 58, 138, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f5f7fc 0%, #f0f3fa 50%, #ffffff 100%);
}

/* INDIGO THEME */
html[data-color-theme="Indigo_Theme"] {
  --theme-primary: #3F51B5;
  --theme-primary-dark: #303F9F;
  --theme-primary-light: #5C6BC0;
  --theme-secondary: #7986CB;
  --theme-accent: #C5CAE9;
  --theme-accent-subtle: #E8EAF6;
  --theme-gradient: linear-gradient(135deg, #3949AB 0%, #3F51B5 50%, #5C6BC0 100%);
  --theme-gradient-dark: linear-gradient(135deg, #283593 0%, #3949AB 100%);
  --theme-shadow-color: rgba(63, 81, 181, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f6f7fd 0%, #f1f2fb 50%, #ffffff 100%);
}

/* BURGUNDY (WINE) THEME */
html[data-color-theme="Burgundy_Theme"] {
  --theme-primary: #8E1B3A;
  --theme-primary-dark: #6D1029;
  --theme-primary-light: #A8324F;
  --theme-secondary: #C04A68;
  --theme-accent: #F4C2CF;
  --theme-accent-subtle: #F9E8EC;
  --theme-gradient: linear-gradient(135deg, #6D1029 0%, #8E1B3A 50%, #A8324F 100%);
  --theme-gradient-dark: linear-gradient(135deg, #4A0A1C 0%, #6D1029 100%);
  --theme-shadow-color: rgba(142, 27, 58, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fdf6f8 0%, #fbf0f3 50%, #ffffff 100%);
}

/* MAGENTA THEME */
html[data-color-theme="Magenta_Theme"] {
  --theme-primary: #C026D3;
  --theme-primary-dark: #A21CAF;
  --theme-primary-light: #D946EF;
  --theme-secondary: #E879F9;
  --theme-accent: #F5D0FE;
  --theme-accent-subtle: #FBEFFC;
  --theme-gradient: linear-gradient(135deg, #A21CAF 0%, #C026D3 50%, #D946EF 100%);
  --theme-gradient-dark: linear-gradient(135deg, #86198F 0%, #A21CAF 100%);
  --theme-shadow-color: rgba(192, 38, 211, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #fdf7fe 0%, #fbf1fd 50%, #ffffff 100%);
}

/* CHARCOAL THEME (near-black, gold accent) */
html[data-color-theme="Charcoal_Theme"] {
  --theme-primary: #374151;
  --theme-primary-dark: #1F2937;
  --theme-primary-light: #4B5563;
  --theme-secondary: #6B7280;
  --theme-accent: #F5C451;
  --theme-accent-subtle: #F3F4F6;
  --theme-gradient: linear-gradient(135deg, #1F2937 0%, #374151 50%, #4B5563 100%);
  --theme-gradient-dark: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  --theme-shadow-color: rgba(31, 41, 55, 0.3);
  --theme-bg-tint: linear-gradient(180deg, #f9fafb 0%, #f4f5f7 50%, #ffffff 100%);
}

/* Fixed colors (don't change with theme) */
:root {
  --color-dark: #1a1a2e;
  --color-dark-lighter: #1a1a2e;
  --color-success: #4caf50;
  --color-warning: #FFD700;
  --color-danger: #ef5350;
  --color-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --color-gold-dark: #daa520;
}

/*=====  End of COLOR SCHEME CONFIGURATION  ======*/


/*=============================================
=            BASE STYLES                       =
=============================================*/

* {
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

body {
  background: var(--theme-bg-tint);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Main content area - grows to push footer down */
main {
  flex: 1;
  padding-bottom: 2rem;
}

.hidden {
  display: none! important;
  visibility: hidden! important;
  height: 0! important;
}

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

.of-header {
  background: var(--theme-gradient);
  box-shadow: 0 4px 20px var(--theme-shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.of-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.of-logo span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Image logos (Admin > Logos): transparent PNGs with light lettering, sized by height. */
.of-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
}

.of-brand-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

@media (max-width: 576px) {
  .of-logo-img { height: 36px; max-width: 200px; }
  .of-brand-img { height: 44px; max-width: 240px; }
}


/*=============================================
=            NAVIGATION                        =
=============================================*/

.of-nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem !important;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Five menu items plus the icons and account menu: tighter on laptop-width screens so nothing wraps. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .of-nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem !important;
  }
}

.of-nav-link:hover,
.of-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.of-nav-link i {
  font-size: 1.2rem;
}

.of-nav-link .badge {
  background: white;
  color: var(--theme-primary);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}


/*=============================================
=            NOTIFICATION & TOKENS BUTTONS     =
=============================================*/

.of-notification-btn,
.of-tokens-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  position: relative;
  transition: all 0.3s ease;
}

.of-notification-btn:hover,
.of-tokens-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.of-notification-btn-selected {
  background: rgba(255, 255, 255, 0.45);
  color: rgb(255, 255, 0);
}

.of-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--theme-primary);
}

.of-tokens-badge {
  position: absolute;
  top: -2px;
  right: -8px;
  background: linear-gradient(135deg, var(--color-warning) 0%, #FFA500 100%);
  color: #333;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}

/* Notification Dropdown */
.of-notification-dropdown {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 340px;
  overflow: hidden;
}

.of-notification-header {
  background: var(--theme-accent-subtle);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.of-notification-header h6 {
  margin: 0;
  font-weight: 700;
}

.of-notification-header .badge {
  background: var(--theme-primary);
  color: white;
}

.of-notification-list {
  max-height: 320px;
  overflow-y: auto;
}

.of-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.2s ease;
}

.of-notification-item:hover {
  background: var(--theme-accent-subtle);
}

.of-notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.of-notification-content p {
  margin: 0;
  font-size: 0.9rem;
}

.of-notification-content small {
  color: #888;
}

.of-notification-footer {
  padding: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.of-notification-footer a {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: none;
}

/* Tokens Dropdown */
.of-tokens-dropdown {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  min-width: 260px;
  text-align: center;
}

.of-tokens-balance {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.of-tokens-label {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}


/*=============================================
=            USER DROPDOWN                     =
=============================================*/

.of-user-dropdown .dropdown-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  color: white;
  transition: all 0.3s ease;
}

.of-user-dropdown .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.of-user-dropdown .dropdown-menu {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  min-width: 220px;
}

.of-user-dropdown .dropdown-item {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.of-user-dropdown .dropdown-item:hover {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

/* Phones and tablets (the collapsed menu): the bell, tokens and account menus open right under their
   buttons, as wide as the menu, rather than as a sheet at the bottom of the screen. */
@media (max-width: 991px) {
  .of-nav-actions {
    position: relative;
  }

  .of-nav-actions .dropdown {
    position: static;
  }

  .of-notification-dropdown,
  .of-tokens-dropdown,
  .of-user-dropdown .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    max-height: 70vh;
    overflow-y: auto;
    transform: none !important;
    animation: dropDownMobile 0.2s ease;
  }

  @keyframes dropDownMobile {
    from {
      transform: translateY(-8px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}


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

.of-footer {
  background: var(--color-dark);
  padding: 2rem 0;
  margin-top: auto; /* Pushes footer to bottom on short pages */
}

.of-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
}

.of-footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.of-footer-link:hover {
  color: var(--theme-accent);
}

.of-footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.of-footer-company-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
  text-align: left;
}

.of-footer-company-info-col {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.5;
}


/*=============================================
=            PAGE HEADERS                      =
=============================================*/

.of-page-header {
  background: var(--theme-gradient);
  padding: 3rem 0;
  margin-top: -1rem;
}

.of-page-header .of-page-title {
  color: white;
}

.of-page-header .of-page-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.of-page-header.extended {
  padding: 3rem 0 5rem;
  position: relative;
}

.of-page-header.extended::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--theme-bg-tint), transparent);
}

.of-page-title {
  color: var(--color-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.of-page-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

.of-page-breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.of-page-breadcrumb a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.of-page-breadcrumb a:hover {
  color: white;
}


/*=============================================
=            BUTTONS                           =
=============================================*/

.of-btn-back {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.of-btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.of-btn-purchase {
  background: linear-gradient(135deg, var(--color-warning) 0%, #FFA500 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: #333;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.of-btn-purchase:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  color: #333;
}

.of-btn-primary {
  background: var(--theme-gradient);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--theme-shadow-color);
  text-decoration: none;
}

.of-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--theme-shadow-color);
  color: white;
}

.of-btn-secondary {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.of-btn-secondary:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.of-btn-edit {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.of-btn-edit:hover {
  background: var(--theme-primary);
  color: white;
}


/*=============================================
=            CARD STYLES                       =
=============================================*/

.of-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.of-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.of-card-header h5 {
  margin: 0;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.of-card-header h5 i {
  color: var(--theme-primary);
  font-size: 1.2rem;
}


/*=============================================
=            FORM STYLES                       =
=============================================*/

.of-form-group {
  margin-bottom: 1.25rem;
}

.of-form-label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.of-form-label .required {
  color: var(--color-danger);
}

.of-form-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.4rem;
}

.of-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.of-form-control:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.of-form-control::placeholder {
  color: #aaa;
}

textarea.of-form-control {
  min-height: 120px;
  resize: vertical;
}

select.of-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}


/*=============================================
=            LEGAL PAGES STYLES                =
=============================================*/

.of-content-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.of-legal-content {
  color: #444;
  line-height: 1.8;
}

.of-legal-content h2 {
  color: var(--color-dark);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--theme-accent-subtle);
}

.of-legal-content h2:first-child {
  margin-top: 0;
}

.of-legal-content h3 {
  color: var(--color-dark);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.of-legal-content h4 {
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.of-legal-content p {
  margin-bottom: 1rem;
}

.of-legal-content ul,
.of-legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.of-legal-content li {
  margin-bottom: 0.5rem;
}

.of-legal-content a {
  color: var(--theme-primary);
  text-decoration: none;
}

.of-legal-content a:hover {
  text-decoration: underline;
}

.of-legal-content strong {
  color: var(--color-dark);
}

/* Info Boxes */
.of-intro-text {
  font-size: 1.05rem;
  background: var(--theme-accent-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--theme-primary);
}

.of-warning-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.of-warning-box strong {
  color: #856404;
}

.of-warning-box.danger {
  background: #ffebee;
  border-color: #ef5350;
}

.of-warning-box.danger strong {
  color: #c62828;
}

.of-info-box {
  background: #e3f2fd;
  border: 1px solid var(--theme-primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.of-info-box strong {
  color: var(--theme-primary-dark);
}

.of-last-updated {
  background: var(--theme-accent-subtle);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.of-last-updated i {
  color: var(--theme-primary);
  font-size: 1.3rem;
}

.of-last-updated span {
  color: #555;
  font-size: 0.95rem;
}

/* Table of Contents */
.of-toc {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.of-toc h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.of-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

.of-toc li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.of-toc a {
  color: var(--theme-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.of-toc a:hover {
  text-decoration: underline;
}

/* Contact Box */
.of-contact-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
}

.of-contact-box h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.of-contact-box p {
  margin: 0.25rem 0;
}

.of-contact-box .contact-name {
  font-weight: 600;
  color: var(--theme-primary);
  font-size: 1.1rem;
}

.of-contact-box .contact-company {
  font-style: italic;
  color: #666;
}


/*=============================================
=            TOKEN COST INDICATOR              =
=============================================*/

.of-token-cost {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: center;
}


/*=============================================
=            RESPONSIVE STYLES                 =
=============================================*/

@media (max-width: 992px) {
  .of-toc ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .of-content-card {
    padding: 1.5rem;
    margin: -1rem 0.5rem 0;
  }
  
  .of-page-title {
    font-size: 2rem;
  }
  
  .of-toc ul {
    columns: 1;
  }
}


/*=============================================
=            LANDING PAGE STYLES              =
=============================================*/

/* Dark theme overrides for landing page */
body.of-landing-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-dark);
  color: white;
  overflow-x: hidden;
}

body.of-landing-page .of-form-label {
  color: rgba(255, 255, 255, 0.7);
}

body.of-landing-page .of-form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
}

body.of-landing-page .of-form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

body.of-landing-page .of-form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.of-landing-page select.of-form-control option {
  background: var(--color-dark-lighter);
  color: white;
}

.of-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.of-landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.of-landing-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 13, 26, 0.85) 0%, rgba(30, 136, 229, 0.3) 100%);
  z-index: 1;
}

.of-landing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.of-landing-header {
  position: relative;
  z-index: 10;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.of-brand {
  font-family: 'Pacifico', cursive;
  font-size: 2.2rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.of-brand span {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.of-btn-login {
  background: var(--color-warning);
  color: #000000;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.of-btn-login:hover {
  background: #ff8555;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  color: white;
}

.of-landing-content {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 2rem;
}

.of-landing-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.of-hero-text {
  flex: 1;
  max-width: 550px;
}

.of-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.of-hero-text h1 span {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.of-hero-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.of-hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.of-hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.of-hero-feature i {
  width: 28px;
  height: 28px;
  background: var(--theme-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.of-signup-card {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.of-signup-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: white;
}

.of-form-row {
  display: flex;
  gap: 0.75rem;
}

.of-form-row .of-form-group {
  flex: 1;
}

.of-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 0.75rem;
}

.of-terms-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.of-terms-text a {
  color: var(--theme-primary-light);
  text-decoration: none;
}

.of-terms-text a:hover {
  text-decoration: underline;
}

.of-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.of-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--theme-primary);
  cursor: pointer;
}

.of-checkbox-row label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.of-checkbox-row label a {
  color: var(--theme-primary-light);
  text-decoration: none;
}

.of-checkbox-row label a:hover {
  text-decoration: underline;
}

.of-btn-signup {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-warning);
  border: none;
  border-radius: 8px;
  color: black;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.of-btn-signup:hover {
  background: #ff8555;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.of-landing-footer {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 2rem;
  text-align: center;
}

.of-landing-footer .of-footer-copyright {
  margin-bottom: 1rem;
}

.of-landing-footer .of-footer-links {
  margin-bottom: 0.75rem;
}

.of-landing-footer .of-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.of-landing-footer .of-footer-links a:hover {
  color: var(--theme-accent);
}

.of-footer-compliance {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Login Modal */
.of-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.of-modal {
  background: rgba(26, 26, 46, 0.98);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.of-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.of-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.of-modal h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: white;
}

.of-modal p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.of-btn-modal-login {
  width: 100%;
  padding: 0.9rem;
  background: var(--theme-gradient);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.of-btn-modal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.of-modal-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.of-modal-footer a {
  color: var(--theme-primary-light);
  text-decoration: none;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .of-landing-container {
    flex-direction: column;
    text-align: center;
  }
  
  .of-hero-text {
    max-width: 100%;
  }
  
  .of-hero-features {
    align-items: center;
  }
  
  .of-signup-card {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .of-hero-text h1 {
    font-size: 2.5rem;
  }
  
  .of-landing-header {
    padding: 1rem;
  }
  
  .of-brand {
    font-size: 1.8rem;
  }
  
  .of-form-row-3 {
    grid-template-columns: 1fr 1fr;
  }
  
  .of-form-row-3 .of-form-group:last-child {
    grid-column: span 2;
  }
}


/*=============================================
=            SEARCH & FILTERS STYLES          =
=============================================*/

.of-filters-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: none;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.of-filter-label {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.of-range-display {
  background: var(--theme-gradient);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.form-range::-webkit-slider-thumb {
  background: var(--theme-primary);
}

.form-range::-webkit-slider-runnable-track {
  background: var(--theme-accent-subtle);
}

.of-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--theme-primary);
  border-radius: 6px;
}

.of-checkbox:checked {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

.of-btn-search {
  background: var(--theme-gradient);
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--theme-shadow-color);
  color: white;
}

/* Results Header */
.of-results-header {
  margin-bottom: 1.5rem;
}

.of-results-count {
  font-size: 1.1rem;
  color: #666;
}

.of-results-count strong {
  color: var(--theme-primary);
  font-weight: 700;
}

/* Custom Select */
.of-select {
  border: 2px solid var(--theme-accent-subtle);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.of-select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Pagination */
.of-pagination .page-link {
  border: none;
  color: var(--color-dark);
}

.of-pagination .page-item.active .page-link {
  background: var(--theme-gradient);
  border: none;
}

.of-pagination .page-link:hover {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}


/*=============================================
=            PROFILE CARDS (Search/Favorites) =
=============================================*/

.of-profile-card-search,
.of-profile-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
}

.of-profile-card-search:hover,
.of-profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--theme-shadow-color);
}

.of-profile-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #111;
}

.of-profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.of-profile-card-search:hover .of-profile-image,
.of-profile-card:hover .of-profile-image {
  transform: scale(1.05);
}

.of-online-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-success);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

.of-online-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.of-new-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--color-warning) 0%, #FFA500 100%);
  color: #333;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

.of-mutual-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

.of-profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 3rem 1.25rem 1.25rem;
}

.of-profile-name {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.of-profile-age {
  font-weight: 400;
  opacity: 0.9;
}

.of-profile-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.of-profile-actions {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  background: white;
}

.of-btn-action {
  flex: 1;
  padding: 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  border: none;
}

.of-btn-like {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
}

.of-btn-like:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
  color: white;
  transform: scale(1.05);
}

.of-btn-like.active {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.of-btn-like.of-like-pop i {
  animation: of-like-pop 0.4s ease;
}

@keyframes of-like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Tabler's filled icons come in a separate font that restyles every .ti, so the two the site uses
   (liked hearts and the logo, starred mail and main photos) are drawn from Tabler's SVGs in the text color. */
.ti-heart-filled::before,
.ti-star-filled::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
}
.ti-star-filled::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ti-heart-filled::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.of-btn-chat {
  background: var(--theme-gradient);
  color: white;
}

.of-btn-chat:hover {
  background: var(--theme-gradient-dark);
  color: white;
  transform: scale(1.05);
}

.of-btn-mail {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
}

.of-btn-mail:hover {
  background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%);
  color: white;
  transform: scale(1.05);
}

.of-btn-remove {
  background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
  color: white;
}

.of-btn-remove:hover {
  background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
  color: white;
  transform: scale(1.05);
}

/* Verified Badge */
.of-verified {
  width: 18px;
  height: 18px;
  background: #2196F3;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
}


/*=============================================
=            FAVORITES PAGE STYLES            =
=============================================*/

.of-favorites-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.of-tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--theme-accent-subtle);
  background: white;
  color: var(--color-dark);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.of-tab-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.of-tab-btn.active {
  background: var(--theme-gradient);
  border-color: transparent;
  color: white;
}

.of-tab-btn .count {
  background: rgba(0,0,0,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.of-tab-btn.active .count {
  background: rgba(255,255,255,0.2);
}


/*=============================================
=            CHAT PAGE STYLES                 =
=============================================*/

.of-chat-container {
  display: flex;
  height: calc(100vh - 72px - 100px);
  min-height: 600px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.of-chat-sidebar {
  width: 340px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.of-chat-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid #eee;
}

.of-chat-sidebar-header h5 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: var(--color-dark);
}

.of-chat-search {
  position: relative;
}

.of-chat-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid var(--theme-accent-subtle);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.of-chat-search input:focus {
  outline: none;
  border-color: var(--theme-primary);
}

.of-chat-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.of-chat-list {
  flex: 1;
  overflow-y: auto;
}

.of-chat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
}

.of-chat-item:hover {
  background: var(--theme-accent-subtle);
}

.of-chat-item.active {
  background: var(--theme-accent-subtle);
  border-left: 3px solid var(--theme-primary);
}

.of-chat-item-avatar {
  position: relative;
  flex-shrink: 0;
}

.of-chat-item-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.of-chat-item-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--color-success);
  border: 2px solid white;
  border-radius: 50%;
}

.of-chat-item-info {
  flex: 1;
  min-width: 0;
}

.of-chat-item-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.of-chat-item-info p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-chat-item-meta {
  text-align: right;
  flex-shrink: 0;
}

.of-chat-item-meta .time {
  font-size: 0.75rem;
  color: #999;
}

.of-chat-item-meta .unread-badge {
  background: var(--theme-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  margin-top: 0.25rem;
  display: inline-block;
}

.of-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.of-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: white;
}

.of-chat-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.of-chat-header-user img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.of-chat-header-user h6 {
  margin: 0;
  font-weight: 700;
  color: var(--color-dark);
}

.of-chat-header-user span {
  font-size: 0.85rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.of-chat-header-user span::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.of-chat-header-user span.offline {
  color: #999;
}

.of-chat-header-user span.offline::before {
  background: #ccc;
}

.of-chat-header-actions {
  display: flex;
  gap: 0.5rem;
}

.of-chat-header-actions button,
.of-chat-header-actions a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.of-chat-header-actions button:hover,
.of-chat-header-actions a:hover {
  background: var(--theme-primary);
  color: white;
}

.of-chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: #f8fafc;
}

/* Wraps the header/messages/input of the open conversation so it can be swapped for the empty state. */
.of-chat-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.of-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #999;
  padding: 3rem;
}

.of-chat-empty[hidden] {
  display: none;
}

.of-chat-empty .ti-messages {
  font-size: 3rem;
}

.of-message-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.of-chat-item-info p.unread {
  font-weight: 600;
  color: var(--color-dark);
}

.of-message {
  display: flex;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.of-message.sent {
  flex-direction: row-reverse;
}

/* Member names and photos that link to the member's profile (chat, mail, notifications). */
.of-profile-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.of-profile-link:hover,
.of-profile-link:focus-visible {
  text-decoration: underline;
}

.of-profile-link:focus-visible,
.of-message-avatar-link:focus-visible {
  outline: 2px solid var(--color-primary, #1E88E5);
  outline-offset: 2px;
}

.of-profile-link:has(img),
.of-message-avatar-link {
  border-radius: 50%;
  line-height: 0;
}

.of-profile-link img {
  display: block;
}

.of-message-avatar-link {
  display: block;
  flex-shrink: 0;
}

.of-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.of-message-content {
  max-width: 65%;
}

.of-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.of-message.received .of-message-bubble {
  background: white;
  color: var(--color-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.of-message.sent .of-message-bubble {
  background: var(--theme-gradient);
  color: white;
  border-bottom-right-radius: 4px;
}

.of-message-time {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.of-message.sent .of-message-time {
  text-align: right;
}

.of-message-date {
  text-align: center;
  margin: 1.5rem 0;
}

.of-message-date span {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #888;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.of-chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  background: white;
}

.of-chat-input-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.of-chat-input-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--theme-accent-subtle);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.of-chat-input-form input:focus {
  outline: none;
  border-color: var(--theme-primary);
}

.of-chat-input-actions {
  display: flex;
  gap: 0.5rem;
}

.of-chat-input-actions button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.of-btn-attach {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-btn-attach:hover {
  background: var(--theme-primary);
  color: white;
}

.of-btn-send {
  background: var(--theme-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-btn-send:hover {
  transform: scale(1.05);
}

.of-mobile-chat-toggle {
  display: none;
  background: var(--theme-accent-subtle);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--theme-primary);
  font-weight: 600;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
}

.of-mobile-chat-toggle:hover {
  background: var(--theme-primary);
  color: white;
}

.of-sidebar-close {
  display: none;
  background: var(--theme-accent-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  font-size: 1.2rem;
}

.of-sidebar-close:hover {
  background: var(--color-danger);
  color: white;
}

@media (max-width: 992px) {
  .of-chat-sidebar {
    width: 280px;
  }
}

/* Phones: the chat fills the screen under the site header (no footer), so the person is at the top and
   the latest messages at the bottom. The conversation list opens over it from the Chats button: three
   conversations high, scroll for more. chat.js sets the height to the screen's (--chat-height). */
@media (max-width: 768px) {
  body:has(#chat_app) .of-footer {
    display: none;
  }

  main:has(> .container-fluid > #chat_app) {
    padding: 0 !important;
  }

  .container-fluid:has(> #chat_app) {
    padding: 0 !important;
  }

  .of-chat-container {
    position: relative;
    flex-direction: column;
    height: var(--chat-height, calc(100dvh - 72px));
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .of-chat-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
    background: white;
    border-right: none;
    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .of-chat-sidebar.hidden {
    display: none;
  }

  .of-chat-sidebar-header {
    padding: 0.6rem 1rem;
  }

  .of-chat-sidebar-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .of-chat-search {
    display: none;
  }

  /* Three conversations (a row is 50px photo + 2rem padding + 1px border), then scroll. */
  .of-chat-list {
    max-height: calc(3 * (50px + 2rem + 1px));
  }

  .of-chat-sidebar:not(.hidden) ~ .of-chat-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.3);
  }

  .of-chat-main {
    flex: 1;
    min-height: 0;
  }

  .of-mobile-chat-toggle {
    display: flex;
  }

  .of-sidebar-close {
    display: flex;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .of-chat-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .of-chat-header > div:first-child {
    min-width: 0;
  }

  .of-chat-header-user,
  .of-chat-header-user > div {
    min-width: 0;
  }

  .of-chat-header-actions {
    flex-shrink: 0;
  }

  .of-chat-header-user h6 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .of-chat-header-actions .of-chat-call-btn {
    display: none;
  }

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

  .of-message-content {
    max-width: 80%;
  }

  .of-chat-input {
    padding: 0.75rem 1rem;
  }

  .of-chat-input-form input {
    min-width: 0;
  }
}


/*=============================================
=            MAIL PAGE STYLES                 =
=============================================*/

.of-mail-container {
  display: flex;
  height: calc(100vh - 72px - 100px);
  min-height: 600px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.of-mail-sidebar {
  width: 280px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.of-mail-folders {
  padding: 1rem 0.75rem;
}

.of-mail-folder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.of-mail-folder:hover {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-mail-folder.active {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-mail-folder i {
  font-size: 1.2rem;
  width: 24px;
}

.of-mail-folder .count {
  margin-left: auto;
  background: var(--theme-primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.of-mail-list-container {
  flex: 1;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

.of-mail-list-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.of-mail-list-header h6 {
  margin: 0;
  font-weight: 700;
  color: var(--color-dark);
}

.of-mail-list {
  flex: 1;
  overflow-y: auto;
}

.of-mail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
}

.of-mail-item:hover {
  background: var(--theme-accent-subtle);
}

.of-mail-item.active {
  background: var(--theme-accent-subtle);
  border-left: 3px solid var(--theme-primary);
}

.of-mail-item.unread {
  background: #fafbfc;
}

.of-mail-item.unread .of-mail-item-subject {
  font-weight: 700;
}

.of-mail-item-avatar {
  position: relative;
  flex-shrink: 0;
}

.of-mail-item-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.of-mail-item-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--color-success);
  border: 2px solid white;
  border-radius: 50%;
}

.of-mail-item-content {
  flex: 1;
  min-width: 0;
}

.of-mail-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.of-mail-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.of-mail-item-time {
  font-size: 0.75rem;
  color: #999;
}

.of-mail-item-subject {
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-mail-item-preview {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-mail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}

/* Only one thread visible: inactive panes are fully removed from layout */
.of-mail-content > .of-mail-detail-pane:not(.is-active) {
  display: none !important;
}

/* Active pane fills the right column so siblings cannot stack visibly */
.of-mail-content > .of-mail-detail-pane.is-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.of-mail-content-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.of-mail-content-header h5 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  color: var(--color-dark);
}

.of-mail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.of-mail-meta img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.of-mail-meta-info h6 {
  margin: 0;
  font-weight: 600;
  color: var(--color-dark);
}

.of-mail-meta-info span {
  font-size: 0.85rem;
  color: #888;
}

.of-mail-meta-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.of-mail-meta-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.of-mail-meta-actions button:hover {
  background: var(--theme-primary);
  color: white;
}

.of-mail-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: #f8fafc;
}

.of-mail-body-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  line-height: 1.7;
  color: var(--color-dark);
}

.of-mail-body-content p {
  margin-bottom: 1rem;
}

.of-mail-reply {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  background: white;
}

.of-mail-reply-form {
  display: flex;
  gap: 0.75rem;
}

.of-mail-reply-form textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--theme-accent-subtle);
  border-radius: 16px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 4.5rem;
  background: transparent;
  color: inherit;
  transition: all 0.3s ease;
}

.of-mail-reply-form .of-btn-reply {
  align-self: flex-end;
}

.of-mail-reply-form[hidden],
.of-mail-reply [hidden] {
  display: none !important;
}

/* Shown in place of the reply form once the reply is sent */
.of-mail-reply-sent {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.35);
}

.of-mail-reply-sent-icon {
  flex-shrink: 0;
  font-size: 2.25rem;
  line-height: 1;
  color: #16a34a;
}

.of-mail-reply-sent strong {
  display: block;
  font-size: 1.1rem;
}

.of-mail-reply-sent div span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.of-mail-reply-form textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
}

.of-btn-reply {
  background: var(--theme-gradient);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-btn-reply:hover {
  transform: translateY(-2px);
  color: white;
}

.of-mobile-toggle {
  display: none;
  background: var(--theme-gradient);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px var(--theme-shadow-color);
}

.of-mobile-toggle:hover {
  color: white;
}

.of-back-btn {
  display: none;
  background: var(--theme-accent-subtle);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--theme-primary);
  font-weight: 600;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .of-mail-container {
    flex-direction: column;
  }

  .of-mail-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
  }

  .of-mail-folders {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .of-mail-folder {
    flex: 0 0 auto;
    margin-bottom: 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    gap: 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .of-mail-folder i {
    font-size: 1rem;
    width: 20px;
  }

  .of-mail-folder .count {
    margin-left: 0.25rem;
  }

  .of-mail-list-container {
    min-width: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 768px) {
  .of-mail-container {
    height: auto;
    min-height: calc(100vh - 72px - 80px);
    border-radius: 0;
  }
  
  .of-mail-list-container {
    max-height: none;
  }
  
  .of-mail-list {
    max-height: 300px;
    overflow-y: auto;
  }
  
  .of-mail-content {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    min-width: 0;
  }
  
  .of-mail-content-header h5 {
    font-size: 1.1rem;
  }
  
  .of-mail-body {
    padding: 1rem;
    flex: 1;
  }
  
  .of-mail-body-content {
    padding: 1.25rem;
  }
  
  .of-back-btn {
    display: none !important;
  }
}


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

.of-profile-header {
  background: var(--theme-gradient);
  padding: 3rem 0 5rem;
  margin-top: -1rem;
  position: relative;
}

.of-profile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--theme-bg-tint), transparent);
}

.of-profile-avatar-section {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: -80px;
}

.of-profile-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.of-profile-avatar-trigger {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  display: inline-block;
  line-height: 0;
}

.of-profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid white;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.of-profile-avatar-edit {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  background: var(--theme-primary);
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  padding: 0;
  font-family: inherit;
  appearance: none;
}

.of-profile-avatar-edit:hover {
  background: var(--theme-primary-dark);
  transform: scale(1.1);
}

.of-verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-success);
  border: 3px solid white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.of-photo-verified {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2196F3;
  border: 3px solid white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.of-profile-main-info {
  padding-top: 100px;
  text-align: center;
  margin-bottom: 2rem;
}

.of-profile-username {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.of-profile-meta {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.of-profile-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.of-profile-meta i {
  color: var(--theme-primary);
}

.of-profile-headline {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.of-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76, 175, 80, 0.1);
  color: var(--color-success);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.of-profile-status::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.of-profile-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.of-profile-stat {
  text-align: center;
}

.of-profile-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-primary);
}

.of-profile-stat-label {
  color: #888;
  font-size: 0.9rem;
}

/* Profile Card (for profile page) */
.of-profile-card-inner {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.of-profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.of-profile-card-header h5 {
  margin: 0;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.of-profile-card-header h5 i {
  color: var(--theme-primary);
  font-size: 1.2rem;
}

.of-profile-about {
  line-height: 1.8;
  color: #555;
  font-size: 1rem;
  margin-bottom: 0;
}

.of-profile-subsection {
  margin-top: 3rem;
}

.of-profile-subsection .of-profile-card-header {
  margin-bottom: 1.25rem;
}

/* Looking For Tags */
.of-looking-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.of-looking-tag {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.of-looking-tag.active {
  background: var(--theme-gradient);
  color: white;
}

.of-looking-tag.inactive {
  background: #f0f0f0;
  color: #999;
}

/* Details Grid */
.of-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.of-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 12px;
}

.of-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--theme-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.of-detail-text {
  flex: 1;
  min-width: 0;
}

.of-detail-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
}

.of-detail-value {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

/* Photos Grid */
.of-photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.of-photo-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.of-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.of-photo-item:hover img {
  transform: scale(1.05);
}

.of-photo-add {
  background: var(--theme-accent-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--theme-primary);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 2px dashed var(--theme-primary);
  width: 100%;
  padding: 0;
  font-family: inherit;
  appearance: none;
}

.of-photo-add:hover {
  background: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
}

.of-photo-add i {
  font-size: 1.5rem;
}

.of-photo-number {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Photo Viewer */
body.of-photo-viewer-open {
  overflow: hidden;
}

.of-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}

.of-photo-viewer[hidden] {
  display: none !important;
}

.of-photo-viewer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 4rem;
  touch-action: none;
}

.of-photo-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.of-photo-viewer-close,
.of-photo-viewer-prev,
.of-photo-viewer-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.of-photo-viewer-close:hover,
.of-photo-viewer-prev:hover,
.of-photo-viewer-next:hover,
.of-photo-viewer-close:focus-visible,
.of-photo-viewer-prev:focus-visible,
.of-photo-viewer-next:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

.of-photo-viewer-close:disabled,
.of-photo-viewer-prev:disabled,
.of-photo-viewer-next:disabled {
  opacity: 0.35;
  cursor: default;
}

.of-photo-viewer-close {
  top: 1rem;
  right: 1rem;
}

.of-photo-viewer-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.of-photo-viewer-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.of-photo-viewer-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .of-photo-viewer-content {
    padding: 3rem 1rem;
  }

  .of-photo-viewer-prev,
  .of-photo-viewer-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .of-photo-viewer-prev {
    left: 0.5rem;
  }

  .of-photo-viewer-next {
    right: 0.5rem;
  }
}

/* Verification Status */
.of-verification-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 12px;
}

.of-verification-status.pending {
  background: #fff3e0;
}

.of-verification-status.unverified {
  background: #ffebee;
}

.of-verification-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.of-verification-status .of-verification-icon {
  background: var(--color-success);
  color: white;
}

.of-verification-status.pending .of-verification-icon {
  background: #ff9800;
  color: white;
}

.of-verification-status.unverified .of-verification-icon {
  background: #ef5350;
  color: white;
}

.of-verification-text h6 {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.of-verification-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.of-btn-verify {
  background: var(--theme-gradient);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  margin-left: auto;
}

@media (max-width: 992px) {
  .of-details-grid {
    grid-template-columns: 1fr;
  }
  
  .of-photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .of-photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .of-profile-stats {
    gap: 2rem;
  }
  
  .of-profile-avatar {
    width: 140px;
    height: 140px;
  }
  
  .of-profile-avatar-section {
    margin-bottom: -60px;
  }
  
  .of-profile-main-info {
    padding-top: 80px;
  }
}


/*=============================================
=            PROFILE EDIT PAGE STYLES         =
=============================================*/

.of-edit-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.of-edit-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.of-edit-card-header i {
  font-size: 1.5rem;
  color: var(--theme-primary);
}

.of-edit-card-header h5 {
  margin: 0;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.15rem;
}

.of-edit-card-header .badge {
  margin-left: 0.5rem;
}

/* Photo Upload */
.of-photo-upload-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.of-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--theme-primary);
  flex-shrink: 0;
}

.of-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-photo-upload-actions {
  flex: 1;
}

.of-photo-upload-actions h6 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.of-photo-upload-actions p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #888;
}

.of-btn-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--theme-gradient);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.of-sr-only-file-input {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.of-btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-btn-remove-photo {
  background: transparent;
  border: 2px solid #e0e0e0;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.of-btn-remove-photo:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* Photo Grid Edit */
.of-photos-edit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.of-photo-edit-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}

.of-photo-edit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-photo-edit-item .photo-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.of-photo-edit-item .photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem 0.5rem 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.of-photo-edit-item:hover .photo-actions {
  opacity: 1;
}

.of-photo-edit-item .photo-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.of-photo-edit-item .photo-actions .btn-primary-photo {
  background: var(--theme-primary);
  color: white;
}

.of-photo-edit-item .photo-actions .btn-delete-photo {
  background: var(--color-danger);
  color: white;
}

.of-photo-edit-item .photo-actions button:hover {
  transform: scale(1.1);
}

.of-photo-add-slot {
  border: 2px dashed #ccc;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #888;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  padding: 0;
  font-family: inherit;
  appearance: none;
}

.of-photo-add-slot:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  background: var(--theme-accent-subtle);
}

.of-photo-add-slot i {
  font-size: 2rem;
}

.of-photo-add-slot span {
  font-size: 0.85rem;
  font-weight: 600;
}

.of-photo-add-slot.uploading,
.of-btn-upload.uploading,
.of-photo-add.uploading,
.of-profile-avatar-edit.uploading,
.of-btn-edit.uploading {
  opacity: 0.6;
  pointer-events: none;
}

/* Checkbox Groups */
.of-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.of-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f5f5f5;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.of-checkbox-item:hover {
  background: var(--theme-accent-subtle);
}

.of-checkbox-item.selected {
  background: var(--theme-accent-subtle);
  border-color: var(--theme-primary);
}

.of-checkbox-item input {
  display: none;
}

.of-checkbox-item .checkmark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.of-checkbox-item.selected .checkmark {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: white;
}

.of-checkbox-item .label {
  font-weight: 500;
  color: var(--color-dark);
}

/* Verification Box */
.of-verification-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
}


/*=============================================
=            TOKENS PAGE STYLES               =
=============================================*/

/* Gold-themed page header for tokens */
.of-page-header.gold {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #ffd700 100%);
}

.of-page-header.gold .of-page-title {
  color: #333;
}

.of-page-header.gold .of-page-subtitle {
  color: rgba(0,0,0,0.7);
}

.of-tokens-container {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

/* Balance Card */
.of-balance-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.of-balance-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.of-balance-icon {
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #333;
}

.of-balance-text h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

.of-balance-text .balance {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.of-balance-text .balance small {
  font-size: 1rem;
  color: #888;
  font-weight: 500;
}

/* Token Package Card */
.of-token-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
}

.of-token-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--color-gold-dark);
}

.of-token-card.selected {
  border-color: var(--color-gold-dark);
  box-shadow: 0 15px 50px rgba(218, 165, 32, 0.3);
}

.of-token-card.best-deal {
  border-color: var(--color-gold-dark);
}

.of-token-card.best-deal::before {
  content: 'BEST DEAL';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-gold);
  color: #333;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.of-token-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e8f5e9;
  color: var(--color-success);
}

.of-token-content {
  padding: 2rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.of-token-card.best-deal .of-token-content {
  padding-top: 2.5rem;
}

.of-token-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.of-token-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.of-token-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.of-token-amount i {
  font-size: 1.5rem;
  color: var(--color-gold-dark);
}

.of-token-amount span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}

.of-token-rate {
  font-size: 0.85rem;
  color: #888;
}

.of-token-rate strong {
  color: var(--color-success);
}

.of-token-footer {
  padding: 0 1.5rem 1.5rem;
}

.of-btn-buy {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: #333;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
  text-decoration: none;
}

.of-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
  color: #333;
}

/* What Tokens Buy Section */
.of-tokens-uses {
  margin-top: 3rem;
}

.of-tokens-uses h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.of-use-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.of-use-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-gold-dark);
}

.of-use-card h5 {
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.of-use-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.of-use-card .cost {
  font-weight: 700;
  color: var(--color-gold-dark);
}

/* Payment Methods Section */
.of-payment-methods {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.of-payment-methods h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  margin: 0 0 1rem;
}

.of-payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.of-payment-icons i {
  font-size: 2rem;
  color: #666;
}

.of-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #888;
  font-size: 0.9rem;
}

.of-security-note i {
  color: var(--color-success);
}


/*=============================================
=            SUBSCRIPTION PAGE STYLES         =
=============================================*/

.of-current-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.of-current-plan i {
  color: var(--color-warning);
}

.of-current-plan span {
  color: white;
  font-weight: 500;
}

.of-pricing-container {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}

.of-pricing-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.of-pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.of-pricing-card.featured {
  border: 3px solid var(--theme-primary);
  transform: scale(1.05);
  transform-origin: center top;
  z-index: 5;
}

.of-pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  transform-origin: center top;
}

.of-pricing-card.ultimate {
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--color-gold) border-box;
}

.of-pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.of-pricing-badge.popular {
  background: var(--theme-gradient);
  color: white;
}

.of-pricing-badge.best-value {
  background: var(--color-gold);
  color: #333;
}

.of-pricing-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.of-pricing-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}

.of-pricing-card:nth-child(1) .of-pricing-icon {
  background: #e3f2fd;
  color: var(--theme-primary);
}

.of-pricing-card:nth-child(2) .of-pricing-icon {
  background: var(--theme-gradient);
  color: white;
}

.of-pricing-card:nth-child(3) .of-pricing-icon {
  background: var(--color-gold);
  color: #333;
}

.of-pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.of-pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.of-pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.of-pricing-price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}

.of-pricing-price .period {
  font-size: 1rem;
  color: #888;
  font-weight: 500;
}

.of-pricing-features {
  padding: 1.5rem;
  flex: 1;
}

.of-pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.of-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #555;
}

.of-pricing-features li i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.of-pricing-features li i.ti-check {
  color: var(--color-success);
}

.of-pricing-features li i.ti-x {
  color: #ccc;
}

.of-pricing-features li.highlight {
  background: var(--theme-accent-subtle);
  margin: 0.25rem -1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--theme-primary);
}

.of-pricing-features li.highlight i {
  color: var(--theme-primary);
}

.of-pricing-features li.token-highlight {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
  margin: 0.25rem -1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: #b8860b;
}

.of-pricing-features li.token-highlight i {
  color: #daa520;
}

.of-pricing-features .feature-disabled {
  color: #bbb;
  text-decoration: line-through;
}

.of-pricing-footer {
  padding: 0 1.5rem 1.5rem;
}

.of-btn-subscribe {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.of-btn-subscribe.basic {
  background: #f0f0f0;
  color: var(--color-dark);
}

.of-btn-subscribe.basic:hover {
  background: #e0e0e0;
}

.of-btn-subscribe.premium {
  background: var(--theme-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-btn-subscribe.premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--theme-shadow-color);
  color: white;
}

.of-btn-subscribe.ultimate {
  background: var(--color-gold);
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.of-btn-subscribe.ultimate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
  color: #333;
}

/* FAQ Section */
.of-faq-section {
  margin-top: 3rem;
}

.of-faq-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.of-faq-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  height: calc(100% - 1.5rem);
}

.of-faq-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.of-faq-card h5 i {
  color: var(--theme-primary);
  font-size: 1.25rem;
}

.of-faq-card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}


/*=============================================
=            SETTINGS PAGE STYLES             =
=============================================*/

.of-settings-nav {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 80px;
}

.of-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.of-settings-nav-item:hover {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-settings-nav-item.active {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-settings-nav-item i {
  font-size: 1.2rem;
  width: 24px;
}

.of-settings-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.of-settings-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.of-settings-card-header h5 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.of-settings-card-header h5 i {
  color: var(--theme-primary);
}

.of-settings-card-header p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

/* Toggle Switch */
.of-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.of-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.of-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.of-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.of-toggle input:checked + .of-toggle-slider {
  background: var(--theme-primary);
}

.of-toggle input:checked + .of-toggle-slider:before {
  transform: translateX(24px);
}

/* Setting Row */
.of-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.of-setting-row:last-child {
  border-bottom: none;
}

.of-setting-info h6 {
  margin: 0;
  font-weight: 600;
  color: var(--color-dark);
}

.of-setting-info p {
  margin: 0.25rem 0 0;
  color: #888;
  font-size: 0.85rem;
}

/* Notification Settings with Email/Text Columns */
.of-notification-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 0.5rem;
}

.of-toggle-labels {
  display: flex;
  gap: 2rem;
}

.of-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  width: 50px;
  justify-content: center;
}

.of-toggle-label i {
  font-size: 1rem;
  color: var(--theme-primary);
}

.of-toggle-group {
  display: flex;
  gap: 2rem;
}

.of-toggle-group .of-toggle {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .of-notification-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .of-toggle-labels {
    align-self: flex-end;
  }
  
  .of-setting-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .of-toggle-group {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Button Variants */
.of-btn-outline {
  background: white;
  border: 2px solid var(--theme-accent-subtle);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-dark);
  transition: all 0.3s ease;
}

.of-btn-outline:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.of-btn-danger {
  background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  color: white;
}

.of-btn-danger:hover {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: white;
}

/* Subscription Badge */
.of-subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-warning) 0%, #FFA500 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Token Balance in Settings */
.of-token-balance-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-primary);
}

.of-token-balance-display small {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
}

@media (max-width: 992px) {
  .of-settings-nav {
    position: static;
  }
}


/*=============================================
=            NOTIFICATION ICONS               =
=============================================*/

.of-notification-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.of-notification-icon.like {
  background: #ffebee;
  color: var(--color-danger);
}

.of-notification-icon.match {
  background: #e8f5e9;
  color: var(--color-success);
}

.of-notification-icon.message {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

/* Alert types (alerts.alert_type) for the bell dropdown and /notifications */
.of-notification-icon.matches,
.of-notification-type-icon.matches {
  background: #e8f5e9;
  color: var(--color-success);
}

.of-notification-icon.mail,
.of-notification-icon.dm,
.of-notification-type-icon.mail,
.of-notification-type-icon.dm {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

.of-notification-icon.views,
.of-notification-type-icon.views {
  background: #f3e5f5;
  color: #8e24aa;
}

.of-notification-icon.token,
.of-notification-type-icon.token {
  background: #fff8e1;
  color: #f9a825;
}


/*=============================================
=            NOTIFICATIONS PAGE               =
=============================================*/

/* Notification Filters */
.of-notification-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.of-filter-btn {
  background: transparent;
  border: 2px solid var(--theme-accent-subtle);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.of-filter-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.of-filter-btn.active {
  background: var(--theme-gradient);
  border-color: transparent;
  color: white;
}

/* Notifications List */
.of-notifications-page-list {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.of-notification-date-header {
  background: var(--theme-accent-subtle);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.of-notification-page-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.of-notification-page-item:hover {
  background: #f8fafc;
}

.of-notification-page-item.unread {
  background: rgba(30, 136, 229, 0.05);
  border-left: 4px solid var(--theme-primary);
}

.of-notification-page-item.unread:hover {
  background: rgba(30, 136, 229, 0.08);
}

/* Avatar with type icon */
.of-notification-page-avatar {
  position: relative;
  flex-shrink: 0;
}

.of-notification-page-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.of-notification-type-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid white;
}

.of-notification-type-icon.like {
  background: #ffebee;
  color: var(--color-danger);
}

.of-notification-type-icon.favorite {
  background: #fff8e1;
  color: #f9a825;
}

.of-notification-type-icon.message {
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
}

/* Large icon for non-avatar notifications */
.of-notification-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.of-notification-icon-large.match {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: var(--color-success);
}

.of-notification-icon-large.views {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: var(--theme-primary);
}

.of-notification-icon-large.system {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #ff9800;
}

/* Content */
.of-notification-page-content {
  flex: 1;
  min-width: 0;
}

.of-notification-page-content p {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.4;
}

.of-notification-page-content strong {
  font-weight: 600;
}

.of-notification-time {
  font-size: 0.8rem;
  color: #888;
}

/* Actions */
.of-notification-page-actions {
  flex-shrink: 0;
}

.of-btn-view {
  background: white;
  border: 2px solid var(--theme-accent-subtle);
  color: var(--color-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.of-btn-view:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.of-btn-primary-sm {
  background: var(--theme-gradient);
  border: none;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.of-btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--theme-shadow-color);
  color: white;
}

.of-btn-outline {
  background: white;
  border: 2px solid var(--theme-accent-subtle);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-dark);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.of-btn-outline:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

@media (max-width: 768px) {
  .of-notification-page-item {
    flex-wrap: wrap;
  }
  
  .of-notification-page-actions {
    width: 100%;
    margin-top: 0.75rem;
    padding-left: 72px;
  }
  
  .of-notification-filters {
    gap: 0.4rem;
  }
  
  .of-filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}


/*=============================================
=            FORM ERROR STYLES               =
=============================================*/

/* Form-level alert banner */
.of-form-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.of-form-alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.of-form-alert-error {
  background: rgba(239, 83, 80, 0.15);
  border: 1px solid rgba(239, 83, 80, 0.3);
  color: #ef5350;
}

.of-form-alert-warning {
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

.of-form-alert-success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

/* Individual field error messages */
.of-form-error {
  display: block;
  color: #ef5350;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Error state for form controls */
.of-form-control.error,
.of-form-control.is-invalid {
  border-color: #ef5350 !important;
  background: rgba(239, 83, 80, 0.05);
}

.of-form-control.error:focus,
.of-form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.15) !important;
}

/* Success state for form controls */
.of-form-control.success,
.of-form-control.is-valid {
  border-color: #4caf50 !important;
}

.of-form-control.success:focus,
.of-form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15) !important;
}

/* Password strength indicator */
.of-password-strength {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.of-strength-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.of-strength-fill {
  height: 100%;
  width: 25%;
  background: #ef5350;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.of-strength-fill.weak {
  width: 25%;
  background: #ef5350;
}

.of-strength-fill.fair {
  width: 50%;
  background: #ff9800;
}

.of-strength-fill.good {
  width: 75%;
  background: #4caf50;
}

.of-strength-fill.strong {
  width: 100%;
  background: #2e7d32;
}

.of-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 50px;
}

.of-strength-text.weak {
  color: #ef5350;
}

.of-strength-text.fair {
  color: #ff9800;
}

.of-strength-text.good {
  color: #4caf50;
}

.of-strength-text.strong {
  color: #2e7d32;
}

/* Checkbox error state */
.of-checkbox-row.error label {
  color: #ef5350;
}

.of-checkbox-row.error input[type="checkbox"] {
  outline: 2px solid #ef5350;
  outline-offset: 2px;
}


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

/* Large main photo beside the profile's key info (templates/whitelabel/pages/profile.tpl). */
.of-profile-hero {
  padding: 1.5rem 0 0.5rem;
}

.of-hero-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  width: min(100%, calc((100vh - 140px) * 0.75));
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.of-hero-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.of-hero-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.of-hero-photo:hover .of-hero-nav,
.of-hero-nav:focus-visible {
  opacity: 1;
}

.of-hero-nav:hover {
  background: white;
}

.of-hero-prev { left: 16px; }
.of-hero-next { right: 16px; }

.of-hero-counter,
.of-hero-online,
.of-hero-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.of-hero-counter {
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
}

.of-hero-online {
  top: 16px;
  left: 16px;
  background: rgba(76, 175, 80, 0.92);
  color: white;
}

.of-hero-online::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.of-hero-pill {
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 120px);
  text-decoration: none;
  color: white;
  background: rgba(0, 0, 0, 0.55);
}

.of-hero-locked {
  background: var(--theme-gradient);
  box-shadow: 0 4px 15px var(--theme-shadow-color);
}

.of-hero-pill:hover {
  color: white;
  filter: brightness(1.1);
}

.of-hero-photo .of-verified-badge {
  top: 16px;
  right: 16px;
}

.of-hero-info {
  padding-top: 0.5rem;
}

.of-hero-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.of-hero-age {
  font-weight: 400;
  color: #555;
  margin-left: -0.5rem;
}

.of-hero-info .of-profile-meta {
  justify-content: flex-start;
  font-size: 1rem;
}

.of-hero-info .of-profile-headline {
  margin: 0 0 1.25rem;
  max-width: none;
}

.of-hero-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.of-hero-actions .of-btn-edit {
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 14px;
}

.of-hero-actions .of-btn-chat-profile {
  background: var(--theme-gradient);
  color: white;
  box-shadow: 0 6px 18px var(--theme-shadow-color);
}

.of-hero-actions .of-btn-chat-profile:hover {
  filter: brightness(1.08);
}

.of-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.of-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  border: 1px solid #e8edf3;
  border-radius: 50px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  color: #444;
}

.of-hero-facts i {
  color: var(--theme-primary);
}

.of-hero-info .of-profile-stats {
  justify-content: flex-start;
  gap: 2rem;
  margin: 1.25rem 0;
}

.of-hero-info .of-profile-stat {
  text-align: left;
}

.of-hero-info .of-profile-stat-value {
  font-size: 1.5rem;
}

.of-hero-info .of-photos-grid {
  grid-template-columns: repeat(4, 1fr);
}

.of-photo-item.of-photo-current {
  outline: 3px solid var(--theme-primary);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .of-hero-info {
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 991.98px) {
  .of-profile-hero {
    padding-top: 0.75rem;
  }

  .of-hero-photo {
    width: 100%;
    max-height: 82vh;
  }

  .of-hero-nav {
    opacity: 1;
    width: 40px;
    height: 40px;
  }

  .of-hero-name {
    font-size: 2rem;
  }
}

/*=====  End of PROFILE HERO  ======*/


/*=============================================
=            ONLINE CUPIDS INDICATOR           =
=============================================*/

/* Marks cupid profiles (Terms, section 9: #online-cupids). Deliberately icon-only. */
.of-cupid-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: white;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.45);
  vertical-align: middle;
  flex: 0 0 auto;
}

.of-hero-name .of-cupid-indicator {
  font-size: 1rem;
}

.of-cupid-indicator:hover {
  color: white;
  filter: brightness(1.08);
}

.of-cupid-indicator-inline {
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.8rem;
  margin: 0 0.15rem;
}

#online-cupids {
  scroll-margin-top: 100px;
}

/*=====  End of ONLINE CUPIDS INDICATOR  ======*/


/*=============================================
=            CHAT TYPING INDICATOR             =
=============================================*/

/* "typing..." bubble while a cupid's reply is being typed (js/chat.js setTyping()). */
.of-message-typing .of-message-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.of-message-typing .of-message-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: of-typing-dot 1.2s infinite ease-in-out;
}

.of-message-typing .of-message-bubble span:nth-child(2) { animation-delay: 0.15s; }
.of-message-typing .of-message-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes of-typing-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/*=====  End of CHAT TYPING INDICATOR  ======*/


/*=============================================
=            AD ZONES                          =
=============================================*/

/* components/ad_slot.tpl. Units keep their aspect ratio and shrink to fit narrow screens. A zone
   with a phone size (leaderboards: 728x90 / 320x50) has a unit of each; the width decides which shows. */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.ad-slot-top { margin: 16px 0 4px; }
.ad-slot-bottom { margin: 24px 0 16px; }

.ad-unit {
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.ad-unit img,
.ad-unit .ad-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ad-unit-mobile { display: none; }

@media (max-width: 767.98px) {
  .ad-unit-desktop { display: none; }
  .ad-unit-mobile { display: block; }
  .ad-slot-top { margin: 10px 0 0; }
}

.ad-label {
  font-size: 0.7rem;
  line-height: 1.6;
  color: #8a8a99;
  text-align: center;
  margin-top: 2px;
}

.ad-label a { color: inherit; text-decoration: underline; }

/* Between the member cards (search, favorites): a card the same height as its row. */
.ad-list-col { display: flex; }

.ad-slot-list {
  width: 100%;
  min-height: 100%;
  justify-content: center;
  padding: 12px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Pop-up. Full-width on phones with a large close target. */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ad-modal[hidden] { display: none; }

.ad-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 25, 0.6);
}

.ad-modal-box {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 36px 16px 10px;
  max-width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: ad-modal-in 0.2s ease-out;
}

.ad-modal-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  color: #555;
  border-radius: 50%;
}

.ad-modal-close:hover,
.ad-modal-close:focus-visible { background: rgba(0, 0, 0, 0.06); }

body.ad-modal-open { overflow: hidden; }

@keyframes ad-modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/*=====  End of AD ZONES  ======*/

/* Admin > Ad Stats: impressions per day. */
.ad-stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
}

.ad-stats-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.ad-stats-bar-fill {
  width: 100%;
  background: var(--bs-primary, #5d87ff);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.ad-stats-bar:hover .ad-stats-bar-fill { opacity: 1; }

/* Admin > Mail Stats: sent, opened and clicked overlaid in each day's bar. */
.mail-stats-bar {
  position: relative;
}

.mail-stats-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 3px 3px 0 0;
}

.mail-stats-sent { background: #c7d7fe; }
.mail-stats-opened { background: #5d87ff; left: 15%; right: 15%; }
.mail-stats-clicked { background: #13deb9; left: 30%; right: 30%; }

.mail-stats-legend {
  display: flex;
  gap: 0.75rem;
}

.mail-stats-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  position: static;
  vertical-align: -1px;
}

/* Admin > Ads: an HTML ad's preview box. */
.admin-ad-html {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed #ccc;
  border-radius: 6px;
}

/* Admin > Ads and Ad Stats: cards in a plain stack (.of-content-card overlaps the page header elsewhere). */
.admin-ads-page .of-content-card { margin: 0 0 1rem; }
.admin-ads-page details > summary { cursor: pointer; }

/* ============================================================
   MEMBER HOME (pages/home.tpl)
   ============================================================ */

/* Welcome: a light tint of the theme under the bold header bar (so the menu stands apart), the member's
   photo, and quick counts on white tiles. The sections below overlap its lower edge. */
.of-home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--theme-accent-subtle) 0%, color-mix(in srgb, var(--theme-accent-subtle) 45%, white) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-primary) 10%, transparent);
  color: var(--color-dark);
  padding: 2rem 0 4.5rem;
}

.of-home-hero::before,
.of-home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-primary) 7%, transparent);
  pointer-events: none;
}

.of-home-hero::before {
  width: 420px;
  height: 420px;
  top: -220px;
  right: -120px;
}

.of-home-hero::after {
  width: 260px;
  height: 260px;
  bottom: -160px;
  left: -80px;
}

.of-home-hero .container {
  position: relative;
  z-index: 1;
}

.of-home-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.of-home-hero-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 8px 24px var(--theme-shadow-color);
  overflow: hidden;
  display: block;
  color: white;
  text-decoration: none;
}

.of-home-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-home-hero-avatar-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--theme-gradient);
  font-size: 1.5rem;
  line-height: 1;
}

.of-home-hero-avatar-empty small {
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.of-home-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.15;
  word-break: break-word;
}

.of-home-hero-sub {
  margin: 0.35rem 0 0;
  color: #5b6070;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.of-home-live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
  animation: of-home-live 2s infinite;
}

@keyframes of-home-live {
  0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .of-home-live-dot { animation: none; }
}

.of-home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .of-home-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 760px;
  }
}

.of-home-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 15%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 8%, transparent);
  color: var(--color-dark);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.of-home-stat:hover {
  box-shadow: 0 8px 22px var(--theme-shadow-color);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.of-home-stat-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--theme-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.of-home-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.of-home-stat-label {
  font-size: 0.78rem;
  color: #5b6070;
}

/* Sections */
.of-home > .container {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
}

.of-home-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(17, 24, 39, 0.08);
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.of-home .ad-slot-home {
  margin: 0 0 1.5rem;
}

.of-home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.of-home-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.of-home-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.of-home-section-icon .ti {
  font-size: 1.1rem;
}

.of-home-section-icon-live {
  background: rgba(76, 175, 80, 0.12);
}

.of-home-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: var(--theme-accent-subtle);
}

.of-home-more:hover {
  color: var(--theme-primary-dark);
}

.of-home-count {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.of-home-empty {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
  color: #6c757d;
}

.of-home-empty p {
  margin: 0.6rem 0 0.9rem;
  font-size: 0.9rem;
}

.of-home-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--theme-accent-subtle);
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.of-home-btn {
  background: var(--theme-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.of-home-btn:hover {
  color: white;
  filter: brightness(1.05);
}

/* Online Now: 12 square tiles, 6 across on desktop, 4 on phones */
.of-home-online {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .of-home-online {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
  }
}

.of-home-online-item {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--theme-accent-subtle);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.of-home-online-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}

.of-home-online-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-home-online-item::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid white;
}

.of-home-online-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.45rem 0.35rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-home-online-age {
  margin-left: 0.25rem;
  font-weight: 400;
  opacity: 0.85;
}

/* New Matches: 4 portrait cards, 2 across on phones */
.of-home-matches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .of-home-matches {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* No mail or chats beside them (of-home-wide): Online Now in one row of 12, 6 matches */
@media (min-width: 992px) {
  .of-home-wide .of-home-online {
    grid-template-columns: repeat(12, 1fr);
  }

  .of-home-wide .of-home-matches {
    grid-template-columns: repeat(6, 1fr);
  }

  .of-home-wide .ad-slot-home {
    display: flex;
    justify-content: center;
  }
}

.of-home-match {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.of-home-match:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
}

.of-home-match-photo {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--theme-accent-subtle);
  color: white;
  text-decoration: none;
}

.of-home-match-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.of-home-match-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.of-home-match-online {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  background: #4caf50;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}

.of-home-match-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 0.75rem 3.4rem;
  display: flex;
  flex-direction: column;
}

.of-home-match-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-home-match-age {
  font-weight: 400;
}

.of-home-match-place {
  font-size: 0.72rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-home-match-actions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.of-home-match-btn {
  flex: 1;
  height: 36px;
  border-radius: 50px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.of-home-match-btn:hover {
  transform: scale(1.05);
}

.of-home-match-chat {
  background: rgba(255, 255, 255, 0.92);
  color: var(--theme-primary);
}

.of-home-match-chat:hover {
  color: var(--theme-primary-dark);
}

/* Incoming Mail / Recent Chats */
.of-home-list {
  display: flex;
  flex-direction: column;
}

.of-home-list-item {
  border-bottom: 1px solid #f1f1f4;
}

.of-home-list-item:last-child {
  border-bottom: none;
}

.of-home-list-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.35rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.of-home-list-main:hover {
  background: var(--theme-accent-subtle);
  color: inherit;
}

.of-home-list-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
}

.of-home-list-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.of-home-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid white;
}

.of-home-list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.of-home-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.of-home-list-name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-home-list-time {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
}

.of-home-list-text {
  font-size: 0.82rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.of-home-list-item.unread .of-home-list-name,
.of-home-list-item.unread .of-home-list-text {
  color: #111827;
  font-weight: 700;
}

.of-home-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-primary);
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* Only a couple of messages: bigger photos, a preview, and a reply link */
.of-home-roomy .of-home-list-avatar {
  width: 72px;
  height: 72px;
  border: 3px solid var(--theme-accent-subtle);
}

.of-home-roomy .of-home-list-name {
  font-size: 1.02rem;
}

.of-home-roomy .of-home-list-text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.of-home-list-preview {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.of-home-reply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.35rem 0 0.6rem;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  background: var(--theme-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--theme-shadow-color);
  transition: transform 0.2s ease;
}

.of-home-reply:hover {
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .of-home-hero {
    padding-top: 1.5rem;
  }

  .of-home-hero-avatar {
    width: 64px;
    height: 64px;
  }

  .of-home-title {
    font-size: 1.45rem;
  }

  .of-home-hero-sub {
    font-size: 0.88rem;
  }

  .of-home-section {
    padding: 1rem 0.9rem 1.1rem;
  }
}

/* Long usernames are cut short, never the age after them. */
.of-home-online-name,
.of-home-match-name {
  display: flex;
  align-items: baseline;
}

.of-home-trunc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.of-home-online-age,
.of-home-match-age {
  flex-shrink: 0;
}

/* The unread count sits on the section icon, so headers fit the narrow column. */
.of-home-section-icon {
  position: relative;
}

.of-home-icon-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  padding: 0.1rem 0.35rem;
  text-align: center;
  border: 2px solid white;
}

.of-home-section-header h2 {
  min-width: 0;
}
