/* ============================================
   e-APC Custom Styles
   Theme: Majestic Dark Purple & 3D Gold
   ============================================ */

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

:root {
    --purple-bg: #11051b;
    --gold-light: #ffea9e;
    --gold-base: #d9a045;
    --gold-dark: #8c5b16;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--purple-bg);
    background-image: 
        radial-gradient(ellipse at 50% 50%, #2a0b3d 0%, var(--purple-bg) 70%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--purple-bg); }
::-webkit-scrollbar-thumb { background: #3d1459; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-base); }

/* Typography */
.font-cinzel { font-family: 'Cinzel', serif; }
.font-playfair { font-family: 'Playfair Display', serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }

/* 3D Gold Text Effect */
.text-3d-gold {
    font-family: 'Arial Black', 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, #ffea9e 0%, #d9a045 35%, #8c5b16 50%, #ffca68 60%, #ffea9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 3px 1px rgba(0,0,0,0.8)) drop-shadow(0px 8px 15px rgba(0,0,0,0.6));
    letter-spacing: -0.02em;
    font-weight: 900;
}

/* Flat Gold Text */
.text-gold-flat {
    background: linear-gradient(to right, #e7c269, #fdf0a6, #d9a045);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

/* Ornaments */
.ornament-side {
    display: inline-block;
    width: 60px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M10,25 C30,5 70,5 90,25 C70,45 30,45 10,25 Z' fill='none' stroke='%23d9a045' stroke-width='2'/%3E%3Ccircle cx='10' cy='25' r='3' fill='%23d9a045'/%3E%3Ccircle cx='90' cy='25' r='3' fill='%23d9a045'/%3E%3Cpath d='M30,25 Q50,15 70,25 Q50,35 30,25 Z' fill='%23d9a045' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.ornament-left { transform: scaleX(-1); }

/* Drapes (Curtains effect) */
.drape-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.drape {
    position: absolute;
    top: -5%;
    bottom: -5%;
    width: 30vw;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(42,11,61,0.9) 20%, 
        rgba(75,21,105,0.7) 40%, 
        rgba(30,8,45,0.8) 60%, 
        rgba(0,0,0,0) 100%);
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    border-right: 2px solid rgba(217, 160, 69, 0.2);
    border-radius: 0 50% 50% 0 / 0 10% 10% 0;
    filter: blur(1px);
}
.drape-left {
    left: -5vw;
}
.drape-right {
    right: -5vw;
    transform: scaleX(-1);
}

/* Gold Pill */
.gold-pill {
    background: linear-gradient(to bottom, #d59a35 0%, #aa6d1c 100%);
    border: 2px solid #fdf0a6;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.4);
    color: #11051b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Details Section */
.details-divider {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #d9a045, transparent);
    margin: 0 20px;
}

/* White Logos Container */
.logos-container {
    background: white;
    border-radius: 20px;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, #fdf0a6, #d9a045, #8c5b16, #d9a045);
    background-size: 200% 200%;
    color: #11051b;
    font-weight: 800;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(217, 160, 69, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    animation: goldShine 3s infinite;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(217, 160, 69, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 10px #fdf0a6); }
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

/* Helper classes for DataTables and SweetAlert remain intact below */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(217, 160, 69, 0.12);
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(217, 160, 69, 0.15) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: rgba(255, 255, 255, 0.6) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    border: 1px solid rgba(217, 160, 69, 0.1) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #fdf0a6, #d9a045) !important;
    color: #11051b !important;
    border-color: #d9a045 !important;
    font-weight: 700 !important;
}
table.dataTable thead th {
    border-bottom: 2px solid rgba(217, 160, 69, 0.25) !important;
    color: #fdf0a6 !important;
}
table.dataTable tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important; }
table.dataTable tbody tr:hover { background: rgba(217, 160, 69, 0.05) !important; }
table.dataTable tbody td { color: rgba(255, 255, 255, 0.85) !important; }
.swal2-popup.swal-premium {
    background: #1a0826 !important;
    border: 1px solid rgba(217, 160, 69, 0.25);
    border-radius: 24px !important;
}
.swal2-popup.swal-premium .swal2-title { color: #fdf0a6 !important; }
.swal2-popup.swal-premium .swal2-html-container { color: rgba(255, 255, 255, 0.85) !important; }
.swal2-popup.swal-premium .swal2-confirm {
    background: linear-gradient(135deg, #fdf0a6, #d9a045) !important;
    color: #11051b !important;
    font-weight: 800 !important;
}
.input-premium {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(217, 160, 69, 0.15);
    color: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    width: 100%;
}
.input-premium:focus {
    outline: none;
    border-color: #d9a045;
    background: rgba(255, 255, 255, 0.06);
}
