/* Reset and container */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    padding: 2rem;   
    background: var(--cream);
    color: var(--nutella-dark);
    min-height: 100vh;
  }
  
  /* Loyalty card */
  #loyalty-card {
    max-width: 400px;
    margin: 3rem auto;
    background: linear-gradient(145deg, #e6c67f, #d4af37);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 30px rgba(42, 31, 19, 0.2);
    text-align: center;
    border: 1px solid rgba(180, 150, 80, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #3a2c1a;
  }
  
  #loyalty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--strawberry), var(--caramel));
  }
  
  #loyalty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(78, 44, 24, 0.2);
  }
  
  #loyalty-card h2 {
    margin: 0.5rem 0 1.5rem;
    font-size: 1.8rem;
    color: #3a2c1a;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
  }
  
  #loyalty-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--caramel);
    border-radius: 2px;
  }
  
  /* Stamp circles */
  #stamps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0 2.5rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 248, 235, 0.9);
    border-radius: 16px;
    border: 2px dashed rgba(58, 44, 26, 0.2);
    background-image: 
      linear-gradient(45deg, rgba(255, 248, 235, 0.9) 25%, transparent 25%, transparent 50%, rgba(255, 248, 235, 0.9) 50%, rgba(255, 248, 235, 0.9) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
  }
  
  #stamps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.7) 100%);
    pointer-events: none;
  }
  
  .stamp {
    width: 3rem;
    height: 3rem;
    border: 2px solid #3a2c1a;
    border-radius: 50%;
    background: #f8f3e9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 auto;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stamp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }
  
  .stamp.filled {
    background: #3a2c1a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(58, 44, 26, 0.3);
    animation: stampPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  @keyframes stampPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
  }
  
  .stamp.filled::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    animation: checkIn 0.3s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  
  @keyframes checkIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  /* Staff area */
  #staff-area {
    margin: 20px auto;
    max-width: 400px;
  }
  
  #staff-pin {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(192, 138, 92, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: var(--nutella-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
  }
  
  #staff-pin::placeholder {
    color: #b8a99a;
    opacity: 0.8;
  }
  
  #staff-pin:focus {
    border-color: var(--caramel);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 185, 128, 0.2);
  }
  
  #staff-pin.error {
    border-color: #f44336;
    animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff8f8;
    animation: shake 0.5s ease-in-out;
  }
  
  #staff-stamp-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--caramel), #f0c97a);
    color: var(--nutella-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(230, 185, 128, 0.4);
  }
  
  #staff-stamp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5d79b, var(--caramel));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  
  #staff-stamp-btn:hover::before {
    opacity: 1;
  }
  
  #staff-stamp-btn:disabled {
    background: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }
  
  #staff-stamp-btn:not(:disabled):hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(230, 185, 128, 0.5);
  }
  
  #staff-stamp-btn:not(:disabled):active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(230, 185, 128, 0.3);
  }
  
  #staff-stamp-btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
  }
  
  #staff-stamp-btn:hover i {
    transform: rotate(10deg);
  }
  
  /* Reset button */
  #reset-stamps {
    display: none;
    margin: 20px auto 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  #reset-stamps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e53935, #d32f2f);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  
  #reset-stamps:hover::before {
    opacity: 1;
  }
  
  #reset-stamps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
  }
  
  #reset-stamps:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
  }
  
  #reset-stamps i {
    margin-right: 8px;
  }
  
  /* Animation for error state */
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }
  
  /* Status message */
  #status-msg {
    margin: 2rem 0 0.5rem;
    font-size: 0.95rem;
    min-height: 24px;
    color: var(--nutella-dark);
    font-weight: 500;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--caramel);
    box-shadow: 0 2px 10px rgba(78, 44, 24, 0.1);
  }
  
  #status-msg.success {
    background: rgba(230, 244, 230, 0.9);
    border-left-color: #4CAF50;
  }
  
  #status-msg.error {
    background: rgba(255, 235, 235, 0.9);
    border-left-color: #f44336;
  }
  
  #status-msg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(230, 185, 128, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(230, 185, 128, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    z-index: 0;
  }
  
  #status-msg span {
    position: relative;
    z-index: 1;
  }
  
  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  /* Loyalty Information Section */
  .loyalty-info {
    padding: 4rem 0;
    background: var(--nutella-dark);
    color: var(--cream);
  }
  
  .loyalty-info h2 {
    text-align: center;
    color: var(--caramel);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-family: 'Playfair Display', serif;
  }
  
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--caramel, 0.2);
  }
  
  .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .info-icon {
    font-size: 2.5rem;
    color: var(--caramel);
    margin-bottom: 1.5rem;
  }
  
  .info-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
  
  .info-card p {
    color: var(--nutella-light);
    line-height: 1.6;
  }
  
  .terms {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
  }
  
  .terms h3 {
    color: var(--caramel);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
  }
  
  .terms ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .terms li {
    color: var(--nutella-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
  }
  
  .terms li:before {
    content: '•';
    color: var(--caramel);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.3rem;
  }
  
  @media (max-width: 768px) {
    .info-grid {
      grid-template-columns: 1fr;
    }
    
    .terms ul {
      grid-template-columns: 1fr;
    }
  }
  