/* Custom styles for our local functionality matching MineSun color palette */

#cart-widget { display: none !important; }



.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background: #15131f;
    box-shadow: -5px 0 20px rgba(0,0,0,0.7);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    padding: 20px;
    background: #1c192a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd200;
    color: white;
}
.cart-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}
.cart-close-btn:hover {
    color: #ffd200;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item-row {
    background: #1c192a;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 210, 0, 0.1);
}
.cart-item-row img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
}
.cart-item-price {
    color: #ffd200;
    font-weight: 700;
    font-size: 13px;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    background: #262239;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.qty-btn:hover {
    background: #ffd200;
    color: #111;
}
.cart-item-remove {
    background: rgba(255, 145, 0, 0.15);
    color: #ff9100;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}
.cart-item-remove:hover {
    background: #ff9100;
    color: #fff;
}
.cart-footer {
    padding: 20px;
    background: #1c192a;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.cart-total-line {
    display: flex;
    justify-content: space-between;
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd200 0%, #ff8800 100%);
    color: #111;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.4);
}

/* Modal Custom */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.custom-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.custom-modal-card {
    background: #1c192a;
    border: 1px solid rgba(255,210,0,0.2);
    border-radius: 12px;
    width: 900px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    color: white;
    font-family: 'Montserrat', sans-serif;
}
.modal-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.modal-close-icon:hover {
    background: #ffd200;
    color: #111;
}
.package-modal-layout {
    display: flex;
    height: 600px;
    max-height: 80vh;
}
.package-modal-sidebar {
    width: 300px;
    background: #15131f;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px 0 0 12px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.pkg-modal-img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}
.pkg-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
}
.pkg-modal-price {
    font-size: 24px;
    color: #ffd200;
    font-weight: 800;
}
.pkg-modal-actions {
    margin-top: 30px;
}
.btn-modal-add {
    background: linear-gradient(135deg, #ffd200 0%, #ff8800 100%);
    color: #111;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-modal-add:hover {
    transform: translateY(-2px);
}
.package-modal-details-pane {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
.package-modal-details-pane h2, .package-modal-details-pane h3 {
    margin-top: 0;
    color: #ffd200;
}

/* Specific text accent styles for MineSun palette */
a {
    color: #ffd200;
}

/* Dropdown Chevron Animation */
.triplezone-toggle-dropdown > a .carret {
    transition: transform 0.2s ease;
    display: inline-block;
}
.triplezone-toggle-dropdown.active > a .carret {
    transform: rotate(180deg);
}
.triplezone-toggle-dropdown ul.triplezone-dropdown {
    transition: all 0.2s ease;
}


/* Ranks Grid & Card Styles Matching User Design */
.ranks-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 1050px) {
    .ranks-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ranks-grid-container {
        grid-template-columns: 1fr;
    }
}

.rank-card {
    background: #161424;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 210, 0, 0.3);
}

.rank-image-wrapper {
    background: #110f1c;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 200px;
}

.rank-img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.rank-card:hover .rank-img {
    transform: scale(1.05);
}

.rank-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #161424;
    flex: 1;
}

.rank-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-price {
    color: #ffd200;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.rank-buttons-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-rank-buy {
    flex: 1;
    background: #ffd200;
    color: #111;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-rank-buy:hover {
    background: #ffea00;
}

.btn-rank-cart {
    background: #2d2a3e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-rank-cart:hover {
    background: #ffd200;
    color: #111;
}


/* NauticMC Style Kraken / SUN+ Layout */
.nautic-container {
    background: #141722;
    border: 1px solid #1e2230;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1050px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nautic-header-banner {
    background: #ffd200;
    color: #111111;
    padding: 14px 22px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nautic-description-box {
    padding: 22px 24px;
    color: #b3bcd0;
    font-size: 14px;
    line-height: 1.65;
}

.nautic-section-title {
    padding: 0 24px 18px 24px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nautic-flex-row {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 0 24px 28px 24px;
}

.nautic-character-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 5px;
}

.nautic-char-img {
    max-height: 190px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6));
}

.nautic-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    flex: 1;
}

