/* Unified Mobile/Desktop Nav Menu */
@media (max-width: 991px) {
    .nav-links {
        position: absolute;
        top: 72px;
        right: 0;
        width: 220px;
        background: #fff;
        box-shadow: 0 8px 32px 0 rgba(30, 41, 59, 0.10);
        border-radius: 0 0 0 18px;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1rem 1rem 1rem;
        display: none;
        gap: 0.5rem;
    }

    .nav-links.show-mobile-menu {
        display: flex;
    }

    .nav-link,
    .btn-get-started {
        width: 100%;
        margin: 0.2rem 0;
        text-align: left;
    }
}


.h100vh {
    min-height: calc(100vh - 250px);
}

ul li {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 8px;
    color: var(--gray-text);
}

/* Contact Page Custom Styles */
/* Website Theme: Contact Page Card Styles */
.contact-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem 2rem 2rem;
}

/* .contact-form-card {
    background: var(--gray-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(56,189,248,0.04);
    padding: 2rem;
    margin-bottom: 1.5rem;
} */
/* .contact-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(43,140,238,0.04);
    padding: 2rem;
    margin-bottom: 1.5rem;
} */
.contact-title {
    font-weight: 600;
    font-size: 1.5REM;
    margin-bottom: 0.5rem;
    color: #18181b;
}

.contact-title-underline {
    width: 40px;
    height: 3px;
    background: var(--primary-navy);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.contact-btn {
    background: var(--primary-navy);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 0;
    border-radius: 4px;
    border: none;
    transition: background 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(43, 140, 238, 0.08);
}

.contact-btn:hover,
.contact-btn:focus {
    background: var(--navy-hover);
    color: #fff;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: #2b8cee;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(255, 102, 0, 0.07);
}

.contact-detail-label {
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: #18181b;
}

.contact-detail-value {
    color: var(--gray-text);
    font-size: 1rem;
}

.contact-desc {
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

:root {
    --primary-navy: #2B8CEE;
    --navy-hover: #116fcc;
    --bg-light: #f4f7f6;
    --text-dark: #18181b;
    --border-gray: #e5e7eb;
    --accent-blue: #2B8CEE;
    --primary-gradient: linear-gradient(135deg, #116fcc 0%, #2B8CEE 100%);
    --auth-bg: #f0f2f5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary: #2B8CEE;
    --accent: #2B8CEE;
    --gray-bg: #f7f9fb;
    --gray-border: #e5e7eb;
    --gray-text: #65758C;
    --card-shadow: 0 4px 24px 0 rgba(30, 41, 59, 0.06);
    --radius: 18px;
    --transition: 0.18s cubic-bezier(.4, 0, .2, 1);
    --primary: #2B8CEE;
    --accent: #2B8CEE;
    --gray-bg: #f7f9fb;
    --gray-border: #e5e7eb;
    --gray-text: #65758C;
    --card-shadow: 0 4px 24px 0 rgba(30, 41, 59, 0.06);
    --radius: 18px;
    --transition: 0.18s cubic-bezier(.4, 0, .2, 1);
}

html,
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #18181b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.0em;
}

body {
    background: var(--gray-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\\";
    color: var(--gray-text);
    padding: 0 15px;
}

.breadcrumb-item.active {
    color: var(--primary-navy);
}

.breadcrumb-item a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--primary-navy);
}


.selection-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-select {
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: white;
}

.form-control {
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: white;
}

.dynamic-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;

}

.dynamic-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.dynamic-field-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dynamic-field-group label {
    font-weight: 600;
}

/* Collapsible Field Sections */
.field-collapse-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.field-collapse-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.field-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid transparent;
}

.field-collapse-header:hover {
    background: #f1f5f9;
}

.field-collapse-header.active {
    background: #eff6ff;
    border-bottom-color: #e5e7eb;
}

.field-collapse-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-type-badge.text {
    background: #dbeafe;
    color: #1e40af;
}

.field-type-badge.image {
    background: #fce7f3;
    color: #be185d;
}

