:root {
    --primary: #2e79bc;
    --primary-dark: #286fae;
    --text: #2d3748;
    --text-light: #718096;
    --primary-color: #2e79bc;
    --primary-light: rgba(46, 121, 188, 0.1);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    margin-top: 100px;

}

.blur-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(45deg, #e0e7ff, #c7d2fe, #a5b4fc);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.8;
}

.auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.auth-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary);
}

.auth-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-icon {
    transition: all 0.3s ease;
}

.auth-btn:hover .btn-icon {
    transform: translateX(3px);
}

.auth-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-check input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

.auth-check input:checked ~ .checkmark:after {
    opacity: 1;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    margin-left: 5px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
}

.profile-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 0;
}

.profile-sidebar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
    padding: 32px 20px;
    width: 270px;
    margin-right: 32px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: box-shadow 0.3s;
}

.profile-sidebar:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.18);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 2.5rem;
    color: var(--primary);
    border: 3px solid #c7d2fe;
}

.profile-name {
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 18px;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    margin-bottom: 8px;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s;
}

.profile-menu a.active,
.profile-menu a:focus {
    background: linear-gradient(90deg, var(--primary) 80%, var(--primary-dark) 100%);
    color: #fff;
}

.profile-menu a:hover {
    background: #e0e7ff;
    color: var(--primary);
}

.profile-content {
    flex: 1;
    max-width: 700px;
    width: 100%;
}

.profile-card {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.10);
    padding: 36px 32px;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 32px;
}

.profile-card-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.profile-form .form-label {
    color: var(--text);
    font-weight: 500;
}

.profile-form .form-control {
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,121,188,0.10);
}

.profile-form .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 28px;
    transition: background 0.2s, box-shadow 0.2s;
}

.profile-form .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.18);
}

@media (max-width: 991px) {
    .profile-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
    }
    .profile-sidebar {
        margin: 0 0 24px 0;
        width: 100%;
    }
    .profile-content {
        max-width: 100%;
    }
    .profile-card {
        padding: 24px 12px;
    }

}


.cart-bg {
    min-height: 100vh;
    background: var(--bg-light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 0 60px 0;
}

.cart-main {
    display: flex;
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    margin-top: 50px;
}

.cart-card {
    background: rgba(255,255,255,0.92);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.13);
    padding: 44px 40px;
    border: 1px solid rgba(255,255,255,0.18);
    flex: 2;
    min-width: 340px;
}

.cart-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.cart-items-list {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 18px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 1.13rem;
}

.cart-item-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-item-duration {
    color: var(--primary);
    font-size: 0.98rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    text-align: right;
    font-size: 1.13rem;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.cart-remove-btn:hover {
    background: #ffeaea;
    color: #c53030;
}

.cart-summary {
    background: rgba(255,255,255,0.92);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.13);
    padding: 44px 40px;
    border: 1px solid rgba(255,255,255,0.18);
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    margin-top: 0;
}

.cart-summary-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.08rem;
}

.cart-summary-total {
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--primary);
    margin: 24px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-input-group {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.cart-input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,121,188,0.10);
    outline: none;
}

.cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 13px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.cart-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.cart-btn:hover {
    transform: translateY(-2px);
}

.cart-success {
    color: #48bb78;
    font-size: 1rem;
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .cart-main {
        flex-direction: column;
        gap: 32px;
        max-width: 98vw;
        padding: 20px;
    }
    .cart-card, .cart-summary {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 28px 10px;
    }
}


.subscription-modern-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
    border-bottom: 1px solid #f0f0f0;
}

.subscription-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 0.25rem;
}

.subscription-title p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.subscription-price {
    text-align: right;
}

.subscription-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subscription-price .period {
    color: #6c757d;
    font-size: 0.9rem;
}

.subscription-progress-container {
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.progress {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.6s ease;
}

.subscription-dates {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.date-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.date-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.date-info label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.date-info p {
    margin: 0;
    font-weight: 600;
    color: #2a2a2a;
}

.subscription-features {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.subscription-features h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2a2a2a;
    display: flex;
    align-items: center;
}

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

.subscription-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.subscription-features li:last-child {
    border-bottom: none;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.subscription-actions .btn {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2a2a2a;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .subscription-price {
        text-align: left;
        width: 100%;
    }

    .subscription-actions {
        flex-direction: column;
    }
}
.captcha-container {
    position: relative;
}

#refresh_captcha {
    transition: all 0.3s ease;
    opacity: 0.7;
}

#refresh_captcha:hover {
    opacity: 1;
    transform: rotate(180deg);
}

#captcha_image {
    cursor: pointer;
    border: 1px solid #dee2e6;
    padding: 2px;
    background: #fff;
}

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

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