/* ============================================
   Ckarck - Modern Light Purple Theme
   Colors: White (#FFFFFF), Light Purple (#A78BFA), Dark Purple (#7C3AED)
   ============================================ */

/* CSS Variables */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #8b5cf6;
    --bg-dark: #0f0f1a;
    --bg-card: #1e1e2a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-buy, .btn-danger {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    padding: 10px 20px;
}

.btn-danger {
    background: var(--error);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
}

.hero h1 {
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Security Section */
.security {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.security-content {
    flex: 1;
    min-width: 280px;
}

.security-content h2 {
    color: var(--primary-dark);
}

.security-content ul {
    list-style: none;
    margin-top: 20px;
}

.security-content li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
}

.security-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.security-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    min-width: 150px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 20px;
    background: white;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    width: 320px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.price small {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-gray);
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.pricing-card li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Comparison Table */
.comparison {
    padding: 80px 20px;
    background: var(--bg-light);
}

.comparison h2 {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.yes {
    color: var(--success);
    font-weight: 600;
}

.no {
    color: var(--error);
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
    background: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-dark);
}

.testimonial cite {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

/* Auth Box (Login/Register) */
.auth-box {
    max-width: 450px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 10px;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-gray);
    margin-top: 5px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.dashboard-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* License Table */
.licenses-table {
    overflow-x: auto;
}

.licenses-table table {
    width: 100%;
    border-collapse: collapse;
}

.licenses-table th,
.licenses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.licenses-table th {
    color: var(--text-gray);
    font-weight: 600;
}

.licenses-table code {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert.warning {
    background: #fed7aa;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Captcha */
.captcha {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Footer */
.footer {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .security {
        flex-direction: column;
        text-align: center;
    }
    
    .security-content li {
        text-align: left;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .features, .pricing-section, .testimonials {
    animation: fadeIn 0.6s ease-out;
}

/* Quick Links */
.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Password Requirements */
.password-requirements {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.password-requirements li {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.password-requirements li.valid {
    color: var(--success);
}

.password-match {
    font-size: 0.75rem;
    margin-top: 5px;
}

.match-success {
    color: var(--success);
}

.match-error {
    color: var(--error);
}

/* OTP Page */
.otp-options {
    margin-top: 20px;
    text-align: center;
}

.otp-options a {
    color: var(--primary);
    text-decoration: none;
}

.otp-timer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Download Page */
.download-section {
    padding: 80px 20px;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.system-requirements {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 20px;
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
    border: 1px solid var(--border);
}

.system-requirements h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.system-requirements li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}