.discount-modal-overlay {
  overflow: auto;
}
.discount-modal-card,
.discount-modal-content {
  max-height: 90vh;
  overflow: auto;
}
:root {
    --primary: 	#1C3A5C;
    --hover:#2A4A70;
    --accent: #22C55E;
    --background: #F5F7FA;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --footer-bg: #4E342E;
    --success-light: #ECFDF5;
    --yellow-light: #FEF9C3;
    --blue-light: #DBEAFE;
    --green-light: #DCFCE7;
    --purple-light: #F3E8FF;
    --red-light: #FEE2E2;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: var(--text-primary);
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
  }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Header Styles */
.header {
    background-color: #F8FAFC;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px none #d6d6d6;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    width: 203.72px;
    height: 28px;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.cta-button {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background-color: var(--primary); /* Indigo-500 */
    color: white; 
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .cta-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  }
.login-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.2rem;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-hamburger {
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    display: none; /* hidden by default */
    color: var(--primary);
  }
  
  .mobile-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    min-width: 180px;
    z-index: 1000;
  }
  
  .menu-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
  }
  
  .menu-item:hover {
    background-color: #f5f5f5;
  }
  

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #F8FAFC, #ffffff);
    color: var(--text-primary);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.hero p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 5rem 1rem 3rem; /* sağda 5rem boşluq veririk ki, button sığsın */
    border: 2px solid var(--border-color);
    border-radius: 3rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}



.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-button {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1.1rem 1.6rem;
    border-radius: 0 2rem 2rem 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover{
    background-color: var(--hover);
}

/* Categories Section */
.categories {
    padding: 1.5rem 0;
}

.secondary-section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.category-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.category-item span {
    font-weight: 500;
}

/* Category colors */
.yemek {
    background-color: #FED7AA ;
    color: #9A3412 ;
}

.eylence {
    background-color: #E9D5FF ;
    color: #6B21A8 ;
}

.geyim {
    background-color: #FBCFE8 ; /* Blush Pink */
    color: #9D174D ;  
}

.tehsil {
    background-color: #BFDBFE ;
    color: #1E3A8A ;
}

.saglamliq {
    background-color: #b9f7bd ;
    color: #2E7D32 ;            
}

.diger{
    background-color: #E0E0E0 ;
    color: #212121 ;
}

/* Featured Section */
.featured {
    padding: 1.5rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.featured-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.featured-image-special {
    position: relative;
    width: 40%;
    min-width: 400px;
}

.featured-image-special img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.featured-image{
    position: relative;
    width: 40%;
    min-width: 300px;
}

.featured-image img {
    width: 130%;
    height: 100%;
    object-fit: cover;
    max-height: 200px;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #FBBF24;
    color: #000000;
    padding: 0.2rem 0.75rem;
    border-radius: 2.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1;
}

.featured-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rating {
    display: flex;
    gap: 0.25rem;
    display: none;
}

.rating i {
    width: 20px;
    height: 20px;
}

.star-filled {
    color: #FBBF24;
    fill: #FBBF24;
    width: 16px;
    height: 16px;
}

.star-half {
    color: #FBBF24; /* yellow */
    fill: #FBBF24;
    width: 16px;
    height: 16px;
}

.star-empty{
    width: 16px;
    height: 16px;
}

.featured-card .rating{
    display: block !important;
}

.description {
    color: #45576f;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.mobile-description{
    display: none;
}

.status-active,
.card-info, .map-button {
    display: none;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    
}

.status-badge.location{
    background: #f1f1f1;
    color: var(--text-primary);
}

.yemek-icon{
    width: 14px;
    height: 14px;
}
.eylence-icon{
    width: 14px;
    height: 14px;
}
.geyim-icon{
    width: 14px;
    height: 14px;
}
.tehsil-icon{
    width: 14px;
    height: 14px;
}
.saglamliq-icon{
    width: 14px;
    height: 14px;
}
.diger-icon{
    width: 14px;
    height: 14px;
}

.location-icon{
    width: 14px;
    height: 14px;
}

.success-icon{
    width: 14px;
    height: 14px;
}

.status-badge.success {
    background: var(--success-light);
    color: var(--accent);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.location-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    visibility: hidden;
}

.footer-location-icon{
    width: 20px;
    height: 20px;
}

.featured-card .details-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.65rem 1.4rem;            /* 6.4px top/bottom, 17.6px sides */
    border-radius: 0.5rem;             /* 8px rounded corners */
    font-weight: 700;
    font-size: 1rem;                /* 15.2px */
    line-height: 1.25;                 /* Slightly increased for better vertical spacing */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    letter-spacing: 0.03rem;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle depth */
}

.featured-card .details-button:hover {
    background-color: var(--hover);
}

/* ---SLIDESHOW STYLES---*/

/* Next/Prev buttons */

.swiper-button-prev,
.swiper-button-next {
  color: #2c2c2c;              /* arrow color */
  background: #fff;            /* circle background */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;             /* arrow size */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #2c2c2c;
  color: #fff;                 /* arrow turns white on hover */
}

/* Pagination Dots */
.swiper-pagination-bullet {
  background: #ccc;            /* default dot color */
  opacity: 1;                  /* remove Swiper’s default fade */
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #2c2c2c;         /* active dot color */
  transform: scale(1.2);       /* slightly bigger when active */
}

/* Make swiper container leave room for pagination */
.featured-swiper {
    position: relative;
    padding-bottom: 75px; /* gives space below cards */
  }
  
  /* Move pagination under swiper */
  .featured-swiper .swiper-pagination {
    position: absolute;
    bottom: 10px;  /* adjust distance */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }


  /* Hide arrows by default */
.featured-swiper .swiper-button-prev,
.featured-swiper .swiper-button-next {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Show them when hovering over swiper */
.featured-swiper:hover .swiper-button-prev,
.featured-swiper:hover .swiper-button-next {
  opacity: 1;
  visibility: visible;
}

.featured-swiper .swiper-button-prev {
    transform: translate(-20px, -50%); /* a bit outside */
  }
  .featured-swiper .swiper-button-next {
    transform: translate(20px, -50%);
  }
  
  .featured-swiper:hover .swiper-button-prev {
    transform: translate(0, -50%);
  }
  
  .featured-swiper:hover .swiper-button-next {
    transform: translate(0, -50%);
  }

@media (max-width: 768px){
    .swiper-button-prev, .swiper-button-next, .swiper-pagination-bullet{
        display: none;
    }

    .featured-swiper{
        padding-bottom: 10px;
    }
}

/* Recent Discounts */
.recent-discounts {
    padding: 2rem 0;
}

.recent-discounts .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.recent-discounts h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header{
    gap: 0;
}

/* Desktop - dropdowns on the right */
.filters-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-by label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.sort-by select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 1.5rem;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.sort-by select:hover {
    border-color: #999;
}

.sort-by select:focus {
    outline: none;
    border-color: #a7a7a7;
    box-shadow: 0 0 0 2px rgba(71, 71, 71, 0.1);
}

/* Mobile - filter bubbles */
 .mobile-filter-bubbles {
    display: flex;
    overflow-x: auto;
    margin-left: 0;
    margin-right: -0.5rem;
    gap: 8px;
    margin-bottom: 1.775rem;
    padding: 0;
    white-space: nowrap;
    width: fit-content;
 }
 
 .mobile-filter-bubbles::-webkit-scrollbar {
    display: none;
 }
 
 .mobile-filter-bubbles {
    -ms-overflow-style: none;
    scrollbar-width: none;
 }
 
 .filter-bubble {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: fit-content;
 }
 
 .filter-bubble:hover {
    background-color: #e8f4fd;
    border-color: var(--primary);
    color: var(--primary);
 }
 
 .filter-bubble.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
 }
 
 .filter-bubble.has-dropdown {
    position: relative;
    padding-right: 35px;
 }
 
 .filter-bubble .dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
 }
 
 .filter-bubble.active .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
 }
 
 .dropdown-menu {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    min-width: 150px;
 }
 
 .dropdown-menu.show {
    display: block;
 }
 
 .dropdown-item {
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
 }
 
 .dropdown-item:last-child {
    border-bottom: none;
 }
 
 .dropdown-item:hover {
    background-color: #f8f9fa;
 }
 
 .dropdown-item.selected {
    background-color: #e8f4fd;
    color: var(--primary);
    font-weight: 500;
 }

.discounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -1.5rem;
}

.discount-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.discount-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-card .discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discount-card {
    margin-bottom: 0.75rem;
}

.star-empty {
    color: #D1D5DB; /* gray-300 */
}

.card-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.1rem 0.47rem;
    border-radius: 1rem;
    font-size: 0.775rem;
    font-weight: 500;
}

.tag-category {
    color: var(--text-primary); 
}
.tag-category-icon, .tag-location-icon{
    width: 12px;
    height: 12px;
}

.tag-location {
    background-color: #F3F4F6; /* gray-100 */
    color: var(--text-primary);
}

.tag i {
    width: 14px;
    height: 14px;
}

.card-content .description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    flex-grow: 1;
}

.discount-card .card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-card .card-footer .details-button{
    background-color: var(--primary); /* Tailwind Blue 500 */
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.01rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 550;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.4s;
    border: none;
    opacity: 0;                /* start invisible */
    transform: translateY(10px); /* optional: slight move from below */
    transition: opacity 0.3s ease, transform 0.3s ease; /* animate changes */
}

.discount-card:hover .details-button{
    opacity: 1;                /* fully visible */
    transform: translateY(0);  /* move to original position */
}

.discount-card .card-footer .details-button:hover{
    background-color: var(--hover);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #16A34A; /* green-600 */
    font-weight: 500;
}

.requirement i {
    width: 16px;
    height: 16px;
}

.requirement-icon-mobile,
.map-link-mobile, .mobile-card-description {
    display: none;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
  }
  
  .show-more-button {
    width: 200px;
    height: 50px;
    background: transparent;
    color: var(--primary);
    border: 1px solid #cccccc;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
  }


