 body {
      box-sizing: border-box;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      width: 100%;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: #FFFFFF;
      color: #333333;
      overflow-x: hidden;
      width: 100%;
    }

    html {
      scroll-behavior: smooth;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      padding: 1.2rem 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      box-shadow: 0 2px 20px rgba(255, 215, 0, 0.1);
      width: 100%;
    }

    .logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: #FFCD33;
      letter-spacing: -0.5px;
    }

    nav {
      display: flex;
      gap: 2.5rem;
      align-items: center;
    }

    nav a {
      font-family: 'Poppins', sans-serif;
      font-size: 0.95rem;
      color: #333;
      text-decoration: none;
      font-weight: 500;
      position: relative;
      transition: color 0.3s ease;
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: #FFCD33;
      transition: width 0.3s ease;
    }

    nav a:hover {
      color: #FFCD33;
    }

    nav a:hover::after {
      width: 100%;
    }

    .auth-buttons {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .btn-login, .btn-signup {
      padding: 0.6rem 1.5rem;
      border-radius: 25px;
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
    }

    .btn-login {
      background: transparent;
      color: #FFCD33;
      border: 2px solid #FFCD33;
    }

    .btn-login:hover {
      background: #FFCD33;
      color: white;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.3);
    }

    .btn-signup {
      background: #FFCD33;
      color: white;
      border: 2px solid #FFCD33;
    }

    .btn-signup:hover {
      background: #FFD84D;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
      transform: translateY(-2px);
    }

    .user-greeting {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .greeting-text {
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      color: #333;
    }

    .btn-logout {
      padding: 0.6rem 1.5rem;
      border-radius: 25px;
      background: #FFCD33;
      color: white;
      border: none;
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-logout:hover {
      background: #FFD84D;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
      transform: translateY(-2px);
    }

    .hero {
      min-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8rem 5% 5rem;
      background: linear-gradient(135deg, #FFFFFF 0%, #FFF7D6 100%);
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    .floating-shape {
      position: absolute;
      border-radius: 50%;
      background: linear-gradient(135deg, #FFD84D, #FFCD33);
      opacity: 0.15;
      animation: float 6s ease-in-out infinite;
    }

    .shape-1 {
      width: 300px;
      height: 300px;
      top: 10%;
      left: -5%;
      animation-delay: 0s;
    }

    .shape-2 {
      width: 200px;
      height: 200px;
      bottom: 15%;
      right: 5%;
      animation-delay: 2s;
    }

    .shape-3 {
      width: 150px;
      height: 150px;
      top: 50%;
      right: 15%;
      animation-delay: 4s;
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      50% {
        transform: translateY(-30px) rotate(180deg);
      }
    }

    .hero-content {
      text-align: center;
      max-width: 900px;
      z-index: 10;
      animation: fadeInUp 1s ease-out;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: 4rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 1.5rem;
      line-height: 1.2;
      animation: fadeIn 1.2s ease-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .hero p {
      font-family: 'Poppins', sans-serif;
      font-size: 1.3rem;
      color: #666;
      margin-bottom: 3rem;
      font-weight: 400;
      animation: fadeIn 1.4s ease-out;
    }

    .hero-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      animation: fadeIn 1.6s ease-out;
    }

    .btn-primary, .btn-secondary {
      padding: 1rem 2.5rem;
      border-radius: 30px;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.4s ease;
      border: none;
      text-decoration: none;
      display: inline-block;
    }

    .btn-primary {
      background: #FFCD33;
      color: white;
      box-shadow: 0 8px 25px rgba(255, 205, 51, 0.3);
    }

    .btn-primary:hover {
      background: #FFD84D;
      box-shadow: 0 12px 35px rgba(255, 205, 51, 0.4);
      transform: translateY(-3px);
    }

    .btn-secondary {
      background: white;
      color: #FFCD33;
      border: 2px solid #FFCD33;
    }

    .btn-secondary:hover {
      background: #FFCD33;
      color: white;
      box-shadow: 0 8px 25px rgba(255, 205, 51, 0.3);
      transform: translateY(-3px);
    }

    .search-section {
      padding: 4rem 5%;
      background: white;
      width: 100%;
    }

    .search-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .search-bar {
      display: flex;
      background: white;
      border: 2px solid #FFD84D;
      border-radius: 50px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(255, 205, 51, 0.15);
      transition: all 0.3s ease;
    }

    .search-bar:focus-within {
      box-shadow: 0 6px 30px rgba(255, 205, 51, 0.25);
      border-color: #FFCD33;
    }

    .search-bar input {
      flex: 1;
      padding: 1.2rem 2rem;
      border: none;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      outline: none;
    }

    .search-bar button {
      padding: 1.2rem 2.5rem;
      background: #FFCD33;
      border: none;
      color: white;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .search-bar button:hover {
      background: #FFD84D;
    }

    .filter-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      margin-top: 2rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 0.7rem 1.8rem;
      border-radius: 25px;
      border: 2px solid #FFD84D;
      background: white;
      color: #333;
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .filter-btn:hover, .filter-btn.active {
      background: #FFCD33;
      color: white;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.3);
      transform: translateY(-2px);
    }

    .section {
      padding: 5rem 5%;
      width: 100%;
    }

    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 3rem;
      color: #333;
    }

    .coupons-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }

    .coupon-card {
      background: white;
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.4s ease;
      border: 2px solid #FFF7D6;
      animation: fadeInUp 0.6s ease-out;
      animation-fill-mode: both;
    }

    .coupon-card:nth-child(1) { animation-delay: 0.1s; }
    .coupon-card:nth-child(2) { animation-delay: 0.2s; }
    .coupon-card:nth-child(3) { animation-delay: 0.3s; }
    .coupon-card:nth-child(4) { animation-delay: 0.4s; }
    .coupon-card:nth-child(5) { animation-delay: 0.5s; }
    .coupon-card:nth-child(6) { animation-delay: 0.6s; }

    .coupon-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 12px 40px rgba(255, 205, 51, 0.25);
      border-color: #FFCD33;
    }

    .store-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .store-logo {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      background: linear-gradient(135deg, #FFD84D, #FFCD33);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      font-weight: 700;
    }

    .store-logo-img {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      object-fit: cover;
    }

    .store-name {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.1rem;
      color: #333;
    }

    .discount-badge {
      background: linear-gradient(135deg, #FFCD33, #FFD84D);
      color: white;
      padding: 0.8rem 1.5rem;
      border-radius: 15px;
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 1rem;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.3);
    }

    .coupon-description {
      font-family: 'Poppins', sans-serif;
      color: #666;
      margin-bottom: 1.5rem;
      line-height: 1.6;
    }

    .coupon-code {
      background: #FFF7D6;
      padding: 1rem;
      border-radius: 10px;
      border: 2px dashed #FFCD33;
      text-align: center;
      margin-bottom: 1rem;
    }

    .code-text {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 1.2rem;
      color: #FFCD33;
      letter-spacing: 2px;
    }

    .copy-btn {
      width: 100%;
      padding: 0.9rem;
      background: #FFCD33;
      border: none;
      border-radius: 12px;
      color: white;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .copy-btn:hover {
      background: #FFD84D;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
      transform: translateY(-2px);
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .category-card {
      text-align: center;
      padding: 2rem;
      border-radius: 20px;
      background: white;
      border: 2px solid #FFF7D6;
      transition: all 0.4s ease;
      cursor: pointer;
    }

    .category-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 10px 30px rgba(255, 205, 51, 0.2);
      border-color: #FFCD33;
    }

    .category-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 1.5rem;
      border-radius: 50%;
      background: linear-gradient(135deg, #FFF7D6, #FFD84D);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      transition: all 0.3s ease;
    }

    .category-card:hover .category-icon {
      background: linear-gradient(135deg, #FFD84D, #FFCD33);
      box-shadow: 0 8px 25px rgba(255, 205, 51, 0.4);
    }

    .category-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      font-weight: 600;
      color: #333;
    }

    .newsletter {
      padding: 5rem 5%;
      background: linear-gradient(135deg, #FFF7D6, #FFD84D);
      text-align: center;
      width: 100%;
    }

    .newsletter h2 {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 2rem;
    }

    .newsletter-form {
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      gap: 1rem;
      background: white;
      padding: 0.5rem;
      border-radius: 50px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .newsletter-form input {
      flex: 1;
      padding: 1rem 1.5rem;
      border: none;
      border-radius: 50px;
      font-family: 'Poppins', sans-serif;
      outline: none;
    }

    .newsletter-form button {
      padding: 1rem 2.5rem;
      background: white;
      border: 3px solid #FFCD33;
      border-radius: 50px;
      color: #FFCD33;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .newsletter-form button:hover {
      background: #FFCD33;
      color: white;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
    }

    .cta-section {
      padding: 5rem 5%;
      background: white;
      text-align: center;
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    .cta-section h2 {
      font-family: 'Playfair Display', serif;
      font-size: 3rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 2rem;
    }

    .cta-button {
      padding: 1.2rem 3rem;
      background: #FFCD33;
      border: none;
      border-radius: 50px;
      color: white;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.4s ease;
      box-shadow: 0 8px 25px rgba(255, 205, 51, 0.3);
    }

    .cta-button:hover {
      background: #FFD84D;
      box-shadow: 0 12px 35px rgba(255, 205, 51, 0.4);
      transform: translateY(-5px);
    }

    footer {
      background: linear-gradient(135deg, #FFF7D6, #FFFFFF);
      padding: 4rem 5% 2rem;
      width: 100%;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 3rem;
      max-width: 1400px;
      margin: 0 auto 3rem;
    }

    .footer-section h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: #333;
      margin-bottom: 1.5rem;
      font-weight: 600;
    }

    .footer-section a, .footer-section p {
      display: block;
      font-family: 'Poppins', sans-serif;
      color: #666;
      text-decoration: none;
      margin-bottom: 0.8rem;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .footer-section a:hover {
      color: #FFCD33;
      padding-left: 5px;
    }

    .social-icons {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .social-icon {
      width: 40px;
      height: 40px;
      background: #FFCD33;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
      transition: all 0.3s ease;
    }

    .social-icon:hover {
      background: #FFD84D;
      transform: translateY(-3px);
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid #FFD84D;
      font-family: 'Poppins', sans-serif;
      color: #666;
    }

    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      background: #FFCD33;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 999;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
    }

    .back-to-top.visible {
      opacity: 1;
    }

    .back-to-top:hover {
      background: #FFD84D;
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(255, 205, 51, 0.5);
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(5px);
      z-index: 2000;
      align-items: center;
      justify-content: center;
    }

    .modal.active {
      display: flex;
    }

    .modal-content {
      background: white;
      border-radius: 25px;
      padding: 3rem;
      max-width: 500px;
      width: 90%;
      max-height: 90%;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      animation: modalSlideIn 0.4s ease-out;
    }

    @keyframes modalSlideIn {
      from {
        opacity: 0;
        transform: translateY(-50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      width: 35px;
      height: 35px;
      background: #FFF7D6;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.5rem;
      color: #FFCD33;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .modal-close:hover {
      background: #FFCD33;
      color: white;
      transform: rotate(90deg);
    }

    .modal-title {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .modal-text {
      font-family: 'Poppins', sans-serif;
      color: #666;
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    .auth-form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .form-group label {
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      color: #333;
      font-size: 0.95rem;
    }

    .form-group input {
      padding: 1rem;
      border: 2px solid #FFD84D;
      border-radius: 12px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      outline: none;
      transition: all 0.3s ease;
    }

    .form-group input:focus {
      border-color: #FFCD33;
      box-shadow: 0 0 0 3px rgba(255, 205, 51, 0.1);
    }

    .form-submit {
      padding: 1rem;
      background: #FFCD33;
      border: none;
      border-radius: 12px;
      color: white;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 1rem;
    }

    .form-submit:hover {
      background: #FFD84D;
      box-shadow: 0 4px 15px rgba(255, 205, 51, 0.4);
      transform: translateY(-2px);
    }

    .form-submit:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    .form-toggle {
      text-align: center;
      font-family: 'Poppins', sans-serif;
      color: #666;
      margin-top: 1rem;
    }

    .form-toggle a {
      color: #FFCD33;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
    }

    .form-toggle a:hover {
      text-decoration: underline;
    }

    .error-message {
      color: #e74c3c;
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }

    .success-message {
      color: #27ae60;
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }

    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #333;
      color: white;
      padding: 1rem 2rem;
      border-radius: 12px;
      font-family: 'Poppins', sans-serif;
      z-index: 3000;
      opacity: 0;
      transition: all 0.4s ease;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .toast.success {
      background: #27ae60;
    }

    .toast.error {
      background: #e74c3c;
    }

    .hidden {
      display: none;
    }

    .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 1s ease-in-out infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2.5rem;
      }

      .hero p {
        font-size: 1.1rem;
      }

      .section-title {
        font-size: 2rem;
      }

      nav {
        display: none;
      }

      .hero-buttons {
        flex-direction: column;
        gap: 1rem;
      }

      .newsletter-form {
        flex-direction: column;
        padding: 1rem;
      }

      .newsletter h2 {
        font-size: 2rem;
      }

      .cta-section h2 {
        font-size: 2rem;
      }

      .coupons-grid {
        grid-template-columns: 1fr;
      }

      .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      }
    }

      body { font-family: 'Inter', sans-serif; }
  .title-font { font-family: 'Playfair Display', serif; }

  /* Typewriter Effect */
  .typewriter {
    overflow: hidden;
    border-right: .12em solid #FFD84D;
    white-space: nowrap;
    animation: typing 3.8s steps(40, end), blink-caret .75s step-end infinite;
  }

  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }

  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #FFD84D; }
  }
/* Typewriter Effect */
#typewriter {
  font-family: 'Playfair Display', serif;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.12em solid #FFD84D;
  font-size: 2.5rem;
}

/* Marquee Effect */
#marquee {
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  font-size: 1.125rem;
}
/* Marquee Animation */
.marquee {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Slideshow */
.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

  footer a {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #2F2F2F;
    cursor: pointer;
    text-decoration: none;
  }
  footer a:hover {
    text-decoration: underline;
  }
