/* Kingilist web application styles. Extracted from PHP templates for caching and shared maintenance. */

/* Main site shell and static pages (dev/index.php) */
:root {
                --kingilist-red: #e41321;
                --kingilist-ink: #1f2329;
                --kingilist-muted: #59616d;
                --kingilist-line: rgba(228, 19, 33, 0.14);
            }

            body {
                background: #f7f5f2;
                color: var(--kingilist-ink);
                font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
                font-weight: 500;
            }

            .site-shell {
                min-height: 100vh;
                background: #fff;
            }

            .site-shell,
            .site-shell :where(a, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6, span, small, strong, label, div) {
                font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
            }

            .site-nav {
                align-items: center;
                background: rgba(255, 255, 255, 0.96);
                border-bottom: 1px solid rgba(228, 19, 33, 0.11);
                display: flex;
                gap: 24px;
                justify-content: space-between;
                min-height: 78px;
                padding: 0 clamp(18px, 5vw, 72px);
                position: sticky;
                top: 0;
                z-index: 30;
            }

            .site-logo img {
                display: block;
                height: 48px;
                width: auto;
            }

            .site-nav-links {
                align-items: center;
                display: flex;
                gap: clamp(18px, 3vw, 42px);
            }

            .site-nav-links a {
                color: var(--kingilist-ink);
                font-size: 15px;
                font-weight: 700;
                text-decoration: none;
            }

            .site-nav-actions {
                align-items: center;
                display: flex;
                gap: 12px;
            }

            .site-menu-button {
                align-items: center;
                background: #fff;
                border: 1px solid #dde0e5;
                border-radius: 8px;
                color: var(--kingilist-ink);
                cursor: pointer;
                display: none;
                font-size: 18px;
                height: 42px;
                justify-content: center;
                width: 46px;
            }

            .site-lang-button,
            .site-login-button,
            .site-logout-button {
                align-items: center;
                border-radius: 8px;
                display: inline-flex;
                font-size: 14px;
                font-weight: 800;
                gap: 8px;
                justify-content: center;
                min-height: 42px;
                padding: 0 18px;
                text-decoration: none;
            }

            .site-logout-form {
                display: flex;
                margin: 0;
            }

            .site-lang-button {
                background: #fff;
                border: 1px solid #dde0e5;
                color: var(--kingilist-ink);
            }

            .site-login-button {
                background: var(--kingilist-red);
                color: #fff;
            }

            .site-logout-button {
                appearance: none;
                background: #fff;
                border: 1px solid #dde0e5;
                color: var(--kingilist-ink);
                cursor: pointer;
            }

            .site-login-button:hover {
                color: #fff;
                text-decoration: none;
            }

            .site-logout-button:hover {
                border-color: rgba(228, 19, 33, 0.3);
                color: var(--kingilist-red);
            }

            .site-nav .uk-dropdown {
                z-index: 70;
            }

            .site-dropdown-menu {
                border: 1px solid rgba(31, 35, 41, 0.08);
                border-radius: 8px;
                box-shadow: 0 16px 40px rgba(22, 25, 30, 0.14);
                min-width: 230px;
                padding: 8px;
            }

            .site-dropdown-menu a {
                align-items: center;
                border-radius: 7px;
                color: var(--kingilist-ink);
                display: flex;
                font-size: 15px;
                font-weight: 800;
                min-height: 42px;
                padding: 0 12px;
                text-decoration: none;
            }

            .site-dropdown-menu a:hover {
                background: #fff3f4;
                color: var(--kingilist-red);
                text-decoration: none;
            }

            .site-menu-mobile-only {
                display: none;
            }

            .site-menu-logout-form {
                margin: 0;
            }

            .site-menu-logout-form button {
                align-items: center;
                appearance: none;
                background: transparent;
                border: 0;
                border-radius: 7px;
                color: var(--kingilist-ink);
                cursor: pointer;
                display: flex;
                font-size: 15px;
                font-weight: 800;
                gap: 8px;
                min-height: 42px;
                padding: 0 12px;
                text-align: left;
                width: 100%;
            }

            .site-menu-logout-form button:hover {
                background: #fff3f4;
                color: var(--kingilist-red);
            }

            .site-announcement {
                align-items: center;
                background: #fff3f4;
                border-bottom: 1px solid var(--kingilist-line);
                color: var(--kingilist-ink);
                display: flex;
                font-size: 15px;
                justify-content: center;
                min-height: 44px;
                padding: 8px 56px;
                position: relative;
                text-align: center;
                z-index: 10;
            }

            .site-announcement strong {
                color: var(--kingilist-red);
            }

            .site-announcement-close {
                background: transparent;
                border: 0;
                color: var(--kingilist-ink);
                cursor: pointer;
                font-size: 18px;
                padding: 8px;
                position: absolute;
                right: 28px;
                top: 50%;
                transform: translateY(-50%);
            }

            .home-hero {
                background-image: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 33%, rgba(255,255,255,0.18) 66%), url('/images/kingilist-home-hero.png');
                background-position: center;
                background-size: cover;
                min-height: min(650px, calc(100vh - 122px));
                padding: clamp(44px, 8vw, 92px) clamp(22px, 7vw, 92px);
                position: relative;
            }

            .home-hero-content {
                max-width: 560px;
            }

            .home-hero h1 {
                color: var(--kingilist-ink);
                font-size: clamp(48px, 7vw, 86px);
                font-weight: 900;
                letter-spacing: 0;
                line-height: .98;
                margin: 0 0 20px;
            }

            .home-hero h1 span {
                color: var(--kingilist-red);
                display: block;
            }

            .home-hero-lead {
                color: #343a43;
                font-size: clamp(18px, 2vw, 23px);
                line-height: 1.38;
                margin: 0 0 28px;
                max-width: 520px;
            }

            .home-actions,
            .home-store-actions {
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
            }

            .home-store-actions {
                margin-top: 22px;
            }

            .home-primary,
            .home-secondary {
                align-items: center;
                border-radius: 8px;
                display: inline-flex;
                font-size: 15px;
                font-weight: 900;
                gap: 10px;
                justify-content: center;
                min-height: 48px;
                padding: 0 24px;
                text-decoration: none;
            }

            .home-primary {
                background: var(--kingilist-red);
                border: 1px solid var(--kingilist-red);
                color: #fff;
            }

            .home-primary:hover {
                color: #fff;
                text-decoration: none;
            }

            .home-secondary {
                background: rgba(255, 255, 255, 0.82);
                border: 1px solid #cfd4dc;
                color: var(--kingilist-ink);
            }

            .home-secondary:hover {
                color: var(--kingilist-ink);
                text-decoration: none;
            }

            .store-badge {
                align-items: center;
                background: #050505;
                border-radius: 7px;
                color: #fff;
                display: inline-flex;
                gap: 9px;
                min-height: 46px;
                padding: 5px 14px;
                text-decoration: none;
            }

            .store-badge:hover {
                color: #fff;
                text-decoration: none;
            }

            .store-badge i {
                font-size: 24px;
            }

            .store-badge small,
            .store-badge strong {
                display: block;
                line-height: 1;
            }

            .store-badge small {
                font-size: 10px;
                opacity: .86;
            }

            .store-badge strong {
                font-size: 17px;
                margin-top: 3px;
            }

            .home-how {
                background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
                border-top: 1px solid rgba(228, 19, 33, 0.08);
                margin-top: -34px;
                padding: 16px clamp(18px, 7vw, 92px) 54px;
                position: relative;
                z-index: 2;
            }

            .home-section-heading {
                align-items: center;
                color: var(--kingilist-ink);
                display: grid;
                font-size: 25px;
                font-weight: 800;
                grid-template-columns: minmax(54px, 110px) auto minmax(54px, 110px);
                grid-template-rows: auto auto;
                justify-content: center;
                column-gap: 14px;
                row-gap: 4px;
                line-height: 1.1;
                margin: 0 0 26px;
                text-align: center;
            }

            .home-heading-line {
                align-self: center;
                background: linear-gradient(90deg, transparent, #ff9fa8 34%, #ff9fa8 66%, transparent);
                height: 2px;
                min-width: 84px;
            }

            .home-heading-icon {
                align-items: center;
                color: var(--kingilist-red);
                display: inline-flex;
                font-size: 18px;
                justify-content: center;
                line-height: 1;
            }

            .home-heading-title {
                grid-column: 1 / -1;
            }

            .home-steps {
                display: grid;
                gap: 30px;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                margin: 0 auto;
                max-width: 1180px;
            }

            .home-step {
                align-items: center;
                background: rgba(255, 255, 255, 0.94);
                border: 1px solid rgba(31, 35, 41, 0.08);
                border-radius: 8px;
                box-shadow: 0 12px 34px rgba(23, 28, 35, 0.07);
                display: grid;
                gap: 18px;
                grid-template-columns: 86px 1fr;
                min-height: 132px;
                padding: 22px;
                position: relative;
            }

            .home-step:not(:last-child)::after {
                border-top: 1px dashed rgba(94, 102, 116, 0.34);
                content: "";
                height: 1px;
                left: calc(100% + 5px);
                position: absolute;
                top: 50%;
                width: 20px;
            }

            .home-step-icon {
                align-items: center;
                background: linear-gradient(145deg, #fff5f6, #fde7ea);
                border-radius: 50%;
                color: var(--kingilist-red);
                display: flex;
                font-size: 32px;
                height: 80px;
                justify-content: center;
                width: 80px;
            }

            .home-step h2 {
                align-items: center;
                color: var(--kingilist-ink);
                display: flex;
                font-size: 17px;
                font-weight: 800;
                gap: 10px;
                margin: 0 0 6px;
            }

            .home-step-number {
                align-items: center;
                background: var(--kingilist-red);
                border-radius: 999px;
                color: #fff;
                display: inline-flex;
                flex: 0 0 auto;
                font-size: 12px;
                font-weight: 800;
                height: 22px;
                justify-content: center;
                width: 22px;
            }

            .home-step p {
                color: #545b66;
                font-size: 15px;
                line-height: 1.42;
                margin: 0;
            }

            .app-content-shell {
                background-image: linear-gradient(120deg, rgba(255,255,255,0.86), rgba(255,255,255,0.72)), url('/themes/general/general.jpg');
                background-position: center;
                background-size: cover;
                min-height: calc(100vh - 78px);
                padding: 42px 18px;
            }

            .app-content-card {
                background: rgba(255,255,255,0.96);
                border-radius: 8px;
                box-shadow: 0 18px 50px rgba(22,25,30,.12);
                margin: 0 auto;
                max-width: 960px;
                padding: clamp(22px, 4vw, 46px);
            }

            .app-content-dashboard {
                margin: 0 auto;
                max-width: 1180px;
            }

            .static-page,
            .status-page,
            .deep-link-page {
                color: var(--kingilist-ink);
                display: grid;
                gap: 18px;
            }

            .static-page h2,
            .status-page h2,
            .deep-link-page h2 {
                color: var(--kingilist-ink);
                font-size: clamp(30px, 4vw, 46px);
                font-weight: 800;
                letter-spacing: 0;
                line-height: 1.08;
                margin: 0;
            }

            .static-page h3,
            .status-page h3,
            .deep-link-page h3 {
                color: var(--kingilist-ink);
                font-size: 19px;
                font-weight: 800;
                letter-spacing: 0;
                margin: 0;
            }

            .static-page p,
            .status-page p,
            .deep-link-page p {
                color: var(--kingilist-muted);
                font-size: 16px;
                line-height: 1.68;
                margin: 0;
            }

            .static-eyebrow {
                color: var(--kingilist-red) !important;
                font-size: 13px !important;
                font-weight: 800;
                letter-spacing: 0.08em;
                line-height: 1.2 !important;
                text-transform: uppercase;
            }

            .static-page a,
            .status-page a,
            .deep-link-page a {
                color: var(--kingilist-red);
                font-weight: 700;
                text-decoration: none;
            }

            .static-page a:hover,
            .status-page a:hover,
            .deep-link-page a:hover {
                color: #c70f1e;
                text-decoration: none;
            }

            .static-page > ol,
            .static-page > ul,
            .static-page-section,
            .static-card,
            .status-card,
            .deep-link-card {
                background: rgba(255, 255, 255, 0.84);
                border: 1px solid rgba(31, 35, 41, 0.08);
                border-radius: 8px;
                box-shadow: 0 12px 34px rgba(23, 28, 35, 0.06);
                margin: 0;
                padding: clamp(18px, 3vw, 30px);
            }

            .static-page > ol,
            .static-page > ul {
                padding-left: clamp(38px, 5vw, 52px);
            }

            .static-page li {
                color: #3f4652;
                line-height: 1.62;
                margin: 8px 0;
            }

            .static-page li > b {
                color: var(--kingilist-ink);
                display: inline-block;
                font-size: 18px;
                margin-bottom: 8px;
            }

            .static-page table {
                border-collapse: collapse;
                border-radius: 8px;
                display: block;
                font-size: 14px;
                margin: 6px 0 0;
                max-width: 100%;
                overflow-x: auto;
                width: 100%;
            }

            .static-page th,
            .static-page td {
                border: 1px solid rgba(31, 35, 41, 0.1);
                min-width: 180px;
                padding: 12px;
                text-align: left;
                vertical-align: top;
            }

            .static-page th {
                background: #fff3f4;
                color: var(--kingilist-ink);
                font-weight: 800;
            }

            .static-responsive-table {
                table-layout: fixed;
            }

            .static-card-grid {
                display: grid;
                gap: 16px;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .static-card {
                align-content: start;
                display: grid;
                gap: 12px;
            }

            .merchant-integration-section {
                display: grid;
                gap: 16px;
            }

            .merchant-badge-grid {
                align-items: center;
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
            }

            .merchant-badge-grid img {
                display: block;
                height: 48px;
                max-width: 100%;
                width: auto;
            }

            .merchant-asset-list {
                columns: 2;
                margin: 0;
                padding-left: 20px;
            }

            .merchant-integration-section pre {
                background: #171d23;
                border-radius: 8px;
                color: #f7fafc;
                font-size: 13px;
                line-height: 1.55;
                margin: 0;
                overflow-x: auto;
                padding: 16px;
                white-space: pre;
            }

            .merchant-integration-section code {
                color: inherit;
                font-family: Consolas, "Liberation Mono", Menlo, monospace;
            }

            .merchant-param-table td:first-child {
                font-weight: 800;
            }

            .merchant-list-picker {
                display: grid;
                gap: 12px;
            }

            .merchant-list-option {
                align-items: center;
                background: #fff;
                border: 1px solid rgba(31, 35, 41, 0.1);
                border-radius: 8px;
                display: grid;
                gap: 4px 14px;
                grid-template-columns: 1fr auto;
                padding: 16px;
            }

            .merchant-list-option strong,
            .merchant-list-option span {
                min-width: 0;
            }

            .merchant-list-option strong {
                color: var(--kingilist-ink);
                font-size: 17px;
            }

            .merchant-list-option span {
                color: var(--kingilist-muted);
                font-size: 14px;
                font-weight: 400;
                grid-column: 1;
            }

            .merchant-list-option i {
                color: var(--kingilist-red);
                grid-column: 2;
                grid-row: 1 / span 2;
            }

            .static-card-icon,
            .status-icon,
            .deep-link-icon {
                align-items: center;
                background: #fff0f2;
                border-radius: 999px;
                color: var(--kingilist-red);
                display: inline-flex;
                height: 48px;
                justify-content: center;
                width: 48px;
            }

            .static-accordion {
                display: grid;
                gap: 12px;
                list-style: none;
                margin: 0;
                padding: 0;
            }

            .static-accordion > li {
                background: rgba(255, 255, 255, 0.84);
                border: 1px solid rgba(31, 35, 41, 0.08);
                border-radius: 8px;
                box-shadow: 0 12px 34px rgba(23, 28, 35, 0.06);
                margin: 0;
                padding: 4px 18px;
            }

            .static-accordion .uk-accordion-title {
                color: var(--kingilist-ink);
                font-size: 17px;
                font-weight: 800;
                letter-spacing: 0;
                padding: 14px 0;
            }

            .static-accordion .uk-accordion-title:hover {
                color: var(--kingilist-red);
                text-decoration: none;
            }

            .status-card,
            .deep-link-card {
                align-items: start;
                display: grid;
                gap: 16px;
                justify-items: start;
                text-align: left;
            }

            .status-card-success .status-icon {
                background: #eefbf3;
                color: #118846;
            }

            .status-card-error .status-icon {
                background: #fff0f2;
                color: var(--kingilist-red);
            }

            .deep-link-actions,
            .status-actions {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: 6px;
            }

            .kingilist-primary-button,
            .kingilist-secondary-button {
                align-items: center;
                appearance: none;
                border: 0;
                border-radius: 8px;
                cursor: pointer;
                display: inline-flex;
                font-size: 15px;
                font-weight: 800;
                gap: 9px;
                justify-content: center;
                line-height: 1;
                min-height: 44px;
                padding: 0 18px;
                text-decoration: none;
            }

            .kingilist-primary-button {
                background: var(--kingilist-red);
                color: #fff !important;
            }

            .kingilist-secondary-button {
                background: #fff;
                border: 1px solid #d9dde4;
                color: var(--kingilist-ink) !important;
            }

            .kingilist-primary-button:hover,
            .kingilist-secondary-button:hover {
                text-decoration: none;
                transform: translateY(-1px);
            }

            .kingilist-primary-button:disabled,
            .kingilist-secondary-button:disabled {
                cursor: wait;
                opacity: 0.72;
                transform: none;
            }

            .site-footer {
                align-items: center;
                background: #fffdfd;
                border-top: 1px solid rgba(228, 19, 33, 0.16);
                color: #555d68;
                display: grid;
                font-size: 14px;
                gap: 24px;
                grid-template-columns: minmax(180px, 1fr) auto minmax(250px, 1fr);
                padding: 20px clamp(18px, 7vw, 92px);
            }

            .site-footer a {
                color: #4b535f;
                text-decoration: none;
            }

            .site-footer a:hover {
                color: var(--kingilist-red);
                text-decoration: none;
            }

            .site-footer-brand {
                line-height: 1.45;
            }

            .site-footer-brand span {
                color: #727984;
            }

            .site-footer-links,
            .site-footer-contact {
                align-items: center;
                display: flex;
                flex-wrap: wrap;
                gap: 0;
            }

            .site-footer-contact {
                justify-content: flex-end;
            }

            .site-footer-links a,
            .site-footer-contact a,
            .site-footer-contact span {
                align-items: center;
                display: inline-flex;
                gap: 8px;
                padding: 0 16px;
                position: relative;
                white-space: nowrap;
            }

            .site-footer-links a:not(:last-child)::after,
            .site-footer-contact span::after {
                background: rgba(85, 93, 104, 0.32);
                content: "";
                height: 18px;
                position: absolute;
                right: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 1px;
            }

            .site-footer-links a:first-child,
            .site-footer-contact span:first-child {
                padding-left: 0;
            }

            .site-footer-links a:last-child,
            .site-footer-contact a:last-child {
                padding-right: 0;
            }

            @media (max-width: 980px) {
                .site-nav-links {
                    display: none;
                }

                .site-menu-button {
                    display: inline-flex;
                }

                .home-steps {
                    grid-template-columns: 1fr;
                }

                .home-step:not(:last-child)::after {
                    display: none;
                }

                .static-card-grid {
                    grid-template-columns: 1fr;
                }

                .merchant-asset-list {
                    columns: 1;
                }

                .site-footer {
                    grid-template-columns: 1fr;
                    gap: 16px;
                    text-align: center;
                }

                .site-footer-links,
                .site-footer-contact {
                    justify-content: center;
                }

                .site-footer-links a,
                .site-footer-contact a,
                .site-footer-contact span {
                    padding: 0 12px;
                }
            }

            @media (max-width: 700px) {
                .static-page table.static-responsive-table {
                    border-collapse: separate;
                    display: grid;
                    gap: 12px;
                    overflow: visible;
                }

                .static-page table.static-responsive-table thead {
                    display: none;
                }

                .static-page table.static-responsive-table tbody,
                .static-page table.static-responsive-table tr,
                .static-page table.static-responsive-table td {
                    display: block;
                    width: 100%;
                }

                .static-page table.static-responsive-table tbody {
                    display: grid;
                    gap: 12px;
                }

                .static-page table.static-responsive-table tr {
                    background: #ffffff;
                    border: 1px solid rgba(31, 35, 41, 0.1);
                    border-radius: 8px;
                    box-shadow: 0 10px 24px rgba(23, 28, 35, 0.05);
                    overflow: hidden;
                }

                .static-page table.static-responsive-table td {
                    border: 0;
                    border-bottom: 1px solid rgba(31, 35, 41, 0.08);
                    box-sizing: border-box;
                    min-width: 0;
                    padding: 12px 14px;
                }

                .static-page table.static-responsive-table td:last-child {
                    border-bottom: 0;
                }

                .static-page table.static-responsive-table td::before {
                    color: var(--kingilist-red);
                    content: attr(data-label);
                    display: block;
                    font-size: 11px;
                    font-weight: 800;
                    letter-spacing: 0.04em;
                    margin-bottom: 5px;
                    text-transform: uppercase;
                }

                .site-nav {
                    align-items: stretch;
                    display: grid;
                    gap: 12px;
                    grid-template-columns: 1fr;
                    min-height: 0;
                    padding: 16px 18px;
                }

                .site-logo {
                    grid-column: 1;
                    justify-self: start;
                    min-width: 0;
                }

                .site-logo img {
                    height: 40px;
                    max-width: 100%;
                }

                .site-nav-actions {
                    display: grid;
                    gap: 8px;
                    grid-column: 1;
                    justify-self: stretch;
                    min-width: 0;
                    width: 100%;
                }

                .site-nav-actions-public {
                    grid-template-columns: 46px 74px minmax(0, 1fr);
                }

                .site-nav-actions-authenticated {
                    grid-template-columns: minmax(0, calc(100% - 54px)) 46px;
                }

                .site-menu-mobile-only {
                    display: flex;
                }

                .site-menu-logout-form.site-menu-mobile-only {
                    display: block;
                }

                .site-lang-button,
                .site-login-button,
                .site-logout-form,
                .site-logout-button {
                    box-sizing: border-box;
                    min-width: 0;
                    padding-left: 12px;
                    padding-right: 12px;
                    width: 100%;
                }

                .site-logout-form {
                    width: 100%;
                }

                .site-menu-button {
                    grid-column: 1;
                    min-width: 46px;
                    width: 46px;
                }

                .site-nav-actions-public .site-lang-button {
                    grid-column: 2;
                    grid-row: 1;
                    padding-left: 8px;
                    padding-right: 8px;
                }

                .site-nav-actions-public .site-login-button {
                    grid-column: 3;
                    grid-row: 1;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .site-nav-actions-public .site-menu-button {
                    grid-column: 1;
                    grid-row: 1;
                }

                .site-nav-actions-public .site-main-menu-dropdown,
                .site-nav-actions-public .site-language-dropdown {
                    grid-column: 1 / -1;
                    grid-row: 1;
                }

                .site-nav-actions-authenticated .site-lang-button {
                    display: none;
                }

                .site-nav-actions-authenticated .site-login-button {
                    grid-column: 1;
                    grid-row: 1;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                .site-nav-actions-authenticated .site-logout-form {
                    display: none;
                }

                .site-nav-actions-authenticated .site-menu-button {
                    grid-column: 2;
                    grid-row: 1;
                    justify-self: end;
                    min-width: 46px;
                    width: 46px;
                }

                .site-nav-actions-authenticated .site-language-dropdown {
                    display: none !important;
                }

                .site-nav-actions-authenticated .site-main-menu-dropdown {
                    grid-column: 1 / span 2;
                    grid-row: 1;
                }

                .site-announcement {
                    padding: 10px 46px 10px 18px;
                    text-align: left;
                }

                .site-announcement-close {
                    right: 12px;
                }

                .app-content-shell {
                    padding: 24px 12px;
                }

                .app-content-card {
                    padding: 20px;
                }

                .static-page > ol,
                .static-page > ul,
                .static-page-section,
                .static-card,
                .status-card,
                .deep-link-card {
                    padding: 18px;
                }

                .static-page > ol,
                .static-page > ul {
                    padding-left: 34px;
                }

                .deep-link-actions,
                .status-actions,
                .kingilist-primary-button,
                .kingilist-secondary-button {
                    width: 100%;
                }

                .kingilist-primary-button,
                .kingilist-secondary-button {
                    justify-content: center;
                }

                .home-hero {
                    background-image: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.78) 58%, rgba(255,255,255,0.34)), url('/images/kingilist-home-hero.png');
                    min-height: calc(100svh - 170px);
                    padding: 32px 18px 58px;
                }

                .home-hero h1 {
                    font-size: 42px;
                }

                .home-hero-lead {
                    font-size: 17px;
                }

                .home-primary,
                .home-secondary {
                    width: min(100%, 360px);
                }

                .home-step {
                    grid-template-columns: 1fr;
                    text-align: center;
                }

                .home-step-icon {
                    margin: 0 auto;
                }

                .home-step h2 {
                    justify-content: center;
                }

                .site-footer-links,
                .site-footer-contact {
                    gap: 10px 14px;
                }

                .site-footer-links a,
                .site-footer-contact a,
                .site-footer-contact span {
                    padding: 0;
                }

                .site-footer-links a::after,
                .site-footer-contact span::after {
                    display: none;
                }
            }

/* Public list viewer (dev/index_list.php) */
.public-list-page {
                --kingilist-red: #e41321;
                --kingilist-ink: #20242a;
                --kingilist-muted: #6f7580;
                --kingilist-line: rgba(228, 19, 33, 0.16);
            }

            body {
                background: #f5f3f0;
                color: var(--kingilist-ink);
                font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
                font-weight: 500;
            }

            .public-list-page {
                min-height: 100vh;
                background-position: center;
                background-size: cover;
                background-attachment: fixed;
                position: relative;
            }

            .public-list-page,
            .public-list-page :where(a, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6, span, small, strong, label, div) {
                font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
            }

            .public-list-page::before {
                background: linear-gradient(90deg, rgba(255,255,255,0.74), rgba(255,255,255,0.30) 44%, rgba(255,255,255,0.68)), rgba(255,255,255,0.10);
                content: "";
                inset: 0;
                position: fixed;
                pointer-events: none;
            }

            .public-list-shell {
                position: relative;
                z-index: 1;
            }

            .public-list-nav {
                align-items: center;
                backdrop-filter: blur(18px);
                background: rgba(255, 255, 255, 0.94);
                border-bottom: 1px solid rgba(228, 19, 33, 0.13);
                display: flex;
                gap: 18px;
                justify-content: space-between;
                min-height: 72px;
                padding: 0 42px;
                position: relative;
                z-index: 30;
            }

            .public-list-logo img {
                display: block;
                height: 42px;
                width: auto;
            }

            .public-list-nav-actions {
                align-items: center;
                display: flex;
                gap: 12px;
            }

            .public-list-nav .uk-dropdown {
                z-index: 60;
            }

            .public-list-lang-menu {
                z-index: 80;
            }

            .public-list-nav-button,
            .public-list-lang-button {
                align-items: center;
                border-radius: 8px;
                display: inline-flex;
                font-size: 14px;
                font-weight: 700;
                gap: 8px;
                min-height: 40px;
                padding: 0 18px;
                text-decoration: none;
            }

            .public-list-nav-button {
                background: var(--kingilist-red);
                color: #fff;
            }

            .public-list-nav-button:hover {
                color: #fff;
                text-decoration: none;
            }

            .public-list-lang-button {
                background: #fff;
                border: 1px solid #dadde2;
                color: var(--kingilist-ink);
            }

            .public-list-lang-button:hover,
            .public-list-lang-button:focus {
                border-color: rgba(228, 19, 33, 0.3);
                color: var(--kingilist-red);
                text-decoration: none;
            }

            .public-list-announcement {
                align-items: center;
                backdrop-filter: blur(16px);
                background: rgba(255, 246, 247, 0.94);
                border-bottom: 1px solid rgba(228, 19, 33, 0.12);
                color: var(--kingilist-ink);
                display: flex;
                font-size: 15px;
                justify-content: center;
                min-height: 44px;
                padding: 8px 52px;
                position: relative;
                text-align: center;
                z-index: 10;
            }

            .public-list-announcement strong {
                color: var(--kingilist-red);
            }

            .public-list-announcement-close {
                background: transparent;
                border: 0;
                color: var(--kingilist-ink);
                cursor: pointer;
                font-size: 18px;
                padding: 8px;
                position: absolute;
                right: 28px;
                top: 50%;
                transform: translateY(-50%);
            }

            .public-list-main {
                margin: 0 auto;
                max-width: 1180px;
                padding: 34px 22px 56px;
            }

            .public-list-grid {
                align-items: start;
                display: grid;
                gap: 20px;
                grid-template-areas:
                    "side wishes"
                    "footer wishes";
                grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
            }

            .public-list-side {
                display: grid;
                gap: 20px;
                grid-area: side;
                position: sticky;
                top: 24px;
            }

            .public-list-footer-card {
                grid-area: footer;
            }

            .public-list-card,
            .wish-card {
                background: rgba(255, 255, 255, 0.94);
                border: 1px solid rgba(255, 255, 255, 0.72);
                border-radius: 8px;
                box-shadow: 0 18px 45px rgba(22, 25, 30, 0.13);
                overflow: hidden;
            }

            .public-list-card-body {
                padding: 22px;
            }

            .public-list-hero-img {
                aspect-ratio: 16 / 10;
                display: block;
                object-fit: cover;
                width: 100%;
            }

            .public-list-eyebrow {
                color: var(--kingilist-red);
                font-size: 12px;
                font-weight: 800;
                letter-spacing: .08em;
                margin-bottom: 8px;
                text-transform: uppercase;
            }

            .public-list-title {
                color: var(--kingilist-ink);
                font-size: 30px;
                font-weight: 800;
                line-height: 1.13;
                margin: 0 0 12px;
            }

            .public-list-description {
                color: #4b5058;
                font-size: 16px;
                line-height: 1.55;
                margin: 0;
            }

            .public-list-actions {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: 18px;
            }

            .public-list-primary,
            .public-list-secondary {
                align-items: center;
                border-radius: 7px;
                display: inline-flex;
                font-size: 14px;
                font-weight: 800;
                gap: 8px;
                justify-content: center;
                min-height: 42px;
                padding: 0 18px;
                text-decoration: none;
            }

            .public-list-primary {
                background: var(--kingilist-red);
                border: 1px solid var(--kingilist-red);
                color: #fff;
            }

            .public-list-primary:hover {
                color: #fff;
                text-decoration: none;
            }

            .public-list-secondary {
                background: #fff;
                border: 1px solid #dfe2e7;
                color: var(--kingilist-ink);
            }

            .public-list-secondary:hover {
                color: var(--kingilist-ink);
                text-decoration: none;
            }

            .public-list-muted {
                color: var(--kingilist-muted);
                display: block;
                font-size: 13px;
                line-height: 1.45;
                margin-top: 8px;
            }

            .pin-card {
                margin: 42px auto;
                max-width: 420px;
            }

            .public-list-wishes {
                column-count: 2;
                column-gap: 20px;
                grid-area: wishes;
            }

            .wish-card {
                break-inside: avoid;
                display: flex;
                flex-direction: column;
                margin: 0 0 20px;
                min-width: 0;
                page-break-inside: avoid;
            }

            .wish-card-media {
                align-items: center;
                aspect-ratio: 4 / 3;
                background: linear-gradient(180deg, #fff, #f7f8fa);
                display: flex;
                justify-content: center;
                padding: 10px;
                position: relative;
            }

            .wish-card-media img {
                display: block;
                height: 100%;
                max-height: 95%;
                max-width: 95%;
                object-fit: contain;
                width: 100%;
            }

            .wish-card-done {
                align-items: center;
                background: rgba(255, 255, 255, 0.72);
                color: var(--kingilist-ink);
                display: flex;
                font-size: 18px;
                font-weight: 800;
                inset: 0;
                justify-content: center;
                position: absolute;
            }

            .wish-card-body {
                display: flex;
                flex: 1;
                flex-direction: column;
                padding: 20px;
            }

            .wish-card-title {
                color: var(--kingilist-ink);
                font-size: 21px;
                font-weight: 800;
                line-height: 1.25;
                margin: 0 0 8px;
            }

            .wish-card-description {
                color: #4f5560;
                font-size: 14px;
                line-height: 1.5;
                margin: 0 0 14px;
            }

            .wish-meta {
                align-items: center;
                border-top: 1px solid #eceef2;
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
                margin-top: auto;
                padding-top: 14px;
            }

            .wish-meta-item {
                align-items: center;
                color: #68707c;
                display: inline-flex;
                font-size: 13px;
                gap: 6px;
            }

            .wish-links {
                color: #4f5560;
                display: grid;
                font-size: 14px;
                gap: 8px;
                margin: 14px 0 0;
            }

            .wish-links a {
                color: var(--kingilist-red);
                font-weight: 700;
            }

            .wish-card-actions {
                align-items: center;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: 18px;
            }

            .wish-give-button {
                background: var(--kingilist-red);
                border: 1px solid var(--kingilist-red);
                border-radius: 7px;
                color: #fff;
                font-weight: 800;
                min-height: 40px;
                padding: 0 18px;
            }

            .wish-give-button:hover {
                color: #fff;
            }

            .wish-copy-panel {
                background: #fafafa;
                border: 1px solid #eceef2;
                border-radius: 7px;
                margin-top: 14px;
                padding: 12px;
            }

            .wish-form-panel {
                background: #fff7f8;
                border: 1px solid var(--kingilist-line);
                border-radius: 7px;
                margin-top: 16px;
                padding: 14px;
            }

            .public-list-footer-links {
                display: grid;
                gap: 8px;
            }

            .public-list-footer-links a {
                color: #3d424a;
                font-size: 14px;
            }

            .desirability-hearts {
                display: inline-flex;
                gap: 3px;
                color: #d83f4b;
                vertical-align: middle;
            }

            .desirability-hearts .far {
                color: #b8b8b8;
            }

            @media (max-width: 980px) {
                .public-list-grid {
                    grid-template-areas:
                        "side"
                        "wishes"
                        "footer";
                    grid-template-columns: 1fr;
                }

                .public-list-side {
                    position: static;
                }

                .public-list-wishes {
                    order: 2;
                }

                .public-list-footer-card {
                    order: 3;
                }
            }

            @media (max-width: 720px) {
                .public-list-page {
                    background-attachment: scroll;
                }

                .public-list-nav {
                    align-items: flex-start;
                    flex-direction: column;
                    gap: 14px;
                    padding: 16px 18px;
                }

                .public-list-nav-actions {
                    width: 100%;
                }

                .public-list-nav-button,
                .public-list-lang-button {
                    flex: 1;
                    justify-content: center;
                }

                .public-list-announcement {
                    padding: 10px 46px 10px 18px;
                    text-align: left;
                }

                .public-list-announcement-close {
                    right: 12px;
                }

                .public-list-main {
                    padding: 22px 14px 40px;
                }

                .public-list-wishes {
                    column-count: 1;
                }

                .public-list-title {
                    font-size: 26px;
                }
            }

/* Login page (dev/components/com_login.php) */
.login-page {
        color: #20242a;
        display: grid;
        gap: 18px;
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        margin: 0 auto;
        max-width: 760px;
    }

    .login-page :where(a, button, input, p, h1, h2, h3, span, small, strong, label, div) {
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .login-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 34px rgba(23,28,35,0.06);
        overflow: hidden;
    }

    .login-card-header {
        padding: clamp(24px, 5vw, 40px) clamp(22px, 5vw, 42px) 18px;
    }

    .login-card-header h1 {
        color: #1f2329;
        font-size: clamp(34px, 5vw, 52px);
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.04;
        margin: 0;
    }

    .login-card-header p {
        color: #59616d;
        font-size: 15px;
        line-height: 1.55;
        margin: 12px 0 0;
        max-width: 560px;
    }

    .login-card-body {
        display: grid;
        gap: 18px;
        padding: 0 clamp(22px, 5vw, 42px) clamp(22px, 5vw, 36px);
    }

    .login-alert {
        border-radius: 8px;
        margin: 0;
    }

    .login-form {
        display: grid;
        gap: 14px;
        margin: 0;
    }

    .login-form .uk-alert-danger,
    .login-form .uk-alert-primary {
        border-radius: 8px;
        margin: 0;
    }

    .login-form .uk-form-label {
        color: #252b33;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .login-form .uk-input {
        border: 1px solid #dde1e7;
        border-radius: 8px;
        color: #20242a;
        font-size: 15px;
        min-height: 46px;
    }

    .login-form .uk-input:focus {
        border-color: rgba(228, 19, 33, 0.55);
        box-shadow: 0 0 0 3px rgba(228, 19, 33, 0.10);
    }

    .login-actions,
    .login-social-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .login-primary-button,
    .login-secondary-button,
    .login-social-button {
        align-items: center;
        box-sizing: border-box;
        border-radius: 8px;
        display: inline-flex;
        flex: 1 1 0;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        justify-content: center;
        line-height: 1.2;
        min-width: 0;
        min-height: 44px;
        padding: 0 16px;
        text-align: center;
        text-decoration: none;
        white-space: normal;
    }

    .login-primary-button {
        background: #e41321;
        border: 1px solid #e41321;
        color: #fff;
    }

    .login-primary-button:hover {
        color: #fff;
        text-decoration: none;
    }

    .login-secondary-button,
    .login-social-button {
        background: #fff;
        border: 1px solid #dde1e7;
        color: #252b33;
    }

    .login-secondary-button:hover,
    .login-social-button:hover {
        color: #e41321;
        text-decoration: none;
    }

    .login-social {
        border-top: 1px solid #eceef2;
        display: grid;
        gap: 12px;
        padding-top: 18px;
    }

    .login-social p {
        color: #59616d;
        font-size: 14px;
        margin: 0;
    }

    @media (max-width: 640px) {
        .login-actions,
        .login-social-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .login-primary-button,
        .login-secondary-button,
        .login-social-button {
            flex-basis: auto;
            max-width: 100%;
            width: 100%;
        }

        .login-actions [uk-spinner] {
            align-self: center;
        }
    }

/* Dashboard (dev/components/com_dashboard.php) */
.dashboard-modern {
        color: #20242a;
        display: grid;
        gap: 18px;
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .dashboard-modern :where(a, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6, span, small, strong, label, div) {
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .dashboard-hero {
        align-items: stretch;
        display: grid;
        gap: 16px;
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .dashboard-welcome,
    .dashboard-account-card,
    .dashboard-section,
    .dashboard-empty-state {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 34px rgba(23,28,35,0.06);
    }

    .dashboard-welcome {
        padding: clamp(22px, 4vw, 34px);
    }

    .dashboard-welcome h1 {
        color: #1f2329;
        font-size: clamp(30px, 4vw, 48px);
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.04;
        margin: 0 0 10px;
    }

    .dashboard-welcome p,
    .dashboard-account-card p,
    .dashboard-list-card p,
    .dashboard-text-card p,
    .dashboard-gift-card p {
        color: #59616d;
        line-height: 1.45;
        margin: 0;
    }

    .dashboard-primary-actions,
    .dashboard-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-primary-actions {
        margin-top: 20px;
    }

    .dashboard-add-picker {
        position: relative;
    }

    .dashboard-add-menu {
        border: 1px solid rgba(31,35,41,0.10);
        border-radius: 8px;
        box-shadow: 0 14px 34px rgba(23,28,35,0.12);
        min-width: 260px;
        padding: 8px;
    }

    .dashboard-add-menu-title {
        color: #6f7580;
        font-size: 12px;
        font-weight: 800;
        padding: 6px 8px 8px;
        text-transform: uppercase;
    }

    .dashboard-add-menu a {
        align-items: center;
        border-radius: 8px;
        color: #20242a;
        display: flex;
        font-size: 14px;
        font-weight: 800;
        gap: 10px;
        padding: 10px 8px;
        text-decoration: none;
    }

    .dashboard-add-menu a:hover {
        background: #fff3f4;
        color: #e41321;
        text-decoration: none;
    }

    .dashboard-primary-button,
    .dashboard-secondary-button,
    .dashboard-card-action,
    .dashboard-icon-action {
        align-items: center;
        border-radius: 8px;
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        justify-content: center;
        min-height: 40px;
        text-decoration: none;
    }

    .dashboard-primary-button,
    .dashboard-card-action-primary {
        background: #e41321;
        border: 1px solid #e41321;
        color: #fff;
        padding: 0 16px;
    }

    .dashboard-primary-button:hover,
    .dashboard-card-action-primary:hover {
        color: #fff;
        text-decoration: none;
    }

    .dashboard-secondary-button,
    .dashboard-card-action,
    .dashboard-icon-action {
        background: #fff;
        border: 1px solid #dde1e7;
        color: #252b33;
    }

    .dashboard-secondary-button,
    .dashboard-card-action {
        padding: 0 14px;
    }

    .dashboard-secondary-button:hover,
    .dashboard-card-action:hover,
    .dashboard-icon-action:hover {
        color: #e41321;
        text-decoration: none;
    }

    .dashboard-card-action.dashboard-card-action-primary {
        background: #e41321;
        border-color: #e41321;
        color: #fff;
    }

    .dashboard-card-action.dashboard-card-action-primary:hover {
        color: #fff;
    }

    .dashboard-icon-action {
        height: 40px;
        padding: 0;
        width: 40px;
    }

    .dashboard-stats {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 24px;
    }

    .dashboard-stat {
        background: #fff6f7;
        border: 1px solid rgba(228,19,33,.10);
        border-radius: 8px;
        padding: 12px;
    }

    .dashboard-stat strong {
        color: #e41321;
        display: block;
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
    }

    .dashboard-stat span {
        color: #59616d;
        display: block;
        font-size: 12px;
        font-weight: 700;
        margin-top: 6px;
    }

    .dashboard-account-card {
        padding: 18px;
    }

    .dashboard-account-card h2 {
        color: #1f2329;
        font-size: 18px;
        font-weight: 800;
        margin: 0 0 12px;
    }

    .dashboard-account-line {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        margin-top: 8px;
    }

    .dashboard-account-line span {
        color: #59616d;
        font-size: 13px;
    }

    .dashboard-account-line label {
        color: #59616d;
        font-size: 13px;
    }

    .dashboard-account-line strong {
        color: #252b33;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .dashboard-account-line-control {
        align-items: center;
    }

    .dashboard-account-select {
        background: #fff;
        border: 1px solid #dde1e7;
        border-radius: 8px;
        color: #252b33;
        font-size: 14px;
        font-weight: 800;
        min-height: 38px;
        min-width: 128px;
        padding: 0 34px 0 12px;
    }

    .dashboard-sections {
        display: grid;
        gap: 12px;
    }

    .dashboard-section {
        overflow: hidden;
    }

    .dashboard-section-summary {
        align-items: center;
        cursor: pointer;
        display: grid;
        gap: 12px;
        grid-template-columns: 42px minmax(0, 1fr) auto 20px;
        list-style: none;
        padding: 14px 16px;
    }

    .dashboard-section-summary::-webkit-details-marker {
        display: none;
    }

    .dashboard-section-icon {
        align-items: center;
        background: #fff0f2;
        border-radius: 8px;
        color: #e41321;
        display: flex;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .dashboard-section-title {
        color: #1f2329;
        font-size: 18px;
        font-weight: 800;
    }

    .dashboard-count-badge {
        background: #e41321;
        border-radius: 999px;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        min-width: 28px;
        padding: 4px 9px;
        text-align: center;
    }

    .dashboard-section-chevron {
        color: #59616d;
        transition: transform .18s ease;
    }

    .dashboard-section[open] .dashboard-section-chevron {
        transform: rotate(180deg);
    }

    .dashboard-section-body {
        border-top: 1px solid rgba(31,35,41,0.07);
        padding: 16px;
    }

    .dashboard-list-grid {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-list-card,
    .dashboard-text-card,
    .dashboard-gift-card,
    .dashboard-empty {
        background: #fff;
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
    }

    .dashboard-list-card {
        display: grid;
        grid-template-columns: 138px minmax(0, 1fr);
        min-height: 160px;
        overflow: hidden;
    }

    .dashboard-list-image {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .dashboard-list-content,
    .dashboard-gift-content {
        display: grid;
        gap: 9px;
        min-width: 0;
        padding: 14px;
    }

    .dashboard-list-card h3,
    .dashboard-text-card h3,
    .dashboard-gift-card h3 {
        color: #20242a;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.2;
        margin: 0;
    }

    .dashboard-list-card p,
    .dashboard-gift-card p {
        display: -webkit-box;
        font-size: 14px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .dashboard-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .dashboard-chip {
        align-items: center;
        background: #f7f8fa;
        border: 1px solid #edf0f3;
        border-radius: 999px;
        color: #59616d;
        display: inline-flex;
        font-size: 12px;
        font-weight: 700;
        gap: 6px;
        line-height: 1;
        padding: 6px 9px;
    }

    .dashboard-chip-premium {
        background: #fff6df;
        color: #8b6200;
    }

    .dashboard-copy-url {
        font-size: 0;
        height: 0;
        overflow: hidden;
        position: absolute;
        width: 0;
    }

    .dashboard-card-stack {
        display: grid;
        gap: 12px;
    }

    .dashboard-text-card,
    .dashboard-gift-card {
        display: grid;
        gap: 12px;
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 14px;
    }

    .dashboard-text-card-icon {
        align-items: center;
        background: #fff0f2;
        border-radius: 8px;
        color: #e41321;
        display: flex;
        height: 52px;
        justify-content: center;
        width: 52px;
    }

    .dashboard-card-meta,
    .dashboard-muted {
        color: #6f7580;
        font-size: 13px;
    }

    .dashboard-gift-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .dashboard-gift-image {
        background: linear-gradient(180deg, #fff, #f7f8fa);
        border-radius: 8px;
        box-sizing: border-box;
        height: 84px;
        object-fit: contain;
        padding: 5px;
        width: 84px;
    }

    .dashboard-gift-status {
        align-items: center;
        color: #237a3a;
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        min-height: 40px;
    }

    .dashboard-empty,
    .dashboard-empty-state {
        align-items: center;
        color: #6f7580;
        display: flex;
        gap: 10px;
        padding: 18px;
    }

    .dashboard-empty i,
    .dashboard-empty-state i {
        color: #e41321;
    }

    .dashboard-empty-state {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .dashboard-empty-state h2 {
        color: #20242a;
        font-size: 18px;
        font-weight: 800;
        margin: 0 0 4px;
    }

    @media (max-width: 980px) {
        .dashboard-hero,
        .dashboard-list-grid {
            grid-template-columns: 1fr;
        }

        .dashboard-stats {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 640px) {
        .dashboard-list-card,
        .dashboard-empty-state {
            grid-template-columns: 1fr;
        }

        .dashboard-list-image {
            aspect-ratio: 16 / 9;
            height: auto;
        }

        .dashboard-section-summary {
            grid-template-columns: 42px minmax(0, 1fr) auto 18px;
            padding: 12px;
        }

        .dashboard-stats {
            grid-template-columns: 1fr 1fr;
        }
    }

/* Create and edit list (dev/components/com_create_list.php) */
.list-editor {
        color: #20242a;
        display: grid;
        gap: 18px;
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .list-editor :where(a, button, input, select, textarea, p, h1, h2, h3, h4, span, small, strong, label, div) {
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .list-editor-header,
    .list-editor-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 34px rgba(23,28,35,0.06);
    }

    .list-editor-header {
        padding: clamp(22px, 4vw, 34px);
    }

    .list-editor-header h1 {
        color: #1f2329;
        font-size: clamp(30px, 4vw, 46px);
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.04;
        margin: 0;
    }

    .list-editor-header p {
        color: #59616d;
        line-height: 1.5;
        margin: 10px 0 0;
        max-width: 720px;
    }

    .list-editor-form {
        margin: 0;
    }

    .list-editor-card {
        overflow: hidden;
    }

    .list-editor-grid {
        display: grid;
        gap: 22px;
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 22px;
    }

    .list-field-grid {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-field {
        min-width: 0;
    }

    .list-field-full {
        grid-column: 1 / -1;
    }

    .list-editor .uk-form-label {
        color: #252b33;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .list-editor .uk-input,
    .list-editor .uk-textarea,
    .list-editor .uk-select {
        border: 1px solid #dde1e7;
        border-radius: 8px;
        color: #20242a;
        font-size: 14px;
        min-height: 42px;
    }

    .list-editor .uk-input:focus,
    .list-editor .uk-textarea:focus,
    .list-editor .uk-select:focus {
        border-color: rgba(228, 19, 33, 0.55);
        box-shadow: 0 0 0 3px rgba(228, 19, 33, 0.10);
    }

    .list-theme-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
        padding: 0;
    }

    .list-theme-grid li {
        display: block;
    }

    .list-theme-link {
        border: 2px solid transparent;
        border-radius: 8px;
        color: #20242a;
        display: block;
        overflow: hidden;
        text-decoration: none;
    }

    .list-theme-link:hover {
        color: #e41321;
        text-decoration: none;
    }

    .list-theme-grid li.uk-active .list-theme-link {
        border-color: #e41321;
        box-shadow: 0 0 0 3px rgba(228, 19, 33, 0.10);
    }

    .list-theme-link img {
        aspect-ratio: 16 / 10;
        display: block;
        object-fit: cover;
        width: 100%;
    }

    .list-theme-link span {
        background: #fff;
        display: block;
        font-size: 12px;
        font-weight: 800;
        overflow: hidden;
        padding: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .list-side-panel {
        align-self: start;
        background: #fafafa;
        border: 1px solid #eceef2;
        border-radius: 8px;
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .list-side-panel h2 {
        color: #1f2329;
        font-size: 17px;
        font-weight: 800;
        margin: 0;
    }

    .list-security-options {
        display: grid;
        gap: 10px;
    }

    .list-security-option {
        align-items: center;
        background: #fff;
        border: 1px solid #dde1e7;
        border-radius: 8px;
        display: flex;
        gap: 10px;
        padding: 12px;
    }

    .list-security-option input {
        flex: 0 0 auto;
    }

    .list-security-option span {
        color: #252b33;
        font-size: 14px;
        font-weight: 800;
    }

    .list-upload-box {
        background: #fff;
        border: 1px dashed #d7dbe2;
        border-radius: 8px;
        padding: 16px;
        text-align: center;
    }

    .list-upload-box .uk-link {
        color: #e41321;
        font-weight: 800;
    }

    .list-upload-box img {
        border-radius: 8px;
        max-height: 180px;
        object-fit: cover;
        width: 100%;
    }

    .list-editor-actions {
        align-items: center;
        background: #fff;
        border-top: 1px solid #eceef2;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
        padding: 16px 22px;
    }

    .list-primary-button,
    .list-secondary-button {
        align-items: center;
        border-radius: 8px;
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        justify-content: center;
        min-height: 42px;
        padding: 0 16px;
        text-decoration: none;
    }

    .list-primary-button {
        background: #e41321;
        border: 1px solid #e41321;
        color: #fff;
    }

    .list-primary-button:hover {
        color: #fff;
        text-decoration: none;
    }

    .list-secondary-button {
        background: #fff;
        border: 1px solid #dde1e7;
        color: #252b33;
    }

    .list-secondary-button:hover {
        color: #e41321;
        text-decoration: none;
    }

    .list-terms {
        color: #59616d;
        font-size: 14px;
        line-height: 1.45;
    }

    @media (max-width: 980px) {
        .list-editor-grid {
            grid-template-columns: 1fr;
        }

        .list-theme-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 640px) {
        .list-field-grid,
        .list-theme-grid {
            grid-template-columns: 1fr;
        }

        .list-editor-actions {
            justify-content: stretch;
        }

        .list-editor-actions .list-primary-button,
        .list-editor-actions .list-secondary-button {
            flex: 1;
        }
    }

/* Add and edit wish (dev/components/com_add_wish.php) */
.wish-editor {
        color: #20242a;
        display: grid;
        gap: 18px;
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .wish-editor :where(a, button, input, select, textarea, p, h1, h2, h3, h4, span, small, strong, label, div) {
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .wish-editor-header,
    .wish-editor-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 34px rgba(23,28,35,0.06);
    }

    .wish-editor-header {
        padding: clamp(22px, 4vw, 34px);
    }

    .wish-editor-header h1 {
        color: #1f2329;
        font-size: clamp(30px, 4vw, 46px);
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.04;
        margin: 0;
    }

    .wish-editor-form {
        margin: 0;
    }

    .wish-editor-card {
        overflow: hidden;
    }

    .wish-smart-panel {
        background: #fff6f7;
        border-bottom: 1px solid rgba(228, 19, 33, 0.12);
        padding: 18px;
    }

    .wish-editor-grid {
        display: grid;
        gap: 22px;
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 22px;
    }

    .wish-field-grid {
        display: grid;
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wish-field {
        min-width: 0;
    }

    .wish-field-full {
        grid-column: 1 / -1;
    }

    .wish-editor .uk-form-label {
        color: #252b33;
        font-size: 13px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .wish-editor .uk-input,
    .wish-editor .uk-textarea,
    .wish-editor .uk-select,
    .wish-editor .select2-container--default .select2-selection--multiple {
        border: 1px solid #dde1e7;
        border-radius: 8px;
        color: #20242a;
        font-size: 14px;
        min-height: 42px;
    }

    .wish-editor .uk-input:focus,
    .wish-editor .uk-textarea:focus,
    .wish-editor .uk-select:focus,
    .wish-editor .select2-container--default.select2-container--focus .select2-selection--multiple {
        border-color: rgba(228, 19, 33, 0.55);
        box-shadow: 0 0 0 3px rgba(228, 19, 33, 0.10);
    }

    .merchant-suggestion-option {
        display: grid;
        gap: 2px;
        line-height: 1.35;
        padding: 2px 0;
    }

    .merchant-suggestion-option--branch {
        margin-left: 18px;
        position: relative;
    }

    .merchant-suggestion-option--branch::before {
        background: rgba(228, 19, 33, 0.34);
        border-radius: 999px;
        content: "";
        height: 6px;
        left: -13px;
        position: absolute;
        top: 10px;
        width: 6px;
    }

    .merchant-suggestion-option__name {
        color: #17202b;
        font-weight: 750;
    }

    .merchant-suggestion-option__meta {
        color: #6d7480;
        font-size: 12px;
    }

    .wish-url-row {
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .wish-primary-button,
    .wish-secondary-button {
        align-items: center;
        border-radius: 8px;
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        justify-content: center;
        min-height: 42px;
        padding: 0 16px;
        text-decoration: none;
    }

    .wish-primary-button {
        background: #e41321;
        border: 1px solid #e41321;
        color: #fff;
    }

    .wish-primary-button:hover {
        color: #fff;
        text-decoration: none;
    }

    .wish-secondary-button {
        background: #fff;
        border: 1px solid #dde1e7;
        color: #252b33;
    }

    .wish-secondary-button:hover {
        color: #e41321;
        text-decoration: none;
    }

    .wish-image-panel {
        align-self: start;
        background: #fafafa;
        border: 1px solid #eceef2;
        border-radius: 8px;
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .wish-image-preview {
        align-items: center;
        aspect-ratio: 4 / 3;
        background: #fff;
        border: 1px dashed #d7dbe2;
        border-radius: 8px;
        color: #7a828f;
        display: flex;
        justify-content: center;
        overflow: hidden;
        text-align: center;
    }

    .wish-image-preview img {
        display: none;
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .wish-image-preview.has-image img {
        display: block;
    }

    .wish-image-preview.has-image span {
        display: none;
    }

    .wish-upload-control {
        display: grid;
        gap: 8px;
    }

    .wish-upload-control input[type="file"] {
        display: none;
    }

    .wish-upload-hint {
        color: #6f7580;
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }

    .desire-heart-selector {
        display: inline-flex;
        gap: 4px;
        min-height: 40px;
        align-items: center;
    }

    .desire-heart {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #b8b8b8;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
    }

    .desire-heart:hover,
    .desire-heart:focus,
    .desire-heart.is-active {
        color: #d83f4b;
    }

    .desire-heart:focus {
        outline: 2px solid rgba(216, 63, 75, 0.35);
        outline-offset: 2px;
    }

    .wish-editor-actions {
        align-items: center;
        background: #fff;
        border-top: 1px solid #eceef2;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
        padding: 16px 22px;
    }

    @media (max-width: 900px) {
        .wish-editor-grid {
            grid-template-columns: 1fr;
        }

        .wish-image-panel {
            order: -1;
        }
    }

    @media (max-width: 640px) {
        .wish-field-grid,
        .wish-url-row {
            grid-template-columns: 1fr;
        }

        .wish-editor-actions {
            justify-content: stretch;
        }

        .wish-editor-actions .wish-primary-button,
        .wish-editor-actions .wish-secondary-button {
            flex: 1;
        }
    }

/* Manage list (dev/components/com_manage_list.php) */
.manage-list-page {
        color: #20242a;
        display: grid;
        gap: 18px;
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .manage-list-page :where(a, button, p, h1, h2, h3, h4, span, small, strong, div) {
        font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .manage-list-header,
    .manage-list-empty,
    .manage-wish-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(31,35,41,0.08);
        border-radius: 8px;
        box-shadow: 0 12px 34px rgba(23,28,35,0.06);
    }

    .manage-list-header {
        align-items: center;
        display: grid;
        gap: 18px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: clamp(22px, 4vw, 34px);
    }

    .manage-list-header h1 {
        color: #1f2329;
        font-size: clamp(30px, 4vw, 46px);
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.04;
        margin: 0;
    }

    .manage-list-meta {
        color: #6f7580;
        font-size: 13px;
        font-weight: 800;
        margin-top: 8px;
        text-transform: uppercase;
    }

    .manage-list-actions,
    .manage-wish-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .manage-list-button,
    .manage-wish-button,
    .manage-wish-icon-button {
        align-items: center;
        appearance: none;
        border-radius: 8px;
        cursor: pointer;
        display: inline-flex;
        font-family: inherit;
        font-size: 14px;
        font-weight: 800;
        gap: 8px;
        justify-content: center;
        min-height: 40px;
        line-height: 1;
        text-decoration: none;
    }

    .manage-list-button-primary,
    .manage-wish-button-primary {
        background: #e41321;
        border: 1px solid #e41321;
        color: #fff;
        padding: 0 16px;
    }

    .manage-list-button-primary:hover,
    .manage-wish-button-primary:hover {
        color: #fff;
        text-decoration: none;
    }

    .manage-list-button-secondary,
    .manage-wish-icon-button {
        background: #fff;
        border: 1px solid #dde1e7;
        color: #252b33;
        padding: 0 14px;
    }

    .manage-list-button-secondary:hover,
    .manage-wish-icon-button:hover {
        color: #e41321;
        text-decoration: none;
    }

    .manage-wish-icon-button:disabled,
    .manage-wish-icon-button.is-disabled {
        cursor: wait;
        opacity: 0.62;
    }

    .manage-wish-grid {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manage-wish-card {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
        min-width: 0;
        overflow: hidden;
    }

    .manage-wish-image {
        background: linear-gradient(180deg, #fff, #f7f8fa);
        box-sizing: border-box;
        height: 100%;
        min-height: 160px;
        object-fit: contain;
        padding: 8px;
        width: 100%;
    }

    .manage-wish-content {
        align-items: start;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
        padding: 18px;
    }

    .manage-wish-content h2 {
        color: #1f2329;
        font-size: 19px;
        font-weight: 800;
        line-height: 1.22;
        margin: 0;
    }

    .manage-wish-description {
        color: #59616d;
        font-size: 14px;
        line-height: 1.45;
        margin: 0;
    }

    .manage-wish-meta {
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .manage-wish-chip {
        align-items: center;
        background: #fff6f7;
        border: 1px solid rgba(228,19,33,.10);
        border-radius: 999px;
        color: #4e5662;
        display: inline-flex;
        font-size: 12px;
        font-weight: 800;
        gap: 6px;
        line-height: 1.2;
        min-height: 28px;
        padding: 0 10px;
    }

    .manage-wish-actions {
        align-items: center;
        margin-top: 2px;
    }

    .desirability-hearts {
        display: inline-flex;
        gap: 3px;
        color: #d83f4b;
        vertical-align: middle;
    }

    .desirability-hearts .far {
        color: #b8b8b8;
    }

    .manage-list-empty {
        align-items: center;
        color: #6f7580;
        display: flex;
        gap: 10px;
        padding: 22px;
    }

    .manage-list-empty i {
        color: #e41321;
    }

    @media (max-width: 980px) {
        .manage-wish-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 680px) {
        .manage-list-header,
        .manage-wish-card {
            grid-template-columns: 1fr;
        }

        .manage-list-actions {
            justify-content: stretch;
        }

        .manage-list-button {
            flex: 1;
        }

        .manage-wish-image {
            aspect-ratio: 16 / 9;
            min-height: 0;
        }
    }
