@keyframes hero-slide-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-track {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 5)); }
}

@keyframes status-glow-online {
    0%, 100% { box-shadow: 0 0 5px var(--green-status), 0 0 10px var(--green-status); }
    50% { box-shadow: 0 0 10px var(--green-status), 0 0 15px var(--green-status); }
}

@keyframes status-glow-offline {
    0%, 100% { box-shadow: 0 0 5px var(--red-status), 0 0 10px var(--red-status); }
    50% { box-shadow: 0 0 10px var(--red-status), 0 0 15px var(--red-status); }
}

@keyframes ip-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(138, 43, 226, 0.2); }
    50% { box-shadow: 0 0 15px rgba(138, 43, 226, 0.5); }
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding-top: 10rem;
}

.hero-content > * {
    opacity: 0;
    animation: hero-slide-in 0.8s var(--anim-bubble) forwards;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.2s; }
.hero-anim-3 { animation-delay: 0.3s; }
.hero-anim-4 { animation-delay: 0.4s; }
.hero-anim-5 { animation-delay: 0.5s; }

.ip-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
}

.ip-display {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    will-change: transform, box-shadow;
}

.ip-display-main {
    animation: ip-glow 3s ease-in-out infinite;
}
.ip-display-main:hover {
     animation-play-state: paused;
}

.ip-group-hidden {
    display: none;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

.ip-group-hidden.active {
    display: flex;
}

.ip-platform {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ip-display.bedrock-ip .ip-platform {
    color: var(--secondary-color);
}

.ip-address {
    font-size: 1.1rem;
    font-weight: 600;
}

.ip-port {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.ip-display:hover {
    background-color: var(--surface-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.ip-display .tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -70px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.ip-display:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.server-status {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

#status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color 0.5s ease;
}

#status-indicator.online {
    background-color: var(--green-status);
    animation: status-glow-online 2s infinite ease-in-out;
}

#status-indicator.offline {
    background-color: var(--red-status);
    animation: status-glow-offline 2s infinite ease-in-out;
}

.hero-cta {
    margin-top: 2rem;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
}

.page-content {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.page-content-padding {
    padding-top: 5rem;
}

.page-content h1, .page-content h2 {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
}

.page-content > p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.section-title {
    margin-top: 3rem;
}

.page-description {
    text-align: center; 
    margin-top: 2rem; 
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features,
.rank-grid,
.gallery-grid,
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.cta-grid {
    grid-template-columns: repeat(2, 1fr);
}

.feature-item,
.store-item,
.rules-card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.4s var(--anim-smooth), box-shadow 0.4s var(--anim-smooth), background-color 0.4s var(--anim-smooth);
    will-change: transform, box-shadow;
}

.feature-item::before,
.store-item::before,
.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: translateX(-100%) skewX(-30deg);
    transition: transform 0.8s ease;
}

@media (hover: hover) {
    .feature-item:hover,
    .store-item:hover {
        transform: translateY(-8px) scale(1.03);
        background-color: var(--surface-hover);
        border-color: var(--primary-color);
        box-shadow: var(--shadow-glow);
    }
    
    .feature-item:hover::before,
    .store-item:hover::before,
    .rules-card:hover::before {
        transform: translateX(200%) skewX(-30deg);
    }
}

.feature-item:active,
.store-item:active {
    transform: translateY(0px) scale(0.98);
    background-color: var(--surface-hover);
}

.feature-item h3,
.store-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* GAMEMODE SECTION */
.gamemode-section {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem !important;
}

.gamemode-section h2 {
    margin-bottom: 0.5rem !important;
    font-size: 1.5rem !important;
}

.gamemode-section > p {
    max-width: 500px;
    margin: 0 auto 1.5rem auto !important;
    font-size: 0.95rem !important;
}

.gamemode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gamemode-card {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: transform 0.3s ease;
}

.gamemode-card:hover {
    transform: translateY(-3px);
}

.gamemode-card.pvp-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), transparent);
}

.gamemode-card.creative-card {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), transparent);
}

.gamemode-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.gamemode-card.pvp-card .gamemode-icon svg {
    stroke: var(--primary-color);
}

.gamemode-card.creative-card .gamemode-icon svg {
    stroke: var(--secondary-color);
}

.gamemode-icon svg {
    width: 24px;
    height: 24px;
}

.gamemode-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem 0;
}

.gamemode-card p {
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: var(--text-muted);
}

.gamemode-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.gamemode-tag.hard {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--red-status);
    border: 1px solid var(--red-status);
}

.gamemode-tag.relax {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--green-status);
    border: 1px solid var(--green-status);
}

