/* ============================================================
   GAMERACK SATISFACTORY - V1 (FINAL ULTIMATE - STYLE.CSS FIX)
   ============================================================ */

/* --- 1. Container & Grid Layout --- */
#compare-plans {
    position: relative;
    padding-top: 80px !important;
    padding-bottom: 80px;
    overflow: visible !important;
    z-index: 5;
}

#compare-plans .mc-ambient-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
    background-size: 22px 22px; pointer-events: none;
}

/* Grid Setup */
#compare-plans .pricing-row.gr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

#compare-plans .pricing-row.gr-grid .price-col {
    display: flex; flex-direction: column; flex: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    #compare-plans .pricing-row.gr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    #compare-plans .pricing-row.gr-grid { grid-template-columns: 1fr; }
}

/* --- 2. CARD DESIGN --- */
#compare-plans .de-pricing-plan {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(19, 21, 31, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 30px 24px 24px !important;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 640px; 
    overflow: visible !important;
    z-index: 1;
}

/* Top Glow Line */
#compare-plans .de-pricing-plan::before {
    content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0.5; pointer-events: none; z-index: 10;
}

/* Hover Effekt Karte */
#plansSwap:not(.state-config):not(.state-preset) #compare-plans .de-pricing-plan:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 121, 255, 0.5) !important;
    background: rgba(25, 28, 45, 0.9) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(123, 107, 255, 0.15);
    z-index: 20;
}

/* --- 3. BADGES & HIGHLIGHT --- */
#compare-plans .de-pricing-plan.d-feature {
    background: linear-gradient(180deg, rgba(125,121,255,0.08) 0%, rgba(19,21,31,0.85) 100%) !important;
    border: 1px solid rgba(125, 121, 255, 0.35) !important;
    box-shadow: 0 0 30px rgba(123, 107, 255, 0.05);
}

#compare-plans .de-pricing-plan .d-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #7b6bff, #9b7bff) !important;
    color: #fff; font-weight: 800; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 18px; border-radius: 20px;
    box-shadow: 0 4px 15px rgba(123, 107, 255, 0.5);
    z-index: 30; white-space: nowrap; border: none !important;
}

/* --- 4. HEADER --- */
#compare-plans .de-pricing-plan .d-title {
    font-size: 1.5rem; font-weight: 900; text-align: center;
    color: #fff; line-height: 1.2;
    margin: 0; padding: 0;
    height: 60px; 
    display: flex; align-items: center; justify-content: center;
}
#compare-plans .de-pricing-plan.custom .d-title {
    font-size: 1.35rem; 
}

/* TIER METER */
#compare-plans .tier-meter {
    display: flex; justify-content: center; gap: 4px; margin-bottom: 25px;
    height: 10px; 
}
#compare-plans .tier-meter span {
    width: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1);
}
#compare-plans .tier-meter[data-tier="1"] span:nth-child(-n+1),
#compare-plans .tier-meter[data-tier="2"] span:nth-child(-n+2),
#compare-plans .tier-meter[data-tier="3"] span:nth-child(-n+3),
#compare-plans .tier-meter[data-tier="4"] span:nth-child(-n+4) {
    background: #7b6bff; box-shadow: 0 0 8px rgba(123, 107, 255, 0.8);
}

/* --- 5. PREIS --- */
#compare-plans .d-price {
    position: relative; 
    height: 110px;      
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    margin-top: auto;   
    margin-bottom: 10px;
    padding-bottom: 5px;
}

#compare-plans .d-price .d-old-price {
    position: absolute;
    top: 2px;
    left: 0; right: 0;
    text-align: center;
    font-size: 1rem;
    color: #8890b0;
    text-decoration: line-through;
    font-weight: 600;
    opacity: 0.8;
}

#compare-plans .d-price .d-val-wrap {
    display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
