/* CSS for DCOMMY User Account System */

/* Global styles for account system */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    background: linear-gradient(135deg, #fff 0%, #fef3e2 100%);
    min-height: 100vh;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: #1a1a1a;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b6b;
}

/* Main Content */
main {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.main-container {
    padding: 2rem 4rem;
}

/* Headings */
h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Subscription Plans */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.plan-features-list {
    max-width: 700px;
    margin: 0 auto 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.plan-feature {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 340px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

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

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

.best-value {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff6b6b;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
}

.pricing-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    text-align: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: bold;
    vertical-align: top;
}

.amount {
    font-size: 3.5rem;
    font-weight: bold;
}

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

.savings {
    text-align: center;
    font-size: 0.9rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

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

.features li {
    padding: 0.6rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00cc66;
    font-weight: bold;
}

.paypal-container {
    min-height: 45px;
    margin-top: 1.5rem;
}

.paypal-mirror {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f5f5f5;
    text-align: center;
    transition: all 0.3s ease;
}

.paypal-mirror:hover {
    background-color: #eee;
}

.paypal-mirror:before {
    content: 'Subscribe with PayPal';
    color: #003087;
    font-weight: bold;
}

/* Tab Navigation for Free/Premium */
.plan-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border: 2px solid #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.tab-button:first-child {
    border-radius: 8px 0 0 8px;
}

.tab-button:last-child {
    border-radius: 0 8px 8px 0;
}

.tab-button.active {
    background: #ff6b6b;
    color: white;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #ff5252;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Social Proof */
.social-proof {
    text-align: center;
    margin: 4rem 0;
}

.testimonials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.testimonial {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 500;
}

/* FAQs */
.faqs {
    max-width: 800px;
    margin: 4rem auto;
}

.faqs h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 500;
    margin-bottom: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

/* Guarantee */
.guarantee {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

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

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.dashboard-card h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading:after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

.error-message {
    color: #e63946;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .main-container {
        padding: 2rem 1rem;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 340px;
    }
    
    .testimonials, .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial {
        width: 100%;
        max-width: 340px;
    }
}
