
/* Override all button styles for Hytale page - Golden Theme (must be at top for specificity) */
/* Override head.css and style.css green hover effects */
.btn2.btn2-primary,
.btn2-primary,
a.btn2-primary,
button.btn2-primary,
.btn2-primary:focus,
.btn2-primary:active,
.btn2-primary:visited {
    background: #FFD700 !important;
    background-image: none !important;
    background-color: #FFD700 !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    filter: none !important;
}

.btn2.btn2-primary:hover,
.btn2-primary:hover,
a.btn2-primary:hover,
button.btn2-primary:hover {
    background: #FFB800 !important;
    background-image: none !important;
    background-color: #FFB800 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5) !important;
    color: #000 !important;
    filter: brightness(1.05) !important;
}

.btn2.btn2-primary:active,
.btn2-primary:active,
a.btn2-primary:active,
button.btn2-primary:active {
    background: #FFB800 !important;
    background-image: none !important;
    background-color: #FFB800 !important;
    filter: brightness(0.95) !important;
}

.btn2.btn2-outline-light,
.btn2-outline-light,
a.btn2-outline-light,
button.btn2-outline-light,
.btn2-outline-light:focus,
.btn2-outline-light:active,
.btn2-outline-light:visited {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
    background-image: none !important;
    background-color: rgba(255, 215, 0, 0.1) !important;
}

.btn2.btn2-outline-light:hover,
.btn2-outline-light:hover,
a.btn2-outline-light:hover,
button.btn2-outline-light:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    background-image: none !important;
    background-color: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    border: 1px solid #FFD700 !important;
    color: #FFD700 !important;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3) !important;
}