#compare-plans .d-price .d-value { font-size: 2.8rem; font-weight: 800; line-height: 1; }
#compare-plans .d-price .d-cur { font-size: 1.4rem; color: #8f9bb3; font-weight: 600; }
#compare-plans .d-price .d-period { font-size: 0.9rem; color: #8f9bb3; font-weight: 600; }

#compare-plans .d-sub-price { text-align: center; font-size: 0.85rem; opacity: 0.9; margin-bottom: 2px; }
#compare-plans .d-extra { text-align: center; font-size: 0.8rem; opacity: 0.6; margin-bottom: 15px; }

/* --- 6. SPECS --- */
#compare-plans .specs-stack {
    display: flex; flex-direction: column; gap: 12px; width: 100%;
    margin-top: 0; margin-bottom: auto; 
    padding-bottom: 10px;
}

#compare-plans .specs-stack .spec {
    display: flex !important; flex-direction: row !important;
    justify-content: space-between !important; align-items: center !important;
    background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px; border-radius: 12px; min-height: 56px;
}
#compare-plans .specs-stack .spec .k {
    text-align: left !important; color: #828bad !important;
    font-size: 0.85rem; font-weight: 600; order: 1 !important; flex: 1;
}
#compare-plans .specs-stack .spec .v {
    text-align: right !important; color: #fff !important;
    font-size: 1rem; font-weight: 800; order: 2 !important; flex: 1;
}

/* --- 7. CUSTOM CARD --- */
#compare-plans .de-pricing-plan.custom {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: transparent !important; 
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    isolation: auto !important;
}

#compare-plans .de-pricing-plan.custom .d-price {
    display: flex !important;
    visibility: hidden !important; 
    opacity: 0 !important;
    pointer-events: none;
}

/* Hintergrundbild */
#compare-plans .de-pricing-plan.custom::before {
    content: ""; position: absolute; inset: 0;
    width: 100%; height: 100%;
    background-image: url('../../images/satisfactory/custom-panel.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover !important;
    z-index: -2 !important;
    opacity: 0.6 !important;
    border-radius: 24px;
}

/* Overlay */
#compare-plans .de-pricing-plan.custom::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(19, 21, 31, 0.5), rgba(10, 12, 20, 0.95));
    z-index: -1 !important;
    border-radius: 24px;
}

#compare-plans .de-pricing-plan.custom > * { position: relative; z-index: 5; }

/* Custom Liste */
#compare-plans .custom-features-list {
    list-style: none; padding: 0; width: 100%;
    flex-grow: 1; 
    display: flex; flex-direction: column; 
    justify-content: center; 
    gap: 18px;
    padding-top: 15px;
}
#compare-plans .custom-features-list li {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 1rem; font-weight: 700; color: #fff;
}
#compare-plans .custom-features-list li i {
    color: #7b6bff; font-size: 0.9rem;
}

/* Custom Button */
#compare-plans .de-pricing-plan.custom .mc-custom-cta {
    background: linear-gradient(92deg, #7b6bff 0%, #6150ff 100%) !important;
    color: #fff !important; border: none !important;
    box-shadow: 0 8px 25px rgba(123, 107, 255, 0.3);
}

/* --- 8. BUTTONS (FIX: OVERRIDE STYLE.CSS) --- */
#compare-plans .btn-main {
    width: 100%;
    display: flex !important; justify-content: center !important; align-items: center !important;
    
    height: 44px !important; 
    padding: 0 15px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    
    text-align: center !important;
    border-radius: 12px;
    background: linear-gradient(92deg, #7b6bff 0%, #6150ff 100%);
    
    font-weight: 700 !important; 
    font-size: 0.9rem !important;
    color: #ffffff !important;
    border: none !important;
    text-transform: uppercase !important;
    
    box-shadow: 0 4px 15px rgba(123, 107, 255, 0.3);
    
    /* Animation für Bewegung, aber NICHT für den Text */
    transition: transform 0.2s, box-shadow 0.2s !important;
    
    margin-top: auto;
    position: relative;
    z-index: 10;
}