.show-more-button:hover {
    background: var(--primary);
    color: white;
}

/* CTA Section */
.cta-section {
    padding: 2rem 0 0 0;
    text-align: center;
    min-height: 320px;
    height: auto;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;

    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;

    background-color: var(--primary);
    color: #111827;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-large:hover {
    background-color: var(--primary); /* deeper golden yellow */
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.anket-lightbulb {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.175rem;
    stroke-width: 2;
    display: inline-block;
}


/* Footer - Modern Design */
.footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer .container {
    margin: auto;
    max-width: 1200px;
    position: relative;
}

/* Header Section */
.footer-header {
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
}

.footer-header h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-subtitle {
    margin: 0.75rem 0 0 0;
    font-size: 1.125rem;
    color: #94A3B8;
    font-weight: 400;
}

/* Main Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem 3rem 2rem;
    margin-bottom: 0;
}

.footer-column {
    padding: 0;
}

.footer-column h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
}

.footer-column a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-column a:hover::before {
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.social-links a i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.social-links a:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    color: #94A3B8;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo img {
        width: 150px;
        height: 20px;
    }

    .description, .card-footer {
        display: none;
    }
    .status-active, .map-button {
        display: block;
    }
    .card-info {
        display: flex;
    }

    .header-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .cta-button {
        background-color: #facc15;
        padding: 0.75rem;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        gap: 0.125rem;
        display: none;
    }


    .login-icon{
        width: 19px;
        height: 19px;
    }

    .cta-button .login-icon {
        margin: 0;
    }


    .mobile-hamburger {
          display: block;
          background: transparent;
        }
      
    .mobile-menu {
          display: none;
        }
      
    .mobile-menu.show {
          display: block;
        }
      

    /* Hero Section Mobile */
    .hero {
        text-align: left;
        padding: 0.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        max-width: 350px ;
        width: 100%;
    }

    .hero p {
        font-size: 1rem;
        max-width: 350px ;
        width: 100%;
    }

    /* Search Bar Mobile */
    .search-container {
        position: relative;
        margin-top: 1.5rem;
    }

    .search-container input {
        width: 100%;
        padding: 0.875rem 3rem 0.875rem 1rem;
        border-radius: 0.75rem;
        border: 1px solid var(--border-color);
        font-size: 0.875rem;
    }

    .search-button {
        display: none; /* Hide the blue button on mobile */
    }

    .search-icon {
        left: unset;
        right: 1rem;
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

    /* Categories Mobile */
    .categories {
        padding: 0rem;
        background: transparent;
        border-radius: 1.25rem;
        margin: 0.5rem;
        box-shadow: 0;
    }

    .secondary-section-title {
        padding: 0;
        margin-bottom: 1.25rem;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
        margin-left: 0.5rem;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.725rem;
        padding: 0;
        margin: 0;
    }

    .category-item {
        flex: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }

    .category-icon-wrapper {
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0px;
        border-radius: 2rem;
        
        /* 3D Cylinder effect */
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        
        /* Main cylinder shadow - creates depth */
        box-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 3px 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        
        /* Subtle border for definition */
        border: 1px solid rgba(0, 0, 0, 0.1);
        
        /* Initial transform */
        transform: translateY(0px) rotateX(0deg);
        transform-style: preserve-3d;
    }
    
    .category-icon-wrapper:hover {
        /* Lift effect like pressing a cylinder button */
        transform: translateY(-3px) rotateX(5deg);
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    }
    
    .category-icon-wrapper:active {
        /* Press down effect */
        transform: translateY(1px) rotateX(-2deg);
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 1px 2px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        transition: all 0.1s ease;
    }

    .category-icon-wrapper i {
        width: 1.25rem;
        height: 1.25rem;
    }

    .category-item span {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: center;
    }

    /* Update category colors for mobile */
    .yellow {
        background-color: #FFF7ED;
        color: #EA580C;
    }

    .blue {
        background-color: #F0F9FF;
        color: #0369A1;
    }

    .green {
        background-color: #F0FDF4;
        color: #16A34A;
    }

    .purple {
        background-color: #FAF5FF;
        color: #9333EA;
    }

    .red {
        background-color: #FFF7ED;
        color: #EA580C;
    }

    .featured-card {
        flex-direction: column;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .featured-image-special {
        width: 100%;
        height: auto;
        max-height: 180px;
    }
    .discount-badge{
        text-transform: lowercase;
    }
    .featured-image-special img {
        border-radius: 0.75rem 0.75rem 0 0;
        max-height: 180px;
    }
    .featured-image {
        width: 100%;
        height: auto;
    }

    .featured-image img {
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .featured-content {
        width: 100%;
        padding: 1rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .mobile-description{
        display: block;
        font-size: 0.85rem;
        margin: 0.3rem 0;
        margin-bottom: 0.5rem;
    }

    .content-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0;
        margin-top: -0.5rem;
    }

    .content-header h2 {
        font-size: 1.25rem;
    }

    .status-active {
        
        top: 1rem;
        right: 1rem;
        background-color: #ECFDF5;
        color: #16A34A;
        padding: 0.25rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        z-index: 10;
    }

    .status-badge.success {
        display: none;
    }

    .status-badge{
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        gap: 0.15rem;
    }

    .status-badges{
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-info {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        margin: 0.5rem 0;
        margin-bottom: 0.75rem;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0.175rem;
    }

    .info-item i {
        width: 16px;
        height: 16px;
    }

    .info-item span {
        font-size: 0.875rem;
    }
    .location-icon-mobile{
        color: var(--text-secondary);
        width: 14px;
        height: 14px;
        margin-top: 0.05rem;
    }
    .idcard-icon-mobile{
        color: var(--text-secondary);
        width: 14px;
        height: 14px;
        margin-top: 0.05rem;
    }
    .map-button {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--primary);
        color: white;
        padding: 0.5rem;
        border-radius: 0.5rem;
        text-decoration: none;
        font-weight: 500;
        margin-top: 0;
    }

    .map-button:hover {
        background: var(--hover);
    }

    .recent-discounts h2{
        padding: 0;
        margin-bottom: 0.5rem;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
        margin-left: 0;
        flex-basis: 100%;
        width: 100%;
    }

    .recent-discounts{
        margin: -1.5rem 0.5rem;
    }

    .sort-by{
        display: none;
    }

    .section-header{
        margin-bottom: 0.5rem !important;
        flex-wrap: wrap;
    }

    .filters-container {
        display: none;
    }
    
    .mobile-filter-bubbles {
        display: flex;
        margin-left: -1rem;
    }

    .filter-bubble.has-dropdown.first{
        margin-left: 1rem;
    }


    .discounts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .discount-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .card-image {
        flex: 0 0 100px;
        min-width: 110px;
        align-self: flex-start;
    }
    

    .discount-card .discount-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.1rem 0.5rem;
        font-size: 0.75rem;
    }

    .discount-card .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .discount-card .rating{
        gap: 0.08rem;
    }

    .discount-card .rating i,
    .discount-card .star-filled,
    .discount-card .star-half,
    .discount-card .star-empty {
        width: 13px !important;
        height: 13px !important;
        font-size: 13px !important;
        vertical-align: middle;
    }
    
    .discount-card .description,
    .discount-card .details-button,
    .discount-card .requirement-icon-desktop {
        display: none;
    }

    .discount-card .card-tags {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.35rem;
        margin-top: 0.3rem;
        margin-bottom: 0rem;
    }

    .requirement, .card-tags{
        gap: 0;
    }

    .mobile-card-description{
        display: block;
        font-size: 0.75rem;
        margin: 0.3rem 0;
    }

    .discount-card .tag-location {
        padding: 0;
        background: var(--border-color);
        color: var(--text-primary);
        font-size: 0.70rem;
        font-weight: 500;
        padding: 0.2em 0.8em;
        gap: 0.2em;
    }
    .tag-location-icon{
        width: 12px;
        height: 12px;
        margin-top: 0.05rem;
        margin-bottom: 0.1rem;
    }

    .requirement-icon-mobile{
        width: 14px;
        height: 14px;
        margin-top: 0.05rem;
    }
    .discount-card .card-footer {
        display: block;
        border-top: none;
        padding: 0;
        margin-top: 0rem;
    }
    
    .discount-card .requirement {
        display: inline-flex;
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 500;
    }

    .card-title-row{
        margin: 0 !important;
    }

    .card-title-row h3{
        margin-bottom: 0 !important;
    }

    .requirement-icon-mobile {
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-right: 0.375rem;
        color: var(--text-secondary);
    }
    
    .map-link-mobile {
        display: flex;
        align-items: center;
        color: var(--primary);
        font-weight: 500;
        font-size: 0.85rem;
        text-decoration: none;
        vertical-align: middle;
    }
    
    .map-link-mobile-icon {
        width: 16px;
        height: 16px;
        vertical-align: middle;
    }

    .discount-card.desktop{
        display: none;
    }

    .show-more-button {
        width: 100%;
        height: 50px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        color: var(--primary);
        background-color: transparent;
        border: 1.5px solid var(--primary);
        transition: all 0.3s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* for smooth shadow transition */
    }
    
    .show-more-button:hover {
        background-color: var(--primary);
        color: white;
        box-shadow: 0 4px 12px rgba(67, 64, 71, 0.3);
        transform: translateY(-2px);
        cursor: pointer;
    }

    .show-more-container{
        margin-top: 1rem;
    }

    .footer h3{
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding-bottom: 1rem;

    }

    .footer-links{
        display: none;
    }

    
    .footer-column {
        padding: 1rem;
    }
    
    .footer-header {
        padding: 1rem;
    }

    .mobile-extra-info {
        display: block;
        background: var(--background);
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        margin: 0.5rem 0 0.5rem 0;
        font-size: 0.97em;
        color: var(--text-primary);
    }
    .mobile-extra-info > div {
        display: flex;
        align-items: center;
        gap: 0.4em;
        margin-bottom: 0.25em;
    }
    .mobile-extra-info i {
        width: 15px;
        height: 15px;
        color: var(--primary);
    }
    .mobile-tip {
        color: var(--accent);
        font-size: 0.95em;
        margin-top: 0.2em;
    }

    .discount-card .tag-category {
        display: inline-flex !important;
        font-weight: 600;
        border-radius: 1rem;
        padding: 0.2em 0.8em;
        margin-bottom: 0;
        font-size: 0.70em;
        align-items: center;
        gap: 0.4em;
    }

    .discount-card .requirement,
    .discount-card .requirement-icon-mobile {
        display: none !important;
    }

    .discount-card {
        display: flex;
        flex-direction: row;
        align-items: stretch; /* This ensures both sides stretch to match height */
        min-height: 140px; /* Minimum height for cards */
    }

    .card-image {
        flex: 0 0 110px; /* Fixed width, no grow/shrink */
        min-width: 110px;
        height: auto; /* Remove fixed height */
        align-self: stretch; /* Stretch to match parent height */
        display: flex; /* Make it a flex container */
        overflow: hidden;
        border-radius: 0.75rem 0 0 0.75rem;
    }
    
    .card-image img {
        width: 100%;
        height: 100%; /* Fill the entire container */
        object-fit: cover; /* Maintain aspect ratio while covering */
        object-position: center; /* Center the image */
        flex: 1; /* Take up full space */
        border-radius: 0; /* Remove border radius from img since container handles it */
    }

    .discount-card .card-content {
        flex: 1;
        padding: 0.5rem 0rem 0.5rem 0.5rem;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 0; /* Allow content to shrink if needed */
    }

    /* Ensure discount badge positions correctly on the stretched image */
    .discount-card .discount-badge {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.1rem 0.5rem;
        font-size: 0.75rem;
        z-index: 2;
    }

    /* Additional fixes for very tall cards with lots of text */
    .discount-card.tall-content {
        min-height: 160px;
    }

    .discount-card.tall-content .card-image {
        flex: 0 0 120px;
        min-width: 120px;
    }

    
}

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

@media (max-width: 480px) {
    .header-container {
        padding: 0 1.4rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .discount-card {
        min-height: 120px;
    }

    .card-image {
        min-width: 100px;
    }

    .discount-card.tall-content {
        min-height: 140px;
    }

    .discount-card.tall-content .card-image {
        flex: 0 0 110px;
        min-width: 110px;
    }
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-row h3 {
  margin-bottom: 0;
}
.card-title-row .rating {
  gap: 0.15rem;
}
.card-title-row .rating i {
  width: 1.1em;
  height: 1.1em;
  font-size: 1.1em;
}

/* --- Progressive Survey Section Styles --- */
#progressiveSurveySection {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4.5rem auto;
    padding: 2.7rem 2rem 2.2rem 2rem;
    /* background: linear-gradient(135deg, #f9fafb 70%, #E0E7FF 100%);*/
    border-radius: 1.5rem;
    box-shadow: 0 12px 36px 0 #3b82f621, 0 2px 8px 0 #64748b14;
    min-height: 340px;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s, border 0.3s, background 0.3s;
    margin-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #progressiveSurveySection:focus-within, #progressiveSurveySection:hover {
    box-shadow: 0 20px 48px 0 rgba(59,130,246,0.18), 0 6px 24px 0 rgba(100,116,139,0.13);
  }
  .survey-container{
    margin: 0 1rem;
    width: 100%;
    max-width: 1200px;
  }
  .survey-input{
    resize: none;
    border: none;
  }
  .survey-outer { width: 100%;
     max-width: 900px; 
     margin: 0 auto;
 }
  .survey-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(59,130,246,0.07);
  }
  .survey-subtitle {
    font-size: 1.13rem;
    color: var(--text-primary);
    margin-bottom: 2.2rem;
    text-align: center;
    font-weight: 500;

  }
  .survey-form {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
  }
  .survey-question-area {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }
  .survey-question {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .survey-question i {
    color: var(--primary);
    font-size: 1.3rem;
  }
  .survey-input, .other-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.7px solid var(--border-color);
    border-radius: 0.8rem;
    font-size: 1.08rem;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 2px 2px rgba(59,130,246,0.04);
    font-family: inherit;
    margin-top: 8px;
  }
  .survey-input:focus, .other-input:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
  }
  
  .survey-input.other-input[style*="display: block"] {
    display: block;
  }
  .survey-radio, .survey-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
  }
  .survey-radio:hover, .survey-checkbox:hover {
    background: var(--blue-light);
    color: var(--primary);
  }
  .survey-radio input, .survey-checkbox input {
    accent-color: var(--primary);
    width: 1.15rem;
    height: 1.15rem;
  }
  .survey-submit-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    padding: 1rem 2.2rem;
    font-size: 1.13rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.2rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(59,130,246,0.13);
    letter-spacing: 0.2px;
  }
  .survey-submit-btn:hover {
    background: var(--hover);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(59,130,246,0.18);
  }
  .survey-thankyou {
    font-size: 1.18rem;
    color: var(--primary);
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
    opacity: 0;
    animation: fadeIn 0.7s forwards;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.09);
  }
  .survey-error {
    border: 2px solid #ef4444 !important;
    background: #fef2f2 !important;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @media (max-width: 700px) {
    #progressiveSurveySection {
      padding: 0.7rem 0.1rem 0.7rem 0.1rem;
      min-height: 120px;
      margin-bottom: 1.5rem;
      max-width: 98vw;
    }
    .survey-outer { max-width: 98vw; }
    .survey-title { font-size: 1.1rem; }
    .survey-subtitle { font-size: 0.85rem; }
    .survey-question { font-size: 0.98rem; }
    .survey-input, .survey-radio, .survey-checkbox { font-size: 0.95rem; padding: 0.5rem 0.5rem; }
    .survey-submit-btn { font-size: 0.98rem; padding: 0.7rem 1.2rem; }
  }
  @media (max-width: 480px) {
    #progressiveSurveySection {
      padding: 1rem 1rem;
      min-height: 80px;
      margin-bottom: 0.7rem;
      max-width: 99vw;
      border: none;
    }

    #progressiveSurveySection:hover, #progressiveSurveySection:focus-within{
        border: none;
        background: linear-gradient(135deg, #f9fafb 70%, #e0e7ff 100%);
        box-shadow: 0 12px 36px 0 rgba(59,130,246,0.13), 0 2px 8px 0 rgba(100,116,139,0.08);
    }
    .survey-form{
        gap: 0.5rem;
    }
    .survey-input{
        resize: none;
        margin-top: 0;
        border: none;
    }
    .survey-subtitle{
        margin-bottom: 1.2rem;
    }
    .survey-container{
        padding: 0 1rem;
        
    }

    .survey-question-area{
        gap: 0;
    }
    
    .survey-outer { max-width: 99vw; }
    .survey-title { font-size: 1.1rem; }
    .survey-subtitle { font-size: 0.9rem; }
    .survey-question { font-size: 0.85rem; }
    .survey-input, .survey-radio, .survey-checkbox { font-size: 0.85rem; padding: 0.4rem 0.3rem; }
    .survey-submit-btn { font-size: 0.85rem; padding: 0.75rem 0.7rem; }}