/* Remove green glow from ::before pseudo-element */
.btn2-primary::before,
.btn2-outline-light::before,
.btn2::before,
.btn2.btn2-primary::before,
.btn2.btn2-outline-light::before {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* default desktop margin */
.hero-section.hytale-hero > .container {
margin-top: 150px;
}
/* when narrower than 991px, override */
@media (max-width: 991px) {
.hero-section.hytale-hero > .container {
margin-top: 0px !important;
}

.hero-section {
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
}

.stats-row {
    justify-content: center;
}

.hero-buttons {
    justify-content: center;
}
}

/* Hero Section Styles */
.hero-section {
    min-height: 60vh;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-bg), #1a2234);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern-grid.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

    .stat-item i {
        font-size: 2rem;
        color: #FFD700;
        margin-bottom: 0.5rem;
    }

.stat-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #fff;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.pricing-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.summary-card {
    height: 100%;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .summary-header i {
        font-size: 2rem;
        color: #FFD700;
    }

.summary-header h3 {
    color: #fff;
    margin: 0;
}

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

.summary-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

    .summary-features i {
        color: #FFD700;
        margin-right: 0.5rem;
        font-size: 1.25rem;
    }



@media (max-width: 768px) {
.mobile-hide {
display: none !important;
}

.panel-demo-card {
border-radius: 8px !important; /* Sharper corners */
}

.panel-demo-card > .p-5 {
padding-left: 0 !important; /* Remove left padding */
text-align: left !important;
align-items: flex-start !important;
}

.panel-demo-card h2,
.panel-demo-card p,
.panel-demo-card a {
text-align: left !important;
}

.panel-demo-card a.btn2 {
padding: 10px 20px !important; /* Smaller button padding */
height: auto !important;      /* Allow button height to adjust */
font-size: 1rem !important;   /* Optional: scale text down on mobile */
}
}

                            
                                .panel-demo-card:hover {
                                    transform: translateY(-8px);
                                    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
                                    border-color: rgba(255,215,0,0.5);
                                }
                                .panel-demo-card .btn2-primary:hover {
                                    transform: translateY(-2px);
                                    box-shadow: 0 6px 25px rgba(255,215,0,0.5);
                                }
                            
                                                                    
                                                                        @media (max-width: 768px) {
                                                                            .slider-container {
                                                                                margin-left: 0px !important;
                                                                            }
                                                                        }
                                                                    
                                                                        
    /* Modern Pricing Card Styles - Hytale Theme */
    .pricing-card {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 1rem;
        padding: 2rem;
        height: 100%;
        transition: all 0.3s ease;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pricing-card:hover {
        transform: translateY(-8px);
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
    }

    .pricing-card.featured {
        border: 2px solid rgba(255, 215, 0, 0.6);
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    }


    .pricing-header {
        margin-bottom: 2rem;
    }

    .pricing-header h3 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
    }

    .pricing-header .price {
        display: flex;
        align-items: baseline;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .pricing-header .price .currency {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .pricing-header .price .amount {
        font-size: 3rem;
        font-weight: 700;
        color: #FFD700;
        line-height: 1;
    }

    .pricing-header .price .period {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .pricing-header .description {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        margin: 0;
    }

    .pricing-features {
        margin: 2rem 0;
    }

    .pricing-features ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pricing-features ul li {
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .pricing-features ul li i {
        color: #FFD700;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .pricing-action {
        margin-top: 2rem;
    }

    .pricing-action .btn2 {
        width: 100%;
        justify-content: center;
    }

    /* Section Styles */
    .section-header {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #fff;
    }

    .section-subtitle {
        font-size: 1.125rem;
        opacity: 0.7;
        color: rgba(255, 255, 255, 0.8);
    }

    .pricing-section {
        padding: 80px 0;
        background: var(--background-dark);
    }

    .locations-section {
        padding: 100px 0;
        background: linear-gradient(135deg, #1a2234, var(--dark-bg));
    }

    .location-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 1rem;
        padding: 2rem;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .location-card:hover {
        transform: translateY(-5px);
    }

    .location-flag {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .location-card h3 {
        color: #fff;
        margin-bottom: 1rem;
        font-size: 1.25rem;
    }

    .location-specs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .spec-tag {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.875rem;
        font-weight: 600;
    }

    .spec-tag.extreme {
        background: linear-gradient(to right, #FF4500, #FF0000);
        color: #fff;
    }

    .spec-tag.premium {
        background: linear-gradient(to right, #FFD700, #FFB800);
        color: #000;
    }

    .spec-tag.budget {
        background: linear-gradient(to right, #C0C0C0, #A9A9A9);
        color: #000;
    }

    .spec-detail {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.875rem;
    }

    .location-card p {
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
    }

    .features-section {
        padding: 80px 0;
        background: var(--background-darker);
    }

    .feature-card {
        background: var(--card-bg);
        border-radius: var(--border-radius);
        padding: 2rem;
        height: 100%;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .feature-card:hover {
        transform: translateY(-4px);
        border-color: #FFD700;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: #FFD700;
        margin-bottom: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #fff;
    }

    .feature-card p {
        opacity: 0.7;
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .cta-section {
        padding: 80px 0;
        background: var(--background-darker);
    }

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

    .cta-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #fff;
    }

    .cta-content p {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2rem;
    }

    .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Mobile styles for CTA buttons */
    @media (max-width: 768px) {
        .cta-buttons {
            flex-direction: column;
            width: 100%;
        }

        .cta-buttons .btn2 {
            width: 100%;
            max-width: 100%;
        }
    }


    .pricing-card .pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card .pricing-features ul li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card .pricing-features ul li i,
.pricing-features ul li i,
.summary-features li i {
    color: #FFD700 !important;
}

/* Fun Cartoony Tree for Hytale Modal */
.hytale-tree {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 100px;
    cursor: grab;
    z-index: 15;
    transition: transform 0.2s ease;
    user-select: none;
    pointer-events: auto;
    transform: translate(0, 0);
}

.hytale-tree:active {
    cursor: grabbing;
}

.hytale-tree:hover {
    transform: scale(1.1);
}

.tree-top {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 5px;
}

.tree-leaf {
    position: absolute;
    background: #22c55e;
    border-radius: 50% 50% 50% 0;
    animation: treeSway 3s ease-in-out infinite;
}

.tree-leaf.leaf-1 {
    width: 35px;
    height: 35px;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-20deg);
    animation-delay: 0s;
}

.tree-leaf.leaf-2 {
    width: 30px;
    height: 30px;
    top: 10px;
    left: 20px;
    transform: rotate(15deg);
    animation-delay: 0.5s;
}

.tree-leaf.leaf-3 {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 20px;
    transform: rotate(-15deg);
    animation-delay: 1s;
}

.tree-leaf.leaf-4 {
    width: 25px;
    height: 25px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) rotate(10deg);
    animation-delay: 1.5s;
}

.tree-trunk {
    width: 12px;
    height: 35px;
    background: #8b4513;
    border-radius: 4px;
    margin: 0 auto;
    position: relative;
}

.tree-trunk::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #654321;
    border-radius: 50%;
}

@keyframes treeSway {
    0%, 100% {
        transform: translateX(-50%) rotate(-20deg);
    }
    50% {
        transform: translateX(-50%) rotate(-15deg);
    }
}

@keyframes treeSway2 {
    0%, 100% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

@keyframes treeSway3 {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(-20deg);
    }
}

.tree-leaf.leaf-2 {
    animation-name: treeSway2;
}

.tree-leaf.leaf-3 {
    animation-name: treeSway3;
}

@media (max-width: 768px) {
    .hytale-tree {
        width: 60px;
        height: 75px;
        top: 15px;
        right: 15px;
    }

    .tree-leaf.leaf-1 {
        width: 28px;
        height: 28px;
    }

    .tree-leaf.leaf-2,
    .tree-leaf.leaf-3 {
        width: 24px;
        height: 24px;
    }

    .tree-leaf.leaf-4 {
        width: 20px;
        height: 20px;
    }

    .tree-trunk {
        width: 10px;
        height: 28px;
    }
}

/* Modal Styles - Exact copy from Minecraft with Golden theme */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(4, 19, 27, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 90vh;
    overflow: hidden;
}

.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #FFD700;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.close-btn2 {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 20;
}

.close-btn2:hover {
    color: #fff;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
}

.tag.premium {
    background: linear-gradient(to right, #FFD700, #FFB800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.tag.extreme {
    background: linear-gradient(to right, #FF4500, #FF0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.tag.budget {
    background: linear-gradient(to right, #C0C0C0, #A9A9A9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.dot-separator {
    display: inline-block;
    margin: 0 1px;
    font-size: 12px;
    color: white;
    margin-right: -5px;
    vertical-align: middle;
    line-height: 1;
}

.ping-info {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.ping-info .dot-separator,
.ping-info .cpu-label {
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
}

.radio-img-btn2 {
    margin-bottom: 1rem;
}

.radio-img-btn2 input[type="radio"] {
    display: none;
}

.radio-img-btn2 label {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-img-btn2 label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-img-btn2 input[type="radio"]:checked + label {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
}

/* Desktop-only: Reduce location card spacing */
@media (min-width: 768px) {
    .radio-img-btn2 {
        margin-bottom: 0.5rem;
    }

    .radio-img-btn2 label {
        padding: 0.5rem 0.75rem;
        border-radius: 0.4rem;
    }

    .radio-img-btn2 img {
        width: 28px;
        height: 28px;
    }

    .radio-img-btn2 h5 {
        font-size: 0.9rem;
        margin-top: 0.25rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .ping-info {
        font-size: 0.85rem;
        margin-top: 0.15rem;
    }

    .ping-info .dot-separator,
    .ping-info .cpu-label {
        font-size: 11px;
    }

    .nowrap-block {
        line-height: 1.2;
    }
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 40px;
}

.slider-container input[type="range"] {
    width: 600px;
    height: 6px;
    -webkit-appearance: none;
    background: #ccc;
    border-radius: 3px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #141422;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #FFD700;
}

.button-row {
    position: sticky;
    bottom: 0;
    background: rgba(4, 19, 27, 0.95) !important;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 1rem 2rem;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 2rem;
}

.button-11,
.back-button-11,
.unclickable-button-11 {
    border-radius: 18px;
    color: #F4F5F5;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding: 6px 12px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}

.button-11 {
    background-color: #1A2731;
    border: 1px solid #46515F;
}

.back-button-11 {
    background-color: #1A2731;
    border: 1px solid #46515F;
}

.unclickable-button-11 {
    color: #7f878b;
    background-color: #0f1d26;
    border: 1px solid #27343f;
    pointer-events: none;
}

.overlay-content .overlay-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.overlay-content .overlay-page.page-3 {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.button-row button {
    max-width: calc(50% - 1rem);
}

@media (max-width: 768px) {
    .overlay-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .button-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        background: rgba(4, 19, 27, 0.95) !important;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        margin-bottom: -10px !important;
    }

    .button-row > *:first-child {
        margin-left: 1rem !important;
    }

    .button-row > *:last-child {
        margin-right: 1rem !important;
    }

    .button-row button,
    .button-row a {
        width: 100px !important;
    }

    .slider-container {
        margin: 20px 0;
    }

    .slider-container input[type="range"] {
        width: 100%;
    }
}

body.modal-open {
    overflow: hidden;
}

.overlay-content {
    overflow: hidden;
}

.package-card.recommended {
    padding-right: 8.5rem;
}

@media (max-width: 768px) {
    .slider-container {
        margin-left: 0px !important;
    }
}

/* Package recommendation styles */
.package-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    border: 2px solid transparent;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.package-card.recommended {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding-right: 8.5rem;
}

.package-card.recommended::after {
    content: 'Recommended';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #FFD700;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #FFD700;
}

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

.package-card .package-details {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Package grid layout */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}
