/* New Styles for 9Hits Point Shop - Modern Dark Teal & Gold Theme */

/* Global Styles */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #333333;
    --accent-color: #ffc93c;
    --light-color: #f9f7f7;
    --dark-color: #0b2b40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ff9a3c;
    --danger-color: #e63946;
    --gray-color: #6c757d;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--secondary-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 5px;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--dark-color) !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-color) !important;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-color);
    color: white;
    padding: 0;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 600px;
}

.hero-text {
    flex: 1;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1613347761493-4060c969cd28?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center center/cover;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 201, 60, 0.3);
}

.hero-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 201, 60, 0.4);
}

.hero-shape {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-color);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

/* User Points Info */
.user-points-info {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-color);
}

.user-points-info h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Packages Section */
#packages {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#packages::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(26, 95, 122, 0.05);
    border-radius: 50%;
    z-index: -1;
}

#packages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 201, 60, 0.05);
    border-radius: 50%;
    z-index: -1;
}

#available-points-container {
    display: inline-block;
    position: relative;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.2);
}

#available-points-value {
    font-weight: bold;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.points-updated {
    animation: pointsFlash 2s ease;
}

@keyframes pointsFlash {
    0% { color: var(--accent-color); }
    25% { color: white; }
    100% { color: var(--accent-color); }
}

/* Package Cards */
.package-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    border: none;
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.package-card .card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0;
    font-weight: 700;
    font-size: 1.3rem;
    border-bottom: none;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px 0 0 15px !important;
}

.package-card .card-body {
    padding: 2rem;
    width: 60%;
    display: flex;
    flex-direction: column;
}

.package-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.package-card .points {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.package-card .points i {
    margin-right: 10px;
    background-color: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.package-card .card-text {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.package-card .btn-buy {
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s;
    margin-top: auto;
}

.package-card .btn-buy:hover {
    background-color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(11, 43, 64, 0.3);
}

/* Popular Package Highlight */
.package-card.popular {
    border: none;
    transform: scale(1.05);
}

.package-card.popular .card-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff9a3c 100%);
    color: var(--dark-color);
}

.package-card.popular .popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--dark-color);
    color: white;
    font-weight: 700;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Insufficient funds styling */
.package-card.insufficient-funds {
    opacity: 0.75;
}

.package-card.insufficient-funds:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(230, 57, 70, 0.1);
    z-index: 1;
    pointer-events: none;
    border-radius: 15px;
}

/* Points Upgrade Styling */
.package-card.points-upgrade {
    border: none;
}

.package-card.points-upgrade .upgrade-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--danger-color);
    color: white;
    font-weight: 650;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.package-card.points-upgrade .upgrade-badge i {
    margin-right: 3px;
}

/* Discount Styling */
.original-price {
    text-decoration: line-through;
    font-size: 1.6rem;
    color: var(--gray-color);
    font-weight: 400;
    margin-right: 5px;
}

.discount-badge {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    vertical-align: middle;
    display: inline-block;
    margin-left: 5px;
}

.returning-customer-notice {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: var(--secondary-color);
    text-align: center;
}

.returning-customer-notice h4 {
    color: var(--success-color);
    margin-bottom: 5px;
}

/* Features Section */
.py-5.bg-light {
    background-color: var(--dark-color) !important;
    color: white;
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
}

.py-5.bg-light .section-title {
    color: white;
}

.py-5.bg-light .section-title:after {
    background-color: var(--accent-color);
}

.feature-box {
    text-align: left;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
    border-bottom: 5px solid transparent;
    display: flex;
    align-items: flex-start;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 20px;
    background-color: rgba(255, 201, 60, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-content {
    flex: 1;
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* FAQ Section */
#faq {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

#faq::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(26, 95, 122, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: white;
    box-shadow: none !important;
    padding: 20px 30px;
    border-radius: 15px !important;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--primary-color);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 20px 30px;
    color: var(--gray-color);
    background-color: white;
}

/* Contact Section */
#contact {
    padding: 5rem 0 !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

#contact .section-title {
    color: white;
}

#contact .section-title:after {
    background-color: var(--accent-color);
}

#contact .card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

#contact .card-body {
    padding: 3rem !important;
}

#contact .text-center {
    color: var(--secondary-color);
}

#contact .d-flex {
    flex-wrap: wrap;
}

#contact .mx-3 {
    flex: 1;
    min-width: 200px;
    margin: 1rem !important;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

#contact .mx-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#contact .fa-2x {
    font-size: 2.5rem;
    margin-bottom: 1rem !important;
    color: var(--primary-color);
    transition: all 0.3s;
}

#contact .mx-3:hover .fa-2x {
    color: var(--accent-color);
    transform: scale(1.2);
}

#contact a {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

#contact a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Payment Modal */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.package-summary {
    background-color: rgba(26, 95, 122, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.package-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    height: 50px;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Loading Spinner */
.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

/* Payment Method Icons */
.payment-methods {
    text-align: center;
    margin: 30px 0;
}

.payment-methods img {
    height: 30px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
    }
    
    .hero-image {
        min-height: 300px;
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    
    .hero-text {
        padding: 3rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        max-width: 100%;
    }
    
    .package-card.popular {
        transform: scale(1);
    }
    
    .package-card {
        flex-direction: column;
    }
    
    .package-card .card-header {
        width: 100%;
        border-radius: 15px 15px 0 0 !important;
        padding: 20px;
    }
    
    .package-card .card-body {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .feature-box {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    #contact .mx-3 {
        min-width: 100%;
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        min-height: 200px;
    }
    
    .package-card {
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}
