/* CSS Custom Properties & Design Tokens */
@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
}

@layer theme {
  :root {
    /* Color Palette - HSL Tailored (Dark Mode by Default) */
    --bg-base: hsl(224, 71%, 4%);
    --bg-grid: rgba(255, 255, 255, 0.03);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 15%, 50%);
    
    /* Card Glass Colors */
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.5);
    
    /* Interactive Accents */
    --accent-1: hsl(263, 90%, 65%); /* Violet */
    --accent-2: hsl(325, 90%, 60%); /* Pink */
    --accent-3: hsl(190, 90%, 50%); /* Cyan */
    
    --badge-bg: rgba(139, 92, 246, 0.15);
    --badge-text: hsl(263, 100%, 80%);
    --badge-green-bg: rgba(16, 185, 129, 0.15);
    --badge-green-text: hsl(150, 100%, 75%);
    
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus: hsl(263, 90%, 65%);
    
    --btn-primary-bg: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --btn-primary-text: hsl(0, 0%, 100%);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Light Theme Variables */
  body.light-theme {
    --bg-base: hsl(220, 30%, 96%);
    --bg-grid: rgba(0, 0, 0, 0.02);
    --text-primary: hsl(224, 71%, 4%);
    --text-secondary: hsl(220, 20%, 35%);
    --text-muted: hsl(220, 15%, 55%);
    
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-shadow: rgba(15, 23, 42, 0.08);
    
    --accent-1: hsl(262, 80%, 50%);
    --accent-2: hsl(325, 80%, 48%);
    --accent-3: hsl(190, 90%, 40%);
    
    --badge-bg: rgba(139, 92, 246, 0.1);
    --badge-text: hsl(262, 80%, 45%);
    --badge-green-bg: rgba(16, 185, 129, 0.1);
    --badge-green-text: hsl(150, 80%, 30%);
    
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(0, 0, 0, 0.12);
    --input-focus: hsl(262, 80%, 50%);
  }
}

@layer base {
  body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    font-size: 16px;
    background-image: 
      linear-gradient(var(--bg-grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
  }
}

@layer components {
  /* Glowing background blobs */
  .glow-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
  }

  .glow-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: floatGlow 20s infinite alternate ease-in-out;
    transition: var(--transition-smooth);
  }

  body.light-theme .glow-ball {
    opacity: 0.25;
    mix-blend-mode: multiply;
    filter: blur(80px);
  }

  .glow-ball-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
  }

  .glow-ball-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-2);
    bottom: 15%;
    right: 15%;
    animation-delay: -5s;
  }

  .glow-ball-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 60%;
    animation-delay: -10s;
  }

  @keyframes floatGlow {
    0% {
      transform: translate(0, 0) scale(1);
    }
    100% {
      transform: translate(80px, 40px) scale(1.15);
    }
  }

  /* Main application layout wrapper */
  .app-container {
    width: 100%;
    max-width: 820px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Header styles */
  .app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
  }

  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
  }

  .logo-icon {
    font-size: 1.4rem;
  }

  .logo-text {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: var(--transition-bounce);
  }

  .theme-toggle:hover {
    transform: scale(1.08) rotate(15deg);
    border-color: var(--accent-1);
  }

  .toggle-icon {
    font-size: 1.2rem;
  }

  /* Premium Glassmorphic Cards */
  .glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.25rem;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 16px 36px var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }

  .glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px var(--card-shadow);
    border-color: rgba(255, 255, 255, 0.15);
  }

  body.light-theme .glass-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
  }

  /* Card inner glow effect */
  .card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    top: -50px;
    right: -50px;
    transition: var(--transition-smooth);
  }

  /* Hero section typography */
  .greeting-section {
    margin-bottom: 2rem;
  }

  .badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .badge-green {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-text);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
  }

  h1.gradient-text {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-1) 10%, var(--accent-2) 50%, var(--accent-3) 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 6s linear infinite;
  }

  @keyframes shineText {
    to { background-position: 200% center; }
  }

  .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
  }

  /* Customizer controls */
  .customizer-box {
    margin-top: 1.5rem;
  }

  .input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
  }

  .input-group {
    display: flex;
    gap: 0.75rem;
  }

  input[type="text"] {
    flex: 1;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
  }

  input[type="text"]:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  }

  .btn {
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
  }

  .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
  }

  body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
  }
  
  body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.07);
  }

  /* Business Directory Styling */
  .directory-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .directory-header {
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: -0.75rem;
  }

  .filters-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .search-wrapper {
    flex: 2;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-wrapper input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 0.85rem 1.25rem 0.85rem 2.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
  }

  .search-wrapper input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  }

  .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
  }

  .select-wrapper {
    flex: 1;
    min-width: 180px;
    position: relative;
  }

  .select-wrapper select {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    appearance: none;
    outline: none;
    transition: var(--transition-smooth);
    cursor: pointer;
  }

  .select-wrapper select:focus {
    border-color: var(--input-focus);
  }

  .select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  /* Grid Layout for Directory Cards */
  .directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    min-height: 180px;
    transition: var(--transition-smooth);
  }

  /* Business profile card specs */
  .business-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
  }

  body.light-theme .business-card {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .business-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  body.light-theme .business-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .biz-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .biz-card-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-1);
    flex-shrink: 0;
    background-color: var(--card-bg);
  }

  .biz-card-logo-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1.5px solid var(--accent-1);
    flex-shrink: 0;
  }

  .biz-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .biz-badge {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-text);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(16, 185, 129, 0.1);
  }

  .biz-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-3);
    margin-bottom: 0.5rem;
    display: inline-block;
  }

  .biz-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .biz-owner {
    font-size: 0.825rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
    margin-top: auto;
  }

  body.light-theme .biz-owner {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .owner-name {
    font-weight: 600;
    color: var(--text-secondary);
  }

  .owner-church {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .owner-church-label {
    font-style: italic;
  }

  .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
  }

  .tag-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }

  body.light-theme .tag-pill {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
  }

  .loading-placeholder, .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Grid Layout for diagnostics dashboard */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
  }

  .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 1.3rem;
  }

  /* List components */
  .diagnostics-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .diag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  body.light-theme .diag-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .diag-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .diag-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
  }

  .diag-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
  }

  .diag-value.highlight {
    color: var(--accent-3);
    font-weight: 600;
  }

  .text-capitalize {
    text-transform: capitalize;
  }

  /* Footer styles */
  .app-footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  .heart {
    color: var(--accent-2);
    display: inline-block;
    animation: beat 1.2s infinite ease-in-out;
  }

  @keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }
}

