/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #d7dadc;
    background: #030303;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #343536;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.logo-container:hover .logo {
    color: #ff8b60;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4500, #ff8b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff4500;
    color: white;
}

.btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

.btn-secondary {
    background: #343536;
    color: #d7dadc;
    border: 2px solid #818384;
}

.btn-secondary:hover {
    background: #454647;
    border-color: #d7dadc;
}

.btn-text {
    background: transparent;
    color: #d7dadc;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    background: #343536;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Main Layout with Sidebar */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #343536;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #d7dadc;
    border-bottom: 2px solid #343536;
    padding-bottom: 0.5rem;
}

.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.discussions-list .discussion-item {
    background: #272729;
    padding: 1rem;
    border: 1px solid #343536;
    transition: all 0.3s ease;
    cursor: pointer;
}

.discussions-list .discussion-item:hover {
    background: #343536;
    border-color: #818384;
}

.discussions-list .discussion-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #d7dadc;
    line-height: 1.2;
}

.discussions-list .discussion-meta {
    font-size: 0.75rem;
    color: #818384;
}

.no-discussions {
    text-align: center;
    padding: 1rem;
    color: #818384;
    font-style: italic;
    background: #272729;
    border: 1px solid #343536;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.discussion-owner {
    color: #ff4500;
    font-weight: 500;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Content Area */
.content-area {
    min-width: 0; /* Prevent grid overflow */
}

/* Email Confirmation and Password Reset */
.email-confirmation,
.password-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.confirmation-card,
.reset-card {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid #343536;
}

.confirmation-card h2,
.reset-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d7dadc;
}

.confirmation-card p,
.reset-card p {
    font-size: 1.1rem;
    color: #818384;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-actions,
.reset-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    color: #d7dadc;
    transition: all 0.3s ease;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Personality Cards */
.personalities {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.personalities h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.personality-card {
    background: #1a1a1b;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #343536;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #ff4500;
}

.personality-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ff4500;
}

.personality-card p {
    color: #818384;
    line-height: 1.5;
}

/* Recent Discussions */
.recent-discussions {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #343536;
}

.recent-discussions h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #d7dadc;
}

.discussions-grid {
    display: grid;
    gap: 1rem;
}

.discussion-item {
    background: #272729;
    padding: 1.5rem;
    border: 1px solid #343536;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.discussion-item:hover {
    background: #343536;
    border-color: #818384;
}

.discussion-content {
    flex: 1;
    cursor: pointer;
}

.discussion-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discussion-item:hover .discussion-actions {
    opacity: 1;
}

.btn-delete-discussion {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-delete-discussion:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.discussion-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #d7dadc;
}

.discussion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #818384;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #d7dadc;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #343536;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    background: #272729;
    color: #d7dadc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4500;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-switch {
    text-align: center;
    margin-top: 1rem;
}

.form-switch a {
    color: #ff4500;
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Discussion View Styles */
.discussion-header {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #343536;
}

.discussion-meta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d7dadc;
}

.discussion-stats {
    display: flex;
    gap: 2rem;
    color: #818384;
    font-size: 0.9rem;
}

.personality-controls {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #343536;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.personality-controls label {
    font-weight: 500;
    color: #d7dadc;
}

.personality-controls select {
    padding: 0.5rem;
    border: 2px solid #343536;
    border-radius: 6px;
    background: #1a1a1b;
    color: #d7dadc;
}

/* Discussion Controls Layout */
.discussion-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #343536;
    gap: 1rem;
}

.personality-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: none;
}

.discussion-actions {
    display: flex;
    gap: 0.5rem;
}

/* Delete Buttons */
.btn-danger {
    background: #fecaca;
    color: #dc2626;
    border: 2px solid #fca5a5;
}

.btn-danger:hover {
    background: #fca5a5;
    border-color: #ef4444;
    transform: translateY(-1px);
}

.btn-delete-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-delete-message:hover {
    background: #fecaca;
    border-color: #fca5a5;
    transform: scale(1.1);
}

/* Discussion Delete Buttons */
.btn-delete-discussion {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.btn-delete-discussion:hover {
    background: #fecaca;
    border-color: #fca5a5;
    transform: scale(1.1);
}

/* Update discussion item layout to accommodate delete buttons */
.discussion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #272729;
    padding: 1.5rem;
    border: 1px solid #343536;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.discussion-content {
    flex: 1;
    cursor: pointer;
}

.discussion-content:hover {
    opacity: 0.8;
}

/* New Message Form - Top Right Position */
.new-message-top {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #343536;
}

.new-message-top .form-group {
    margin-bottom: 1rem;
}

.new-message-top textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid #343536;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    background: #272729;
    color: #d7dadc;
}

.new-message-top textarea:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

