#before-load {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: grey;
    z-index: 1001;
}
#before-load i {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    background: url('/templates/styles/images/load.gif') no-repeat 50% 50%;
    margin: -35px 0 0 -35px;
}
body {
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: #edeef0;
	background-image:url('/templates/styles/images/background.png');
	   
}
}
.btn-gold {
    color: white;
    background-color: gold;
}
.btn-turquoise {
    color: white;
    background-color: turquoise;
}
.btn-darkviolet {
    color: white;
    background-color: darkviolet;
}
.btn-deepskyblue {
    color: white;
    background-color: deepskyblue;
}
.btn-magenta {
    color: white;
    background-color: magenta;
}
.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both
}
.animated.infinite {
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}
.animated.hinge {
    -webkit-animation-duration: 2s;
    animation-duration: 2s
}
@keyframes pulse {
    from {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
    50% {
        -webkit-transform: scale3d(1.05, 1.05, 1.05);
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}
.pulse {
    -webkit-animation-name: pulse;
    animation-name: pulse
}
@keyframes flash {
    from, 50%, to {
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
}
.flash {
    animation-name: flash
}
.animated.flipOutX,
.animated.flipOutY,
.animated.bounceIn,
.animated.bounceOut {
    animation-duration: .75s
}
@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* ---------- Card & layout fixes ---------- */
.mg-footer {
    position: static !important;
    margin-top: 0;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(0,0,0,.5);
}
.mg-footer a {
    margin-left: 12px;
}
.mg-card {
    overflow: visible;
}
.mg-card-body {
    overflow: visible;
}
.mg-main-container .row {
    align-items: stretch;
}
.tab-content {
    overflow: visible;
}
.tab-pane {
    overflow: visible;
}
.phpmc_buy fieldset {
    min-height: 0;
    overflow: visible;
    padding-bottom: 10px;
}
.mg-submit-btn {
    margin-top: 10px;
    width: 100%;
}
.mg-keys-alert {
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
}
.mg-keys-alert .flash {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

/* ---------- Timed donate duration selector ---------- */
.duration-wrap {
    margin-top: 0;
}
.duration-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.duration-option {
    flex: 1 1 0;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 8px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
    user-select: none;
}
.duration-option:hover {
    border-color: #2e59ff;
    box-shadow: 0 6px 18px -8px rgba(46,89,255,0.3);
    transform: translateY(-1px);
}
.duration-option.active {
    border-color: #2e59ff;
    background: linear-gradient(135deg, rgba(46,89,255,0.12), rgba(46,89,255,0.04));
    box-shadow: 0 0 0 3px rgba(46,89,255,0.12);
}
.duration-num {
    font-size: 22px;
    font-weight: 900;
    color: #1a1d2b;
    line-height: 1;
}
.duration-option.active .duration-num {
    color: #2e59ff;
}
.duration-unit {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.duration-price {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #2e59ff;
}
@media (max-width: 576px) {
    .duration-option {
        min-width: calc(50% - 5px);
        padding: 10px 6px;
    }
    .duration-num {
        font-size: 18px;
    }
}

/* ---------- Currency slider ---------- */
.slider-wrap {
    margin-top: 0;
    padding: 18px 16px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.85);
    border: 2px solid rgba(0,0,0,0.1);
    transition: border-color .2s, box-shadow .2s;
}
.slider-wrap:hover {
    border-color: rgba(46,89,255,0.3);
    box-shadow: 0 6px 18px -8px rgba(46,89,255,0.2);
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.slider-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1d2b;
}
.slider-value {
    font-size: 26px;
    font-weight: 900;
    color: #2e59ff;
    line-height: 1;
    letter-spacing: -.02em;
}
.slider-value .slider-unit {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-left: 4px;
}
.slider-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}
.slider-price-label {
    color: #6b7280;
    font-weight: 600;
}
.slider-price {
    font-size: 18px;
    font-weight: 800;
    color: #1a1d2b;
}
.slider-price .slider-price-currency {
    font-size: 13px;
    color: #6b7280;
    margin-left: 2px;
}
.currency-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2e59ff 0%, #2e59ff 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1) 100%);
    outline: none;
    cursor: pointer;
    margin: 6px 0 4px;
}
.currency-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2e59ff;
    cursor: grab;
    box-shadow: 0 3px 10px -2px rgba(46,89,255,0.4);
    transition: transform .12s, box-shadow .2s;
}
.currency-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 16px -2px rgba(46,89,255,0.5);
}
.currency-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}
.currency-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2e59ff;
    cursor: grab;
    box-shadow: 0 3px 10px -2px rgba(46,89,255,0.4);
    transition: transform .12s;
}
.currency-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}
.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9aa3b2;
    font-weight: 600;
    margin-top: 2px;
}
@media (max-width: 576px) {
    .slider-wrap {
        padding: 14px 12px 12px;
    }
    .slider-value {
        font-size: 22px;
    }
    .currency-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    .currency-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
}


/* ---------- Modal styling ---------- */
.mg-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 80px -20px rgba(0,0,0,0.35);
    overflow: hidden;
}
.mg-modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 18px 24px;
    background: #f8faff;
}
.mg-modal-header .modal-title {
    font-weight: 800;
    font-size: 18px;
    color: #1a1d2b;
    letter-spacing: -.02em;
}
.mg-modal-header .close {
    opacity: .5;
    transition: opacity .15s;
}
.mg-modal-header .close:hover {
    opacity: .85;
}
.mg-modal-body {
    padding: 22px 24px;
}