.nautic-card {
    background: #1a1e2d;
    border: 1px solid #23283c;
    border-radius: 6px;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nautic-card:hover {
    background: #202638;
    border-color: #ffd200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nautic-card-time {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.nautic-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #929db2;
    margin: 0 0 16px 0;
}

.nautic-card-btn {
    color: #ffd200;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nautic-card:hover .nautic-card-btn {
    background: rgba(255, 210, 0, 0.18);
    color: #ffd200;
}

@media (max-width: 900px) {
    .nautic-flex-row {
        flex-direction: column;
        align-items: center;
    }
    .nautic-cards-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .nautic-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Hycraft-Style Keys Grid (https://store.hycraft.us/?category=Survival+Earth&subcategory=Llaves) */
.hy-keys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 40px 0;
}

.hy-key-card {
    background: #141720;
    border: 1px solid #202534;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hy-key-card:hover {
    border-color: #ffd200;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.hy-key-img-box {
    background: #0d0f14;
    border: 1px solid #1a1d28;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 11;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.hy-key-img-box:hover {
    background: #11141c;
}

.hy-key-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}

.hy-key-card:hover .hy-key-img {
    transform: scale(1.06);
}

.hy-key-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 14px 0 10px 0;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hy-key-title:hover {
    color: #ffd200;
}

.hy-key-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Custom Dropdown */
.hy-dropdown {
    position: relative;
    flex: 1;
    user-select: none;
}

.hy-dropdown-selected {
    background: #0d0f15;
    border: 1px solid #242938;
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hy-dropdown-selected:hover,
.hy-dropdown.active .hy-dropdown-selected {
    border-color: #ff8800;
    background: #12151e;
}

.hy-dropdown-selected .mdi-chevron-down {
    color: #828ca0;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.hy-dropdown.active .hy-dropdown-selected .mdi-chevron-down {
    transform: rotate(180deg);
}

.hy-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #11141d;
    border: 1px solid #282e40;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
    z-index: 100;
    overflow: hidden;
    display: none;
}

.hy-dropdown.active .hy-dropdown-menu {
    display: block;
    animation: hyFadeIn 0.15s ease;
}

@keyframes hyFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hy-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
    border-bottom: 1px solid #181c28;
}

.hy-dropdown-option:last-child {
    border-bottom: none;
}

.hy-dropdown-option .opt-qty {
    color: #ffffff;
}

.hy-dropdown-option .opt-price {
    color: #ff8800;
    font-weight: 700;
}

.hy-dropdown-option:hover {
    background: #1b202d;
}

.hy-dropdown-option.selected {
    background: rgba(255, 136, 0, 0.14);
}

/* Ranks-Style Cart Button for Keys */
.hy-cart-btn {
    background: #2d2a3e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.hy-cart-btn:hover {
    background: #ffd200;
    color: #111111;
    transform: translateY(-1px);
}

.hy-cart-btn:active {
    transform: scale(0.96);
}

/* Price Below */
.hy-price-display {
    color: #ff8800;
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

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

@media (max-width: 600px) {
    .hy-keys-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation Fix */
.sidebar-nav.open {
    display: block !important;
}
.sidebar-header.open .mdi-menu {
    display: none !important;
}
.sidebar-header.open .close-mobile {
    display: inline-block !important;
}

/* Sidebar Informative / Promo Module */
.sidebar-promo-module {
    margin-top: 18px;
    background: #181528;
    border: 1px solid rgba(255, 210, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.sidebar-promo-module:hover {
    border-color: rgba(255, 210, 0, 0.5);
    transform: translateY(-2px);
}

.sidebar-promo-header {
    background: linear-gradient(135deg, #221c38 0%, #2b2247 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 210, 0, 0.2);
}

.sidebar-promo-header i {
    font-size: 26px;
    color: #ffd200;
    line-height: 1;
}

.sidebar-promo-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-promo-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-promo-badge {
    display: inline-block;
    color: #ffd200;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar-promo-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-promo-text {
    margin: 0;
    font-size: 13px;
    color: #c9c7dc;
    line-height: 1.55;
}

.sidebar-promo-text strong {
    color: #ffffff;
}

.sidebar-promo-accent {
    color: #ffd200;
    font-weight: 800;
}

.sidebar-promo-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-promo-highlight.orange {
    background: rgba(255, 145, 0, 0.12);
    border-left: 3px solid #ff9100;
    color: #e5e3f5;
}

.sidebar-promo-highlight.orange i {
    color: #ff9100;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-promo-highlight.green {
    background: rgba(77, 165, 100, 0.12);
    border-left: 3px solid #4da564;
    color: #e5e3f5;
}

.sidebar-promo-highlight.green i {
    color: #4da564;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-promo-cta {
    margin-top: 2px;
    padding: 10px 12px;
    background: rgba(255, 210, 0, 0.08);
    border: 1px dashed rgba(255, 210, 0, 0.35);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffd200;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


