:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f8fafc;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #111827;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-error: linear-gradient(135deg, #ef4444, #dc2626);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-secondary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-icon {
    font-size: 1.1rem;
}

.user-section {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.user-info:hover {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.user-level {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-level.member {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.user-level.vip {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 600;
}

.user-level.guest {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.logout-btn {
    padding: 8px;
    border-radius: var(--radius);
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--border);
    color: var(--error);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    justify-content: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.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-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Card Styles */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Auth Forms */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.terms-text {
    font-size: 0.8rem;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Editor Styles */
.editor-section {
    margin-bottom: 3rem;
}

.editor-container {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tool-btn {
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.char-count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-count-number {
    font-weight: 600;
    color: var(--text);
}

/* Draft Recovery - Simple inline */
.draft-recovery {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    margin: 0 1rem 1rem;
    font-size: 0.85rem;
    color: #92400e;
}

.draft-recovery.hidden {
    display: none;
}

.draft-recovery-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.draft-recovery-btn:hover {
    background: #d97706;
}

/* Security Section */
.security-section, .vip-features-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.security-section h4, .vip-features-section h4 {
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Actions */
.form-actions {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.save-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.save-status.saving {
    color: var(--warning);
}

.save-status.saved {
    color: var(--success);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Features Section */
.features-section {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 300;
}

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

.feature-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
}

.feature-card.feature-vip::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-card.current-plan {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-vip .feature-icon {
    color: #f59e0b;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-price small {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.feature-vip .feature-price {
    color: #f59e0b;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 32px;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-disabled {
    color: var(--text-lighter);
    text-decoration: line-through;
}

.feature-disabled::before {
    content: '✗' !important;
    color: var(--error) !important;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    background: var(--bg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert.success {
    background: #f0fdf4;
    border-color: var(--success);
    color: #166534;
}

.alert.error {
    background: #fef2f2;
    border-color: var(--error);
    color: #991b1b;
}

.alert.info {
    background: #eff6ff;
    border-color: var(--primary);
    color: #1e40af;
}

/* Share Link */
.share-link {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.share-url {
    word-break: break-all;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.share-url:hover {
    text-decoration: underline;
}

/* Footer Styles */
.main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Note View Styles */
.note-view-container {
    max-width: 900px;
    margin: 0 auto;
}

.note-header {
    padding: 2rem;
    margin-bottom: 2rem;
}

.note-title {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.note-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 500;
}

.info-value.expired {
    color: var(--error);
    font-weight: 600;
}

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

.note-content {
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.content-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text);
}

.content-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.note-share {
    padding: 2rem;
}

.share-link-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-link-input input {
    flex: 1;
}

.social-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Upgrade Page Styles */
.upgrade-header {
    text-align: center;
    margin-bottom: 3rem;
}

.current-plan-badge {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.badge-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.badge-plan {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-plan.member {
    background: var(--primary);
    color: white;
}

.badge-plan.vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-plan.guest {
    background: var(--text-light);
    color: white;
}

/* Payment Methods */
.payment-section {
    margin: 3rem 0;
}

.payment-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.payment-methods {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    min-width: 120px;
}

.payment-method input {
    display: none;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method input:checked + label {
    border-color: var(--primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

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

.faq-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Ad Banner */
.ad-banner {
    background: var(--bg);
    border: 2px dashed var(--border);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: var(--radius);
    color: var(--text-light);
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .vip-features-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        justify-content: center;
        padding: 1rem;
    }
    
    .char-count {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .note-info-grid {
        grid-template-columns: 1fr;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .share-link-input {
        flex-direction: column;
    }
    
    .content-header {
        gap: 1rem;
        align-items: flex-start;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .toolbar-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .note-actions,
    .note-share {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .note-content {
        box-shadow: none !important;
        border: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #4361ee;
    color: white;
}

.mobile-nav-link.primary {
    background: #4361ee;
    color: white;
    font-weight: 600;
}

.mobile-nav-link.logout {
    color: #e63946;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    margin-top: 0 !important; /* Fix lỗi bể layout */
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav,
    .user-section .user-info,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }

    .logo-img {
        height: 60px;
    }
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    font-size: 4rem;
    animation: pulse 2s infinite;
}

.loading-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.loading-text p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-secondary);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    padding: 1rem 0;
}


.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Footer Stats */
.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.9rem;
}

/* Footer Bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        font-size: 3rem;
    }
    
    .loading-text h3 {
        font-size: 1.5rem;
    }
    
    .footer-stats {
        flex-direction: column;
    }
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.mobile-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.guest-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.guest-welcome i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--border);
    color: var(--text);
}

.mobile-nav-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-link.logout {
    color: var(--error);
}

.mobile-nav-link.logout:hover {
    background: #fef2f2;
    border-left-color: var(--error);
}


.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .user-section .auth-buttons {
        display: none;
    }
    
    .user-info .logout-btn {
        display: none;
    }
    
    .header-content {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
    }
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.mobile-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.guest-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.guest-welcome i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: var(--border);
    color: var(--text);
}

.mobile-nav-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-link.logout {
    color: var(--error);
}

.mobile-nav-link.logout:hover {
    background: #fef2f2;
    border-left-color: var(--error);
}


.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .user-section .auth-buttons {
        display: none;
    }
    
    .user-info .logout-btn {
        display: none;
    }
    
    .header-content {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
    }
}
/* Modern Hero Section */
.modern-hero {
    position: relative;
    padding: 5rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

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

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

/* Editor Section */
.editor-section {
    margin-bottom: 4rem;
}

.editor-container {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.editor-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.editor-area {
    padding: 0;
}

.editor-area textarea {
    width: 100%;
    border: none;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 400px;
    background: var(--bg);
    color: var(--text);
}

.editor-area textarea:focus {
    outline: none;
    box-shadow: none;
}

/* Security & VIP Options */
.security-options,
.vip-options {
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.security-options h3,
.vip-options h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.option-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.vip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Pricing Section */
.pricing-section {
    margin: 4rem 0;
}

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

.pricing-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border);
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.vip {
    border-color: #f59e0b;
}

.pricing-card.current-plan {
    border-color: var(--success);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.plan-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.pricing-card.vip .plan-icon {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #92400e;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.plan-price {
    margin-bottom: 1rem;
}

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

.pricing-card.vip .price {
    color: #f59e0b;
}

.period {
    color: var(--text-light);
    font-size: 1rem;
}

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

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

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

.feature-included {
    color: var(--text);
}

.feature-included i {
    color: var(--success);
}

.feature-excluded {
    color: var(--text-lighter);
}

.feature-excluded i {
    color: var(--error);
}

.full-width {
    width: 100%;
}

/* Share Success */
.share-success {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.share-link-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text);
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left {
        justify-content: center;
    }
    
    .vip-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .editor-area textarea {
        padding: 1rem;
        min-height: 300px;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}
.color-swatch {
        width: 28px; height: 28px; border-radius: 6px; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd;
        transition: transform 0.2s;
    }
    .color-swatch:hover { transform: scale(1.1); }
    .color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.share-result {
        animation: slideDown 0.5s ease-out forwards;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    }
    @keyframes slideDown {
        from { opacity:0; transform:translateY(-15px); }
        to { opacity:1; transform:none; }
    }
    @keyframes fadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
.congrats-text {
        animation: fadeUp 0.6s 0.2s ease-out forwards;
    }
    @keyframes fadeUp {
        from { opacity:0; transform:translateY(-10px); }
        to { opacity:1; transform:none; }
    }
    .btn-social {
        width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s;
    }
    .btn-social:hover { transform: scale(1.1); }
    .btn-facebook { background:#1877f2; color:white; }
    .btn-zalo { background:#00b0f0; color:white; }
    .btn-twitter { background:#1da1f2; color:white; }

#content span { display: inline !important; }
    .color-swatch { width:28px; height:28px; border-radius:6px; cursor:pointer; border:2px solid #fff; box-shadow:0 0 0 1px #ddd; transition:transform .2s; }
    .color-swatch:hover { transform:scale(1.1); }
    .color-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
    .share-result { animation:slideDown .5s ease-out; }
    @keyframes slideDown { from{opacity:0;transform:translateY(-15px)} to{opacity:1;transform:none} }
    .congrats-text { animation:fadeUp .6s .2s ease-out forwards; opacity:0; transform:translateY(-10px); }
    @keyframes fadeUp { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }
    .btn-social { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:white; }
    .btn-facebook { background:#1877f2; }
    .btn-zalo { background:#00b0f0; }
    .btn-twitter { background:#1da1f2; }

/* Editor Content Styles */
.editor-area #content {
    min-height: 320px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    outline: none;
    color: #1f2937; /* Màu chữ mặc định */
}

/* Đảm bảo các span hiển thị đúng */
.editor-area #content span {
    display: inline !important;
    font-size: inherit !important;
    color: inherit !important;
}

/* Fix cho font size */
.editor-area #content span[style*="font-size"] {
    display: inline !important;
    line-height: inherit !important;
}

/* Fix cho màu chữ */
.editor-area #content span[style*="color"] {
    display: inline !important;
    background: transparent !important;
}

/* Placeholder style */
.editor-area #content:empty:before {
    content: attr(placeholder);
    color: #9ca3af;
    font-style: italic;
}

.editor-area #content:focus:empty:before {
    content: attr(placeholder);
    color: #d1d5db;
}

/* Blockquote styles */
blockquote {
    border-left: 4px solid #3b82f6 !important;
    margin: 1rem 0 !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    background-color: #f8fafc !important;
    font-style: italic !important;
    color: #4b5563 !important;
    border-radius: 4px;
}

/* Code block styles */
pre {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
    font-family: Monaco, "Courier New", monospace !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    overflow: auto !important;
    border: 1px solid #374151 !important;
}

code {
    font-family: Monaco, "Courier New", monospace !important;
    font-size: 14px !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Inline code */
.editor-area #content code:not(pre code) {
    background-color: #f3f4f6 !important;
    color: #dc2626 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    font-family: Monaco, "Courier New", monospace !important;
}

/* Selection styles */
.editor-area #content ::selection {
    background-color: #3b82f6 !important;
    color: white !important;
}

.editor-area #content ::-moz-selection {
    background-color: #3b82f6 !important;
    color: white !important;
}
/* Reset formatting helper */
.formatting-reset {
    all: initial;
    font-size: 16px !important;
    color: #1f2937 !important;
    font-family: Inter, sans-serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Clear formatting visual feedback */
.clearing-formatting {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Double enter paragraph styling */
.double-enter-paragraph {
    margin-top: 1rem;
    margin-bottom: 1rem;
    min-height: 1.5em;
}
.custom-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    overflow: hidden;
}

.custom-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.custom-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.custom-toast-text {
    flex: 1;
    min-width: 0;
}

.custom-toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1f2937;
}

.custom-toast-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.custom-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    flex-shrink: 0;
}

.custom-toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Toast type variations */
.custom-toast-success {
    border-left-color: #10b981;
}

.custom-toast-success .custom-toast-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.custom-toast-error {
    border-left-color: #ef4444;
}

.custom-toast-error .custom-toast-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.custom-toast-warning {
    border-left-color: #f59e0b;
}

.custom-toast-warning .custom-toast-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.custom-toast-info {
    border-left-color: #3b82f6;
}

.custom-toast-info .custom-toast-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Progress bar animation */
.custom-toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-toast {
        right: 20px;
        left: 20px;
        min-width: auto;
        max-width: none;
    }
}
/* Clear formatting visual feedback */
.clearing-formatting {
    animation: formatClear 0.4s ease-out;
}

@keyframes formatClear {
    0% { background-color: rgba(59, 130, 246, 0.1); }
    100% { background-color: transparent; }
}
/* Overlay/disable cho gói thấp hơn */
.pricing-card.disabled-plan {
    opacity: 0.5;
    pointer-events: none; /* Vô hiệu hóa click */
    position: relative;
}

.pricing-card.disabled-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Overlay mờ */
    border-radius: inherit;
    z-index: 1;
}

.pricing-card.disabled-plan * {
    pointer-events: none; /* Vô hiệu hóa tất cả elements bên trong */
}

/* Tùy chỉnh nút cho gói thấp hơn (nếu cần) */
.pricing-card.disabled-plan .btn {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Trạng thái disabled */
.btn-primary:disabled,
.btn-primary.disabled {
    background: #ccc;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Nút nâng cấp nổi bật */
.btn-info {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}
.btn-info:hover {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.45);
}

