/* NFC & QR SaaS Platform Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism & Ambient Glow */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Phone Mockup Frame for Landing & Live Editor */
.phone-mockup-frame {
    width: 320px;
    height: 640px;
    background: #ffffff;
    border: 10px solid #0f172a;
    border-radius: 44px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
    .phone-mockup-frame {
        width: 340px;
        height: 680px;
        border-width: 12px;
        border-radius: 48px;
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: #0f172a;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 50;
}

.phone-screen {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
}

/* NFC Signal Ripple Animation */
@keyframes nfcPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.nfc-pulse {
    animation: nfcPulse 2.5s infinite ease-in-out;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tab Active Styles */
.tab-btn.active {
    border-color: #800000;
    color: #800000;
    background-color: #fdf2f2;
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.25s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 300px;
    opacity: 1;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Concentric Orbital Circles Background */
.bg-orbital-rings {
    background-image: radial-gradient(circle at 50% 50%, rgba(6, 78, 59, 0.05) 0%, rgba(6, 78, 59, 0.05) 1px, transparent 1px),
                      radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 160px 160px, 320px 320px;
}

.orbital-circle-decor {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(6, 78, 59, 0.08);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Realistic Physical NFC Card Showcase Styles (Trowas Inspired) */
.nfc-card-preview {
    aspect-ratio: 1.586 / 1;
    width: 100%;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.nfc-card-preview:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
}

/* Card 1: White Ceramic / PVC */
.card-style-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #0f172a;
}

/* Card 2: Matte Black */
.card-style-black {
    background: radial-gradient(circle at 30% 20%, #27272a 0%, #18181b 60%, #09090b 100%);
    border: 1px solid rgba(63, 63, 70, 0.4);
    color: #ffffff;
}

/* Card 3: Gold Metallic */
.card-style-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 35%, #aa7c11 70%, #d4af37 100%);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #261a02;
    box-shadow: 0 16px 32px -8px rgba(170, 124, 17, 0.25);
}

/* Card 4: Silver Metallic */
.card-style-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 40%, #94a3b8 70%, #e2e8f0 100%);
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: #0f172a;
}

/* Card 5: Brushed Metal Black */
.card-style-metal-black {
    background: repeating-linear-gradient(90deg, #1c1917, #292524 2px, #1c1917 4px);
    border: 1px solid rgba(120, 113, 108, 0.3);
    color: #ffffff;
}

/* Card 6: Rose Gold Metallic */
.card-style-rose-gold {
    background: linear-gradient(135deg, #e8a598 0%, #fcd5ce 40%, #b76e79 80%, #e8a598 100%);
    border: 1px solid rgba(232, 165, 152, 0.6);
    color: #3b1d22;
}

/* Card 7: Natural Bamboo */
.card-style-bamboo {
    background: linear-gradient(135deg, #e9d5a1 0%, #d4b878 40%, #e0c88b 70%, #c9a961 100%);
    border: 1px solid rgba(212, 184, 120, 0.6);
    color: #3d2f14;
}

/* Card 8: Walnut Dark Wood */
.card-style-walnut {
    background: linear-gradient(135deg, #58311a 0%, #3d2112 50%, #4a2915 80%, #2b170c 100%);
    border: 1px solid rgba(88, 49, 26, 0.6);
    color: #fef3c7;
}

/* Card 9: Frosted Transparent */
.card-style-transparent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(241, 245, 249, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

/* Floating Action Buttons (WhatsApp & Scroll Top) */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.floating-back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 999;
    transition: all 0.25s ease;
    cursor: pointer;
}

.floating-back-to-top:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-3px);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-qr-area, #printable-qr-area * {
        visibility: visible;
    }
    #printable-qr-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
