:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue: #2563EB;
    --blue-hover: #1d4ed8;
    --blue-light: rgba(37, 99, 235, 0.1);
    --gray-border: #E5E7EB;
    --gray-light: #F3F4F6;
    --gray-text: #6B7280;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease-out;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Page Management */
.page {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    opacity: 0;
    visibility: hidden;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* Page Transition Animations */
.page.slide-out-left {
    animation: slideOutLeft var(--transition-slow) forwards;
}

.page.slide-in-left {
    animation: slideInLeft var(--transition-slow) forwards;
}

.page.slide-out-right {
    animation: slideOutRight var(--transition-slow) forwards;
}

.page.slide-in-right {
    animation: slideInRight var(--transition-slow) forwards;
}

.page.fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 0;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
    letter-spacing: -0.025em;
}

.tagline {
    font-size: 1.125rem;
    color: var(--gray-text);
    font-weight: 400;
}

/* Card */
.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
    font-size: 0.875rem;
}

small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-text);
    line-height: 1.4;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    color: var(--black);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 0.25rem;
    background-color: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

input[type="color"]:hover {
    border-color: var(--blue);
}

input[type="color"]:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}

input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}

textarea {
    resize: vertical;
    min-height: 100px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-border);
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: var(--white);
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    text-decoration: none;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-back {
    background: none;
    border: none;
    color: var(--black);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
}

.btn-back svg {
    transition: transform var(--transition-fast);
}

.btn-back:hover {
    color: var(--blue);
    background-color: rgba(59, 130, 246, 0.08);
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--white);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Page 2: Selection Page */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.page-nav h2 {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.image-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-card {
    border: 2px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--white);
    animation: fadeInUp 0.5s ease-out both;
    position: relative;
}

.image-card:nth-child(1) {
    animation-delay: 0.1s;
}

.image-card:nth-child(2) {
    animation-delay: 0.2s;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-base);
}

.image-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.image-card:hover img {
    transform: scale(1.02);
}

.image-card.selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-light);
}

.image-card.transitioning {
    position: fixed !important;
    z-index: 1000;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Page 2: Container for both views */
.page-2-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* overflow: hidden; Removed to allow scrolling on mobile */
}

.selection-view {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.selection-view.fade-out {
    opacity: 0;
}

.selection-view.hidden {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
    display: none !important;
}

/* Split View (appears after image selection) */
.split-view {
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.1s, visibility 0s 0.1s;
    z-index: 10;
    background-color: var(--white);
}

.btn-back-split {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
    background-color: transparent;
    padding: 0.5rem;
    font-size: 1rem;
}

.btn-back-split:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.split-view>.preview-panel,
.split-view>.settings-panel {
    height: auto;
    min-height: 100%;
}

.split-view>.preview-panel {
    width: 50%;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-view>.settings-panel {
    width: 50%;
    flex: 0 0 50%;
    overflow-y: auto;
}

.split-view.active {
    opacity: 1;
    visibility: visible;
}

.split-view.hidden {
    visibility: hidden;
    pointer-events: none;
}

.preview-panel {
    background-color: var(--gray-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-wrapper {
    max-width: 90%;
    text-align: center;
}

.preview-image-container {
    display: inline-block;
    position: relative;
}

#preview-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    transition: opacity 300ms ease-in-out;
    border: 1px solid var(--gray-border);
    display: block;
    opacity: 0;
}

#preview-image.visible {
    opacity: 1;
}

/* Text Overlay on Preview */
.text-overlay {
    position: absolute;
    color: white;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 90%;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.text-overlay.hidden {
    display: none;
}

/* Text positions */
.text-overlay.top-left {
    top: 5%;
    left: 5%;
    text-align: left;
}

.text-overlay.top-center {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.text-overlay.top-right {
    top: 5%;
    right: 5%;
    text-align: right;
}

.text-overlay.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-overlay.bottom-left {
    bottom: 5%;
    left: 5%;
    text-align: left;
}

.text-overlay.bottom-center {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.text-overlay.bottom-right {
    bottom: 5%;
    right: 5%;
    text-align: right;
}

.dimension-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-text);
    transition: all 300ms ease-in-out;
}

.settings-panel {
    background-color: var(--white);
    padding: 3rem;
    padding-bottom: 6rem;
    overflow-y: auto;
    border-left: 1px solid var(--gray-border);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, opacity 0.6s ease 0.1s;
}

.split-view.active .settings-panel {
    transform: translateY(0);
    opacity: 1;
}

.settings-panel h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.settings-panel h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

/* Text Overlay Section */
.text-overlay-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
}

.text-overlay-section textarea {
    min-height: 80px;
    resize: vertical;
    font-family: var(--font-family);
    line-height: 1.5;
}

/* Modern Color Picker */
.color-picker-container {
    margin-top: 0.5rem;
}

.color-presets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0;
}

.color-preset:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-preset.active {
    border-color: var(--blue);
    border-width: 3px;
    box-shadow: 0 0 0 3px var(--blue-light);
}

/* White color needs a special border */
.color-preset[data-color="#FFFFFF"] {
    border-color: #E5E7EB;
}

.color-preset[data-color="#FFFFFF"].active {
    border-color: var(--blue);
}

/* Custom Color Picker Wrapper */
.color-custom-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-custom-wrapper input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.color-custom-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 2px dashed var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--white);
    min-width: 70px;
    height: 40px;
}

