/* PAGE-DOWNLOAD-WIZARD.CSS - Download Wizard Layout & Styling */

@font-face {
    font-family: 'Aliceregular';
    src: url('../fonts/alice-fontfacekit/web%20fonts/alice_regular_macroman/Alice-Regular-webfont.woff2') format('woff2'),
         url('../fonts/alice-fontfacekit/web%20fonts/alice_regular_macroman/Alice-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --body-text-color: rgba(255, 255, 255, 0.72);
    --subtext-color: rgba(255, 255, 255, 0.45);
    --border-color: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(18, 18, 20, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --item-bg: rgba(255, 255, 255, 0.035);
    --item-hover-bg: rgba(255, 255, 255, 0.07);
    --accent-color: #64b5f6;
    --accent-rgb: 100, 181, 246;
    --font-serif: 'Aliceregular', 'Alice', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-theme="light"],
html.theme-light,
body.theme-light {
    --bg-color: #ffffff;
    --text-color: #111827;
    --body-text-color: #374151;
    --subtext-color: #6b7280;
    --border-color: rgba(0, 0, 0, 0.10);
    --card-bg: #f9fafb;
    --card-border: rgba(0, 0, 0, 0.08);
    --item-bg: #f3f4f6;
    --item-hover-bg: #e5e7eb;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.wizard-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: clamp(2.5rem, 5vh, 4rem) 1.5rem 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.wizard-card {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(12px);
    animation: wizardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
    position: relative;
    z-index: 10;
}

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

/* Header */
.wizard-header-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.wizard-header {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.wizard-subheader {
    font-size: 0.95rem;
    color: var(--subtext-color);
    line-height: 1.5;
}

/* Step Progress Bar */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0 1.25rem 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
    position: relative;
}

.stepper-track {
    position: absolute;
    top: 36%;
    left: 45px;
    right: 45px;
    height: 2px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.stepper-track-line {
    position: absolute;
    inset: 0;
    background: var(--border-color);
}

.stepper-track-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-color);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    position: relative;
    z-index: 3;
    cursor: pointer;
    user-select: none;
    border: none;
    transition: all 0.25s ease;
}

.stepper-step:hover {
    border-color: transparent;
}

.stepper-step__node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--item-bg);
    border: 2px solid var(--subtext-color);
    color: var(--subtext-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.stepper-step__node img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #000000;
}

.stepper-step.has-logo .stepper-step__node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000000 !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
}

.stepper-step.is-selected-zone .stepper-step__node {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #000000 !important;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
}

.stepper-step.is-selected-zone .stepper-step__node svg {
    stroke: #000000;
}

.stepper-step__label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--subtext-color);
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Active and Completed Stepper States */
.stepper-step.is-active .stepper-step__node {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

.stepper-step.is-active .stepper-step__label {
    color: var(--text-color);
}

.stepper-step.is-completed .stepper-step__node {
    background: #000000;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.stepper-step.is-completed .stepper-step__label {
    color: var(--text-color);
}

/* Search Box Component */
.wizard-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--item-bg);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.75rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.wizard-search-box:focus-within {
    background: var(--card-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wizard-search-box .search-icon {
    color: var(--subtext-color);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.wizard-search-box:focus-within .search-icon {
    color: var(--text-color);
}

.wizard-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
}

.wizard-search-input::placeholder {
    color: var(--subtext-color);
}

.wizard-search-clear {
    background: transparent;
    border: none;
    color: var(--subtext-color);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.wizard-search-clear:hover {
    color: var(--text-color);
}

/* Step Views Container */
.wizard-step-view {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.wizard-step-view.is-visible {
    display: flex;
    animation: stepSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wizard-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--body-text-color);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-back-btn:hover {
    background: var(--item-hover-bg);
    color: var(--text-color);
    border-color: var(--subtext-color);
}

/* Card Lists & Grids (Single Column Divider List) */
.wizard-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.wizard-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, padding 0.2s ease;
    gap: 1.15rem;
    text-align: left;
}

.wizard-item-card:last-child {
    border-bottom: none;
}

.wizard-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    border-radius: 8px;
    transform: none;
    box-shadow: none;
}

.wizard-item-card.is-selected {
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 8px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    box-shadow: none;
}

.wizard-item-card__left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.wizard-item-card.is-disabled {
    opacity: 0.72;
}

.wizard-circle-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wizard-circle-thumb--logo {
    background-color: #000000 !important;
}

.wizard-circle-thumb--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
}

.wizard-circle-thumb--no-data {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--subtext-color);
}