.chevron-icon {
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.field-collapse-header.active .chevron-icon {
    transform: rotate(180deg);
}

.field-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.field-collapse-body.expanded {
    max-height: 2000px;
    padding: 16px;
}

.dynamic-upload-box {
    border: 2px dashed #0182FC;
    padding: 20px;
    background-color: #F0F7FE;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.dynamic-upload-box:hover {
    border-color: var(--accent-blue);
}

.font-controls-row {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.font-control-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-control-label {
    font-size: 0.75rem;
    color: #0F172A;
    font-weight: 600;
}

.font-input,
.font-select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.field-input {
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    outline: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}



/* Responsive Layout Adjustments */
.app-container {
    width: 100%;
    max-width: 1400px;
    padding-bottom: 20px;
    /* Space for fixed elements */
    position: relative;
    margin: 0 auto;
}

.editor-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: start;
    flex-wrap: wrap;
    /* Allow wrapping for responsiveness */
}

/* Preview Area */
.preview-area {
    flex: 1 1 600px;
    max-width: 800px;
    width: 100%;
}

.canvas-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#passCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sidebar Controls */
.sidebar-controls {
    flex: 1 1 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-num {
    background: var(--primary-navy);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.step-text span {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.step-arrow {
    color: #ccc;
    font-weight: bold;
    font-size: 12px;
}

/* Photo Group Styling */
.photo-group {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.font-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.font-control-group {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.font-control-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.font-select,
.font-input {
    padding: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 14px;
    min-height: 40px;
    outline: none;
    background: white;
}

.font-select:focus,
.font-input:focus {
    border-color: var(--accent-blue);
}

/* Alignment Controls */
.alignment-controls {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.btn-align {
    flex: 1;
    padding: 8px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-align:hover {
    background: #e9e9e9;
}

.btn-align.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.upload-icon {
    text-align: center;
}

.upload-icon i {
    font-size: 2.2rem;
    color: #ff4757;
}

/* Transformer Box Styles */
.field-marker {
    position: absolute;
    /* Blue outline like the reference */
    border: 1px solid #2B8CEE;
    /* Dashed white inner line for contrast if needed, or just the blue outline */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(43, 140, 238, 0.1);
    cursor: move;
    z-index: 100 !important;
    display: none;
    /* Hidden by default, shown when active/rendering */
}

.field-marker.active {
    display: block !important;
}

/* Ensure at least a transparent hit area is always there if we want hover effects, 
   but for now we are using explicit render. 
   Actually, previous logic showed all markers. 
   Let's keep showing all markers but maybe less obtrusive until selected?
   User asked for "box when public select...". 
   Let's make non-active ones transparent but clickable? 
*/

.field-marker {
    display: block !important;
    /* Always show for now so they can be grabbed */
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #2B8CEE;
    border: 1px solid #fff;
    border-radius: 0;
    z-index: 101;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Handle Positions */
.resize-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.resize-handle.n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.resize-handle.ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-handle.e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.resize-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.resize-handle.s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.resize-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-handle.w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.plus-badge {
    position: absolute;
    bottom: 30%;
    right: 15%;
    background: white;
    color: #ff4757;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff4757;
}

#photoPreview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#photoPreview.visible {
    display: block;
}

#userName {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#userName:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.btn-download {
    width: 100%;
    height: 50px;
    background-color: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 8px rgba(43, 140, 238, 0.08);
}

.btn-download:hover {
    background-color: var(--navy-hover);
    color: white;
}

.btn-download:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 140, 238, 0.4);
    border-color: var(--primary-navy);
    background-color: var(--navy-hover);
}

/* Fixed Elements Positioning */
.app-footer {
    width: 100%;
    background: transparent;
    padding: 20px 0;
    margin-top: 40px;
    margin-bottom: 100px;
    /* Space for fixed ad banner */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
}

.powered-by {
    font-size: 0.85rem;
    color: #666;
}

.powered-by a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}


/* .contact-card {
    padding: 6px 15px;

    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
} */

.contact-label {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contact-number {
    font-size: 1rem;
    font-weight: 700;
}

.contact-number-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* .contact-number-link:hover .contact-number {
    color: #ff4757;
    font-weight: 800;
} */

/* .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.15);
    border-color: #ff4757;
} */

.ad-banner-space {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90;
}

/* Media Queries for True Responsiveness */
@media (max-width: 768px) {
    /* body {
        padding: 20px 15px;
    } */

    .app-container {
        padding-bottom: 20px;
        /* Reduced since footer is now in flow */
    }

    .editor-layout {
        gap: 25px;
    }

    .preview-area {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .sidebar-controls {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .app-footer {
        margin-bottom: 100px;
        /* Space for the fixed ad banner */
    }

    .contact-card {
        padding: 8px 15px;
    }

    .contact-label {
        font-size: 0.9rem;
    }

    .contact-number {
        font-size: 1.1rem;
    }

    .steps-indicator {
        overflow-x: auto;
        padding: 8px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .footer-content {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .control-row {
        flex-direction: column;
        gap: 15px;
    }

    .photo-upload-section {
        width: 100%;
    }

    .upload-box {
        width: 100%;
        height: 140px;
    }

    .app-footer {
        padding: 10px;
    }
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
}

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

.modal-header h3 {
    color: var(--primary-navy);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cropper-container {
    width: 100%;
    max-height: 50vh;
    overflow: hidden;
    margin-bottom: 20px;
    background: #eee;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cropper-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

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

.btn-secondary {
    background: #eee;
    color: #333;
}

/* Info Pages Styling */
.info-page-container {
    /* max-width: 800px; */
    margin: 40px auto;
    padding: 0 20px;
}

.info-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.info-content h1 {
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.info-content h2 {
    color: var(--primary-navy);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.info-content p {
    margin-bottom: 15px;
    color: #555;
}

.info-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 8px;
    color: #555;
}

.back-home {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
}

.back-home:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-content {
        padding: 20px;
    }

    .info-content h1 {
        font-size: 2rem;
    }

    .footer-content {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Contact Page Styles */
.contact-methods-container {
    margin-top: 30px;
}

.contact-item-container {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    margin-left: -20px;
    width: fit-content;
}

.contact-link:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 30px;
}

.contact-icon-phone {
    color: #ff4757;
}

.contact-icon-whatsapp {
    color: #25D366;
}

.contact-icon-email {
    color: #4285F4;
}

/* Image Upload Workflow Styles */
.image-field-filled {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.field-preview-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.field-actions {
    display: flex;
    gap: 10px;
}

.btn-action-small {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-action-small:hover {
    background: #f8f9fa;
    border-color: var(--primary-navy);
}

.btn-remove {
    color: #ff4757;
}

.btn-remove:hover {
    background: #fff5f6;
    border-color: #ff4757;
}

/* View Switching */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Category Grid View */
.view-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.category-card {
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-navy); */
}

.category-image {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image .placeholder {
    font-size: 3rem;
    color: var(--primary-navy);
}

.category-name {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Template Grid View */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.template-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.template-info {
    padding: 15px;
    text-align: center;
}

.template-name {
    font-weight: 600;
    color: var(--primary-navy);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f1f3f4;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #e4e6e8;
}

/* Editor View Adjustments */
.editor-view {
    width: 100%;
}

/* Authentication Pages (Login, Forgot Password, Reset Password) */
body.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 20px;
    position: relative;
    /* overflow: hidden; */
}

body.auth-body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

body.auth-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

.auth-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
}

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

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15);
}

.form-input::placeholder {
    color: #94a3b8;
}

.message-box,
.error-message {
    font-size: 0.9rem;
    margin: 1.5rem 0;
    display: none;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.error,
.error-message {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #f87171;
}



/* Utility Classes */
.relative {
    position: relative;
}

.pr-40 {
    padding-right: 50px;
}

.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 54px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.password-toggle-icon:hover {
    color: var(--primary-navy);
}

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

.text-right {
    text-align: right;
}

.mt-15 {
    margin-top: 1.5rem;
}

.mb-6 {
    margin-bottom: 2rem;
}

.auth-link {
    color: #64748b;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.auth-link-blue {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-link-blue:hover {
    opacity: 0.8;
}

.card {
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    border: 1px solid var(--border-gray);
    margin-bottom: 30px;

}

.card-body {
    padding: 10px;
}



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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 2px 8px 0 rgba(30, 41, 59, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0px 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: #000000;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    width: 35px;
    height: 40px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 0.5rem;
}

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

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.btn-get-started {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
    margin-left: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-get-started:hover,
.btn-get-started:focus {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(56, 189, 248, 0.12);
}

/* Hero */
.hero {
    /* background: linear-gradient(120deg, #e0e7ff 0%, #f0f9ff 100%); */
    padding: 0;
    background-image: url('../img/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    /* border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: 0 8px 32px 0 rgba(30,41,59,0.06); */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1 1 350px;
    min-width: 300px;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title .accent {
    color: var(--primary);
}

.hero-desc {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 420px;

}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 500;
    font-size: 15px;
    border: none;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.06);
    text-decoration: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(56, 189, 248, 0.12);
}

.btn-secondary {
    background: #fff;
    color: #0F172A
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary);
    color: #fff;
}

.hero-images {
    flex: 1 1 350px;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
}

.hero-img-card {
    width: 120px;
    height: 160px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-img-card:nth-child(1) {
    left: 0;
    top: 0;
    z-index: 2;
    transform: rotate(-6deg);
}

.hero-img-card:nth-child(2) {
    left: 60px;
    top: 30px;
    z-index: 3;
    transform: rotate(4deg);
}

.hero-img-card:nth-child(3) {
    left: 120px;
    top: 0;
    z-index: 1;
    transform: rotate(-2deg);
}

.hero-img-card:nth-child(4) {
    left: 180px;
    top: 40px;
    z-index: 4;
    transform: rotate(6deg);
}

.hero-img-card:nth-child(5) {
    left: 240px;
    top: 10px;
    z-index: 2;
    transform: rotate(-3deg);
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 60%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6bbc7;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

/* Categories */
.section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--gray-text);
    font-size: 15px;
    margin-bottom: 1.5rem;
}

.categories-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.category-card {
    border-radius: var(--radius);
    flex: 1 1 150px;
    min-width: 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
    cursor: pointer;
    position: relative;
    padding: 0;
    overflow: visible;
}

.category-card:hover,
.category-card:focus {
    /*   border-color: var(--primary);*/
    transform: translateY(-2px) scale(1.03);
}

.category-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9 60%, #e0e7ff 100%);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #b6bbc7;
}

.category-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #000000;
    width: 100%;
    padding: 0 4px;
    word-wrap: break-word;
}

.category-count {
    font-size: 0.80rem;
    color: var(--gray-text);
    width: 100%;
    padding: 0 4px;
    white-space: nowrap;
    overflow: visible;
}

.view-all-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    float: right;
    transition: color var(--transition);
    white-space: nowrap;
}

.view-all-link:hover,
.view-all-link:focus {
    color: var(--accent);
    text-decoration: underline;
}

/* Popular Templates */
.templates-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.template-box {
    padding: 10px 15px;
    width: 100%;
}


.template-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-border);
    flex: 1 1 230px;
    min-width: 258px;
    max-width: 309px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
    position: relative;
    cursor: pointer;
}

.template-card:hover,
.template-card:focus {
    box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.10);
    /* border-color: var(--primary); */
    transform: translateY(-2px) scale(1.03);
}


.template-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6bbc7;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    max-height: 300px;
    min-height: 300px;
    overflow: hidden;
}

.template-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: fill;
}

/* Download Quality Selection Modal */
.download-modal {
    max-width: 500px !important;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.quality-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.quality-card:hover {
    border-color: var(--primary);
    background: #f7fafc;
}

.quality-card.active {
    border-color: var(--primary);
    background: #ebf8ff;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.1);
}

.quality-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.quality-card.active .quality-icon {
    background: var(--primary);
    color: white;
}

.quality-info {
    flex: 1;
}

.quality-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.quality-desc {
    font-size: 0.9rem;
    color: #718096;
}

.modal-body p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 20px;
}


.template-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #000000;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.template-type {
    font-size: 0.80rem;
    color: var(--gray-text);
    margin-bottom: 0.2rem;

}

.badge-free {
    background: #e0f2fe;
    color: #2B8CEE;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.18em 0.7em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--gray-border);
    margin-top: 3rem;
    padding: 2rem 0 1rem 0;
    font-size: 1rem;
    color: var(--gray-text);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

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

.footer-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--primary);
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000000;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 35px;
    height: 40px;
    border-radius: 6px;
    display: inline-block;
    margin-right: 0.3rem;
}

.footer-copy {
    text-align: center;
    color: var(--gray-text);
    font-size: 13px;
    margin-top: 0.5rem;
}

.social-link a {
    color: var(--gray-text);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color var(--transition);
}

.social-link a:hover,
.social-link a:focus {
    color: var(--primary);
}

.search-inline {
    position: relative;
    margin-left: 3rem;
}

.search-inline .fa-search {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--gray-text);
}

/* Search bar */
.search-bar {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.4rem 1.2rem;
    border: 1.5px solid var(--gray-border);
    font-size: 1rem;
    width: 390px;
    padding-left: 2.5rem;
    max-width: 100%;
    outline: none;

    transition: border var(--transition), box-shadow var(--transition);
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.08);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }

    .hero-images {
        /* margin-top: 2rem; */
        /* min-height: 200px; */
        position: relative;
        /* width: 100%; */
        justify-content: flex-start;
    }

    .hero-img-card {
        position: static;
        transform: none !important;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {

    .header-inner {
        flex-direction: row;
        align-items: center;

        gap: 1rem;
    }


    .footer-row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .hero-text {
        flex: 1 1 260px;
        min-width: 300px;
        max-width: 600px;
    }

    .nav-links {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .btn-get-started {
        margin-left: 0;
        margin-top: 0.5rem;
        white-space: nowrap;
    }

    .container-max {
        padding: 0 0.5rem;
    }

    .categories-row,
    .templates-row {
        gap: 1rem;
    }

    .category-card {
        max-width: 50%;
        min-width: 46%;
    }


    .template-card {
        max-width: 100%;
        min-width: 100%;
    }

    .search-bar {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .site-header,
    .site-footer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}