#compare-plans .btn-main::after, 
#compare-plans .btn-main::before {
    content: none !important; display: none !important;
}

/* HOVER */
#compare-plans .btn-main:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(123, 107, 255, 0.4) !important;
    
    gap: 10px !important;
    padding: 0 15px !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* WICHTIG: Das hier überschreibt die style.css Animation!
   style.css setzt: margin-top: 50px und opacity: 0 bei Hover.
   Wir setzen das hart zurück.
*/
#compare-plans .btn-main:hover span,
#compare-plans .btn-main span,
#compare-plans .btn-main:hover i,
#compare-plans .btn-main i {
    display: inline-block !important; 
    transform: none !important; 
    margin: 0 !important; /* Verhindert das Wegrutschen nach unten */
    opacity: 1 !important; /* Verhindert das Ausblenden */
    line-height: 1 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    transition: none !important;
}

/* Icon Breite */
#compare-plans .btn-main i {
    width: 20px !important; 
    text-align: center !important;
}

/* --- 9. TERM TOGGLE --- */
#termToggle {
    position: relative; display: inline-flex;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 6px 22px 6px 6px; margin-bottom: 30px;
    backdrop-filter: blur(10px);
    height: 64px;
}

#termToggle .term-btn {
    position: relative; z-index: 2; background: transparent; border: none;
    color: #aaa; font-weight: 700; cursor: pointer;
    width: 140px; height: 100%; padding: 0 !important;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding-left: 14px !important;
}
#termToggle .term-btn.is-active { color: #fff; }
#termToggle .term-btn span { display: block; width: 100%; text-align: center; }
#termToggle .term-btn span.save {
    font-size: 0.7em; color: #a090ff; text-transform: uppercase; font-weight: 800;
    margin-bottom: 2px; line-height: 1;
}
#termToggle .slider {
    position: absolute; top: 6px; bottom: 6px; left: 6px;
    background: linear-gradient(90deg, #7b6bff, #6150ff);
    border-radius: 12px; z-index: 1; transition: all 0.3s;
}

/* --- 10. FOOTER CHIPS --- */
#compare-plans .mc-compare-hint.chips {
    display: flex; justify-content: center; align-items: center;
    gap: 15px; flex-wrap: wrap; margin-top: 40px;
}
#compare-plans .mc-chip {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem;
    color: #cbd5e1; display: inline-flex; align-items: center; gap: 8px;
}
#compare-plans .mc-chip i { color: #7b6bff; }