.color-custom-label:hover {
    border-color: var(--blue);
    background-color: var(--blue-light);
}

.color-wheel-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.color-custom-label span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-text);
    line-height: 1;
}

/* Modern Toggle Switch */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toggle-label-wrapper {
    flex: 1;
}

.toggle-label-wrapper label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.toggle-label-wrapper small {
    display: block;
    color: var(--gray-text);
    font-size: 0.75rem;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--blue);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px var(--blue-light);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    background-color: #D1D5DB;
}

.toggle-switch:hover input:checked+.toggle-slider {
    background-color: var(--blue-hover);
}

/* Download Button Spacing */
#download-btn {
    margin-top: 2.5rem;
}

/* Platform Selector */
.platform-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-option {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--white);
}

.platform-option:hover {
    border-color: var(--blue);
    background-color: rgba(37, 99, 235, 0.02);
    transform: translateX(2px);
}

.platform-option.selected {
    border-color: var(--blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.platform-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--black);
}

.platform-dims {
    font-size: 0.875rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Custom Dimensions */
.custom-dims {
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.loading-spinner {
    border: 4px solid var(--gray-border);
    border-radius: 50%;
    border-top: 4px solid var(--blue);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Responsive */

/* Tablet (portrait) and larger phones - Stack vertically */
@media (max-width: 768px) {
    .page {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .page-header {
        padding-top: 1rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    /* Stack split-view vertically on tablets */
    .split-view {
        flex-direction: column;
        top: -1rem;
        left: -1rem;
        right: -1rem;
        bottom: -1rem;
    }

    .split-view>.preview-panel {
        width: 100%;
        flex: none;
        min-height: 40vh;
        padding: 4rem 1.5rem 1.5rem 1.5rem;
    }

    .split-view>.settings-panel {
        width: 100%;
        flex: none;
        height: auto;
        max-width: 100%;
        padding: 1.5rem 1.5rem 4rem 1.5rem;
        border-left: none;
        border-top: 1px solid var(--gray-border);
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .preview-image-container img {
        max-height: 35vh;
        width: auto;
        height: auto;
    }

    .btn-back-split {
        top: 1rem;
        left: 1rem;
        font-size: 0.9375rem;
    }

    .image-selection-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-nav h2 {
        font-size: 1.25rem;
    }

    .preview-wrapper {
        max-width: 100%;
    }

    .preview-image-container {
        max-height: 50vh;
    }

    /* Platform selector */
    .platform-selector {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .platform-option {
        padding: 0.875rem 1rem;
    }

    .platform-option .platform-name {
        font-size: 0.9375rem;
    }

    .platform-option .platform-dims {
        font-size: 0.75rem;
    }

    /* Form controls */
    .form-group label {
        font-size: 0.9375rem;
    }

    /* Color presets */
    .color-presets {
        gap: 0.5rem;
    }

    .color-preset {
        width: 36px;
        height: 36px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .page {
        padding: 0.75rem;
    }

    .card {
        padding: 1.25rem;
    }

    .page-header {
        padding-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.9375rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-back-split {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    .btn-back-split svg {
        width: 18px;
        height: 18px;
    }

    /* Split view adjustments */
    .split-view {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: -1rem;
        width: calc(100% + 2rem);
    }

    .split-view>.preview-panel {
        padding: 3.5rem 1rem 1rem 1rem;
        min-height: 35vh;
    }

    .split-view>.settings-panel {
        padding: 1rem 1rem 3rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .settings-panel * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .preview-image-container img {
        max-height: 30vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .preview-wrapper {
        max-width: 100%;
    }

    .settings-panel h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    /* Page navigation */
    .page-nav {
        margin-bottom: 1rem;
    }

    /* Reduce spacing in sections */
    .text-overlay-section {
        padding: 1rem 0 !important;
        margin-bottom: 0 !important;
        border-top: 1px solid var(--gray-border);
    }

    .page-nav h2 {
        font-size: 1.125rem;
    }

    /* Image selection grid */
    .image-selection-grid {
        gap: 0.875rem;
    }

    /* Platform selector - make it more compact */
    .platform-selector {
        gap: 0.625rem;
    }

    .platform-option {
        padding: 0.875rem;
    }

    .platform-option .platform-name {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .platform-option .platform-dims {
        font-size: 0.6875rem;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .form-group small {
        font-size: 0.75rem;
    }

    /* Stack form rows vertically on mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="url"],
    textarea,
    select {
        font-size: 1rem;
        padding: 0.75rem;
    }

    /* Custom dimensions inputs */
    .custom-dims {
        margin-bottom: 1.5rem;
    }

    /* Text overlay section */
    .text-overlay-section {
        padding: 1.25rem 0;
    }

    .text-overlay-section textarea {
        min-height: 70px;
        font-size: 1rem;
    }

    label,
    small,
    .platform-name,
    .platform-dims {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Color presets - smaller on mobile */
    .color-presets {
        gap: 0.375rem;
        flex-wrap: wrap;
    }

    .color-preset {
        width: 32px;
        height: 32px;
    }

    .color-custom-wrapper {
        width: 32px;
        height: 32px;
    }

    .color-custom-label {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .color-wheel-icon {
        font-size: 1rem;
    }

    /* Position selector */
    .position-grid {
        gap: 0.5rem;
    }

    .position-btn {
        width: 48px;
        height: 48px;
    }

    /* Toggle switch */
    .toggle-group {
        gap: 0.75rem;
    }

    .toggle-label-wrapper label {
        font-size: 0.875rem;
    }

    .toggle-label-wrapper small {
        font-size: 0.75rem;
    }

    /* Font size slider */
    input[type="range"] {
        height: 32px;
    }

    /* Preview */
    .preview-image-container {
        max-height: 40vh;
    }

    .dimension-label {
        font-size: 0.8125rem;
        margin-top: 0.75rem;
    }

    /* Download button */
    #download-btn {
        margin-top: 2rem;
        width: 100%;
    }
}

/* Small mobile phones */
@media (max-width: 360px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .platform-option {
        padding: 0.75rem;
    }

    .color-preset {
        width: 28px;
        height: 28px;
    }

    .color-custom-wrapper,
    .color-custom-label {
        width: 28px;
        height: 28px;
    }

    .position-btn {
        width: 44px;
        height: 44px;
    }
}

/* Accessibility */
.btn:focus-visible,
.btn-back:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.platform-option:focus-visible,
.image-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {

    .btn,
    .platform-option,
    .image-card {
        min-height: 44px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-border);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.logo-text {
    letter-spacing: -0.01em;
}

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

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--blue);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    width: auto;
}

/* GitHub Link */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border-radius: var(--radius-sm);
    color: var(--black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-border);
    outline: none;
}

.github-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.github-link:hover {
    background-color: var(--gray-light);
    border-color: #d1d5db;
}

.github-link svg {
    flex-shrink: 0;
}

.github-text {
    display: inline;
}

.github-stars {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-text);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Enhanced Hero Section */
.hero-enhanced {
    position: relative;
    padding: 10rem 2rem 8rem;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.05) 0%,
            rgba(168, 85, 247, 0.05) 25%,
            rgba(236, 72, 153, 0.05) 50%,
            rgba(251, 146, 60, 0.05) 75%,
            rgba(59, 130, 246, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366F1;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out, pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.badge-sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Typewriter effect */
.typewriter-text {
    color: var(--blue);
    font-weight: 800;
    border-right: 3px solid var(--blue);
    padding-right: 8px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--blue);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--black);
    letter-spacing: -0.03em;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    max-width: 700px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--gray-border);
}

.btn-secondary:hover {
    background: var(--gray-light);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* Hero CTA Button Sizing - Desktop */
.hero-cta .btn-primary {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    min-width: 220px;
}

.hero-cta .btn-secondary {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    min-width: 180px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-border);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Showcase Section */
.showcase {
    padding: 6rem 2rem;
    background: var(--white);
}

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

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.showcase-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-border);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.showcase-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out both;
}

.showcase-card:nth-child(1) {
    animation-delay: 0s;
}

.showcase-card:nth-child(2) {
    animation-delay: 0.1s;
}

.showcase-card:nth-child(3) {
    animation-delay: 0.2s;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue);
}

.showcase-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1200 / 630;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.showcase-card:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.showcase-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.showcase-description {
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.5;
}

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

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    background: var(--white);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) {
    animation-delay: 0s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.5s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}

.feature-icon {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--white);
}

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out both;
}

.step:nth-child(1) {
    animation-delay: 0s;
}

.step:nth-child(2) {
    animation-delay: 0.15s;
}

.step:nth-child(3) {
    animation-delay: 0.3s;
}

.step::after {
    content: '→';
    position: absolute;
    top: 30px;
    right: -1.5rem;
    font-size: 2rem;
    color: var(--gray-border);
    font-weight: 300;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-base);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.benefit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out both;
}

.benefit-card:nth-child(1) {
    animation-delay: 0s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.benefit-description {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Enhanced CTA Section */
.cta-enhanced {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.cta-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(168, 85, 247, 0.08) 50%,
            rgba(236, 72, 153, 0.08) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    z-index: 0;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--black);
    letter-spacing: -0.03em;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--gray-border);
    background-color: var(--white);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    color: var(--gray-text);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Landing Page Responsive */
@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .steps-container {
        gap: 2rem;
    }

    .step::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .github-link {
        width: 100%;
        justify-content: flex-start;
    }

    .github-text {
        display: inline;
    }

    .btn-sm {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

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

    .hero-enhanced {
        padding: 6rem 1.5rem 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .showcase {
        padding: 4rem 1.5rem;
    }

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

    .features {
        padding: 4rem 1.5rem;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .how-it-works {
        padding: 4rem 1.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .benefits {
        padding: 4rem 1.5rem;
    }

    .cta-enhanced {
        padding: 5rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.125rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .hero-enhanced {
        padding: 5rem 1rem 4rem;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .showcase {
        padding: 3rem 1rem;
    }

    .features {
        padding: 3rem 1rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .feature-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    .how-it-works {
        padding: 3rem 1rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.125rem;
    }

    .step-description {
        font-size: 0.875rem;
    }

    .benefits {
        padding: 3rem 1rem;
    }

    .benefit-card {
        padding: 2rem 1.5rem;
    }

    .benefit-icon {
        font-size: 2rem;
    }

    .benefit-title {
        font-size: 1.125rem;
    }

    .benefit-description {
        font-size: 0.875rem;
    }

    .cta-enhanced {
        padding: 4rem 1rem;
    }

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

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .cta-note {
        font-size: 0.8125rem;
    }

    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    border-left: 4px solid #10b981;
    animation: slideIn 0.3s ease-out;
}

.toast-icon {
    font-size: 20px;
    color: #10b981;
}

.toast-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.toast-text strong {
    font-weight: 700;
    color: #1a1a1a;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* App Top Bar Styles */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
}

.topbar-logo .logo-icon {
    font-size: 24px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: #2563eb;
}

.topbar-feedback-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.topbar-btn {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.topbar-btn:hover {
    background: #1d4ed8;
}

/* Guest Info Banner Styles */
.guest-info-banner {
    position: fixed;
    top: 49px;
    left: 0;
    right: 0;
    z-index: 998;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.info-icon {
    font-size: 18px;
}

.info-text {
    font-size: 14px;
    color: #78350f;
}

.info-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

.info-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #78350f;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    margin-left: auto;
}

.info-close:hover {
    color: #451a03;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Adjust page content to account for topbar and info banner */
body:has(.guest-info-banner) .page {
    top: 105px;
    height: calc(100% - 105px);
    min-height: calc(100vh - 105px);
}

@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .app-topbar {
        padding: 12px 16px;
    }

    .topbar-logo {
        font-size: 16px;
    }

    .topbar-logo .logo-icon {
        font-size: 20px;
    }

    .topbar-actions {
        gap: 12px;
    }

    .topbar-link {
        font-size: 13px;
    }

    .topbar-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .guest-info-banner {
        padding: 10px 16px;
        font-size: 13px;
    }

    .info-text {
        font-size: 13px;
    }

    body:has(.guest-info-banner) .page {
        padding-top: 95px;
    }
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease, visibility 0.3s ease;
}

.feedback-modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feedback-modal.active .feedback-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.feedback-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.feedback-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.feedback-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.feedback-star {
    font-size: 32px;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.feedback-star:hover,
.feedback-star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.feedback-success-icon {
    font-size: 64px;
    color: #10b981;
    text-align: center;
    margin-bottom: 16px;
}

#feedback-success-view {
    text-align: center;
}

#feedback-success-view .feedback-modal-title {
    margin-top: 16px;
}

#feedback-success-view .feedback-modal-subtitle {
    margin-bottom: 24px;
}