* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e2e8f0;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 50%, #1a2234 100%);
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    text-align: center;
    max-width: 550px;
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    max-height: 98vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.payment-icon {
    font-size: 3rem;
    color: #14b8a6;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
    animation: bounce 0.8s ease;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
    animation: shake 0.5s ease;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.license-section {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.license-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.license-key {
    font-family: 'Alef', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #14b8a6;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    word-break: break-all;
    margin-bottom: 1rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 0.75rem;
    color: #14b8a6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-family: 'Ubuntu';
}

.copy-btn:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.6);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #1dc9b6 0%, #14b8a6 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
}

.message {
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    display: none;
}

.message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    display: block;
}

.message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: block;
}

.message.loading {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #14b8a6;
    display: block;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #f87171;
    line-height: 25px;
}

.footer-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #475569;
}

.support-link {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.support-link a {
    color: #14b8a6;
    text-decoration: none;
}

.support-link a:hover {
    text-decoration: underline;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 184, 166, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.toast.show {
    opacity: 1;
}

.product-selector {
    margin-bottom: 1.5rem;
}

.product-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 1rem;
    cursor: default;
    transition: all 0.3s ease;
    margin-top: 2vh;
}

.product-btn i {
    font-size: 1.3rem;
    color: #14b8a6;
}

.product-btn span {
    font-weight: 500;
    font-size: 0.8rem;
}

.product-btn.active {
    background: rgba(20, 184, 166, 0.15);
    border-color: #14b8a6;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.product-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.calculator-section {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.days-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.days-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #14b8a6;
    font-family: 'Alef';
    margin-bottom: 0.75rem;
}

.days-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.days-btn {
    background: rgba(20, 184, 166, 0.2);
    border: none;
    color: #14b8a6;
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.days-btn:hover {
    background: rgba(20, 184, 166, 0.4);
    transform: scale(1.05);
}

.days-range {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(20, 184, 166, 0.3);
    border-radius: 2px;
    outline: none;
}

.days-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #14b8a6;
    cursor: grab;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.price-info {
    text-align: center;
    margin-top: 1rem;
}

.base-price {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.final-price {
    font-size: 2rem;
    font-weight: 700;
    color: #14b8a6;
    margin-top: 0.5rem;
    font-family: 'Alef';
}

.final-price small {
    font-size: 0.85rem;
    color: #94a3b8;
}

.price-note {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.5rem;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    width: 100%;
    max-width: 250px;
    justify-content: center;
    margin: 0 auto;
}

.pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #1dc9b6 0%, #14b8a6 100%);
}

.pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}