@layer utilities {
  /* Responsive breakpoint optimizations */
  @media (max-width: 600px) {
    h1.gradient-text {
      font-size: 2.5rem;
    }
    
    .glass-card {
      padding: 1.5rem;
    }

    body {
      padding: 1rem;
    }

    .filters-container {
      flex-direction: column;
      align-items: stretch;
    }

    /* Modal Responsive Rules */
    .modal-layout-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .modal-card {
      max-height: 95vh;
      padding: 1.25rem !important;
      gap: 1rem;
    }
    
    .modal-title {
      font-size: 1.5rem !important;
    }

    .modal-footer {
      flex-direction: column;
      align-items: stretch;
    }

    .modal-footer .btn {
      width: 100%;
    }
  }
}

@layer components {
  /* Modal Overlay */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Modal Card */
  .modal-card {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
    gap: 1.25rem;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    overflow: hidden;
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
  }

  /* Close button */
  .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-bounce);
    z-index: 10;
  }

  .modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
  }

  body.light-theme .modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Header styles inside modal */
  .modal-badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .modal-biz-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-3);
  }

  .modal-province-badge {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-text);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem !important;
    font-weight: 800;
    margin-bottom: 0.25rem !important;
    line-height: 1.2;
  }

  .modal-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 !important;
  }

  /* Modal body layout */
  .modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Custom scrollbar for modal body */
  .modal-body::-webkit-scrollbar {
    width: 6px;
  }

  .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
  }

  .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
  }

  body.light-theme .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
  }

  /* Layout grid */
  .modal-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
  }

  .modal-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Modal block structure */
  .modal-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.25rem;
  }

  body.light-theme .modal-block {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
  }

  .modal-block.card-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.15);
  }

  body.light-theme .modal-block.card-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(236, 72, 153, 0.04));
  }

  .modal-block-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }

  .modal-desc-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
  }

  .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  /* Fellowship info rows */
  .fellowship-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .fellowship-row:last-child {
    margin-bottom: 0;
  }

  .fellowship-icon {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  body.light-theme .fellowship-icon {
    background: rgba(0, 0, 0, 0.03);
  }

  .fellowship-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .fellowship-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .fellowship-value.highlight-church {
    color: var(--accent-3);
    font-style: italic;
  }

  /* Social links list inside modal */
  .modal-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-bounce);
  }

  body.light-theme .social-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
  }

  .social-item:hover {
    color: var(--text-primary);
    transform: scale(1.02);
    border-color: var(--accent-1);
  }

  /* Modal Footer */
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: auto;
  }

  body.light-theme .modal-footer {
    border-top-color: rgba(0, 0, 0, 0.05);
  }

  /* "View Details" Card Button trigger style */
  .view-details-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    transition: var(--transition-bounce);
    font-weight: 600;
  }

  .view-details-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border-color: var(--accent-1);
    color: var(--badge-text);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
  }

  body.light-theme .view-details-btn {
    background: rgba(0, 0, 0, 0.03);
  }
}

