/* Premium Gold Theme - Modern & Luxurious */

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

:root {
    --gold-primary: #D4AF37;
    --gold-dark: #B8960C;
    --gold-light: #F4E4BC;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --text-light: #ffffff;
    --text-gray: #a8a8a8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navbar */
.site-header {
    background: var(--darker-bg);
    border-bottom: 2px solid var(--gold-primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

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

.site-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.header-nav a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-nav a:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
}

.header-nav a:first-child {
    margin-left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-gray);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Packages Section */
.packages-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.package-card {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1f1f3a 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.package-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
}

.package-card:hover::before {
    opacity: 0.15;
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
}

.package-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.package-duration {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.package-price {
    text-align: center;
    margin: 35px 0;
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-features {
    margin: 30px 0;
}

.package-features ul {
    list-style: none;
}

.package-features li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-features li:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--darker-bg);
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-gray);
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 2px solid var(--gold-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--gold-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
    color: var(--text-gray);
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--gold-primary);
}

.payment-badge img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-gray);
    font-size: 14px;
}

/* Checkout Page */
.checkout-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--dark-bg);
}

.checkout-header {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h1 {
    font-size: 36px;
    color: var(--gold-primary);
}

.back-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.checkout-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.order-summary,
.payment-form {
    background: var(--darker-bg);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
}

.order-summary h2,
.payment-form h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--gold-primary);
}

.summary-item {
    padding: 20px 0;
}

.item-name {
    font-weight: 600;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.item-detail {
    color: var(--text-gray);
}

.summary-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.3);
    margin: 25px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    padding: 20px 0;
}

.total-amount {
    color: var(--gold-primary);
    font-size: 32px;
}

.security-note {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--gold-primary);
    margin-top: 25px;
    text-align: center;
    color: var(--gold-primary);
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gold-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: rgba(168, 168, 168, 0.5);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 13px;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b6b;
}

.payment-info {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 14px;
    color: var(--text-gray);
}

.payment-info ul {
    margin-top: 15px;
    padding-left: 20px;
}

.payment-info li {
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--darker-bg);
    border: 2px solid var(--gold-primary);
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: var(--gold-primary);
    cursor: pointer;
    z-index: 10000;
    background: var(--darker-bg);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--gold-primary);
    color: var(--darker-bg);
}

/* Result Pages */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dark-bg);
}

.result-container {
    background: var(--darker-bg);
    padding: 70px 50px;
    border-radius: 25px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    text-align: center;
    max-width: 550px;
}

.result-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 35px;
}

.result-icon.success {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
    color: var(--darker-bg);
}

.result-icon.failed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
}

.result-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.result-container p {
    color: var(--text-gray);
    margin-bottom: 12px;
    font-size: 18px;
}

.result-note {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 35px !important;
}

/* Legal Pages */
.legal-page {
    background: var(--dark-bg);
    min-height: 100vh;
}

.legal-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border-bottom: 2px solid var(--gold-primary);
    padding: 80px 20px;
    text-align: center;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--gold-primary);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-light);
}

.legal-content h2 {
    font-size: 26px;
    margin: 45px 0 20px;
    color: var(--gold-primary);
}

.legal-content h3 {
    font-size: 22px;
    margin: 35px 0 15px;
    color: var(--gold-light);
}

.legal-content p {
    margin-bottom: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

.legal-content ul {
    margin: 18px 0;
    padding-left: 30px;
    color: var(--text-gray);
}

.legal-content li {
    margin-bottom: 12px;
}

.back-home {
    display: inline-block;
    margin-top: 35px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.back-home:hover {
    opacity: 0.7;
}

.no-packages {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
    font-size: 20px;
}

/* Admin Panel Styles */
.alert {
    padding: 18px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-logo {
        font-size: 24px;
    }

    .header-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-nav a {
        margin-left: 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .header-nav {
        display: flex;
        gap: 15px;
    }

    .header-nav a {
        margin-left: 0;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .package-card {
        padding: 30px 20px;
    }

    .result-container {
        padding: 50px 30px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}