.wizard-circle-thumb--no-data svg {
    width: 22px;
    height: 22px;
    opacity: 0.75;
}

.wizard-item-card__icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}

.wizard-item-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.wizard-item-card__title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-item-card__desc {
    font-size: 0.8rem;
    color: var(--subtext-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-item-card__arrow {
    color: var(--subtext-color);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wizard-item-card:hover .wizard-item-card__arrow {
    color: var(--text-color);
    transform: translateX(3px);
}

/* Prominent Full Circle Skip Card (Step 2) */
.full-circle-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, padding 0.2s ease;
    gap: 1.15rem;
}

.full-circle-banner-card:hover {
    background: rgba(var(--accent-rgb), 0.06);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    border-radius: 8px;
    transform: none;
    box-shadow: none;
}

.full-circle-banner-card__left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.full-circle-banner-card__badge {
    padding: 0.25rem 0.6rem;
    background: var(--accent-color);
    color: #000000;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Step 3: Selection Summary Bar */
.wizard-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--item-bg);
    border: none;
    border-radius: 16px;
    gap: 1rem;
}

.wizard-selection-summary__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-selection-summary__target {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.wizard-selection-summary__pill {
    padding: 0.2rem 0.55rem;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-color);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.wizard-change-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--body-text-color);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-change-btn:hover {
    background: var(--item-hover-bg);
    color: var(--text-color);
}

/* Step 3: Format Buttons & App Cards */
.wizard-options-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-options-subtitle {
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--subtext-color);
}

/* Apps Grid in Wizard */
.wizard-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 1.4rem 0.8rem;
    justify-items: center;
    width: 100%;
}

.wizard-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    user-select: none;
}

.wizard-app-card:hover {
    transform: none;
}

.wizard-app-card:hover .wizard-app-icon-wrap {
    filter: brightness(1.1);
}

.wizard-app-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-app-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--body-text-color);
    text-align: center;
    line-height: 1.2;
}

.wizard-app-card:hover .wizard-app-label {
    color: var(--text-color);
}

/* Formats Grid (Single Column Divider List Style) */
.wizard-formats-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.wizard-format-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, padding 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wizard-format-btn:last-child {
    border-bottom: none;
}

.wizard-format-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    border-radius: 8px;
    transform: none;
    box-shadow: none;
}

.wizard-format-btn__title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-color);
}

.wizard-format-btn__ext {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--subtext-color);
    text-transform: uppercase;
}

.wizard-format-btn.is-preparing,
.wizard-app-card.is-preparing {
    opacity: 0.55;
    pointer-events: none;
    cursor: wait;
}

.wizard-format-btn.is-preparing .wizard-format-btn__ext::after {
    content: " (rendering...)";
    text-transform: none;
    font-size: 0.72rem;
    color: var(--accent-color);
}

/* No Results Notice */
.wizard-no-results {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--subtext-color);
    font-size: 0.92rem;
}

/* Corner Navigation text button */
.corner-nav-btn {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100px;
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--subtext-color);
    text-decoration: none;
    z-index: 100;
    user-select: none;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2.2rem;
    transition: color 0.25s ease;
}

.corner-nav-right {
    right: 0;
    justify-content: flex-end;
    padding-right: 2.2rem;
}

.corner-nav-right .corner-arrow-circle {
    right: 0;
    transform: translateY(-50%) translateX(120%);
}

.corner-nav-right:hover .corner-arrow-circle {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    right: 1.5rem;
}