.badge-new {
    display: inline-block;
    background: linear-gradient(45deg, #ff0055, #ff5500);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* STORE & RULES SPECIFIC */
.store-items, .vote-links {
    list-style: none;
    margin-top: 2rem;
}

.store-item {
    margin-bottom: 1.5rem;
}

.rules-card {
    padding: 1.5rem;
}

.rules-list {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.rules-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.rules-list li.is-visible:nth-child(1) { transition-delay: 0.1s; }
.rules-list li.is-visible:nth-child(2) { transition-delay: 0.2s; }
.rules-list li.is-visible:nth-child(3) { transition-delay: 0.3s; }
.rules-list li.is-visible:nth-child(4) { transition-delay: 0.4s; }
.rules-list li.is-visible:nth-child(5) { transition-delay: 0.5s; }
.rules-list li.is-visible:nth-child(6) { transition-delay: 0.6s; }
.rules-list li.is-visible:nth-child(7) { transition-delay: 0.7s; }
.rules-list li.is-visible:nth-child(8) { transition-delay: 0.8s; }
.rules-list li.is-visible:nth-child(9) { transition-delay: 0.9s; }
.rules-card-store li.is-visible:nth-child(1) { transition-delay: 0.1s; }
.rules-card-store li.is-visible:nth-child(2) { transition-delay: 0.2s; }
.rules-card-store li.is-visible:nth-child(3) { transition-delay: 0.3s; }
.rules-card-store li.is-visible:nth-child(4) { transition-delay: 0.4s; }

.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    margin-bottom: 0;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.login-register-card {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
}

.form-toggle {
    display: flex;
    background-color: var(--surface-hover);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.form-toggle button {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-toggle button.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.auth-form {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.5s ease,
                padding 0.3s ease, margin 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    overflow: hidden;
}

.auth-form.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.checkbox-group input {
    width: auto;
}

.forgot-password, .form-toggle-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-header .username-highlight {
    color: var(--primary-color);
}

.vanacoins-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--surface-hover);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.vanacoins-balance svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.account-management {
    margin-top: 2rem;
}

.account-management h3, .account-management h4 {
    margin-bottom: 1rem;
}

.linked-accounts-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.linked-accounts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-hover);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.btn-delete {
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    color: var(--red-status);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-delete svg {
    width: 20px;
    height: 20px;
    stroke: var(--red-status);
    transition: stroke 0.3s ease;
}

.btn-delete:hover {
    transform: scale(1.1);
    background-color: var(--red-status);
    border-color: var(--red-status);
}

.btn-delete:hover svg {
    stroke: #fff;
}

.add-account-form h4 {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.form-group-inline {
    display: flex;
    gap: 10px;
}

.form-group-inline input[type="text"],
.form-group-inline select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 10px;
    font-size: 1rem;
}

.form-group-inline select {
    flex-grow: 0.5;
    width: auto;
}

.form-group-inline button {
    margin-top: 0;
    padding: 0.75rem 1rem;
}

.rank-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.rank-card h3 {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.5rem;
}

.rank-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.rank-card .btn-secondary {
    margin-bottom: 0.5rem;
}

.rank-card .btn-primary {
    margin-top: auto;
}

.rules-card-store {
    margin-top: 2rem;
}

.rules-card-store h3 {
    color: var(--red-status);
    margin-bottom: 1rem;
}

.rules-card-store ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.rules-card-store li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rules-card-store li svg {
    width: 24px;
    height: 24px;
    stroke: var(--red-status);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.rules-card-store p {
    color: var(--red-status);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cart-item-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-price span {
    font-weight: 600;
}

.remove-cart-item {
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    color: var(--red-status);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-cart-item:hover {
    background: var(--red-status);
    color: #fff;
    border-color: var(--red-status);
}

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: right;
}

.cart-summary strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cart-summary .btn-primary {
    margin-top: 0;
}

.account-select-list .account-select-item {
    margin-bottom: 0.5rem;
}

.account-select-list label {
    display: block;
    background-color: var(--surface-hover);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-select-list input[type="radio"] {
    display: none;
}

.account-select-list input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* INVOICE STYLES (UPDATED FOR BUTTON INTERACTION) */
.invoice-history {
    margin-top: 2rem;
}

.invoice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invoice-item {
    background-color: var(--surface-hover);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    /* No cursor pointer here anymore */
}

.invoice-content-wrapper {
    display: block;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(0,0,0,0.1);
}

.invoice-header strong {
    font-size: 1.1rem;
}

.invoice-header .invoice-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.invoice-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.invoice-status.sukses {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--green-status);
}

.invoice-status.gagal {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--red-status);
}

.invoice-status.pending,
.invoice-status.admin_reply {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.invoice-item-list {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
}

.invoice-item-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.invoice-item-list li:last-child {
    border-bottom: none;
}

.invoice-footer {
    padding: 1rem 1.5rem;
    background-color: rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between; /* Button left, Total right */
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.invoice-footer strong {
    font-size: 1.1rem;
}

/* New Button Style */
.btn-view-invoice {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-view-invoice:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.report-header .username-highlight {
    color: var(--primary-color);
}

.report-chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: 15px;
}

.chat-bubble {
    background-color: var(--surface-hover);
    border-radius: 15px;
    padding: 1rem;
    max-width: 80%;
    border: 1px solid var(--border-color);
}

.chat-bubble.user {
    align-self: flex-end;
    background-color: var(--primary-color);
    border: none;
}

.chat-bubble.admin {
    align-self: flex-start;
}

.chat-author {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.chat-bubble.user .chat-author {
    color: rgba(255, 255, 255, 0.8);
}

.chat-author span {
    font-size: 0.8rem;
    color: var(--red-status);
}

.chat-message {
    line-height: 1.5;
}

.chat-attachments {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.chat-attachments img {
    max-width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.chat-attachments img:hover {
    transform: scale(1.05);
}

.chat-timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
}

.chat-bubble.user .chat-timestamp {
    color: rgba(255, 255, 255, 0.7);
}

.content-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0 1rem 0;
}

.toggle-btn {
    background-color: var(--surface-hover);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s var(--anim-bubble);
    text-decoration: none;
    display: inline-block;
}

.toggle-btn:hover {
    background-color: var(--surface-color);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.toggle-btn.active {
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.tab-content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content-panel.active {
    display: block;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.gallery-card h3 {
    padding: 1.5rem;
    margin: 0;
}

.review-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 1.5rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.review-slider-track {
    display: flex;
    gap: 20px;
    width: calc(320px * 10);
    animation: slide-track 50s linear infinite;
}

.review-slider-track.is-paused {
    animation-play-state: paused;
}

.review-card {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-user {
    font-weight: bold;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.review-stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-color);
    flex-grow: 1;
}

.see-all-container {
    text-align: center;
    margin-top: 2rem;
}

.cta-card {
    text-decoration: none;
    color: var(--text-color);
    margin-top: 0;
}

.cta-card h3 {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-card span {
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .cta-card:hover span {
        padding-left: 5px;
    }
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.drop-zone p {
    margin: 0;
    font-size: 1rem;
}
.drop-zone .drop-prompt {
    font-weight: 600;
    color: var(--text-color);
}
.drop-zone.drag-over {
    background-color: var(--surface-hover);
    border-color: var(--primary-color);
}
.drop-zone input[type="file"] {
    display: none;
}
.file-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.9rem;
}
.file-list li {
    background-color: var(--surface-hover);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 5px;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.invoice-details-grid strong {
    color: var(--text-color);
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}
.invoice-details-grid .align-right {
    text-align: right;
}
.invoice-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.invoice-modal-table th,
.invoice-modal-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.invoice-modal-table th {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.invoice-modal-table .align-right {
    text-align: right;
}
.invoice-modal-total {
    margin-top: 1rem;
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
}


@media (min-width: 769px) {
    .login-register-card { 
        max-width: 700px;
    }
}

@media (max-width: 900px) {
    .cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gamemode-grid {
        grid-template-columns: 1fr;
    }
    .gamemode-card {
        flex-direction: row;
    }

    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-content {
        padding-top: 8rem;
    }
    .ip-display {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        min-width: 160px;
        border-radius: 10px;
    }
    .ip-display-main {
        width: 100%;
        max-width: 280px; 
        margin: 0 auto;
    }
    .ip-group-hidden {
        flex-direction: column;
        align-items: center;
    }
    .ip-group-hidden .ip-display {
        width: 100%;
        max-width: 280px; 
    }
    .aurora-shape.shape1 {
        width: 300px;
        height: 300px;
    }
    .aurora-shape.shape2 {
        width: 200px;
        height: 200px;
    }

    .feature-item,
    .store-item,
    .rules-card,
    .login-register-card { 
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        width: calc(100% - 2rem); 
        max-width: 400px; 
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box; 
    }
    
    .feature-item h3,
    .store-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    .rules-card h2 {
        font-size: 1.3rem;
    }

    .store-item {
        margin-bottom: 1rem;
    }
    .features {
        gap: 15px;
        margin-top: 1.5rem;
    }
    .page-content h1, .page-content h2 {
        font-size: 1.8rem;
    }
    .page-description {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    .store-header {
        justify-content: center;
        text-align: center;
    }
    .store-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .store-header .btn-secondary {
        margin-top: 0;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .vanacoins-balance {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .vanacoins-balance svg {
        width: 20px;
        height: 20px;
    }
    .rank-card {
        padding: 1rem;
    }
    .rank-card h3 {
        font-size: 1.2rem;
    }
    .rank-price {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    .btn-primary, .btn-secondary, .store-item button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .rank-grid,
    .gallery-grid,
    .cta-grid {
        gap: 15px;
        margin-top: 1.5rem;
    }
    .rank-card .btn-primary,
    .rank-card .btn-secondary {
        width: 100%;
        margin-top: 0.8rem;
    }
    .rank-card .btn-secondary {
        margin-bottom: 0.8rem;
    }
    .form-group-inline {
        flex-direction: column;
        gap: 10px;
    }
    .form-group-inline select {
        width: 100%;
        flex-grow: 1;
    }
    .form-group-inline button {
        margin-top: 0;
    }
    .linked-accounts-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0.75rem;
    }
    .rules-list li {
        padding: 0.75rem;
        font-size: 0.9rem;
        gap: 10px;
        align-items: flex-start;
    }
    .rules-list li svg {
        width: 20px;
        height: 20px;
        margin-top: 0.1rem;
    }
    .rules-card-store li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
        gap: 10px;
    }
    .rules-card-store li svg {
        width: 20px;
        height: 20px;
    }
    .invoice-item {
        margin-bottom: 1rem;
    }
    .invoice-header {
        padding: 0.8rem 1rem;
    }
    .invoice-header strong {
        font-size: 1rem;
    }
    .invoice-header .invoice-date {
        font-size: 0.8rem;
    }
    .invoice-status {
        font-size: 0.8rem;
    }
    .invoice-item-list {
        padding: 0 1rem;
    }
    .invoice-item-list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    /* Updated Mobile Style for Invoice Footer and Button */
    .invoice-footer {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .btn-view-invoice {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .chat-bubble {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    .chat-attachments img {
        max-width: 60px;
        height: 60px;
    }
    
    .invoice-details-grid {
        grid-template-columns: 1fr;
    }
    .invoice-details-grid .align-right {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ip-display-main,
    .ip-group-hidden .ip-display {
        max-width: 100%;
    }
    .rank-grid,
    .gallery-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item,
    .store-item,
    .rules-card,
    .login-register-card {
        padding: 0.75rem; 
        width: calc(100% - 1rem); 
        border-radius: 10px;
    }

    .rules-card h2 {
        font-size: 1.1rem;
    }
    .rules-card p {
        font-size: 0.85rem;
    }

    .rules-list li {
        padding: 0.6rem; 
        font-size: 0.8rem; 
        gap: 8px;
    }
    .rules-list li svg {
        width: 16px; 
        height: 16px;
        margin-top: 0.05rem; 
    }

    .rules-card-store li {
        padding: 0.4rem 0;
        font-size: 0.8rem;
        gap: 8px;
    }
    .rules-card-store li svg {
        width: 16px;
        height: 16px;
    }

    .review-card {
        width: 260px;
    }
    .review-slider-track {
        width: calc(260px * 10);
    }
    .review-header {
        margin-bottom: 0.3rem;
    }
    .review-stars {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .review-text {
        font-size: 0.85rem;
    }
    .content-toggle {
        gap: 5px;
        margin: 1.5rem 0 0.8rem 0;
    }
    .toggle-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    .cta-card {
        padding: 0.6rem;
    }
    .cta-card h3 {
        font-size: 1rem;
    }
    .cta-card p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    .login-register-card {
        padding: 0.8rem;
        margin: 1rem auto;
    }
    .form-group {
        margin-bottom: 0.8rem;
    }
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    .cart-item {
        padding: 0.6rem 0;
    }
    .cart-item-info strong {
        font-size: 0.9rem;
    }
    .cart-item-info span {
        font-size: 0.8rem;
    }
    .cart-item-price span {
        font-size: 0.85rem;
    }
    .remove-cart-item {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    .cart-summary {
        padding-top: 0.8rem;
        margin-top: 0.6rem;
    }
    .cart-summary strong {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .invoice-header strong, .invoice-footer {
        font-size: 0.9rem;
    }
    .invoice-item-list li {
        font-size: 0.8rem;
    }
    .chat-bubble {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    .chat-attachments img {
        max-width: 60px;
        height: 60px;
    }
}