/* Components CSS - Buttons, Cards, Forms, Modals */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }
  
  .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
  }
  
  .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
  }
  
  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.2);
  }
  
  .btn-primary-sm {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.2);
  }
  
  .btn-primary-sm:hover {
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
  }
  
  .btn-outline-sm {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
  }
  
  .btn-outline-sm:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
  }
  
  .btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
  }
  
  .btn-glass:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
  }
  
  .btn-glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .btn-glass-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
  }
  
  /* Cards */
  .companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .company-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    height: 100%;
  }
  
  .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--brand-primary-light), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
  }
  
  .company-card:hover .card-glow {
    opacity: 0.1;
  }
  
  .dark .company-card:hover .card-glow {
    opacity: 0.05;
  }
  
  .company-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary-light);
  }
  
  .company-header {
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
  }
  
  .company-header img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
  }
  
  .company-rating {
    text-align: right;
  }
  
  .rating {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
  }
  
  .reviews {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
  
  .stars {
    display: flex;
    gap: 2px;
    color: var(--star-color);
    margin: var(--space-1) 0;
  }
  
  .stars svg {
    width: 16px;
    height: 16px;
  }
  
  .company-body {
    padding: var(--space-5);
    flex-grow: 1;
  }
  
  .company-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
  }
  
  .company-category {
    font-size: 0.875rem;
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
    font-weight: 500;
  }
  
  .badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }
  
  .badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .badge-discount {
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--brand-primary);
  }
  
  .badge-bonus {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
  }
  
  .company-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  
  .company-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
  }
  
  .view-more {
    text-align: center;
    margin-top: var(--space-10);
    margin-bottom: var(--space-10);
  }
  
  /* Search Components */
  .search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
  }
  
  .search-box {
    display: flex;
    position: relative;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
  }
  
  .search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2), var(--shadow-lg);
  }
  
  .search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
  }
  
  .search-box input:focus {
    outline: none;
  }
  
  .placeholder {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--brand-primary);
    animation: blink-caret 0.75s step-end infinite;
  }
  
  .search-box input:focus + .placeholder,
  .search-box input:not(:placeholder-shown) + .placeholder {
    display: none;
  }
  
  .search-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-dark));
  }
  
  .search-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
  }
  
  .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 10;
  }
  
  .search-suggestions.active {
    max-height: 300px;
    padding: 0.5rem 0;
    overflow-y: auto;
  }
  
  .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    text-align: left;
  }
  
  .suggestion-item:hover {
    background-color: var(--bg-secondary);
  }
  
  .suggestion-icon {
    margin-right: 0.75rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
  }
  
  .suggestion-content {
    flex: 1;
  }
  
  .suggestion-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
  }
  
  .suggestion-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
  }
  
  .suggestion-highlight {
    color: var(--brand-primary);
    font-weight: 600;
  }
  
  .suggestion-category {
    font-size: 0.7rem;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--brand-primary);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
  }
  
  .filter-toggle-btn {
    display: block;
    margin: 10px auto;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .filter-toggle-btn svg {
    transition: transform 0.3s ease;
  }
  
  .filter-toggle-btn.active svg {
    transform: rotate(180deg);
  }
  
  .search-filters {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
  }
  
  .search-filters.active {
    padding: 15px;
    max-height: 500px;
  }
  
  .filter-group {
    margin-bottom: 15px;
  }
  
  .filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
  }
  
  .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .filter-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
  }
  
  .filter-option input {
    accent-color: var(--brand-primary);
  }
  
  .filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }
  
  .clear-filters-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .clear-filters-btn:hover {
    background: var(--bg-secondary);
  }
  
  .apply-filters-btn {
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .apply-filters-btn:hover {
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
  }
  
  .popular-searches {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  
  .popular-searches span {
    margin-right: var(--space-2);
  }
  
  .popular-searches a {
    margin: 0 var(--space-1);
    color: var(--brand-primary);
    transition: all var(--transition-normal);
    position: relative;
  }
  
  .popular-searches a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--brand-primary);
    transition: width var(--transition-normal);
  }
  
  .popular-searches a:hover::after {
    width: 100%;
  }
  
  .search-results {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    margin-top: 2rem;
    text-align: left;
    display: none;
  }
  
  .search-results.active {
    display: block;
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
  }
  
  .results-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  
  .results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .result-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
  }
  
  .result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary-light);
  }
  
  .result-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
  }
  
  .result-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .result-logo-text {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.2rem;
  }
  
  .result-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
  }
  
  .result-category {
    font-size: 0.75rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
  }
  
  .result-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
  }
  
  .result-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }
  
  .result-rating svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
  }
  
  .result-reviews {
    font-size: 0.7rem;
    color: var(--text-muted);
  }
  
  /* Testimonial Cards */
  .testimonial-container {
    position: relative;
    padding: var(--space-8) 0;
  }
  
  .logo-container {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  .testimonial-thumbnail__image,
  .testimonial-thumbnail__image--second,
  .testimonial-thumbnail__image--third {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    position: absolute;
    transition: all 0.5s ease;
  }
  
  .testimonial-thumbnail--one {
    top: -30%;
    left: 10%;
  }
  
  .testimonial-thumbnail--two {
    top: -30%;
    right: 15%;
  }
  
  .testimonial-thumbnail--three {
    bottom: -30%;
    left: 20%;
  }
  
  .testimonial-thumbnail--four {
    bottom: -30%;
    right: 10%;
  }
  
  .testimonial-card-list-wrapper {
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0;
  }
  
  .testimonial-card__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 1200px;
  }
  
  .testimonial-card-container {
    position: relative;
  }
  
  .testimonial-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-light);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
  }
  
  .testimonial-card--second {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  .testimonial-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .testimonial-card__stars-reviews-wrapper {
    margin-bottom: var(--space-4);
  }
  
  .testimonial-card__stars {
    height: 20px;
    margin-bottom: var(--space-2);
  }
  
  .testimonial-card__client-wrapper {
    display: flex;
    align-items: center;
    margin-top: auto;
  }
  
  .testimonial-card__client-image-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-right: var(--space-3);
  }
  
  .testimonial-card__client-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .testimonial-client-badge-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  
  .testimonial-card-client__heading {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .testimonial-card__client-badge {
    width: 16px;
    height: 16px;
  }
  
  .animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
  }
  
  .animated-gradient__item {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
  }
  
  .animated-gradient__item--1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--brand-primary);
    animation: float 15s ease-in-out infinite alternate;
  }
  
  .animated-gradient__item--2 {
    bottom: 10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: var(--brand-primary-light);
    animation: float 20s ease-in-out infinite alternate-reverse;
  }
  
  .animated-gradient__item--3 {
    top: 40%;
    right: 30%;
    width: 250px;
    height: 250px;
    background: var(--brand-accent);
    animation: float 18s ease-in-out infinite alternate;
  }
  
  .recent-reviews__graphic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.05;
  }
  
  .recent-reviews__graphic-bg__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .testimonial-card-small-viewport-list-wrapper {
    display: none;
  }
  
  /* Modals */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .modal.show {
    display: flex;
    opacity: 1;
  }
  
  /* Contact support modal specific styling */
  #contact-support-modal.modal {
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 30px; /* Same as the right position of contact-support-wrapper */
    padding-bottom: 100px; /* Space above the support button */
  }
  
  #contact-support-modal .modal-content {
    margin-bottom: 0;
    width: 90%;
    max-width: 350px; /* Smaller width for the popup */
    max-height: 80vh; /* Prevent it from being too tall */
    overflow-y: auto; /* Allow scrolling if content is too tall */
  }
  
  /* Keep the success modal centered */
  #success-modal.modal {
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
  }
  
  .modal.show .modal-content {
    transform: translateY(0);
  }
  
  .close-modal {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
  }
  
  .close-modal:hover {
    color: var(--brand-primary);
  }
  
  .modal h2 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
  }
  
  .modal p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
  }
  
  .form-group {
    margin-bottom: var(--space-4);
  }
  
  .form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .form-group input[type="email"],
  .form-group textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  }
  
  .form-group input[type="email"]:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
  }
  
  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--brand-primary);
  }
  
  .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-secondary);
  }
  
  .submit-btn {
    /* width: 100%; */
    margin-top: var(--space-2);
  }
  
  /* Success Modal */
  .success-content {
    text-align: center;
    padding: var(--space-8);
  }
  
  .success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--space-4);
  }
  
  .close-success-btn {
    margin-top: var(--space-4);
  }
  
  /* Contact Support Button */
  .contact-support-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
  }
  
  #contact-support-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all var(--transition-normal);
    font-size: 24px;
  }
  
  #contact-support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
  }
  
  .contact-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    pointer-events: none;
  }
  
  #contact-support-btn:hover + .contact-tooltip {
    opacity: 1;
    visibility: visible;
  }
  
  /* Ads */
  .ad-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .ad-popup.active {
    display: flex;
    opacity: 1;
  }
  
  .ad-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    border-radius: var(--radius-lg, 1rem);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
    animation: popup-entrance 0.5s ease forwards;
  }
  
  .ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    z-index: 1;
    transition: background-color 0.3s ease;
  }
  
  .ad-popup-close:hover {
    background-color: rgba(255, 255, 255, 1);
  }
  
  .ad-popup-graphic {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .ad-popup-graphic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .fixed-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary, #ffffff);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(100%);
    transition: transform 0.5s ease;
  }
  
  .fixed-bottom-ad.active {
    transform: translateY(0);
  }
  
  .fixed-bottom-ad-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .fixed-bottom-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .fixed-bottom-ad-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .fixed-bottom-ad-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100px;
    overflow: hidden;
  }
  
  .fixed-bottom-ad-graphic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .fixed-bottom-ad-cta {
    margin-left: 20px;
  }
  
  .ad-cta-button {
    background: var(--gradient-primary, linear-gradient(135deg, #ff6600, #cc5200));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 102, 0, 0.2);
  }
  
  .ad-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 102, 0, 0.3);
  }
  
  .ad-cta-button:active {
    transform: translateY(0);
  }
  
  /* Theme Toggle */
  .theme-toggle-wrapper {
    position: fixed;
    right: var(--space-6);
    z-index: 1100;
  }
  
  #theme-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    top: 20px;
  }
  
  #theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  
  .sun-moon {
    position: relative;
    width: 20px;
    height: 20px;
  }
  
  .sun {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--brand-primary);
    border-radius: 50%;
    transform: scale(1);
    transition: all var(--transition-normal);
  }
  
  .moon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: inset -3px -3px 0 var(--brand-primary);
    transform: scale(0);
    transition: all var(--transition-normal);
  }
  
  .dark .sun {
    transform: scale(0);
  }
  
  .dark .moon {
    transform: scale(1);
  }
  
  /* Page Loader */
  .page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease; 
  }
  
  .page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
  }
  
  .loader-logo {
    width: 100px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
  }
  
  .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--brand-primary);
    animation: spin 1s linear infinite;
  }
  
  .loader-progress {
    width: 200px;
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
  }
  
  .loader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-light));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
  }
  
  /* Tooltip */
  .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    pointer-events: none;
  }
  
  .tooltip.show {
    opacity: 1;
    visibility: visible;
  }
  
  .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-primary) transparent transparent transparent;
  }


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

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