/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    background: linear-gradient(135deg, #fef7ed 0%, #fef2f2 50%, #fefce8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Chinese Pattern Background */
body::before {
     content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-image: url('images/cloud-1.png');
    background-repeat: repeat;
    background-size: 100px auto; /* Reduce image size as needed */
    opacity: 3.5%; /* Adjust opacity for subtlety */
    pointer-events: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.font-chinese {
    font-family: 'Noto Sans SC', system-ui, sans-serif;
}

.font-elegant {
    font-family: 'Crimson Text', serif;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Navigation Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 51;
}

.logo-circle {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-indicator {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    background: #dc2626;
    border-radius: 50%;
    animation: float 2s ease-in-out infinite;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
    font-family: 'Crimson Text', serif;
}

.brand-chinese {
    font-size: 0.875rem;
    color: #ca8a04;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #dc2626;
    border-bottom: 2px solid #dc2626;
}

.nav-button {
    background: #dc2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    font-size: 16px;
}

.nav-button:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.menu-icon {
    color: #dc2626;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.mobile-menu-content {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link.active {
    color: #dc2626;
    font-weight: 600;
}

.mobile-nav-button {
    width: 100%;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 20px;
    
}

/* Main Content */
.main-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header-section {
    text-align: center;
    margin: 3rem 0;
    animation: slideUp 0.6s ease-out;
}

.header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lantern {
    font-size: 2.5rem;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    color: #dc2626;
    font-family: 'Crimson Text', serif;
}

.title-chinese {
    font-size: 1.25rem;
    color: #374151;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 16px;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Card Styles */
.card-container {
    max-width: 32rem;
    margin: 0 auto;
}
.bao-navbar-logo-img {
    width: 60px;
    height: 55px;
    object-fit: cover;
    border-radius: 10%;
    
  }
.loyalty-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.1);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.card-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem 1.5rem;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.header-content-wrapper {
    position: relative;
    z-index: 10;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Crimson Text', serif;
    margin-bottom: 0.5rem;
}

.card-title-chinese {
    color: rgba(254, 202, 202, 1);
    font-family: 'Noto Sans SC', system-ui, sans-serif;
}

.dragon-icon {
    position: absolute;
    right: -1rem;
    top: -1rem;
    font-size: 4rem;
    opacity: 0.2;
}

.card-content {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #6b7280;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #1f2937;
    font-weight: bold;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.button-content {
    position: relative;
    z-index: 10;
}

.button-shine {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-12deg) translateX(-100%);
    transition: transform 0.7s ease;
}

.submit-button:hover .button-shine {
    transform: skewX(-12deg) translateX(100%);
}

/* Loading Styles */
.loading-section {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Error Styles */
.error-section {
    padding: 1rem;
}

.error-content {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.error-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.error-icon {
    font-size: 1.5rem;
}

.error-details {
    flex: 1;
}

.error-title {
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #dc2626;
    margin-bottom: 1rem;
}

.store-info {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.store-title {
    color: #92400e;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.store-details {
    font-size: 0.875rem;
    color: #a16207;
}

.store-details p {
    margin: 0.25rem 0;
}

/* Success Styles */
.success-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.customer-info {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.customer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-avatar {
    width: 3rem;
    height: 3rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.welcome-message {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.customer-name {
    color: #059669;
    font-weight: 600;
}

.celebration-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.points-card {
    background: white;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.points-display {
    text-align: center;
}

.points-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 1rem;
}

.points-label {
    color: #1f2937;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.points-chinese {
    font-size: 1.125rem;
    color: #6b7280;
    font-family: 'Noto Sans SC', system-ui, sans-serif;
}



.check-another-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.75rem;
    transition: color 0.3s ease;
}

.check-another-btn:hover {
    color: #1f2937;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
    text-align: center;
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 36rem;
    margin: 0 auto;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.info-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-experience {
    color: #ca8a04;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.info-details p {
    margin: 0.25rem 0;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chat-btn {
    background: #dc2626;
    color: white;
}

.call-btn {
    background: #eab308;
    color: #1f2937;
}

.btn-icon {
    font-size: 1.5rem;
}
.check-another-btn {
    margin-top: 16px;
    margin-left: 70px;
    background: #A16207;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}
.check-btn {
    margin-top: 16px;
    background: #A16207;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
     .bao-navbar-logo-img {
      width: 50px;
      height: 45px;
      margin-top: 10px;
    }
    .check-another-btn {
        margin-top: 16px;
        margin-left: 0;
        width: 100%;
        display: block;
        text-align: center;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu.show {
        display: block;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-chinese {
        font-size: 0.75rem;
    }

    .logo-circle {
        width: 2.75rem;
        height: 2.75rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .header-section {
        margin: 2rem 0;
    }

    .card-content {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn {
        width: 3rem;
        height: 3rem;
    }

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

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

    .main-content {
        padding: 0 0.75rem;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .card-content {
        padding: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}