.corner-arrow-circle {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    color: var(--subtext-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, color 0.25s ease, right 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    z-index: 10;
}

.corner-nav-btn:hover {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .corner-nav-btn {
        display: none !important;
    }
    .wizard-stepper {
        padding: 1rem 0.8rem;
    }
    .stepper-step__label {
        display: none;
    }
    .stepper-track {
        left: 25px;
        right: 25px;
    }
}

/* Modal and Instructions Popup Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.avenza-modal-backdrop {
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0.92;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.avenza-modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 390px;
    background: rgba(18, 18, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 1.6rem 1.4rem 1.4rem 1.4rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: #ffffff;
    box-sizing: border-box;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .avenza-modal-panel {
    transform: scale(1);
}

.avenza-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.avenza-transfer-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.avenza-modal-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.avenza-selection-badge {
    width: auto !important;
    height: 54px !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.avenza-selection-badge img {
    height: 54px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.avenza-transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
}

.avenza-modal-app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avenza-modal-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.avenza-target-name {
    color: var(--accent-color) !important;
    font-weight: 700;
}

.avenza-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avenza-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 0.95rem 1rem;
}

.avenza-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000000;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.avenza-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.avenza-step-heading {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.avenza-step-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.avenza-modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.35rem;
    align-self: flex-start;
}

.avenza-modal-download-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.avenza-modal-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: #000000;
    border: none;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s ease;
    margin-top: 0.4rem;
}

.avenza-modal-open-btn:hover {
    filter: brightness(1.1);
}

.avenza-modal-close {
    position: absolute !important;
    top: 1.1rem !important;
    right: 1.1rem !important;
    z-index: 10 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.avenza-modal-close:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

.avenza-filename-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 500;
}

.avenza-ui-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    font-weight: 700;
}

/* Light Theme Overrides */
[data-theme="light"] .avenza-modal-backdrop,
html.theme-light .avenza-modal-backdrop,
body.theme-light .avenza-modal-backdrop {
    background: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] .avenza-modal-panel,
html.theme-light .avenza-modal-panel,
body.theme-light .avenza-modal-panel {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12) !important;
    color: #111827 !important;
}

[data-theme="light"] .avenza-modal-title,
html.theme-light .avenza-modal-title,
body.theme-light .avenza-modal-title {
    color: #111827 !important;
}

[data-theme="light"] .avenza-modal-icon-badge,
html.theme-light .avenza-modal-icon-badge,
body.theme-light .avenza-modal-icon-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .avenza-selection-badge,
html.theme-light .avenza-selection-badge,
body.theme-light .avenza-selection-badge {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .avenza-selection-badge img,
html.theme-light .avenza-selection-badge img,
body.theme-light .avenza-selection-badge img {
    filter: invert(1) !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .avenza-step-item,
html.theme-light .avenza-step-item,
body.theme-light .avenza-step-item {
    background: rgba(0, 0, 0, 0.035) !important;
}

[data-theme="light"] .avenza-step-heading,
html.theme-light .avenza-step-heading,
body.theme-light .avenza-step-heading {
    color: #111827 !important;
}

[data-theme="light"] .avenza-step-text,
html.theme-light .avenza-step-text,
body.theme-light .avenza-step-text {
    color: #4b5563 !important;
}

[data-theme="light"] .avenza-filename-pill,
html.theme-light .avenza-filename-pill,
body.theme-light .avenza-filename-pill {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    color: #111827 !important;
}

[data-theme="light"] .avenza-ui-badge,
html.theme-light .avenza-ui-badge,
body.theme-light .avenza-ui-badge {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}

[data-theme="light"] .avenza-modal-download-btn,
html.theme-light .avenza-modal-download-btn,
body.theme-light .avenza-modal-download-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .avenza-modal-close,
html.theme-light .avenza-modal-close,
body.theme-light .avenza-modal-close {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: rgba(0, 0, 0, 0.55) !important;
}

[data-theme="light"] .avenza-modal-close:hover,
html.theme-light .avenza-modal-close:hover,
body.theme-light .avenza-modal-close:hover {
    background: rgba(0, 0, 0, 0.09) !important;
    color: #111827 !important;
}

[data-theme="light"] .wizard-item-card:hover,
html.theme-light .wizard-item-card:hover,
body.theme-light .wizard-item-card:hover {
    background: #e5e7eb !important;
    transform: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .wizard-format-btn:hover,
html.theme-light .wizard-format-btn:hover,
body.theme-light .wizard-format-btn:hover {
    background: #e5e7eb !important;
    transform: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .wizard-circle-thumb--logo,
html.theme-light .wizard-circle-thumb--logo,
body.theme-light .wizard-circle-thumb--logo {
    background-color: #000000 !important;
}

[data-theme="light"] .wizard-circle-thumb--no-data,
html.theme-light .wizard-circle-thumb--no-data,
body.theme-light .wizard-circle-thumb--no-data {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
}

[data-theme="light"] .wizard-app-icon-wrap,
html.theme-light .wizard-app-icon-wrap,
body.theme-light .wizard-app-icon-wrap {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 100000;
}

.toast-notification.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

[data-theme="light"] .toast-notification,
html.theme-light .toast-notification,
body.theme-light .toast-notification {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    color: #111827 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10) !important;
}