/* ========================================
   DISCOUNT MODAL STYLES
   ======================================== */
   .discount-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    overflow-y: auto;
    animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

/* Add this new rule to reset scroll position */
.discount-modal-card[data-reset-scroll] {
    animation: modalScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1), resetScroll 0s;
}

@keyframes resetScroll {
    to { scroll-behavior: auto; }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.discount-modal-card {
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    box-shadow: 0 8px 32px 0 rgba(30, 41, 59, 0.13), 0 2px 8px 0 rgba(100, 116, 139, 0.08);
    width: min(100vw, 600px);
    max-width: 98vw;
    margin: 20px 0;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    animation: modalScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}



.discount-modal-header {
    position: relative;
    height: 280px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.discount-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discount-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 2;
    font-weight: 300;
}

.discount-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.discount-modal-content {
    padding: 20px 24px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.discount-modal-desc {
    white-space: pre-line;
}

/* ========================================
   REDESIGNED MODAL HEADER STYLES
   ======================================== */

/* Title Row - Now with better visual hierarchy */
.discount-modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.discount-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.02em;
    flex: 1;
    margin: 0;
}

.discount-modal-badge {
    background: #FBBF24;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.discount-modal-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.discount-modal-badge:hover::before {
    left: 100%;
}

/* Meta section - Redesigned with cards */
.discount-modal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.discount-modal-category {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    color: #0369A1;
    border: 1px solid #7DD3FC;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: default;
}

.discount-modal-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.discount-modal-category-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.discount-modal-location {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #F8FAFC;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.discount-modal-location-icon {
    width: 12px;
    height: 12px;
}

.discount-modal-rating {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 500;
    background: #F8FAFC;
    padding: 2px 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    cursor: pointer;
}

.discount-modal-menu-icon {
    width: 12px;
    height: 12px;
}

/* Rating section - Enhanced with better visual design */
.discount-modal-menu {
    display: grid;
    grid-template-columns: 0fr auto 0fr;
    align-items: center;
    justify-items: start;
    column-gap: 10px;
    font-size: 16px;
    color: #1a1a1a;
    padding: 10px 12px;
    border: 1px solid #F1F5F9;
    background-color: #f8fafc;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(226, 232, 240);
    border-image: initial;
}

.discount-modal-star {
    color: #F59E0B;
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
    justify-self: start;

}

.discount-modal-rating-value {
    font-weight: 500;
    font-size: 14px;
    color: #64748b;
    justify-self: center;
}

.discount-modal-reviews {
    display: inline-block;
    grid-column: 3;
    justify-self: end;
}

.discount-modal-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.discount-modal-note {
    background: #f0fdf4;
    color: #15803d;
    font-size: 14px;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 12px;
    margin-top: 12px;
    line-height: 1.4;
    border-left: 4px solid #22C55E;
}

.discount-modal-section {
    margin-top: 16px;
}

.discount-modal-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.discount-modal-rules ul,
.discount-modal-branches ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.discount-modal-rules li,
.discount-modal-branches li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: self-end;
    gap: 10px;
    line-height: 1.4;
}