@layer components {
  /* ==========================================================================
     TCBA Business Profile Detail Page Styles
     ========================================================================== */

  body.profile-page {
    align-items: flex-start;
  }

  /* Profile Grid & Container Layout */
  .app-container:has(.profile-grid) {
    max-width: 1040px;
  }

  .profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    width: 100%;
  }

  @media (max-width: 820px) {
    .profile-grid {
      grid-template-columns: 1fr;
    }
  }

  .profile-left-col, .profile-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Profile Hero Section */
  .profile-hero-card {
    position: relative;
    height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 2rem !important;
    border-radius: 24px;
    overflow: hidden;
  }

  .profile-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) contrast(1.1);
    transition: var(--transition-smooth);
  }

  .profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    z-index: 1;
  }

  body.light-theme .profile-hero-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.3) 60%, transparent 100%);
  }

  .profile-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .profile-logo-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--accent-1);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background-color: var(--card-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.light-theme .profile-logo-container {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .profile-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .profile-main-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .profile-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .profile-badge-row .badge, 
  .profile-badge-row .biz-badge {
    margin-bottom: 0;
  }

  .verified-badge {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(150, 100%, 75%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
  }

  body.light-theme .verified-badge {
    background: rgba(16, 185, 129, 0.1);
    color: hsl(150, 80%, 30%);
  }

  .profile-title {
    font-size: 2.2rem !important;
    font-weight: 800;
    margin: 0.25rem 0 0.15rem 0 !important;
    line-height: 1.2;
  }

  .profile-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
  }

  @media (max-width: 600px) {
    .profile-hero-card {
      height: auto;
      padding-top: 5rem !important;
    }
    
    .profile-header-content {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }
    
    .profile-badge-row {
      justify-content: center;
    }
    
    .profile-title {
      font-size: 1.8rem !important;
    }
  }

  /* Card details adjustments */
  .profile-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
  }

  .fellowship-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.15);
  }

  body.light-theme .fellowship-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03));
  }

  .profile-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  /* Map Embed styling */
  .map-embed-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    margin-top: 0.75rem;
  }

  .map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
  }

  .map-address-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .get-directions-btn {
    margin: 0;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  }

  .get-directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  }

  /* Catalog Card list */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .catalog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 380px;
    padding: 0 !important;
    border-radius: 20px !important;
  }

  .catalog-img-wrapper {
    height: 160px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
  }

  .catalog-card:hover .catalog-img-wrapper {
    transform: scale(1.04);
  }

  .catalog-card-body {
    padding: 1.25rem;
    flex-grow: 1;
  }

  .catalog-inquiry-btn {
    margin: 0;
    width: 100%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--badge-text);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.85rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 10px !important;
  }

  .catalog-inquiry-btn:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  }

  /* Photo Gallery items */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .gallery-item-wrapper {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: var(--transition-bounce);
  }

  .gallery-item-wrapper:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.05);
    border-color: var(--accent-1);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
  }

  /* Lightbox Modal */
  .lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
  }

  .lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
  }

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

  .lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .lightbox-modal.active .lightbox-content {
    transform: scale(1);
  }

  .lightbox-caption {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
  }

  /* Floating AI Chat Bubble */
  .chat-bubble-container {
    position: fixed;
    bottom: 2.25rem;
    right: 2.25rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .chat-toggle-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: var(--transition-bounce);
    font-family: inherit;
  }

  .chat-toggle-btn:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.5);
  }

  .chat-btn-icon {
    font-size: 1.25rem;
  }

  .chat-btn-text {
    font-size: 0.9rem;
  }

  .chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 520px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.96);
    transition: var(--transition-bounce);
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-1) !important;
  }

  .chat-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .chat-panel-header {
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
  }

  .chat-avatar {
    font-size: 1.4rem;
    background: rgba(139, 92, 246, 0.15);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .chat-assistant-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
  }

  .chat-assistant-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
  }

  .chat-close-btn {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .chat-close-btn:hover {
    color: var(--text-primary);
  }

  .chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

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

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

  .chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }

  .chat-message {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 85%;
    word-break: break-word;
  }

  .chat-message.bot {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 18px 18px 18px 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    align-self: flex-start;
  }

  body.light-theme .chat-message.bot {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.02);
  }

  .chat-message.user {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .chat-input-form {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.3);
  }

  body.light-theme .chat-input-form {
    background: rgba(255, 255, 255, 0.5);
  }

  .chat-input-form input {
    flex-grow: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
  }

  .chat-input-form input:focus {
    border-color: var(--accent-1);
  }

  .chat-submit-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: var(--transition-bounce);
  }

  .chat-submit-btn:hover {
    transform: scale(1.05);
  }

  .loading-dots span {
    animation: typingGlow 1.4s infinite both;
    display: inline-block;
    font-weight: bold;
  }

  .loading-dots span:nth-child(2) { animation-delay: .2s; }
  .loading-dots span:nth-child(3) { animation-delay: .4s; }

  @keyframes typingGlow {
    0% { opacity: .2; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(-2px); }
    100% { opacity: .2; transform: translateY(0); }
  }

  @media (max-width: 480px) {
    .chat-bubble-container {
      bottom: 1rem;
      right: 1rem;
    }
    
    .chat-panel {
      width: calc(100vw - 2rem);
      height: 480px;
      right: 0;
      bottom: 60px;
    }
  }

  /* ========================================== */
  /* TCBA Back Office Administration Styles     */
  /* ========================================== */
  
  .admin-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Sarabun', 'Inter', sans-serif;
    min-height: 100vh;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .admin-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
  }

  .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-radius: 20px;
  }

  .admin-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .back-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .back-link:hover {
    color: var(--accent-2);
    transform: translateX(-2px);
  }

  .admin-profile-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .header-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-1);
  }

  .admin-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 0;
  }

  .admin-sub-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
  }

  .admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .admin-grid-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .admin-sidebar {
    padding: 1rem;
    border-radius: 20px;
  }

  .admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-nav-btn {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
  }

  body.light-theme .admin-nav-btn:hover {
    background: rgba(0, 0, 0, 0.02);
  }

  .admin-nav-btn.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
  }

  .admin-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .tab-pane {
    display: none;
    padding: 2rem;
    border-radius: 20px;
    animation: fadeIn 0.4s ease;
  }

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

  .section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
  }

  .section-help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
  }

  .subsection-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    color: var(--accent-1);
  }

  .form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .form-grid input,
  .form-grid textarea {
    font-family: 'Sarabun', sans-serif;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: span 1;
  }

  .form-group.span-2 {
    grid-column: span 2;
  }

  .form-group.span-3 {
    grid-column: span 3;
  }

  .form-group.span-4 {
    grid-column: span 4;
  }

  .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .form-group input,
  .form-group textarea {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  }

  /* Prefix Input */
  .input-prefix-container {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
  }

  .input-prefix-container:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  }

  .input-prefix {
    font-size: 0.9rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0 0.75rem;
    user-select: none;
    border-right: 1px solid var(--input-border);
    height: 100%;
    display: flex;
    align-items: center;
  }

  body.light-theme .input-prefix {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .input-prefix-container input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Product Catalog Block */
  .product-form-block {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
  }

  body.light-theme .product-form-block {
    background: rgba(0, 0, 0, 0.01);
  }

  .product-form-header {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-1);
  }

  .admin-action-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
  }

  #saveSettingsBtn {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
  }

  /* Auth modal overrides */
  .admin-auth-card {
    max-width: 400px;
    padding: 2rem !important;
  }

  /* Toast Notification */
  .toast-banner {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translate(-50%, -20px);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  }

  .toast-banner.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .toast-banner.error {
    border-color: rgba(239, 68, 68, 0.3);
  }

  .toast-icon {
    font-size: 1.25rem;
  }

  .toast-msg {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
  }

  /* Responsive Overrides */
  @media (max-width: 900px) {
    .admin-grid-layout {
      grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
      position: sticky;
      top: 1rem;
      z-index: 10;
    }
    
    .admin-nav {
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 0.5rem;
      gap: 0.5rem;
      -webkit-overflow-scrolling: touch;
    }
    
    .admin-nav-btn {
      white-space: nowrap;
      width: auto;
      padding: 0.75rem 1rem;
    }
  }

  @media (max-width: 600px) {
    .admin-body {
      padding: 0.75rem;
    }
    
    .admin-header {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
      padding: 1.25rem;
    }
    
    .admin-header-right {
      display: flex;
      justify-content: space-between;
      width: 100%;
    }
    
    .tab-pane {
      padding: 1.25rem;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
    }
    
    .form-group.span-2,
    .form-group.span-3,
    .form-group.span-4 {
      grid-column: span 1;
    }
  }
}
