:root {
    --primary: #4CAF50;
    --bg: #121212;
    --surface: #1e1e1e;
    --text: #ffffff;
    --text-dim: #aaaaaa;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.subtitle { color: var(--text-dim); margin-bottom: 30px; }
h2 { margin-top: 0; }

.btn-pay {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s;
}
.btn-pay:hover { opacity: 0.9; }
.btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.input-group { 
    margin-bottom: 20px; 
}

.partner-label { 
    color: #4CAF50; 
    font-weight: bold; 
    display:block; 
    margin-bottom:5px; 
}
.partner-input { 
    border-color: #4CAF50 !important; 
}
.partner-desc { 
    color: #888;
    display:block; 
    margin-top:5px; 
}

.tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 20px; 
}
.tab-btn {
    background: #2a2a2a;
    border: none;
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
}
.tab-btn.active { 
    background: var(--primary); 
    color: white; 
}

.grid { 
    display: grid; 
    grid-template-columns: 
    repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}
.card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}
.card:hover { 
    transform: translateY(-2px); 
}
.card.selected { 
    border-color: var(--primary); 
    background: #333; 
}

.price { 
    font-size: 1.5rem; 
    font-weight: bold; 
    margin: 10px 0; 
    color: var(--primary); 
}
.desc { 
    color: var(--text-dim); 
    font-size: 0.9rem; 
    line-height: 1.4; 
}
.badge {
    position: absolute; top: -10px; right: 10px;
    background: var(--primary); font-size: 0.75rem;
    padding: 4px 8px; border-radius: 4px; text-transform: uppercase;
}

.toggle-container {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 20px;
}
.switch {
    position: relative; 
    display: inline-block; 
    width: 50px; 
    height: 26px;
}
.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}
.slider {
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 34px;
}
.slider:before {
    position: absolute; 
    content: ""; 
    height: 18px; 
    width: 18px; 
    left: 4px; 
    bottom: 4px;
    background-color: white; 
    transition: .4s; 
    border-radius: 50%;
}
input:checked + .slider { 
    background-color: var(--primary); 
}
input:checked + .slider:before { 
    transform: translateX(24px); 
}

.switcher button {
    background: transparent; 
    border: 1px solid #444; 
    color: #888;
    padding: 5px 10px; 
    cursor: pointer; 
    margin-left: -1px;
}
.switcher button.active { 
    background: #444; 
    color: white; 
    border-color: #666; 
}
.switcher button:first-child { 
    border-radius: 4px 0 0 4px; 
}
.switcher button:last-child { 
    border-radius: 0 4px 4px 0; 
}

.error { 
    color: #ff5252; 
    margin-top: 10px; 
    display: none; 
}
.terms-link { 
    color: var(--primary); 
}
.legal-check { 
    margin-top: 30px; 
}

#partnerInputDiv { 
    animation: fadeIn 0.5s; 
}
@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    } to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}