/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;  
}

body {
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    font-family: "Kanit", sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    line-height: 1.5;
    color: #6b7280;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}
.btn-login{
    margin-top: 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-cta {
    margin-left: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #475569;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: "Kanit", sans-serif;
}

.hero-accent {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 300;
    font-family: "Kanit", sans-serif;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-demo {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-demo:hover {
    transform: rotate(0deg);
}

.demo-card {
    width: 350px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.demo-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.demo-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.demo-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.demo-content {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-upload, .demo-result {
    text-align: center;
    flex: 1;
}

.demo-upload p, .demo-result p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #64748b;
}

.demo-arrow {
    font-size: 1.5rem;
    color: #2563eb;
    font-weight: 600;
}

.demo-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 0.5rem;
    margin: 0 auto;
    opacity: 0.8;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.sc-header h2{
    font-weight: 300;
    font-family: "Kanit", sans-serif !important;   
}
.sc-header p{
    font-weight: 300;
    font-family: "Kanit", sans-serif;   
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: "Kanit", sans-serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Kanit", sans-serif;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-weight: 300;
    font-family: "Kanit", sans-serif;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: #f8fafc;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, transparent);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    font-weight: 400;
    font-family: "Kanit", sans-serif;

}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.author-info span {
    font-size: 0.875rem;
    color: #64748b;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.popular-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    margin-top: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.period {
    font-size: 1.125rem;
    color: #64748b;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #374151;
    position: relative;
    padding-left: 2rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0e7ff;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-container:first-child {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 2rem;
}

.auth-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: "Kanit", sans-serif;
}

.auth-header p {
    color: #64748b;
    font-weight: 300;
    font-family: "Kanit", sans-serif;
}

.auth-form {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
    font-size: 0.875rem;
    color: #64748b;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-benefits {
    padding: 2rem;
    margin-top: 2rem;
}

.auth-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #111827;
    font-family: "Kanit", sans-serif;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #374151;
    font-weight: 300;
    font-family: "Kanit", sans-serif;
}

/* Dashboard Styles */
.dashboard-page {
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 5rem);
}

.dashboard-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
    flex:1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 200;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.nav-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.dashboard-main {
    padding: 2rem;
}

.dashboard-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-section.active {
    display: block;
     opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: #64748b;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.view-all {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.activity-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

.quick-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.quick-action:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Widget Setup */
.widget-setup {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.setup-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.code-container {
    padding: 1.5rem;
    position: relative;
}

.code-container pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.code-container pre span {
    color: #fbbf24;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #1d4ed8;
}

.installation-steps {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.step-content code {
    background: #f1f5f9;
    color: #2563eb;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.analytics-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-controls select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.chart-container {
    padding: 1.5rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    font-style: italic;
}

.product-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.product-info h4 {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.product-info p {
    font-size: 0.75rem;
    color: #64748b;
}

.product-conversion {
    font-size: 1rem;
    font-weight: 600;
    color: #10b981;
}

.engagement-metrics {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.375rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.settings-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-info {
    padding: 1.5rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.plan-features {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plan-features p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 200px 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .widget-setup {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero{
        padding-top: 5.8rem;
    }
    .code-container {
        padding: 0;
    }
    .dashboard-nav{
        padding: 0;
    }
    .hero-subtitle {
    font-size: 1.15rem;
}
  .hidden {
        display: none !important; /* مخفي افتراضيًا */
    }
    .btn-add{
        padding: 0;
    }
    .btn-add img{
        width: 15px;
    }
    .card-product-select{
       padding: 20px 0;
    }
    .card-product-select button{
       font-size: 11px;
    }
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }

    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-benefits {
        order: -1;
        display: none;
    }

    .auth-card{
        margin-top: 3rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step::after {
        display: none;
    }

    .footer-container:first-child {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .plan-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.testimonial-card,
.pricing-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}












/* Dashboard Sections */
.dashboard-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.nav-item svg {
    flex-shrink: 0;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;          /* يأخذ ارتفاع الشاشة كامل */
    display: flex;             /* <-- نضيف flexbox هنا */
    flex-direction: column;    /* ترتيب عمودي */
}

.dashboard-main {
    flex: 1;
    padding: 32px;
    background-color: #f8fafc;
    overflow-y: auto;
}

/* Section Header */
.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.section-header p {
    color: #6b7280;
    /* margin: 0; */
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.neutral {
    color: #d97706;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.view-all {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 4px 0;
    color: #374151;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.quick-action svg {
    flex-shrink: 0;
}

/* Setup Cards */
.widget-setup {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setup-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .card-widget{
        padding: 1.5rem 0;
    }
    
    .dashboard-sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        top: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        display: block;
    }

    .dashboard-sidebar .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
        padding: 0 0.5rem;
        justify-content: flex-start;
    }

    .dashboard-sidebar .sidebar-nav .nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        display: flex !important;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}














































/* Alert Dialog Styles */
.alert-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.alert-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.alert-dialog-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px;
}

.alert-dialog-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
}

.alert-dialog-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.alert-dialog-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.alert-dialog-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.alert-dialog-close svg {
    width: 20px;
    height: 20px;
}

.alert-dialog-body {
    padding: 24px;
}

.alert-dialog-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 24px 24px 24px;
}

/* Form Styles for Dialog */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group {
    margin-bottom: 20px;
}

/* Image Upload Styles */
.image-upload {
    margin-bottom: 16px;
}

/* Logo Image Styles */
.logo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-preview img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: none;
}

.logo-placeholder {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.logo-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.logo-placeholder p {
    margin: 0;
    font-size: 14px;
}

.upload-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#productPreviewImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.btn-loading {
    position: relative;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.btn-product{
    margin-top: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 640px) {
    .alert-dialog-container {
        padding: 16px;
    }
    
    .alert-dialog-content {
        border-radius: 12px;
    }
    
    .alert-dialog-header,
    .alert-dialog-body,
    .alert-dialog-footer {
        padding: 20px;
    }
    
    .alert-dialog-footer {
        flex-direction: column;
    }
    
    .alert-dialog-footer .btn {
        width: 100%;
    }
}

.add-product{
    margin-bottom: 20px;
    padding: 0 20px;
}


/* .pd-card{
    margin-bottom: 20px;
    display: flex;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    /* border-color: grey;
    border-width: 0.5px;
    border-style: solid; */
    
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px 0px;
}
.pd-card .product-image img{
    width: 100px;
    margin: 0px 10px;
    border-radius: 10px;
}
.pd-card .product-image .product-actions{
    margin: 0px 10px;
}
.pd-card .product-info{
    margin-top: 10px;
}
.action-btn{
    background-color: transparent;
    border:0;
    padding: 2px 10px;
}
.action-btn img{
    width: 10px;
}
.product-actions{
    float: right;
}
.product-all-info{
    float: left; */
/* } */ 
.pd-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .pd-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
        
        .product-card {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            padding: 20px;
        }
        
        .product-info-all {
            display: flex;
            flex: 1;
            gap: 20px;
        }
        
        .product-image {
            flex-shrink: 0;
            width: 180px;
            height: 180px;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .product-image img:hover {
            transform: scale(1.05);
        }
        
        .product-info {
            flex: 1;
        }
        
        .product-info h4 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .product-info p {
            color: #7f8c8d;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .product-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 15px;
        }
        
        .product-category {
            background-color: #e8f4fc;
            color: #3498db;
            padding: 5px 12px;
            border-radius: 20px;
            display: inline-block;
            width: fit-content;
            font-size: 0.9rem;
        }
        
        .product-date {
            color: #95a5a6;
            font-size: 0.9rem;
        }
        
        .product-actions {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 15px;
            padding: 0 15px;
            border-right: 1px solid #eee;
        }
        
        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .action-btn:hover {
            background-color: #f5f7f9;
        }
        
        .action-btn img {
            width: 25px;
            height: 25px;
        }
        
        /* تصميم متجاوب */
        @media (max-width: 768px) {
            .product-card {
                flex-direction: column;
            }
            
            .product-info-all {
                flex-direction: column;
            }
            
            .product-image {
                width: 100%;
                height: 250px;
            }
            
            .product-actions {
                flex-direction: row;
                justify-content: center;
                border-right: none;
                border-top: 1px solid #eee;
                padding: 15px 0 0;
                margin-top: 15px;
            }
        }


        
/* Logout Dialog Styles */
.logout-dialog-content {
    text-align: center;
    padding: 20px 0;
}

.logout-icon {
    margin-bottom: 16px;
}

.logout-dialog-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.logout-dialog-content p {
    color: #6b7280;
    margin: 0;
    font-size: 16px;
}

/* Danger Button */
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger:disabled {
    background: #fca5a5;
    cursor: not-allowed;
}
.account-actions{
    padding: 20px;
}
.account-actions button{
    background-color: #1d4ed8;
    color: white;
    border: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
}
.account-actions a{
    text-decoration: none;
    background-color: red;
    color: white;
    border: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    margin-left: 20px;
}        

















/* Admin Dashboard Styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.users-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-weight: 600;
    color: #1f2937;
}

.user-details span {
    font-size: 0.75rem;
    color: #6b7280;
}

.plan-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.plan-free {
    background: #f0f9ff;
    color: #0369a1;
}

.plan-premium {
    background: #f0fdf4;
    color: #166534;
}

.plan-enterprise {
    background: #faf5ff;
    color: #7c3aed;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #f0fdf4;
    color: #166534;
}

.status-suspended {
    background: #fef2f2;
    color: #dc2626;
}

.product-count {
    font-weight: 600;
    color: #2563eb;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.btn-icon.btn-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.btn-icon.btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-icon.btn-primary {
    color: #2563eb;
    border-color: #bfdbfe;
}

.btn-icon.btn-primary:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.search-box {
    margin-left: auto;
}

.search-box input {
    width: 250px;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.table-container {
    overflow-x: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .users-table {
        font-size: 0.875rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .users-table {
        display: block;
        overflow-x: auto;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0
    }
}



/* Admin Settings Styles */
.settings-grid {
    display: grid;
    gap: 2rem;
}

.settings-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.account-info {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.info-item span {
    color: #6b7280;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.strength-weak { color: #ef4444; }
.strength-medium { color: #f59e0b; }
.strength-strong { color: #10b981; }






/* User Avatar with Logo */
.user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 600;
}

/* User Info Layout */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.user-details span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Table Responsive Design */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}




















/* Pricing Page Styles */
.pricing-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.pricing-hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.pricing-header p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2563eb;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-plans {
    padding: 2rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.price-period {
    font-size: 1.125rem;
    color: #64748b;
}

.price-description {
    color: #64748b;
    font-size: 0.875rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.payment-section {
    padding: 4rem 0;
    background: white;
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-summary, .payment-methods {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
}

.summary-details {
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.125rem;
    border-bottom: none;
    margin-top: 1rem;
}

#paypal-button-container {
    margin: 1rem 0;
}

.payment-alternatives {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.alternative-methods {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method-btn {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.payment-method-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-header h1 {
        font-size: 2.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}







/* Payment Tabs */
.payment-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-btn:hover {
    color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Credit Card Form */
.payment-form {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 12px;
    top: 38px;
    display: flex;
    align-items: center;
}

.cvv-help {
    position: absolute;
    right: 12px;
    top: 38px;
}

.help-tooltip {
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: help;
    color: #6b7280;
}

.help-tooltip:hover {
    background: #d1d5db;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Card Number Input Styling */
#cardNumber {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23646cff' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        justify-content: center;
    }
}


.btn-whatsapp{
    margin-top: auto;         /* يدفعه للأسفل */
    text-align: center;       /* يخلي الزر في الوسط */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;   /* يوسّط الزر أفقياً */
    width: 100%;           
    box-shadow: 0   rgba(0, 0, 0, 0.1); 
}
.btn-whatsapp a{
    text-decoration: none;
}
.btn-whatsapp button{
  border-radius: 5px;
  padding: 10px 20px;
  border-color: transparent;
  background-color: #16BE45;
  color: white;
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: center; /* horizontal centering */
  border: none;
  cursor: pointer;
  font-weight: 600;  
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* إضافة الحركة */
}
.btn-whatsapp button img{
    width:30px;
}
.btn-whatsapp button h4{
    color: white;
    margin-left: 10px;
    font-weight: normal;
    font-size: 1rem;
    font-family: "Kanit", sans-serif;   
}
.btn-whatsapp button:hover {
    background-color: #20b358;
    transform: translateY(-3px) scale(1.05); /* يتحرك للأعلى ويكبر قليلاً */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ظل خفيف عند hover */
}
