* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #15803d;
    --primary-dark: #065f46;
    --primary-light: #dcfce7;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

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

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

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 52px;
}

.logo-img,
.logo img {
    height: 52px;
    width: auto;
    max-height: 52px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active {
    font-weight: 600;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 968px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.why-card h3 {
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-light);
}

/* Pricing */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}

.billing-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.billing-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.billing-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.billing-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.badge-discount {
    background: var(--warning);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 4px;
}

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

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-period {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--bg-gray);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h3, .footer h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer h3 {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: white;
    padding-left: 0;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer a:hover {
        padding-left: 0;
    }
}

/* Policy Pages */
.policy-page {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    background: var(--bg-gray);
}

.policy-page h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.policy-update {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.policy-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.policy-section h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.policy-section p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    color: var(--text);
    line-height: 1.8;
}

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

.policy-section a {
    color: var(--primary);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

.policy-section .warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
    color: #92400e;
}

@media (max-width: 768px) {
    .policy-page {
        padding: 2rem 0;
    }
    
    .policy-page h1 {
        font-size: 1.75rem;
    }
    
    .policy-section {
        padding: 1.25rem;
    }
    
    .policy-section h2 {
        font-size: 1.1rem;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer-link a {
    color: var(--text-light);
    text-decoration: none;
}

.auth-footer-link a:hover {
    color: var(--primary);
}

.header-auth .nav {
    padding: 0.75rem 20px;
}

.plan-banner {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
}

.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.error-msg.active {
    display: block;
}

.success-msg {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success-msg.active {
    display: block;
}

/* Dashboard */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar:not(#dashboardSidebar) {
    width: 260px;
    background: var(--text);
    color: white;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo-link {
    display: block;
    padding: 0 1.25rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a:not(.sidebar-nav-btn) {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-nav a:not(.sidebar-nav-btn):hover,
.sidebar-nav a:not(.sidebar-nav-btn).active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-home {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.sidebar-home:hover {
    background: rgba(255,255,255,0.15) !important;
}

.sidebar-nav-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav-footer a {
    color: rgba(255,255,255,0.6);
}

.sidebar-nav-footer a:hover {
    color: white;
}

.main-content {
    flex: 1;
    background: var(--bg-gray);
    padding: 2rem;
}

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

.page-title {
    font-size: 1.75rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-light);
}

.table tr:hover {
    background: var(--bg-gray);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-expired {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.badge-expiring {
    background: #fef3c7;
    color: #d97706;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: 32px;
    height: 32px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Expiry Status Badges */
.badge-expiring {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-warning 2s infinite;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-danger {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* QR Payment Modal */
.qr-payment-modal {
    text-align: center;
}

.qr-payment-modal .qr-image {
    max-width: 300px;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-payment-modal .bank-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.qr-payment-modal .account-info {
    background: var(--bg-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.qr-payment-modal .account-info p {
    margin: 0.5rem 0;
}

.qr-payment-modal .waiting-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.qr-payment-modal .waiting-notice p {
    color: #856404;
    margin: 0.5rem 0;
}

.qr-payment-modal .contact-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.qr-payment-modal .contact-info a {
    color: var(--primary);
    font-weight: 600;
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Anti-spam captcha style */
.captcha-box {
    background: var(--bg-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-box input {
    max-width: 100px;
}

.captcha-question {
    font-weight: 600;
    color: var(--text);
}

/* Rate limiting notice */
.rate-limit-notice {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Bank Info */
.bank-info {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.bank-info p {
    margin-bottom: 0.5rem;
}

.bank-info strong {
    color: var(--primary);
}

/* Workflow Showcase */
.workflow-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.workflow-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.workflow-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.workflow-item.reverse {
    direction: rtl;
}

.workflow-item.reverse > * {
    direction: ltr;
}

.workflow-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s;
}

.workflow-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.workflow-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.workflow-placeholder {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 3rem;
    min-height: 300px;
    position: relative;
    border-radius: 16px;
}

.workflow-demo {
    position: relative;
    width: 100%;
    height: 300px;
}

.workflow-node {
    position: absolute;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.workflow-node:nth-child(2) {
    animation-delay: 0.5s;
}

.workflow-node:nth-child(3) {
    animation-delay: 1s;
}

.workflow-connection {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    animation: flow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes flow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.workflow-content {
    padding: 1rem 0;
}

.workflow-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.workflow-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.workflow-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.workflow-features li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 968px) {
    .workflow-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .workflow-item.reverse {
        direction: ltr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .header {
        padding: 0.75rem 0;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
        width: 100%;
        padding-top: 0.5rem;
    }
    
    .nav-links li:last-child,
    .nav-links li:nth-last-child(2) {
        width: auto;
    }
    
    .nav-links li:last-child a,
    .nav-links li:nth-last-child(2) a {
        width: auto;
        text-align: center;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .billing-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .billing-btn {
        width: 100%;
    }
    
    /* Workflow */
    .workflow-showcase {
        gap: 2rem;
    }
    
    .workflow-item {
        flex-direction: column;
    }
    
    .workflow-image {
        max-width: 100%;
    }
    
    .workflow-content h3 {
        font-size: 1.25rem;
    }
    
    .workflow-content p {
        font-size: 0.95rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        padding: 0 1rem 1rem;
    }
    
    /* CTA */
    .cta {
        padding: 3rem 1rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    /* Dashboard & Sidebar */
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar:not(#dashboardSidebar) {
        width: 100%;
        padding: 1rem;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sidebar-menu a {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Cards */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Auth pages */
    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-box h1 {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        font-size: 0.75rem;
    }
    
    .pricing-price {
        font-size: 1.75rem;
    }
    
    .sidebar-menu a {
        min-width: 100px;
        font-size: 0.8rem;
    }
}
