/* Add this to your styles.css */

/* Centered header styling */
.centered-header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header styling for upgrade card */
.centered-header {
    text-align: center; /* Center the content within the card */
    flex-direction: column;
    align-items: center;
    /* Keep the same padding/margin as other card headers to maintain alignment */
}

/* Upgrade heading - centered within card but aligned with other headings */
.upgrade-heading {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center; /* Centered within its card */
    /* The card itself will align with others due to grid layout */
}

/* Subtitle with permanent pulsing glow effect, also centered */
.upgrade-subtitle {
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center; /* Centered under the heading */
    width: 100%;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: price-glow-pulse 2s ease-in-out infinite;
}

/* Pulsing glow animation for the price */
@keyframes price-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(168, 85, 247, 0.6);
    }
}


/* Optional: Add some spacing adjustments */
.card-header h2 {
    margin-bottom: 0;
}

.upgrade-content {
    margin-top: 16px;
}


/* Remove or modify the existing upgrade-price styles since we're not using them anymore */
.upgrade-price {
    display: none; /* Hide the old price display */
}

/* Optional: Add some spacing adjustments */
.card-header h2 {
    margin-bottom: 0;
}

.upgrade-content {
    margin-top: 16px;
}


/* Remove or modify the existing upgrade-price styles since we're not using them anymore */
.upgrade-price {
    display: none; /* Hide the old price display */
}

/* Optional: Add some spacing adjustments */
.card-header h2 {
    margin-bottom: 0;
}

.upgrade-content {
    margin-top: 16px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    min-width: 300px;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Payment Page Styles */
.payment-summary {
    margin-bottom: 2rem;
}

.plan-details {
    text-align: center;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.plan-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.plan-price .currency {
    font-size: 1.25rem;
    color: #a1a1aa;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6366f1;
}

.plan-price .period {
    font-size: 1rem;
    color: #a1a1aa;
}

.payment-features {
    margin-bottom: 2rem;
}

.payment-features h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.payment-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    color: #e5e5e5;
    font-size: 0.95rem;
}

.payment-features svg {
    color: #22c55e;
    flex-shrink: 0;
}

.payment-method h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.paypal-payment-container {
    margin-bottom: 1rem;
}

.payment-note {
    font-size: 0.85rem;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.4;
}

/* API Content Scrolling Fix */
.api-active {
    max-height: 300px;
    overflow-y: auto;
}

.api-example {
    margin-top: 1rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e5e5e5;
    white-space: pre-wrap;
    cursor: pointer;
    transition: all 0.2s ease;
    word-break: break-all;
    overflow-wrap: break-word;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Layout Management - Fixed to show pages individually */
#app {
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: #a1a1aa;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #a1a1aa;
    border: 2px solid transparent;
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Landing Page Styles */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 0 60px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #c7d2fe;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Demo Showcase */
.demo-showcase {
    margin: 3rem 0;
}

.demo-window {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #22c55e; }

.window-title {
    font-weight: 600;
    color: #e5e5e5;
}

.email-form {
    padding: 24px;
}

.email-field {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.email-field label {
    width: 80px;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.email-value {
    color: #ffffff;
    font-size: 0.9rem;
}

.typing {
    border-right: 2px solid #6366f1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #6366f1; }
    51%, 100% { border-color: transparent; }
}

.send-animation {
    padding: 20px;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.arrow-down {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.sms-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #22c55e;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Sections */
.features-section,
.pricing-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #a1a1aa;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.pricing-card.featured {
    border: 2px solid #6366f1;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: #a1a1aa;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: #6366f1;
}

.period {
    font-size: 1rem;
    color: #a1a1aa;
}

.plan-description {
    color: #a1a1aa;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #e5e5e5;
}

.plan-features svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

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

.footer-section h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #71717a;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #a1a1aa;
}

.auth-form {
    margin-bottom: 2rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #71717a;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-page {
    background: #0a0a1a;
}

.dashboard-nav {
    background: rgba(10, 10, 26, 0.95);
    position: relative;
}

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

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-email {
    color: #e5e5e5;
    font-weight: 500;
}

.user-menu-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #e5e5e5;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dashboard-main {
    flex: 1;
    padding: 120px 0 60px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #a1a1aa;
    font-size: 1.1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-action {
    margin-top: 0.5rem;
}

.stat-action a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-note {
    color: #71717a;
    font-size: 0.8rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

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

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

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

/* Instruction Steps */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content code {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.step-content small {
    color: #a1a1aa;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

/* Loading and Toast */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-left: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #ffffff;
    margin-top: 1rem;
    font-weight: 600;
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.toast-close {
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Upgrade Content */
.upgrade-content {
    text-align: center;
}

.upgrade-benefits {
    margin-bottom: 1.5rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0..benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.benefit svg {
    color: #22c55e;
}

.upgrade-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
}

.price-period {
    color: #a1a1aa;
    font-size: 1rem;
}

.paypal-container {
    margin-top: 1rem;
}

/* API Content */
.api-content {
    text-align: center;
}

.api-locked {
    padding: 2rem 0;
}

.api-locked svg {
    color: #71717a;
    margin-bottom: 1rem;
}

.api-locked h3 {
    margin-bottom: 0.5rem;
    color: #e5e5e5;
}

.api-locked p {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

.api-active .api-field {
    margin-bottom: 1.5rem;
    text-align: left;
}

.api-field label {
    display: block;
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 0.5rem;
}

.api-field code {
    display: block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #c7d2fe;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-field code:hover {
    background: rgba(99, 102, 241, 0.15);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e5e5e5;
    white-space: pre-wrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-block:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Message History */
.message-history {
    max-height: 400px;
    overflow-y: auto;
}

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

.empty-state svg {
    color: #71717a;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #e5e5e5;
}

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

.message-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.message-recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e5e5;
    font-weight: 600;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-date {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.message-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-sent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.message-content {
    color: #e5e5e5;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.mobile-open {
        transform: translateY(-100%);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-actions {
        align-self: stretch;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-menu {
        gap: 0.5rem;
    }

    .user-email {
        display: none;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .auth-card {
        padding: 2rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav-links {
        display: none;
    }
}