.discount-modal-rule-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 2px;
}

.discount-modal-tags {
    margin-top: 16px;
}

.discount-modal-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discount-modal-tag {
    background: #F3F4F6;
    color: #222;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.discount-modal-validity {
    margin-top: 16px;
}

.discount-modal-validity-dates {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.discount-modal-branches {
    margin-top: 16px;
}

.discount-modal-branch-icon {
    color: #3B82F6;
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 2px;
}

.discount-modal-map {
    width: 100%;
    height: 200px;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* Contact section styles */
.discount-modal-contact {
    margin-top: 16px;
}

.discount-modal-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.discount-modal-contact li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: anchor-center;
    gap: 10px;
    line-height: 1.4;
}

.discount-modal-contact-icon {
    text-align: center;
    width: 16px;
    height: 16px;
}

.discount-modal-contact a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s;
}

.discount-modal-contact a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.discount-modal-contact-text {
    color: #444;
}

/* Mobile responsive styles for contact section */
@media (max-width: 768px) {
    .discount-modal-contact li {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .discount-modal-contact li {
        font-size: 12px;
    }
}

/* ========================================
   MOBILE RESPONSIVE MODAL STYLES
   ======================================== */
@media (max-width: 768px) {
    .discount-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .discount-modal-card {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .discount-modal-header {
        height: 200px;
        border-radius: 0;
        position: relative;
    }

    .discount-modal-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
    }

    .discount-modal-content {
        padding: 16px 20px;
        gap: 10px;
        flex-grow: 1;
        overflow-y: auto;
    }

    /* REDESIGNED MOBILE HEADER STYLES */
    .discount-modal-title-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 0;
        padding: 0;
    }

    .discount-modal-title {
        font-size: 18px;
        font-weight: 800;
        flex: 1;
        margin: 0;
        line-height: 1.25;
        padding-right: 8px;
    }

    .discount-modal-badge {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .discount-modal-meta {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 4px;
    }

    .discount-modal-category {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 8px;
        justify-content: flex-start;
    }

    .discount-modal-category-icon {
        width: 14px;
        height: 14px;
    }

    .discount-modal-location {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 6px;
        justify-content: flex-start;
    }

    .discount-modal-location::before {
        font-size: 12px;
    }

    .discount-modal-rating{
        font-size: 12px;
        padding: 6px 10px;
    }

    .discount-modal-menu {
        display: grid;
        grid-template-columns: 0fr auto 0fr;
        justify-items: center;
        align-items: center;
        font-size: 15px;
        gap: 12px;
        margin-bottom: 18px;
        background: #F8FAFC;
        border-radius: 8px;
        padding: 10px 12px;
        border: 1px solid #E2E8F0;
    }

    .discount-modal-star {
        font-size: 18px;
    }

    .discount-modal-rating-value {
        font-size: 12px;
        font-weight: 500;
        justify-self: center;
    }

    .discount-modal-reviews {
        font-size: 13px;
        padding: 3px 6px;
        border-radius: 5px;
    }

    .discount-modal-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .discount-modal-note {
        font-size: 13px;
        padding: 10px 14px;
        margin-bottom: 10px;
        border-left-width: 3px;
    }

    .discount-modal-section {
        margin-top: 12px;
    }

    .discount-modal-section-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .discount-modal-rules li,
    .discount-modal-branches li {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 8px;
    }

    .discount-modal-rule-icon,
    .discount-modal-branch-icon {
        font-size: 1em;
    }

    .discount-modal-tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    .discount-modal-validity-dates {
        font-size: 13px;
    }

    .discount-modal-map {
        height: 180px;
        margin-top: 8px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .discount-modal-content {
        padding: 12px 16px;
    }


    .discount-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    /* REDESIGNED MOBILE HEADER STYLES FOR SMALL SCREENS */

    .discount-modal-badge {
        letter-spacing: 0.3px;
    }

    .discount-modal-meta {
        gap: 8px;
        margin-bottom: 0;
    }

    .discount-modal-category {
        padding: 6px 10px;
    }

    .discount-modal-category-icon {
        width: 12px;
        height: 12px;
    }

    .discount-modal-location {
        font-size: 12px;
        padding: 6px 10px;
    }

    .discount-modal-menu-badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    .discount-modal-menu {
        font-size: 14px;
        gap: 10px;
        margin-bottom: 5px;
        padding: 8px 10px;
    }

    .discount-modal-star {
        font-size: 16px;
        justify-self: start;
        line-height: 1;
        margin-bottom: 2px;
    }

    .discount-modal-rating-value {
        font-size: 12px;
    }

    .discount-modal-reviews {
        font-size: 12px;
        padding: 2px 5px;
    }

    .discount-modal-desc {
        font-size: 13px;
    }

    .discount-modal-note {
        font-size: 12px;
        padding: 8px 12px;
    }

    .discount-modal-section-title {
        font-size: 14px;
    }

    .discount-modal-rules li,
    .discount-modal-branches li {
        font-size: 12px;
    }

    .discount-modal-map {
        height: 150px;
    }
}

/* Special mobile layout for very small screens */
@media (max-width: 360px) {
    .discount-modal-title-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .discount-modal-title {
        margin-bottom: 8px;
        padding-right: 0;
    }
    
    .discount-modal-badge {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .discount-modal-meta {
        gap: 8px;
    }
    
    .discount-modal-category,
    .discount-modal-location {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 407px){
    .discount-card .card-content h3{
        font-size: 0.85rem;
    }
}

/* ==============================
   RATING MODAL (simple, centered)
   ============================== */
.rating-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.rating-modal-card {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 28px 24px;
    text-align: center;
}

.rating-modal-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.rating-modal-subtitle {
    margin: 0 0 18px 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.rating-stars {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 10px 0 22px 0;
}

.rating-star {
    font-size: 34px;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #d1d5db; /* gray-300 */
    transition: transform 0.12s ease, color 0.12s ease;
}

.rating-star:hover { transform: translateY(-2px); }
.rating-star.active, .rating-star.hovered { color: #F5B301; }

.rating-submit {
    display: inline-block;
    width: 100%;
    background: linear-gradient(180deg, #6366F1, #4F46E5);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
}

.rating-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced Modal Animations - Add to your existing styles.css */

/* ========================================
   ENHANCED MODAL ANIMATIONS
   ======================================== */

/* Modal overlay entrance animation */
.discount-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When modal is shown */
.discount-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    background: rgba(30, 41, 59, 0.45);
}

/* Modal card entrance animation */
.discount-modal-card {
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    box-shadow: 0 8px 32px 0 rgba(30, 41, 59, 0.13), 0 2px 8px 0 rgba(100, 116, 139, 0.08);
    width: min(100vw, 600px);
    max-width: 98vw;
    margin: 20px 0;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    
    /* Initial state - scaled down and invisible */
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When modal is shown */
.discount-modal-overlay.show .discount-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Staggered content animation */
.discount-modal-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.discount-modal-overlay.show .discount-modal-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger each content element with delays */
.discount-modal-overlay.show .discount-modal-title-row {
    transition-delay: 0.1s;
}

.discount-modal-overlay.show .discount-modal-meta {
    transition-delay: 0.15s;
}

.discount-modal-overlay.show .discount-modal-menu {
    transition-delay: 0.2s;
}

.discount-modal-overlay.show .discount-modal-note {
    transition-delay: 0.25s;
}

.discount-modal-overlay.show .discount-modal-desc {
    transition-delay: 0.3s;
}

.discount-modal-overlay.show .discount-modal-section {
    transition-delay: 0.35s;
}

/* Close button hover animation enhancement */
.discount-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    font-weight: 300;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.discount-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Enhanced badge animation */

.discount-modal-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.discount-modal-overlay.show .discount-modal-badge::before {
    left: 100%;
}

/* Rating modal animations */
.rating-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.rating-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.5);
}

.rating-modal-card {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 28px 24px;
    text-align: center;
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Enhanced star animations */
.rating-star {
    font-size: 34px;
    line-height: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.rating-star:hover { 
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 4px 8px rgba(245, 179, 1, 0.3));
}

.rating-star.active, 
.rating-star.hovered { 
    color: #F5B301;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(245, 179, 1, 0.4));
}

/* Mobile responsive animations */
@media (max-width: 768px) {
    .discount-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .discount-modal-card {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        max-height: 100dvh; /* Add this - adjusts for mobile browser UI */
        min-height: 100vh;
        min-height: 100dvh; /* Add this - adjusts for mobile browser UI */
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .discount-modal-overlay.show .discount-modal-card {
        transform: translateY(0);
    }

    /* Reduce animation complexity on mobile for better performance */
    .discount-modal-content > * {
        transition-duration: 0.3s;
    }

    .discount-modal-overlay.show .discount-modal-content > * {
        transition-delay: 0.1s;
    }
}

@media (max-width: 480px) {
    .discount-modal-close:hover {
        transform: scale(1.05);
    }
    
    .rating-star:hover {
        transform: scale(1.1) translateY(-2px);
    }
}

/* Smooth exit animations */
.discount-modal-overlay.hide {
    opacity: 0;
    visibility: hidden;
    background: rgba(30, 41, 59, 0);
}

.discount-modal-overlay.hide .discount-modal-card {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
}

.rating-modal-overlay.hide {
    opacity: 0;
    visibility: hidden;
    background: rgba(0,0,0,0);
}

.rating-modal-overlay.hide .rating-modal-card {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
}

/* Prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    .discount-modal-overlay,
    .discount-modal-card,
    .discount-modal-content > *,
    .discount-modal-close,
    .rating-modal-overlay,
    .rating-modal-card,
    .rating-star {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .discount-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .discount-modal-overlay.show .discount-modal-card,
    .discount-modal-overlay.show .discount-modal-content > * {
        opacity: 1;
        transform: none;
    }
}

