/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff69b4;
    --primary-dark: #e55aa0;
    --secondary-color: #ff1493;
    --accent-color: #ff91a4;
    --text-color: #ffffff;
    --text-light: #f0f0f0;
    --text-muted: #cccccc;
    --background: #1a1a2e;
    --background-light: #16213e;
    --background-dark: #0f0f23;
    --border-color: #ff69b4;
    --border-light: #ff91a4;
    --shadow: 0 2px 20px rgba(255, 105, 180, 0.3);
    --shadow-light: 0 1px 10px rgba(255, 105, 180, 0.2);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-light);
    color: var(--text-color);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--border-color);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.link-btn:hover {
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '💖';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.hero::after {
    content: '💕';
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite reverse;
}

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

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image {
    text-align: center;
    margin-top: 3rem;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-large);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.feature-card::before {
    content: '💖';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* How it works */
.how-it-works {
    padding: 4rem 0;
    background: var(--background-light);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2, .cta p {
    color: white;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--background-light);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand i {
    margin-right: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

/* Auth Pages */
.auth-main {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--background-light);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.auth-form {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-subtitle {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.verification-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Forms */
.form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Questionnaire */
.questionnaire-main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    background: var(--background-light);
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

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

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

.questionnaire-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.step {
    display: none;
    padding: 3rem;
}

.step.active {
    display: block;
}

.step h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.options-group {
    display: grid;
    gap: 1rem;
}

.option-card {
    display: block;
    cursor: pointer;
}

.option-card input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.option-card:hover .option-content {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
}

.option-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.topic-group {
    margin-bottom: 2rem;
}

.topic-group h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.checkbox-group {
    display: grid;
    gap: 1rem;
}

.checkbox-card {
    display: block;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.checkbox-card:hover .checkbox-content {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-content {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.1);
}

.checkbox-content i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.questionnaire-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

/* Payment */
.payment-main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    background: var(--background-light);
}

.payment-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.payment-subtitle {
    color: var(--text-light);
    margin-bottom: 3rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.pricing-features i {
    color: var(--primary-color);
}

.payment-form {
    max-width: 500px;
    margin: 3rem auto;
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    text-align: left;
}

.selected-pack-info {
    background: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    text-align: center;
}

.payment-security {
    margin-top: 3rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.security-item i {
    color: var(--primary-color);
}

/* Dashboard */
.dashboard-main {
    min-height: calc(100vh - 80px);
    padding: 1rem 0;
    background: var(--background-light);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    height: calc(100vh - 140px);
}

.chat-container {
    background: var(--background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assistant-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.assistant-details h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status.online {
    color: var(--primary-color);
}

.status.online::before {
    content: "●";
    margin-right: 0.25rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--background);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.assistant-message .message-avatar {
    background: var(--primary-color);
    color: white;
}

.user-message .message-avatar {
    background: var(--secondary-color);
    color: white;
}

.message-content {
    max-width: 70%;
    background: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.message-content p {
    margin-bottom: 0.5rem;
    color: inherit;
}

.message-time {
    font-size: 0.8rem;
    opacity: 0.7;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--background);
}

.chat-form {
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.input-group textarea {
    flex: 1;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-family: inherit;
}

.input-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.char-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-send {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-info {
    text-align: center;
}

.chat-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-info {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.user-details h3 {
    margin-bottom: 0.5rem;
}

.user-status {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quick-actions {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.quick-actions h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.quick-actions ul {
    list-style: none;
}

.quick-actions li {
    margin-bottom: 0.75rem;
}

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.quick-actions a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-loader {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid, .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .auth-form {
        padding: 2rem;
    }
    
    .questionnaire-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .sidebar {
        order: -1;
    }
    
    .stats-cards {
        flex-direction: row;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .credits-display {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step {
        padding: 2rem 1.5rem;
    }
    
    .option-content, .checkbox-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}
