/* ====================================
   Dashboard & Editor Styles
   ==================================== */

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--dark-color);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.sidebar-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray-400);
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.sidebar-menu a.active {
    background: var(--gradient-primary);
}

.sidebar-menu i {
    font-size: 1.125rem;
    width: 24px;
}

.sidebar-user {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-avatar i {
    color: white;
    font-size: 1.25rem;
}

.sidebar-user-info h5 {
    color: white;
    font-size: 0.875rem;
    margin: 0 0 4px;
}

.sidebar-user-info p {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--gray-100);
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark-color);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card Item */
.card-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-item-preview {
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-item-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-item-status.paid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-item-status.unpaid {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.card-item-info {
    padding: 20px;
}

.card-item-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.card-item-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.card-item-actions {
    display: flex;
    gap: 8px;
}

.card-item-actions .btn {
    flex: 1;
}

/* Create New Card */
.create-card {
    background: white;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.create-card:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.create-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.create-card:hover .create-card-icon {
    background: var(--gradient-primary);
}

.create-card-icon i {
    font-size: 2rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.create-card:hover .create-card-icon i {
    color: white;
}

.create-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.create-card p {
    color: var(--gray-500);
    margin: 0;
}

/* ====================================
   Card Editor Styles
   ==================================== */
.editor-container {
    display: flex;
    min-height: 100vh;
}

/* Editor Sidebar */
.editor-sidebar {
    width: 400px;
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.editor-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--dark-color);
}

.editor-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.editor-back-btn:hover {
    color: var(--primary-color);
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Photo Upload */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--gray-300);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview i {
    font-size: 2rem;
    color: var(--gray-400);
}

.photo-upload-btn {
    flex: 1;
}

.photo-upload-btn input {
    display: none;
}

.photo-upload-btn label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.photo-upload-btn label:hover {
    background: var(--gray-200);
}

/* Template Selector */
.template-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.template-option {
    aspect-ratio: 3/4;
    border-radius: 12px;
    border: 3px solid var(--gray-200);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.template-option:hover {
    border-color: var(--gray-400);
}

.template-option.selected {
    border-color: var(--primary-color);
}

.template-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.template-option-inner {
    width: 100%;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--dark-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--dark-color);
}

.custom-color-picker {
    position: relative;
    overflow: hidden;
}

.custom-color-picker i {
    font-size: 14px;
    pointer-events: none;
}

/* Editor Actions */
.editor-actions {
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Editor Preview */
.editor-preview {
    flex: 1;
    margin-left: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.preview-wrapper {
    max-width: 400px;
    width: 100%;
}

.preview-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

/* Template Specific Styles */
/* Template 1 - Modern */
.template-1 .preview-header {
    height: 120px;
    background: var(--gradient-primary);
    position: relative;
}

.template-1 .preview-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    background: var(--gray-200);
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.template-1 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-1 .preview-avatar i {
    font-size: 3rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-1 .preview-body {
    padding: 80px 32px 32px;
    text-align: center;
}

.template-1 .preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.template-1 .preview-designation {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.template-1 .preview-company {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.template-1 .preview-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-1 .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 10px;
    text-align: left;
}

.template-1 .contact-item i {
    width: 24px;
    color: var(--primary-color);
}

.template-1 .contact-item span {
    font-size: 0.875rem;
    color: var(--dark-color);
    word-break: break-all;
}

.template-1 .preview-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.template-1 .social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.template-1 .social-link:hover {
    background: var(--gradient-primary);
    color: white;
}

/* Template 2 - Elegant Dark */
.template-2 {
    background: #1a1a2e;
    color: white;
}

.template-2 .preview-inner {
    padding: 32px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 16px;
    border-radius: var(--border-radius);
}

.template-2 .preview-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    margin: 0 auto 24px;
    overflow: hidden;
    background: rgba(255, 215, 0, 0.1);
}

.template-2 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-2 .preview-avatar i {
    font-size: 2.5rem;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-2 .preview-body {
    text-align: center;
}

.template-2 .preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.template-2 .preview-designation {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.template-2 .preview-company {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.template-2 .divider {
    width: 60px;
    height: 2px;
    background: #ffd700;
    margin: 0 auto 24px;
}

.template-2 .preview-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-2 .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.template-2 .contact-item i {
    color: #ffd700;
    width: 20px;
}

.template-2 .contact-item span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.template-2 .preview-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.template-2 .social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    transition: var(--transition);
}

.template-2 .social-link:hover {
    background: #ffd700;
    color: #1a1a2e;
}

/* Template 3 - Minimal */
.template-3 {
    background: white;
}

.template-3 .preview-body {
    padding: 48px 32px;
}

.template-3 .preview-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    margin: 0 auto 24px;
    overflow: hidden;
    background: var(--gray-100);
}

.template-3 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-3 .preview-avatar i {
    font-size: 2.5rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-3 .preview-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 4px;
    text-align: center;
}

.template-3 .preview-designation {
    font-size: 1rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 32px;
}

.template-3 .divider {
    width: 40px;
    height: 4px;
    background: var(--dark-color);
    margin: 0 auto 32px;
}

.template-3 .preview-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.template-3 .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.template-3 .contact-item i {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.template-3 .contact-item span {
    font-size: 0.75rem;
    color: var(--gray-500);
    word-break: break-all;
}

.template-3 .preview-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.template-3 .social-link {
    color: var(--gray-500);
    font-size: 1.25rem;
    transition: var(--transition);
}

.template-3 .social-link:hover {
    color: var(--dark-color);
}

/* Template 4 - Creative */
.template-4 {
    background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.template-4::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

.template-4::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.template-4 .preview-body {
    padding: 48px 32px;
    position: relative;
    z-index: 1;
}

.template-4 .preview-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.template-4 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-4 .preview-avatar i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-4 .preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.template-4 .preview-designation {
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 4px;
}

.template-4 .preview-company {
    font-size: 0.875rem;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 32px;
}

.template-4 .preview-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-4 .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.template-4 .contact-item i {
    width: 24px;
}

.template-4 .contact-item span {
    font-size: 0.875rem;
    word-break: break-all;
}

.template-4 .preview-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.template-4 .social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.template-4 .social-link:hover {
    background: white;
    color: #f43f5e;
}

/* Template 5 - Dark Mode */
.template-5 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.template-5 .preview-body {
    padding: 48px 32px;
}

.template-5 .preview-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin: 0 auto 24px;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.5);
}

.template-5 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-5 .preview-avatar i {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-5 .preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.template-5 .preview-designation {
    font-size: 1rem;
    color: var(--primary-light);
    text-align: center;
    margin-bottom: 4px;
}

.template-5 .preview-company {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 32px;
}

.template-5 .preview-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-5 .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-5 .contact-item i {
    width: 24px;
    color: var(--primary-color);
}

.template-5 .contact-item span {
    font-size: 0.875rem;
    color: var(--gray-300);
    word-break: break-all;
}

.template-5 .preview-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.template-5 .social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.template-5 .social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Template 6 - Gradient */
.template-6 {
    background: var(--gradient-primary);
    color: white;
}

.template-6 .preview-body {
    padding: 48px 32px;
}

.template-6 .preview-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.template-6 .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-6 .preview-avatar i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.template-6 .preview-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.template-6 .preview-designation {
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 4px;
}

.template-6 .preview-company {
    font-size: 0.875rem;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 32px;
}

.template-6 .preview-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.template-6 .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.template-6 .contact-item i {
    width: 24px;
}

.template-6 .contact-item span {
    font-size: 0.875rem;
    word-break: break-all;
}

.template-6 .preview-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.template-6 .social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: var(--transition);
}

.template-6 .social-link:hover {
    background: white;
    color: var(--primary-color);
}

/* ====================================
   Auth Pages
   ==================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.auth-branding {
    position: relative;
    z-index: 1;
    color: white;
}

.auth-branding h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.auth-branding h1 i {
    margin-right: 12px;
}

.auth-branding p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.auth-features li i {
    font-size: 1.25rem;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
}

.auth-box {
    max-width: 400px;
    width: 100%;
}

.auth-box h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.auth-box p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid;
}

.social-btn.google {
    background: white;
    border-color: var(--gray-200);
    color: var(--dark-color);
}

.social-btn.google:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.social-btn.google i {
    color: #db4437;
}

.social-btn.facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-btn.facebook:hover {
    background: #166fe5;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
}

.auth-footer p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ====================================
   Payment Page
   ==================================== */
.payment-container {
    min-height: 100vh;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.payment-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.payment-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.payment-icon i {
    font-size: 2.5rem;
    color: white;
}

.payment-card h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.payment-card p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.payment-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.payment-amount .currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-amount .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-color);
}

.payment-features {
    text-align: left;
    margin-bottom: 32px;
}

.payment-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.payment-features li:last-child {
    border-bottom: none;
}

.payment-features li i {
    color: var(--primary-color);
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.payment-secure i {
    color: #10b981;
}

/* Success Page */
.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ====================================
   Responsive Dashboard
   ==================================== */
@media (max-width: 991px) {
    .sidebar {
        width: 80px;
        padding: 16px;
    }
    
    .sidebar-brand h3,
    .sidebar-menu span,
    .sidebar-user-info {
        display: none;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 14px;
    }
    
    .sidebar-menu i {
        margin: 0;
    }
    
    .sidebar-user {
        left: 16px;
        right: 16px;
        justify-content: center;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .editor-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .editor-preview {
        margin-left: 0;
        min-height: 60vh;
    }
    
    .editor-container {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .top-bar {
        padding: 16px 20px;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 40px 24px;
    }
    
    .auth-right {
        padding: 40px 24px;
    }
    
    .payment-card {
        padding: 32px 24px;
    }
}
