/* Common styles */
.tjp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Form styles */
.tjp-register-container,
.tjp-login-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tjp-register-form,
.tjp-login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tjp-register-form h2,
.tjp-login-form h2 {
    margin: 0 0 1.5rem;
    text-align: center;
    color: #1a1a1a;
}

.tjp-message-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tjp-message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tjp-message-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tjp-form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tjp-form-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tjp-form-group {
    margin-bottom: 1rem;
}

.tjp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 500;
}

.tjp-form-group input[type="text"],
.tjp-form-group input[type="email"],
.tjp-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.tjp-form-group input:focus {
    border-color: #2271b1;
    outline: none;
}

.tjp-form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.75rem;
}

.tjp-radio-group {
    display: flex;
    gap: 1.5rem;
}

.tjp-radio,
.tjp-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.tjp-radio input[type="radio"],
.tjp-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

.tjp-radio-label,
.tjp-checkbox-label {
    font-weight: normal;
    color: #1a1a1a;
}

.tjp-checkbox-label a {
    color: #2271b1;
    text-decoration: none;
}

.tjp-checkbox-label a:hover {
    text-decoration: underline;
}

/* Button styles */
.tjp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tjp-btn-primary {
    background: #2271b1;
    color: #fff !important;
}

.tjp-btn-primary:hover {
    background: #135e96;
}

.tjp-btn-block {
    width: 100%;
}

.tjp-btn-loader {
    margin-left: 0.5rem;
}

.tjp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer styles */
.tjp-form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #666;
}

.tjp-form-footer a {
    color: #2271b1;
    text-decoration: none;
}

.tjp-form-footer a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 576px) {
    .tjp-form-row-2 {
        grid-template-columns: 1fr;
    }

    .tjp-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Loading spinner */
.tjp-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: tjp-spin 1s linear infinite;
}

@keyframes tjp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Subscription System Styles */
.tjp-subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tjp-current-subscription {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.tjp-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tjp-plan-info h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.tjp-plan-name {
    text-transform: capitalize;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

.tjp-plan-name.free {
    background: #95a5a6;
    color: white;
}

.tjp-plan-name.basic {
    background: #3498db;
    color: white;
}

.tjp-plan-name.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tjp-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    margin: 5px 0;
}

.tjp-expires, .tjp-expired {
    font-size: 14px;
    margin: 5px 0;
}

.tjp-expires {
    color: #27ae60;
}

.tjp-expired {
    color: #e74c3c;
    font-weight: 600;
}

.tjp-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tjp-status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tjp-status-badge.expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tjp-usage-stats h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.tjp-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tjp-usage-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tjp-usage-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

.tjp-usage-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tjp-usage-progress {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tjp-usage-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.tjp-plans-comparison h2 {
    text-align: center;
    margin: 0 0 40px 0;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
}

.tjp-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tjp-plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    position: relative;
    transition: all 0.3s ease;
}

.tjp-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tjp-plan-card.current {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.tjp-plan-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f7f8ff 0%, #e8eaff 100%);
}

.tjp-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tjp-plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.tjp-plan-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.tjp-price {
    font-size: 48px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.tjp-period {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.tjp-plan-features {
    margin-bottom: 30px;
}

.tjp-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tjp-plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #495057;
}

.tjp-plan-features li:last-child {
    border-bottom: none;
}

.tjp-plan-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
}

.tjp-plan-features li.unavailable {
    color: #adb5bd;
}

.tjp-plan-features li.unavailable::before {
    content: "✗";
    color: #dc3545;
}

.tjp-plan-actions {
    text-align: center;
}

.tjp-plan-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.tjp-plan-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tjp-plan-button.primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.tjp-plan-button.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.tjp-plan-button.secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tjp-plan-button.current {
    background: #28a745;
    color: white;
    cursor: default;
}

.tjp-plan-button.current:hover {
    background: #28a745;
    transform: none;
}

.tjp-subscription-actions {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    text-align: center;
}

.tjp-subscription-actions h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.tjp-subscription-actions p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.tjp-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tjp-action-button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tjp-action-button.danger {
    background: #dc3545;
    color: white;
}

.tjp-action-button.danger:hover {
    background: #c82333;
}

.tjp-action-button.info {
    background: #17a2b8;
    color: white;
}

.tjp-action-button.info:hover {
    background: #138496;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tjp-subscription-container {
        padding: 15px;
    }
    
    .tjp-current-subscription,
    .tjp-subscription-actions {
        padding: 20px;
    }
    
    .tjp-subscription-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tjp-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tjp-plan-card {
        padding: 20px;
    }
    
    .tjp-price {
        font-size: 36px;
    }
    
    .tjp-usage-grid {
        grid-template-columns: 1fr;
    }
    
    .tjp-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tjp-action-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Loading States */
.tjp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tjp-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Suspension Notice Styles */
.tjp-suspension-notice {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.tjp-suspension-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid #dc3545;
}

.tjp-suspension-alert i {
    color: #dc3545;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tjp-suspension-content h3 {
    margin: 0 0 0.75rem 0;
    color: #721c24;
    font-size: 1.25rem;
}

.tjp-suspension-content p {
    margin: 0 0 0.75rem 0;
    color: #721c24;
    line-height: 1.6;
}

.tjp-suspension-content ul {
    margin: 0 0 0.75rem 1.5rem;
    color: #721c24;
    line-height: 1.6;
}

.tjp-suspension-content li {
    margin-bottom: 0.5rem;
}

.tjp-suspension-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 576px) {
    .tjp-suspension-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .tjp-suspension-alert i {
        margin-top: 0;
    }
} 