/* Styling for BibleForAI - AIWEB — AI Website Creation */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #05070a;
    --bg-card: rgba(10, 15, 26, 0.65);
    --bg-card-hover: rgba(16, 25, 42, 0.85);
    --bg-modal: rgba(8, 12, 20, 0.96);
    --primary: #8b5cf6; /* Violet */
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --accent: #22d3ee; /* Cyan */
    --accent-glow: rgba(34, 211, 238, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12) 0%, rgba(5, 7, 10, 0) 50%),
                radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.06) 0%, rgba(5, 7, 10, 0) 40%),
                var(--bg-dark);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Unified left hamburger/service drawer */
.menu-toggle { display: flex !important; order: -1; margin-left: 0 !important; margin-right: 0.85rem; }
.mobile-drawer { display:block !important; left:-320px !important; right:auto !important; border-right:1px solid var(--border); }
.mobile-drawer.active { left:0 !important; right:auto !important; }

.logo-group {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--primary) 75%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: -1px;
    text-transform: uppercase;
}

.desktop-nav {
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-orders {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-orders:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-modal);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.mobile-drawer.active {
    max-height: 480px;
}

.mobile-nav-links {
    list-style: none;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 2rem 4rem 2rem;
    min-height: calc(100vh - 250px);
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem 4rem 1rem;
}

.hero .badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

/* Stats */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: block;
}

/* Section */
.section-container {
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.data-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.card-icon.aiweb-color { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.data-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.data-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Compliance */
.compliance-bg {
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.compliance-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.compliance-text h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.compliance-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.bullet-item i {
    color: var(--primary);
    margin-top: 2px;
}

.compliance-graphic {
    text-align: center;
    font-size: 5rem;
    color: var(--primary);
}

/* Page Header */
.page-header {
    margin: 1rem 0 1.5rem;
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.package-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.package-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.package-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.feature-list li i {
    color: #22c55e;
    font-size: 0.8rem;
}

.package-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.2rem;
}

.badge-best {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

/* Orders */
.orders-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}

.table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.orders-table th, .orders-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.orders-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.no-data-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6vh;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
    align-self: flex-end;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.order-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
}

.email-control-group label, .industry-control-group label, .quantity-control-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: left;
}

.email-control-group input,
.industry-control-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: var(--transition);
}

#email-error {
    color: #ef4444;
    font-size: 0.78rem;
    display: none;
    text-align: left;
}

.quantity-control-group .qty-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.2rem;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

#order-quantity {
    background: transparent;
    border: 0;
    color: #ffffff;
    width: 70px;
    text-align: center;
    font-size: 1rem;
    outline: none;
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-val {
    color: var(--primary);
}

/* Test button higher visibility */
.test-checkout-btn {
    opacity: 0.7;
    min-height: 44px;
    border: 1px dashed rgba(255,255,255,0.4);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    color: #ffffff;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
}

.test-checkout-btn:hover {
    background: rgba(255,255,255,0.05);
}

.paypal-wrapper {
    width: 100%;
}

.payment-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: rgba(5, 7, 10, 0.85);
    border-top: 1px solid var(--border);
    padding: 2rem 2rem 1.2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .logo-title {
    font-size: 1.2rem;
}

.footer-links h4, .footer-support h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-support ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .compliance-content { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .menu-toggle { display: flex !important; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .header-container { padding: 1rem; }
    .hero { padding: 3.5rem 1rem 3rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
}
