:root {
    --primary-color: #000065;
    --secondary-color: #0066cc;
    --error-color: #d32f2f;
    --error-bg: #fff3f3;
    --error-border: #ffa4a4;
    --text-color: #333;
    --text-muted: #666;
    --max-width: 1200px;
    --spacing: 1rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Account Section Styles */
.account-section {
    display: flex;
    align-items: center;
    position: relative;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.account-link:hover {
    background: #f0f0f0;
}

.account-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.account-section:hover .account-dropdown {
    display: block;
}

.account-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.account-dropdown a:hover {
    background: #f0f0f0;
}

.account-dropdown a:last-child {
    border-bottom: none;
}

/* Navigation Styles */
.nav-container {
    background: var(--primary-color);
    padding: 0.5rem;
    position: relative;
}

#nav {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav .top {
    position: relative;
}

#nav .top_link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
}

#nav .sub {
    position: absolute;
    background: white;
    box-shadow: var(--shadow-md);
    display: none;
    min-width: 200px;
    z-index: 100;
}

#nav .sub a {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
}

#nav .sub a:hover {
    background: #f0f0f0;
}

#nav .top:hover .sub {
    display: block;
}

/* Content Styles */
.content {
    background: white;
    padding: var(--spacing);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

/* Auth Form Styles */
.auth-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
}

.vip-form {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.vip-form h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group input[type="text"]:focus::placeholder {
    opacity: 0.5;
}

.form-group input[type="radio"] {
    margin-right: 0.5rem;
}

.form-group input[type="radio"] + label {
    display: inline;
    margin-right: 2rem;
}

.radio-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

button:hover {
    background: var(--secondary-color);
}

.help-text {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.help-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
}

.copyright-section {
    text-align: center;
    padding: 1rem;
    background: white;
    color: var(--text-color);
}

.copyright-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright-section a:hover {
    text-decoration: underline;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.left-links, .right-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.hidden-text {
    display: none;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .account-section {
        align-self: flex-end;
    }

    .account-dropdown {
        right: 0;
        left: auto;
    }

    #nav {
        flex-direction: column;
    }

    #nav .sub {
        position: static;
        box-shadow: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding-left: 2rem;
    }

    #nav .sub a {
        color: var(--primary-color);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background: white;
    }

    #nav .sub a:hover,
    #nav .sub a:active {
        background: var(--primary-color);
        color: white;
    }

    #nav .top .sub,
    #nav .top .sub li,
    #nav .top .sub ul {
        background: white;
    }

    #nav .sub ul {
        padding-left: 1rem;
        background: #f5f5f5;
    }

    #nav .top_link {
        background: var(--primary-color);
        color: white;
    }

    #nav .top_link .down::after {
        content: ' â–¼';
        font-size: 0.8em;
    }

    .logo-text {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .left-links, .right-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .vip-form {
        padding: 1.5rem;
    }

    .auth-container {
        padding: 0.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span {
        background: white;
    }

    .mobile-menu-toggle {
        top: -3rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: var(--primary-color);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: var(--primary-color);
    }

    .nav-container {
        position: relative;
    }

    #nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #nav.active {
        display: flex;
    }

    #nav .top {
        width: 100%;
    }

    #nav .sub {
        position: static;
        box-shadow: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
    }

    #nav .top_link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Content Typography Styles */
.title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin: 1.5rem 0 1rem 0;
}

.center-image {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
    justify-content: center;
    padding: var(--spacing);
}

.product {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    max-width: 380px; /* Adjust to fit two side-by-side */
    flex: 1 1 380px;
}

.product img {
    width: 120px;
    height: auto;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .product {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.action-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background: var(--secondary-color);
}

.section-container {
    display: flex;
    gap: var(--spacing);
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* Ensures responsiveness */
    padding: var(--spacing);
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    max-width: 500px; /* Adjust width so two fit side-by-side */
    flex: 1 1 450px; /* Allows responsiveness */
}

.section img {
    width: 120px;
    height: auto;
}

.section-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

.section-info button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.section-info button:hover {
    background: var(--secondary-color);
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        align-items: center;
    }
}

.success-text {
    color: green;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.emphasis {
    font-family: "Arial Black", sans-serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

.purchase-options {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
    text-align: center;
}

.purchase-options h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.purchase-options .buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.purchase-options .action-button {
    min-width: 300px;
}

.product-hero {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}

.product-hero .product-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-hero .product {
    flex: 2;
}

.product-hero .purchase-options {
    flex: 1;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    min-width: 300px;
}

.purchase-options h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.purchase-options .buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .product-hero .product-container {
        flex-direction: column;
    }

    .product-hero .purchase-options {
        width: 100%;
    }

    .purchase-options .buttons {
        align-items: center;
    }

    .purchase-options .action-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Product Navigation */
.product-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.product-nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.product-nav a:hover {
    background: #f0f0f0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

.product-card .buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.product-card .action-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.product-card .action-button:hover {
    background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .product-nav a {
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}