:root {
    --primary-color: #c4a0e8;
    --primary-color-dark: #b188d8;
    --secondary-color: #2f45c2;
    --secondary-color-hover: #3a57e8;
    --dark-bg: #1a1a1a;
    --card-bg: #2e2e2e;
    --nav-bg: #2b2b2b;
    --accent: #9d2788;
    --accent-hover: #bf30a5;
    --text: #ffffff;
    --text-muted: #999;
    --border-radius: 8px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.3);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 70px; /* For footer space */
}

/* Header styles */
.header {
    position: relative;
    width: 100%;
    height: 380px;
    background-image: url('/assets/bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.header-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1.1);
    width: 350px;
    max-width: 90%;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(196, 160, 232, 0.5));
}

.header-controls {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.header-controls button,
.header-controls select {
    margin-left: 10px;
    background-color: var(--primary-color);
    border: none;
    color: var(--dark-bg);
    padding: 10px 18px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.header-controls button:hover,
.header-controls select:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-controls .cart {
    margin-left: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart:hover {
    background-color: var(--secondary-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation bar */
.nav-bar {
    background-color: var(--nav-bg);
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar a {
    color: var(--primary-color);
    margin: 0 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-bar a:hover::after {
    width: 100%;
}

.active::after {
    width: 100% !important;
}

/* Store notice */
.store-notice {
    background-color: rgba(255, 87, 87, 0.2);
    border-left: 4px solid #ff5757;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Container and content layout */
.container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.content .main {
    flex: 3;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* For packages page */
.content.main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
}

.main h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.main h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.main p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.main a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.main a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(196, 160, 232, 0.3);
}

/* Sidebar */
.side-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-bar .featured,
.side-bar .customer {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.side-bar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}

.featured img {
    width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.featured img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.buy-button,
.gift-button,
.checkout-btn,
.add-to-cart {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.buy-button:hover,
.gift-button:hover,
.checkout-btn:hover,
.add-to-cart:hover {
    background-color: var(--secondary-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(47, 69, 194, 0.3);
}

.gift-button {
    background-color: var(--accent);
}

.gift-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 5px 10px rgba(157, 39, 136, 0.3);
}

.view-details {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: rgba(196, 160, 232, 0.1);
    transform: translateY(-3px);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 15px 0;
    color: var(--primary-color);
    text-align: center;
}

/* Footer */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--nav-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer div {
    padding: 0 20px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--card-bg);
    margin: 50px auto;
    width: 80%;
    max-width: 900px;
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-header {
    background: linear-gradient(135deg, var(--accent), var(--secondary-color));
    padding: 20px;
    position: relative;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h2 {
    color: var(--primary-color);
    margin-top: 25px;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(196, 160, 232, 0.3);
    padding-bottom: 10px;
}

.config-preview img {
    width: 100%;
    margin: 15px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
    font-weight: bold;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background-color: rgba(0,0,0,0.15);
}

/* Shopping Cart Modal Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
}

.cart-item img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: var(--text);
}

.cart-item-actions button {
    background-color: rgba(255,87,87,0.8);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cart-item-actions button:hover {
    background-color: rgba(255,87,87,1);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.checkout-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    float: right;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: var(--secondary-color-hover);
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, var(--accent), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
    pointer-events: auto;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.5rem;
}

.notification-message {
    flex-grow: 1;
    font-weight: 500;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transform-origin: left;
    animation: progress-shrink 5s linear forwards;
}

@keyframes progress-shrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Packages list styles */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    justify-content: center;
}

.package-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 420px;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(196, 160, 232, 0.3);
}

.package-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(196, 160, 232, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    display: block;
}

.package-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.package-name {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.package-description {
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    min-height: 60px;
}

.package-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Packages header styles */
.packages-header {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(47, 69, 194, 0.1), rgba(157, 39, 136, 0.1));
    padding: 20px;
    border-radius: var(--border-radius);
}

.packages-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.packages-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: var(--border-radius);
}

/* Responsive design */
@media (max-width: 992px) {
    .content {
        flex-direction: column;
    }
    
    .side-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .footer {
        justify-content: center;
    }
    
    .footer div {
        margin: 5px 0;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-logo {
        width: 280px;
    }
    
    .nav-bar a {
        margin: 0 15px;
        font-size: 1.1rem;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        right: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 30px auto;
    }
    
    .content.about-page {
        padding: 25px;
    }
    
    .about-page h1 {
        font-size: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .package-card {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .header {
        height: 300px;
    }
    
    .header-logo {
        width: 220px;
    }
    
    .nav-bar {
        padding: 12px 5px;
    }
    
    .nav-bar a {
        margin: 0 10px;
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .content .main,
    .side-bar .featured,
    .side-bar .customer {
        padding: 20px 15px;
    }
    
    .main h1 {
        font-size: 1.8rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-controls {
        right: 20px;
    }
}

.font-size { 
    font-size: 1.05rem;
}

.contact-info {
    background-color: rgba(47, 69, 194, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Checkout page styles */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.checkout-main {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.checkout-summary {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    align-self: start;
    position: sticky;
    top: 100px;
}

.checkout-steps {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.checkout-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
    color: var(--text-muted);
}

.checkout-step.active {
    color: var(--primary-color);
    font-weight: bold;
}

.checkout-step.completed {
    color: var(--secondary-color);
}

.checkout-step::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--dark-bg);
    border: 2px solid var(--text-muted);
}

.checkout-step.active::after {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkout-step.completed::after {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.package-skeleton {
    background: linear-gradient(90deg, var(--card-bg) 0%, rgba(70, 70, 70, 0.4) 50%, var(--card-bg) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    height: 450px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Responsive design */
@media (max-width: 992px) {
    .content {
        flex-direction: column;
    }
    
    .side-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .footer {
        justify-content: center;
    }
    
    .footer div {
        margin: 5px 0;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-logo {
        width: 280px;
    }
    
    .nav-bar a {
        margin: 0 15px;
        font-size: 1.1rem;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        right: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 30px auto;
    }
    
    .content.about-page {
        padding: 25px;
    }
    
    .about-page h1 {
        font-size: 2rem;
    }
    
    .package-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header {
        height: 300px;
    }
    
    .header-logo {
        width: 220px;
    }
    
    .nav-bar {
        padding: 12px 5px;
    }
    
    .nav-bar a {
        margin: 0 10px;
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .content .main,
    .side-bar .featured,
    .side-bar .customer {
        padding: 20px 15px;
    }
    
    .main h1 {
        font-size: 1.8rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-controls {
        right: 20px;
    }
}
