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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Plan Selection Styles */
.plan-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.plan-option {
    position: relative;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.plan-option input[type="radio"]:checked + .plan-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-option input[type="radio"]:checked + .plan-label .plan-price {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.plan-label {
    display: block;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.plan-option input[type="radio"]:checked + .plan-label .plan-header h4 {
    color: white;
}

/* Removed conflicting .plan-price styles - pricing page has its own styles */

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

.plan-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: #5a6c7d;
}

.plan-option input[type="radio"]:checked + .plan-label .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.plan-option input[type="radio"]:checked + .plan-label .plan-features li:before {
    color: #fff;
}

@media (min-width: 768px) {
    .plan-selection {
        flex-direction: row;
    }
    
    .plan-option {
        flex: 1;
    }
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin: 0 10px;
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
}

.generator-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-container {
    margin-bottom: 25px;
}

#harassmentInput {
    width: 100%;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

#harassmentInput:focus {
    outline: none;
    border-color: #6c5ce7;
}

#harassmentInput::placeholder {
    color: #adb5bd;
}

.button-container {
    text-align: center;
}

/* Result Display Styles */
.result-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.result-container h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.result-text {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
    word-wrap: break-word;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.result-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Share Section */
.share-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
}

.share-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.share-description {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.share-container {
    max-width: 600px;
    margin: 0 auto;
}

.share-container .input-container {
    margin-bottom: 20px;
}

#shareInput {
    width: 100%;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    background-color: white;
}

#shareInput:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

#shareInput::placeholder {
    color: #adb5bd;
}

.char-counter {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    padding-right: 5px;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.danger {
    color: #f44336;
}

.share-container .button-container {
    text-align: center;
}

.share-container .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
}

.share-container .btn:disabled:hover {
    background-color: #ccc;
    transform: none;
}

#shareBtn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

#shareBtn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

#shareBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* History Section */
.history-section {
    margin-top: 50px;
}

.history-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #6c5ce7;
    position: relative;
}

.history-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.history-content {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.modal-body {
    padding: 20px 30px;
}

.modal-body ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
    color: #495057;
    line-height: 1.6;
}

.agreement-text {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.agreement-text strong {
    color: #1976d2;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.auth-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    text-align: center;
}

.auth-modal-header h2 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.auth-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.auth-modal-body {
    padding: 20px 24px 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.form-group input:invalid {
    border-color: #dc3545;
}

.required {
    color: #dc3545;
    font-weight: 600;
    margin-left: 2px;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.auth-switch p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #667eea;
}

.remember-me label {
    margin: 0;
    color: #666;
    font-weight: 400;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.forgot-password:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.forgot-password-bottom {
    text-align: center;
    margin-top: 15px;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.back-link:hover {
    color: #666;
    text-decoration: underline;
}

/* Form help text */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Forgot password modal specific styles */
#forgotPasswordModal .auth-modal-body {
    padding: 30px;
}

#forgotPasswordModal .form-group {
    margin-bottom: 20px;
}

#forgotPasswordModal .btn {
    width: 100%;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation Styles */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

.generate-btn.loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
}

.generate-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .auth-buttons {
        order: -1;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .generator-section {
        padding: 20px;
    }
    
    .btn-large {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content,
    .auth-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer,
    .auth-modal-header,
    .auth-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Bottom Image Styles */
.bottom-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 60px;
}

.bottom-image-container svg {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.bottom-image-container svg:hover {
    opacity: 1;
}

/* Disclaimer Modal Styles */
.disclaimer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.disclaimer-modal.show {
    display: flex;
}

.disclaimer-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.disclaimer-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.disclaimer-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0;
}

.disclaimer-body {
    padding: 30px;
    line-height: 1.6;
}

.disclaimer-highlight {
    background: white;
    color: #333333;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

.disclaimer-highlight h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
}

.disclaimer-highlight p {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
}

.disclaimer-body p {
    margin-bottom: 20px;
    color: #555;
}

.disclaimer-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.disclaimer-body li {
    margin-bottom: 12px;
    color: #666;
}

.disclaimer-agreement {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.disclaimer-agreement p {
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
}

.disclaimer-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.disclaimer-footer .btn {
    min-width: 120px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse animation for registration prompt */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .disclaimer-content {
        width: 95%;
        margin: 20px;
    }
    
    .disclaimer-header,
    .disclaimer-body,
    .disclaimer-footer {
        padding: 20px;
    }
    
    .disclaimer-footer {
        flex-direction: column;
    }
    
    .disclaimer-footer .btn {
        width: 100%;
    }
}