/* Messages */
.messages {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    background: #272729;
    padding: 1.5rem;
    border: 1px solid #343536;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-author {
    font-weight: 500;
    color: #ff4500;
    font-size: 0.875rem;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-delete-message {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.btn-delete-message:hover {
    background: #b91c1c;
    opacity: 1;
    transform: scale(1.05);
}

.message-time {
    font-size: 0.75rem;
    color: #818384;
}

.message-content {
    color: #d7dadc;
    line-height: 1.4;
    font-size: 0.875rem;
}



/* New Message Form */
.new-message {
    background: #1a1a1b;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #343536;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.personality-indicator {
    color: #818384;
    font-size: 0.9rem;
}

.personality-indicator strong {
    color: #ff4500;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: #ff4500;
    font-weight: 500;
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .content-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .personality-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .confirmation-card,
    .reset-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .personalities,
    .recent-discussions,
    .discussion-header,
    .messages,
    .new-message {
        padding: 1.5rem;
    }
    
    .main-layout {
        padding: 0 10px;
    }
    
    .sidebar {
        padding: 1rem;
    }
}

/* Multi-Step Signup Styles */
.signup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.signup-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.signup-step.active {
    display: block;
}

.signup-step h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.signup-step p {
    color: #818384;
    text-align: center;
    margin-bottom: 2rem;
}

.signup-form {
    max-width: 400px;
    margin: 0 auto;
}

.plan-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Plan Selection for Signup Form */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

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

.nav-link {
    color: #d7dadc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

.nav-link.active {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}



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

/* Logo Link */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin: 3rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #818384;
    margin-bottom: 2rem;
}

/* Discussions Container */
.discussions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.discussions-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1a1a1b;
    border-radius: 8px;
    border: 1px solid #343536;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: #d7dadc;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem;
    border: 1px solid #343536;
    border-radius: 4px;
    background: #272729;
    color: #d7dadc;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #ff4500;
}

/* Load More */
.load-more {
    text-align: center;
    margin: 3rem 0;
}

/* No Discussions */
.no-discussions {
    text-align: center;
    color: #818384;
    font-style: italic;
    padding: 3rem;
    font-size: 1.1rem;
}

/* ===== PRICING PAGE STYLES ===== */

/* Pricing Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #1a1a1b 0%, #272729 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #343536;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.pricing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d7dadc;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4500;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #818384;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: #0c0c0d;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: #1a1a1b;
    border: 2px solid #343536;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: #ff4500;
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.1);
}

.pricing-card.featured {
    border-color: #ff4500;
    background: linear-gradient(135deg, #1a1a1b 0%, #2a1a1b 100%);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: #818384;
    vertical-align: top;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #818384;
    margin-left: 0.25rem;
}

.plan-description {
    color: #d7dadc;
    font-size: 1rem;
    line-height: 1.5;
}

/* Plan Features */
.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(52, 53, 54, 0.5);
}

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

.feature-icon {
    flex-shrink: 0;
}

.feature-item span {
    color: #d7dadc;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Plan Action */
.plan-action {
    text-align: center;
}

.plan-action .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    background: #1a1a1b;
    border-top: 1px solid #343536;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.trust-item h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-item p {
    color: #d7dadc;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: #0c0c0d;
}

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

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.faq-header p {
    font-size: 1.1rem;
    color: #818384;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ff4500;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 69, 0, 0.05);
}

.faq-question h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    color: #818384;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 69, 0, 0.02);
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #d7dadc;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* ===== AUTH 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.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1a1a1b;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #343536;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    color: #818384;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff4500;
}

.auth-form {
    display: none;
}

.auth-form h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #d7dadc;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #343536;
    border-radius: 6px;
    background: #272729;
    color: #d7dadc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #818384;
}

.auth-form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.form-switch {
    text-align: center;
    margin-top: 1rem;
    color: #818384;
}

.form-switch a {
    color: #ff4500;
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

/* Card element styles for Stripe */
.card-element {
    padding: 0.75rem;
    border: 1px solid #343536;
    border-radius: 6px;
    background: #272729;
    color: #d7dadc;
}

.card-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Disabled button styles */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6b7280 !important;
    border-color: #6b7280 !important;
}

.btn-disabled:hover {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    transform: none !important;
}

.plan-selection .plan-option {
    border: 2px solid #343536;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #272729;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    z-index: 1;
}

.plan-selection .plan-option:hover {
    border-color: #ff4500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.15);
}

.plan-selection .plan-option.selected {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.05);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
    position: relative;
    transform: scale(1.02);
}

.plan-selection .plan-option.selected::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4500;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.plan-selection .plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-selection .plan-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-selection .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4500;
}

.plan-selection .plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #818384;
}

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

.plan-selection .plan-features li {
    padding: 0.25rem 0;
    color: #d7dadc;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

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

.plan-option {
    background: #272729;
    border: 2px solid #343536;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-option:hover {
    border-color: #ff4500;
    transform: translateY(-5px);
}

.plan-option.selected {
    border-color: #ff4500;
    background: linear-gradient(135deg, #272729 0%, #1a1a1b 100%);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.3);
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    color: #ff4500;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price span {
    font-size: 1rem;
    color: #818384;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #d7dadc;
    font-size: 0.875rem;
}

.step-navigation {
    text-align: center;
    margin-top: 2rem;
}

.payment-form {
    max-width: 500px;
    margin: 0 auto;
}

.plan-summary {
    background: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.plan-summary h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.plan-details {
    display: flex;
 justify-content: space-between;
    align-items: center;
    color: #d7dadc;
}

.success-message {
    text-align: center;
    padding: 3rem 0;
}

.success-message h2 {
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message p {
    color: #818384;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

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

.signup-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.signup-step.active {
    display: block;
}

.signup-step h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.signup-step p {
    color: #818384;
    text-align: center;
    margin-bottom: 2rem;
}


