/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #12a1db;
    --secondary-color: #1a1a1a;
    --background-color: #0f0f0f;
    --text-color: #f0f0f0;
    --accent-color: #e67e22;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page Transition */
.page-transition {
    animation: fadeIn 0.2s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ip-box {
    background-color: #ffffff;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: #000000;
    border-radius: 999px;
}

.ip-box i {
    margin-left: 0;
}

.ip-box:hover {
    transform: scale(1.05);
}

.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Home Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 8px;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--primary-color);
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #ccc;
}

/* Ranks Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #1c1c1c;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.product-card img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-title {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.btn-buy {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-buy:hover {
    background-color: #0d82b3;
}

/* Maintenance */
.maintenance {
    text-align: center;
    padding: 5rem 0;
}

.maintenance i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.maintenance h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--primary-color);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--danger-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.checkout-btn {
    width: 100%;
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

/* T&C Popup */
.tc-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    width: 300px;
    z-index: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tc-popup.show {
    transform: translateY(0);
}

.tc-popup.hidden {
    display: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
    width: 90%;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.tc-content {
    text-align: center;
}

.tc-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tc-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tc-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.tc-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.tc-buttons {
    display: flex;
    gap: 0.5rem;
}

.tc-buttons button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s, transform 0.2s;
}

.tc-buttons button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-accept {
    background-color: var(--primary-color);
    color: white;
}

.btn-decline {
    background-color: transparent;
    border: 1px solid var(--text-color) !important;
    color: var(--text-color);
}

/* IP Popup - Modal Style */
.ip-modal-content {
    background-color: #1a1525; /* Dark purple/black theme */
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.ip-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3c4c3d; /* Dark green border */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    animation: ipPulse 1.6s ease-out forwards;
}

.ip-check-circle i {
    font-size: 2.5rem;
    color: #92e078; /* Light green check */
}

.ip-copied-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ip-copied-subtitle {
    color: #8c8896;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ip-close-btn {
    background-color: #8b22e2; /* Purple matching button */
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.ip-close-btn:hover {
    background-color: #7a1dc7;
    transform: scale(1.05);
}

@keyframes ipPulse {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(146, 224, 120, 0.7);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(146, 224, 120, 0.0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(146, 224, 120, 0.0);
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.cart-item-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Terms Page */
.terms-container {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.terms-container h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.terms-container h2 {
    margin: 1.5rem 0 0.5rem;
}

.terms-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ccc;
}