/* Deko */
#compare-plans .mc-floating-items { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
#compare-plans .floating-item { position: absolute; width: 60px; opacity: 0.6; animation: floatXY var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
@media (max-width: 1000px) { #compare-plans .mc-floating-items { display: none; } }
@keyframes floatXY { 0%{transform:translate(0,0) rotate(0deg)} 25%{transform:translate(var(--ampX), calc(var(--ampY)*-1)) rotate(var(--rot))} 50%{transform:translate(calc(var(--ampX)*-1), var(--ampY)) rotate(calc(var(--rot)*-1))} 75%{transform:translate(calc(var(--ampX)*.6), calc(var(--ampY)*.8)) rotate(calc(var(--rot)*.6))} 100%{transform:translate(0,0) rotate(0deg)} }

/* ============================================================
   SAFE ZONE: CONFIGURATOR (UNVERÄNDERT)
   ============================================================ */
html.noscroll, body.noscroll { overflow: hidden !important; height: auto !important; padding-right: 8px; }
#gr-panel-shell { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
#gr-panel-shell.is-open { display: flex !important; animation: fadeIn 0.2s ease-out; }
.gr-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 15, 0.95); backdrop-filter: blur(10px); z-index: 1; }
.gr-panel { position: relative; z-index: 2; width: 100%; max-width: 1100px; height: 85vh; max-height: 900px; background: #131522; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); display: flex; flex-direction: column; overflow: hidden; }
.grp-header { padding: 20px 30px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; background: #181b2b; }
.grp-title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.grp-steps { display: flex; gap: 15px; }
.grp-step { font-size: 0.9rem; opacity: 0.4; font-weight: 700; }
.grp-step.is-active { opacity: 1; color: #7b6bff; }
.grp-content { flex: 1; overflow-y: auto; padding: 30px; position: relative; scrollbar-width: thin; scrollbar-color: #7b6bff #131522; }
.grp-content::-webkit-scrollbar { width: 8px; }
.grp-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.grp-content::-webkit-scrollbar-thumb { background: #7b6bff; border-radius: 4px; }
.grp-footer { padding: 20px 30px; background: #181b2b; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.grp-price { font-size: 1.4rem; font-weight: 900; color: #fff; }
.grp-price span { font-size: 1rem; opacity: 0.7; margin-right: 4px; }
.grp-actions { display: flex; gap: 12px; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.config-toggle-row { display: flex; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 4px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.08); }
.config-toggle-btn { flex: 1; border: none; background: transparent; color: #8890b0; font-weight: 700; padding: 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.config-toggle-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.config-toggle-btn.is-active { background: linear-gradient(135deg, #7b6bff, #9b7bff); color: #fff; box-shadow: 0 4px 12px rgba(123, 107, 255, 0.3); }
.cfg-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cfg-option { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px; background: #14182a; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; }
.cfg-option:hover { border-color: rgba(125,121,255,0.5); transform: translateY(-2px); }
.cfg-option.is-selected { background: linear-gradient(180deg, rgba(123, 107, 255, 0.15), rgba(123, 107, 255, 0.05)); border-color: #7b6bff; box-shadow: 0 0 0 1px #7b6bff inset; }
.cfg-option .o-tit { font-weight: 800; color: #fff; font-size: 1rem; }
.cfg-option .o-sub { font-size: 0.8rem; opacity: 0.7; margin-top: 2px; }
.cfg-result-hint { margin-top: 15px; padding: 12px; background: rgba(125,121,255,0.1); border: 1px solid rgba(125,121,255,0.2); border-radius: 8px; color: #d0d5ff; text-align: center; font-size: 0.9rem; }
#gr-panel-shell input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; margin: 10px 0; cursor: pointer; height: 24px; position: relative; z-index: 5; }
#gr-panel-shell input[type=range]:focus { outline: none; }
#gr-panel-shell input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: #1f2336; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); background-image: linear-gradient(90deg, #7b6bff, #9b7bff); background-size: 0% 100%; background-repeat: no-repeat; }
#gr-panel-shell input[type=range]::-webkit-slider-thumb { height: 22px; width: 22px; border-radius: 50%; background: #fff; border: 2px solid #7b6bff; box-shadow: 0 2px 8px rgba(0,0,0,0.5); cursor: grab; -webkit-appearance: none; margin-top: -8px; transition: transform 0.1s ease; }
#gr-panel-shell input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.range-header h4 { margin: 0; font-size: 1rem; color: #fff; opacity: 0.9; }
.range-val { font-family: monospace; font-size: 1.1rem; color: #7b6bff; font-weight: 700; }
.cfg-warning-box { margin-top: 6px; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; display: none; align-items: flex-start; gap: 8px; line-height: 1.4; }
.cfg-warning-box.is-visible { display: flex; }
.cfg-warn-yellow { background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); color: #ffda6a; }
.cfg-info-blue { background: rgba(64, 196, 255, 0.1); border: 1px solid rgba(64, 196, 255, 0.3); color: #80d8ff; }
.cfg-term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.cfg-term-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; padding: 12px 6px; border-radius: 10px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; }
.cfg-term-btn:hover { background: rgba(255, 255, 255, 0.08); }
.cfg-term-btn.is-active { background: linear-gradient(135deg, rgba(123, 107, 255, 0.9), rgba(109, 88, 255, 0.8)); border-color: rgba(125, 121, 255, 0.5); box-shadow: 0 4px 15px rgba(123, 107, 255, 0.35); }
.cfg-term-btn .t-save { font-size: 0.75rem; font-weight: 800; color: #81f499; margin-bottom: 4px; text-transform: uppercase; }
.cfg-term-btn.is-active .t-save { color: #fff; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; }
.sw-card { padding: 15px; background: #14182a; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.sw-card strong { display: block; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.sw-card small { opacity: 0.7; font-size: 0.85rem; }
.sw-card:hover { border-color: rgba(125,121,255,0.5); transform: translateY(-2px); }
.sw-card.is-active { background: linear-gradient(135deg, rgba(123, 107, 255, 0.2), rgba(123, 107, 255, 0.05)); border-color: #7b6bff; box-shadow: 0 0 0 1px #7b6bff inset; }
.mode-switch { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mode-switch .label { font-weight: 800; font-size: 15px; color: #d3d6f8; display: flex; align-items: center; justify-content: center; min-width: 70px; }
.mode-switch .switch { width: 100px; height: 34px; border-radius: 34px; background: #0f1220; border: 1px solid rgba(255,255,255,.12); position: relative; display: flex; align-items: center; padding: 3px; }
.mode-switch .knob { position: absolute; left: 3px; width: 44px; height: 26px; border-radius: 26px; background: linear-gradient(180deg,#7b6bff,#9b7bff); box-shadow: 0 0 10px rgba(125,121,255,.5); transition: left .2s ease; }
.mode-switch[data-mode="dedicated"] .knob { left: 51px; }
.mode-switch .help { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #e8ebff; }

/* === FIX: Custom-Panel Text nicht zu hoch === */

/* Liste soll nicht die ganze Karte "auffüllen" */
#compare-plans .de-pricing-plan.custom .custom-features-list{
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  margin: 0 !important;
}

/* Wichtig: Spacer wie bei den normalen Cards (sonst rutscht d-sub-price hoch) */
#compare-plans .de-pricing-plan.custom .d-price{
  display: flex !important;          /* killt display:none */
  height: 210px !important;
  min-height: 110px !important;
  margin-top: auto !important;
  margin-bottom: 10px !important;
  padding-bottom: 5px !important;

  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================
   1. MODERN SUMMARY / ABSCHLUSS TAB
   ========================================= */
.cfg-checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-top: 10px;
}

/* Linke Seite: Zusammenfassung */
.cfg-summary-card {
    background: #0f1220;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cfg-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cfg-prod-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7b6bff 0%, #5a4bce 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(123, 107, 255, 0.3);
}
.cfg-prod-icon img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cfg-prod-title h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
}
.cfg-prod-title span {
    font-size: 13px;
    color: #8f94b3;
}

/* Grid für die Specs (CPU, RAM, SSD) */
.cfg-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cfg-spec-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cfg-spec-item i {
    color: #7b6bff;
    font-size: 16px;
}
.cfg-spec-info {
    display: flex;
    flex-direction: column;
}
.cfg-spec-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cfg-spec-val {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* Rechte Seite: Preis & Action */
.cfg-total-card {
    background: linear-gradient(180deg, rgba(123, 107, 255, 0.05) 0%, rgba(15, 18, 32, 0) 100%);
    border: 1px solid #7b6bff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 0 20px rgba(123, 107, 255, 0.05);
}

.cfg-price-area .label {
    display: block;
    color: #d3d6f8;
    font-size: 14px;
    margin-bottom: 5px;
}
.cfg-price-area .amount {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(123, 107, 255, 0.4);
}
.cfg-price-area .period {
    font-size: 14px;
    color: #8f94b3;
    font-weight: 400;
}

.btn-checkout-final {
    background: #7b6bff;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(123, 107, 255, 0.25);
}
.btn-checkout-final:hover {
    background: #6a5acd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 107, 255, 0.4);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .cfg-checkout-layout { grid-template-columns: 1fr; }
}


/* =========================================
   2. LAUFZEIT BUTTONS (Individual) FIX
   ========================================= */

/* Helles Text erzwingen für alle Texte im Button */
.term-grid .term-card span,
.term-grid .term-card div {
    color: #d3d6f8 !important; /* Überschreibt das dunkle Textproblem */
}
.term-grid .term-card.active span,
.term-grid .term-card.active div {
    color: #fff !important;
}

/* 1 Monat zentrieren (wenn kein Rabatt-Badge da ist) */
.term-grid .term-card {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikale Zentrierung */
    align-items: center;
    text-align: center;
    min-height: 80px; /* Einheitliche Höhe garantieren */
    position: relative;
}

/* Falls Badges (Rabatt) da sind, schiebt padding den Content etwas runter,
   aber bei 1 Monat (ohne Badge) wirkt justify-content: center */


/* =========================================
   3. SLIDER FILL (Lila Balken)
   ========================================= */

/* Basis-Styling für den Track überschreiben */
input[type=range].mc-range {
    -webkit-appearance: none; 
    appearance: none;
    width: 100%;
    background: transparent; /* Wichtig, damit wir den Gradient setzen können */
    cursor: pointer;
}

/* Webkit (Chrome, Safari, Edge) */
input[type=range].mc-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    /* Hier ist der Trick: Gradient wird via JS (--percent) gesteuert */
    background: linear-gradient(90deg, #7b6bff var(--percent, 0%), #1a1e2f var(--percent, 0%));
    border: 1px solid rgba(255,255,255,0.1);
}

/* Firefox */
input[type=range].mc-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #7b6bff var(--percent, 0%), #1a1e2f var(--percent, 0%));
    border: 1px solid rgba(255,255,255,0.1);
}

/* Thumb (Knopf) Styling - sicherstellen, dass er gut aussieht */
input[type=range].mc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(123, 107, 255, 0.8);
    margin-top: -7px; /* Zentrierung auf Track */
    border: 2px solid #7b6bff;
}

/* =========================================
   1. PANEL HÖHE (ADAPTIV)
   ========================================= */

/* Das Panel selbst soll sich an den Inhalt anpassen */
.gr-panel {
    height: auto !important;       /* Keine feste Höhe mehr */
    min-height: 300px;             /* Aber nicht zu winzig */
    max-height: 90vh;              /* Maximal 90% der Bildschirmhöhe */
    display: flex;
    flex-direction: column;
    overflow: hidden;              /* Wichtig für runde Ecken */
}

/* Der Inhaltsteil soll scrollbar sein, wenn es zu groß wird */
.grp-content {
    flex: 1 1 auto;                /* Darf wachsen/schrumpfen */
    overflow-y: auto;              /* Scrollbar falls nötig */
    height: auto !important;       /* Keine erzwungene Höhe */
}

/* Footer bleibt unten, klebt aber am Content */
.grp-footer {
    flex: 0 0 auto;                /* Feste Höhe für Footer */
    margin-top: 0;
}


/* =========================================
   2. SLIDER FILL (Lila Balken) FIX
   ========================================= */

/* Reset für alle Browser: Standard-Aussehen entfernen */
input[type=range].mc-range {
    -webkit-appearance: none;  /* WICHTIG: Chrome/Safari/Edge Reset */
    appearance: none;
    width: 100%;
    background: transparent;   /* Hintergrund muss transparent sein */
    cursor: pointer;
    margin: 10px 0;            /* Etwas Platz */
}

/* --- CHROME / SAFARI / EDGE / OPERA --- */
input[type=range].mc-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    
    /* Hier ist die Magie: Der Verlauf wird via CSS-Variable gesteuert */
    /* Syntax: [Lila Farbe] [0% bis X%], [Dunkle Farbe] [X% bis 100%] */
    background: linear-gradient(90deg, 
        #7b6bff var(--percent, 0%), 
        #1a1e2f var(--percent, 0%)
    );
}

input[type=range].mc-range::-webkit-slider-thumb {
    -webkit-appearance: none; /* WICHTIG */
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #7b6bff;
    box-shadow: 0 0 10px rgba(123, 107, 255, 0.5);
    margin-top: -7px; /* Muss (ThumbHeight - TrackHeight) / 2 sein, aber negativ */
    transition: transform 0.1s;
}

/* Hover Effekt für den Knopf */
input[type=range].mc-range:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

/* --- FIREFOX --- */
input[type=range].mc-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(90deg, 
        #7b6bff var(--percent, 0%), 
        #1a1e2f var(--percent, 0%)
    );
}

input[type=range].mc-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: 2px solid #7b6bff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(123, 107, 255, 0.5);
    cursor: pointer;
}

/* Helle Texte für die Auswahl-Boxen im Simple-Mode */
.cfg-option .o-tit {
    color: #fff !important;       /* Titel weiß */
    font-weight: 700;
}
.cfg-option .o-sub {
    color: #b8c0e0 !important;    /* Untertitel hellgrau/lila */
}

/* Wenn ausgewählt, alles weiß */
.cfg-option.is-selected .o-sub {
    color: #fff !important;
}

// --- HELPER FÜR SLIDER FILL ---
  function updateRangeBackground(rangeInput) {
      if(!rangeInput) return;
      const min = Number(rangeInput.min) || 0;
      const max = Number(rangeInput.max) || 100;
      const val = Number(rangeInput.value) || 0;
      const percent = ((val - min) * 100) / (max - min);
      // Das hier ist der Schlüssel: Wir setzen eine CSS Variable
      rangeInput.style.setProperty('--percent', percent + '%');
  }
  
/* =========================================
   SLIDER FILL FIX (Bulletproof Methode)
   ========================================= */

/* --- SLIDER FIX (Schlank & Gefüllt) --- */
input[type=range].mc-range {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100%;
    height: 5px !important;    /* 5px = Schön schlank */
    border-radius: 3px;
    margin: 12px 0;
    cursor: pointer;
    border: none !important;
    
    /* Der Trick: Variable --percent steuert den Lila-Balken */
    background: linear-gradient(90deg, 
        #7b6bff var(--percent, 0%), 
        #1a1e2f var(--percent, 0%)
    ) !important;
}

/* Track unsichtbar machen (damit der Hintergrund vom Input durchscheint) */
input[type=range].mc-range::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 5px;
    border: none !important;
}
input[type=range].mc-range::-moz-range-track {
    background: transparent !important;
    height: 5px;
    border: none !important;
}

/* Der Knopf (Thumb) - etwas kleiner und schicker */
input[type=range].mc-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 16px;
    width: 16px;
    background: #fff;
    border: 2px solid #7b6bff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(123, 107, 255, 0.6);
    margin-top: -5.5px; /* Zentrierung: (5px - 16px) / 2 */
    transition: transform 0.1s ease;
}
input[type=range].mc-range::-moz-range-thumb {
    height: 16px;
    width: 16px;
    background: #fff;
    border: 2px solid #7b6bff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
input[type=range].mc-range:hover::-webkit-slider-thumb {
    transform: scale(1.15);
}

/* =========================================
   FIX: "WEISSER PUNKT" ENTFERNEN (Vorschlaghammer)
   ========================================= */

/* 1. Entfernt Pseudo-Elemente vom Schalter-Hintergrund */
.mode-switch .switch::before,
.mode-switch .switch::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* 2. Entfernt Pseudo-Elemente vom Knopf (Knob) selbst */
.mode-switch .knob::before,
.mode-switch .knob::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================================
   MODPACK BROWSER (MODERN UI)
   ========================================= */

/* Backdrop (Hintergrund abdunkeln + Blur) */
.mp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    animation: fadeIn 0.2s ease-out;
}

/* Der Dialog (Das Fenster) */
.mp-dialog {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: #0f1220;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border-radius: 16px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header Bereich */
.mp-head {
    padding: 20px 25px;
    background: rgba(20, 24, 37, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Suche Input */
.mp-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    min-width: 200px;
}
.mp-search-input:focus {
    outline: none;
    border-color: #7b6bff;
    background: rgba(123, 107, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(123, 107, 255, 0.15);
}

/* Plattform Switch (Pill Design) */
.mp-platform-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.mp-plat-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #8f94b3;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.mp-plat-btn:hover { color: #fff; }
.mp-plat-btn.is-active {
    background: #7b6bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(123, 107, 255, 0.3);
}

/* Content Area */
.mp-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: radial-gradient(circle at top right, rgba(123, 107, 255, 0.03), transparent 70%);
}

/* Status Bar (Loading...) */
.mp-status-bar {
    margin-bottom: 20px;
    color: #8f94b3;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid Layout für Karten */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* Die Modpack Karte */
.mp-card {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mp-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #7b6bff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.mp-card:hover::after {
    opacity: 1;
}

/* Bild Styling */
.mp-card img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Text Styling */
.mp-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.mp-info p {
    margin: 0;
    font-size: 12px;
    color: #8f94b3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Footer (Pager) */
.mp-foot {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #141825;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.mp-pager-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.mp-pager-btn:hover {
    background: #7b6bff;
    border-color: #7b6bff;
}

/* Animationen */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Mobile */
@media (max-width: 600px) {
    .mp-dialog { width: 95%; height: 90vh; }
    .mp-head { flex-direction: column; align-items: stretch; }
    .mp-grid { grid-template-columns: 1fr; }
}

/* =========================================
   SCROLLBAR & SCROLL-FIX
   ========================================= */

.mp-body {
    /* Wichtig: Verhindert, dass Scroll-Events an den Body weitergegeben werden */
    overscroll-behavior: contain;
    
    /* Scrollbar Design (Chrome, Safari, Edge) */
    scrollbar-width: thin;
    scrollbar-color: #3d4257 rgba(0,0,0,0.2);
}

.mp-body::-webkit-scrollbar {
    width: 8px;
}

.mp-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.mp-body::-webkit-scrollbar-thumb {
    background: #3d4257;
    border-radius: 4px;
    border: 2px solid transparent; /* Macht den Balken etwas "schwebend" */
    background-clip: content-box;
}

.mp-body::-webkit-scrollbar-thumb:hover {
    background: #7b6bff; /* Lila beim Drüberfahren */
    border: 0;
}

/* =========================================
   RUHIGE ANIMATION: MODPACK BUTTON
   ========================================= */

#openMpModal {
    /* Sanfter Übergang für alles (Farbe, Schatten, Border) */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    
    /* Wichtig: Kein "Hüpfen" nach oben, das wirkt bei großen Buttons unruhig */
    transform: none !important; 
    
    /* Basis-Look sicherstellen */
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

#openMpModal:hover {
    /* Die "Ruhige" Magie: */
    /* 1. Hintergrund wird sanft lila-transparent */
    background: rgba(123, 107, 255, 0.1) !important;
    
    /* 2. Rahmen wird lila */
    border-color: #7b6bff !important;
    
    /* 3. Ein weicher Schein (Glow) entsteht */
    box-shadow: 0 0 20px rgba(123, 107, 255, 0.25) !important;
    
    /* 4. Minimales "Atmen" (wirklich nur ganz wenig) */
    transform: scale(1.01) !important;
    
    color: #fff !important;
}

/* Falls globale Styles (aus style.css) hier "Glanz-Effekte" (::after/::before) drauflegen,
   entfernen wir diese, damit es clean bleibt */
#openMpModal::after,
#openMpModal::before {
    display: none !important;
    content: none !important;
}

.cfg-warn-orange{
  background: rgba(255, 136, 0, 0.10);
  border: 1px solid rgba(255, 136, 0, 0.35);
  color: #ffd1a3;
}
