:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #1f2933;
    background-color: #f5f7fa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.top-bar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar__brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar__brand > a:first-child {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-bar__brand > a:first-child:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.top-bar__pricing-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.top-bar__pricing-link:hover {
    color: #ea580c;
    text-decoration: none;
}

.top-bar__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.top-bar__nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e4e7eb;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
}

.top-bar__hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
    margin: 2px 0;
}

.top-bar__mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem 1rem;
    z-index: 900;
}

.top-bar__mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.top-bar__mobile-link {
    display: block;
    padding: 0.45rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
}

.top-bar__mobile-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.top-bar__mobile-link--primary {
    color: #2563eb;
}

.top-bar__mobile-link--accent {
    color: #f97316;
}

.top-bar__mobile-menu--open {
    display: block;
}

.top-bar__nav-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.top-bar__nav-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.top-bar__nav-link--active {
    color: #1d4ed8;
}

.top-bar__user-menu {
    position: relative;
}

.top-bar__user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.top-bar__user-toggle:hover {
    background: #f8fafc;
    border-color: #cbd2d9;
}

.top-bar__user-icon {
    color: #64748b;
    flex-shrink: 0;
}

.top-bar__user-name {
    font-weight: 500;
    color: #1f2933;
}

.top-bar__user-arrow {
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.top-bar__user-dropdown--open .top-bar__user-arrow {
    transform: rotate(180deg);
}

.top-bar__user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.top-bar__user-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.top-bar__dropdown-item:last-child {
    border-bottom: none;
}

.top-bar__dropdown-item:hover {
    background: #f8fafc;
    color: #1f2933;
}

.top-bar__dropdown-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.top-bar__dropdown-item--logout {
    color: #ef4444;
}

.top-bar__dropdown-item--logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.top-bar__dropdown-item--logout svg {
    color: #ef4444;
}

.top-bar__dropdown-item--active {
    background: #eff6ff;
    color: #1d4ed8;
}

.top-bar__dropdown-item--active svg {
    color: #2563eb;
}

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

.list-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.table-card {
    overflow: visible;
}

.card h2 {
    margin-top: 0;
}

.card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card input,
.card select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.card textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.45;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
}

#sms_message,
#email_body {
    min-height: 120px;
}

/* Fix: Make radio and checkbox inputs left-aligned rather than stretched full width */
.card input[type="radio"],
.card input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    /* Remove background, just inherit default */
}

.card button {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-inline input {
    width: auto;
    margin: 0;
}

.checkbox-inline + button {
    margin-top: 0.5rem;
}

.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert.success {
    background: #e1f7e9;
    color: #136128;
    border: 1px solid #9cdcae;
}

.alert.error {
    background: #fde2e1;
    color: #b91c1c;
    border: 1px solid #f5b4b4;
}

.result img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    display: block;
    margin-top: 1rem;
    border: 1px solid #e4e7eb;
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.1);
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
    overflow: visible;
}

.table-card th,
.table-card td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e4e7eb;
    text-align: left;
}

.table-card th {
    background: #f0f4f8;
    font-weight: 600;
    color: #334155;
}

.table-card tr:hover td {
    background: #f8fafc;
}

.table-card td {
    position: relative;
    overflow: visible;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-card {
    max-width: 420px;
    margin: 4rem auto;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.landing-hero {
    background: #fef3c7 url('../images/wantqr_bg_shapes.webp') no-repeat center center;
    background-size: cover;
    min-height: auto;
    width: 100%;
    padding: 3rem 0 3rem 0;
    position: relative;
}

.landing-hero__icon-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.landing-hero__floating-icon {
    position: absolute;
    color: #f97316;
    font-size: var(--icon-size, 1.3rem);
    opacity: var(--icon-opacity, 0.3);
    filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.28));
    will-change: transform, opacity;
    animation: heroIconFloat var(--float-duration, 16s) ease-in-out var(--float-delay, 0s) infinite alternate;
}

@keyframes heroIconFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.92);
        opacity: calc(var(--icon-opacity, 0.3) * 0.9);
    }
    50% {
        transform: translate3d(calc(var(--drift-x, 48px) * 0.6), calc(var(--drift-y, -52px) * 0.6), 0) rotate(7deg) scale(1);
        opacity: var(--icon-opacity, 0.3);
    }
    100% {
        transform: translate3d(var(--drift-x, 48px), var(--drift-y, -52px), 0) rotate(-8deg) scale(1.1);
        opacity: calc(var(--icon-opacity, 0.3) * 0.95);
    }
}

.landing-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

.landing-hero__text {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.landing-hero__text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1f2933;
    text-align: left;
}

.landing-hero__text p {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.animated-gradient-text {
    color: #f97316;
    background: linear-gradient(
        115deg,
        #fdba74 0%,
        #fb923c 28%,
        #f97316 58%,
        #ea580c 82%,
        #c2410c 100%
    );
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    text-shadow: 0 0 16px rgba(249, 115, 22, 0.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    35% { background-position: 100% 30%; }
    70% { background-position: 25% 100%; }
    100% { background-position: 0% 50%; }
}

.landing-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-hero__image img {
    max-width: 100%;
    max-height: 48vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.landing-hero__badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.landing-hero__card .card {
    margin: 0;
}

.btn-primary,
.btn-secondary {
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.4);
}

.card .btn-primary,
.card button.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
}

.card .btn-primary:hover,
.card button.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.4) !important;
}

.btn-info {
    background: #f5f5f4;
    color: #f97316;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
    text-decoration: none;
}

.btn-action {
    background: #f5f5f4;
    color: #16a34a;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
    text-decoration: none;
}

.card .btn-danger,
.card button.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    border-radius: 8px;
}

.card .btn-danger:hover,
.card button.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35) !important;
}

.card .btn-secondary,
.card button.btn-secondary {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
}

.card .btn-secondary:hover,
.card button.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.4);
    text-decoration: none;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    font-weight: 600;
}

.section {
    background: #ffffff;
    padding: 4rem 0;
}

.home-badges-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 1.25rem 1.5rem;
    width: 100%;
    background: #f8fafc;
    padding: 2.5rem 1rem 0.5rem;
}

.home-badges-section a {
    display: inline-flex;
    line-height: 0;
}

.features-section {
    background: #f8fafc;
    padding: 0 0 1rem 0;
}

.features-section .container > h2:first-of-type {
    margin-top: 0;
}

.feature-card {
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2933;
    font-size: 1.5rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.landing-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.payload-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.payload-card {
    padding: 1.2rem;
    text-align: center;
}

.payload-icon {
    color: #f97316;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.payload-title {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: #1f2933;
}

.payload-card p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
}

.landing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.landing-card h2 {
    margin-top: 0;
}

.landing-card ol {
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.landing-card p {
    color: #475569;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.feature-list li {
    margin-bottom: 0.85rem;
}

.landing-footer {
    background: #ffffff;
    padding: 4rem 0 0 0;
    border-top: 1px solid #e4e7eb;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e4e7eb;
    align-items: flex-start;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    text-align: left;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2933;
    margin: 0 0 1rem 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #f97316;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer-copyright {
    color: #94a3b8;
}

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

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #64748b;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.table-responsive {
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.table-responsive table {
    width: 100%;
    overflow: visible;
}

.admin-nav {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-nav__link {
    padding: 0.65rem 1.15rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.admin-nav__link:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.admin-nav__link--active,
.admin-nav__link--active:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.admin-nav__link--active:hover {
    transform: translateY(-1px);
}

.admin-table-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-table-control label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #475569;
}

.admin-table-control input,
.admin-table-control select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd2d9;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.admin-table {
    table-layout: fixed;
}

.admin-link-cell {
    max-width: 0;
}

.admin-table-link {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .table-card td {
        word-break: break-word;
    }

    .payload-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0;
    }

    .table-card table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-card thead {
        display: none;
    }

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

    .table-card tr {
        border: 1px solid #e4e7eb;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
        overflow: visible;
    }

    .table-card td {
        border-bottom: 1px solid #f1f5f9;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        overflow: visible;
    }

    .table-card td:last-child {
        border-bottom: none;
    }

    .table-card td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        min-width: 120px;
        flex-shrink: 0;
    }

    .table-card td > * {
        width: 100%;
    }

    .table-card td > .btn-secondary,
    .table-card td > .copy-btn {
        width: auto;
        align-self: flex-start;
    }

    .table-card td .short-link,
    .table-card td .url-link {
        word-break: break-word;
        overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
    }

    .admin-table-controls {
        grid-template-columns: 1fr;
    }

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

/* URL Link Hover Preview */
.url-link {
    position: relative;
    cursor: pointer;
}

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

/* QR Code Color Cards */
.qr-color-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    justify-items: start;
    align-items: start;
}

.qr-color-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.qr-module-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    justify-self: start;
    align-self: start;
    width: 100%;
}

.qr-module-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.qr-module-card .qr-module-options,
.qr-module-card .qr-module-option {
    text-align: left;
}

.qr-color-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.qr-color-picker {
    width: 100%;
    height: 60px;
    border: 2px solid #e4e7eb;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.qr-rgb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.qr-rgb-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.qr-rgb-input {
    width: 100%;
    padding: 0.35rem;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    font-size: 0.85rem;
}

.qr-color-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
}

.qr-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #cbd2d9;
    display: block;
}

.qr-color-hex {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
}

.qr-checkbox-label {
    display: block;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.qr-checkbox-label input {
    margin-right: 0.5rem;
}

.qr-checkbox-label span {
    font-size: 0.75rem;
    color: #475569;
}

.qr-module-options {
    padding: 0;
    margin: 0;
    text-align: left;
    display: block;
    width: 100%;
}

.qr-module-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
    justify-content: flex-start;
    width: 100%;
}

.qr-module-option input[type="radio"],
.qr-module-option input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-left: 0;
    flex-shrink: 0;
    order: 1;
}

.qr-module-option span {
    font-size: 0.85rem;
    order: 2;
}

.url-preview {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    min-width: 280px;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: normal;
}

.url-link:hover .url-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.url-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
}

.url-preview__domain {
    font-weight: 600;
    color: #1f2933;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-preview__domain::before {
    content: '🌐';
    font-size: 1rem;
}

.url-preview__title {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.url-preview__url {
    color: #475569;
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
}

.url-preview__arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.1));
}

/* QR Code Hover Preview */
.short-link {
    position: relative;
    cursor: pointer;
}

.qr-preview {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: normal;
}

.short-link:hover .qr-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.qr-preview img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.qr-preview__arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.1));
}

@media (max-width: 1024px) {
    .top-bar__container {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .top-bar__brand {
        flex: 1;
        min-width: 0;
        gap: 0.75rem;
    }

    .top-bar__pricing-link {
        display: none;
    }

    .top-bar__hamburger {
        display: flex;
    }

    .top-bar__nav {
        flex-wrap: nowrap;
        gap: 0.4rem;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 800;
    }

    .top-bar__new-btn,
    .top-bar__signin-btn,
    .top-bar__register-btn {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
        white-space: nowrap;
    }

    .top-bar__user-toggle {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem !important;
    }

    .top-bar__user-name {
        display: none;
    }

    .top-bar__user-icon {
        width: 18px;
        height: 18px;
    }

    .container {
        padding: 2rem 1.5rem 4rem;
    }

    .landing-hero {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .landing-hero__container {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .landing-hero__floating-icon {
        font-size: calc(var(--icon-size, 1.2rem) * 0.9);
    }

    .landing-hero__text {
        text-align: center;
        padding: 0;
    }

    .landing-hero__text h1 {
        font-size: 2rem;
        text-align: center;
    }

    .landing-hero__text p {
        font-size: 1.1rem;
    }

    .landing-hero__actions {
        justify-content: center;
    }

    .landing-hero__image {
        padding: 2rem 2rem 2rem 2rem;
    }

    .url-preview {
        min-width: 240px;
        max-width: 90vw;
    }

    .qr-preview img {
        width: 150px;
        height: 150px;
    }

    /* Make landing card grids denser on small screens */
    .landing-columns {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__floating-icon {
        animation: none;
    }
}

@media (max-width: 480px) {
    .top-bar__container {
        padding: 0 0.75rem;
        gap: 0.35rem;
    }

    .top-bar__brand {
        gap: 0.65rem;
    }

    .top-bar__logo {
        height: 32px;
    }

    .top-bar__pricing-link {
        font-size: 0.8rem;
    }

    .top-bar__new-btn,
    .top-bar__signin-btn,
    .top-bar__register-btn {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.55rem !important;
    }

    .top-bar__user-toggle {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    .payload-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Pricing page
   ============================================================ */

.pricing-section {
    padding: 2rem 0 4rem;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.pricing-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1f2933;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pricing-hero p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.pricing-card.is-current {
    border-color: #10b981;
}

.pricing-card.is-popular {
    border-color: #f97316;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.18);
}

.pricing-card.is-popular:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(249, 115, 22, 0.22);
}

.pricing-card__accent {
    height: 5px;
}

.pricing-card__header {
    padding: 1.75rem 1.75rem 1.25rem;
}

.pricing-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.pricing-card__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.badge-popular {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.badge-current {
    background: #d1fae5;
    color: #065f46;
}

.pricing-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2933;
    margin: 0 0 0.2rem;
}

.pricing-card__subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0 0 1.25rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0;
}

.pricing-card__price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-card__price-period {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.pricing-card__price-contact {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.pricing-card__divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 1.75rem;
}

.pricing-card__features {
    padding: 1.25rem 1.75rem 1.5rem;
    flex: 1;
}

.pricing-card__features-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.875rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}

.feature-list li + li {
    border-top: 1px solid #f8fafc;
}

.feature-check {
    flex-shrink: 0;
    margin-top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list li strong {
    color: #1f2933;
    font-weight: 700;
}

.pricing-card__cta {
    padding: 0 1.75rem 1.75rem;
}

.pricing-card__cta .btn-primary,
.pricing-card__cta .btn-current,
.pricing-card__cta .btn-outline {
    width: 100%;
    padding: 0.85rem 1.5rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    display: block;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    border: none;
}

.pricing-card__cta .btn-current {
    background: #d1fae5;
    color: #065f46;
    cursor: default;
}

.pricing-card__cta .btn-outline {
    background: #f8fafc;
    color: #374151;
    border: 1.5px solid #e2e8f0;
}

.pricing-card__cta .btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.is-popular {
        transform: none;
    }

    .pricing-card.is-popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero h1 {
        font-size: 1.9rem;
    }
}

/* ============================================================
   Blog — public pages
   ============================================================ */
.blog-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 1px solid #fed7aa;
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem;
}
.blog-hero p {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 560px;
}
.blog-grid-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.blog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}
.blog-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.blog-card__img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #f97316;
}
.blog-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card__meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.blog-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}
.blog-card__excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f97316;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}
.blog-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1rem;
}
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all 0.15s;
}
.blog-pagination a:hover {
    border-color: #f97316;
    color: #f97316;
    text-decoration: none;
}
.blog-pagination .active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ============================================================
   Generic page hero (Blog-style header band)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 1px solid #fed7aa;
    padding: 2.25rem 0 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.page-hero p {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 60ch;
}

@media (max-width: 640px) {
    .page-hero {
        padding: 1.75rem 0 1.5rem;
    }
    .page-hero h1 {
        font-size: 1.85rem;
    }
}

/* Blog post single */
.blog-post-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.blog-post-breadcrumb {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.blog-post-breadcrumb a {
    color: #f97316;
    text-decoration: none;
}
.blog-post-breadcrumb a:hover { text-decoration: underline; }
.blog-post-header { margin-bottom: 2rem; }
.blog-post-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #64748b;
}
.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.blog-post-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffedd5;
}
.blog-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
}
.blog-post-content p { margin: 0 0 1.25rem; }
.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}
.blog-post-content li { margin-bottom: 0.5rem; }
.blog-post-content a { color: #f97316; text-decoration: underline; }
.blog-post-content a:hover { color: #ea580c; }
.blog-post-content strong { color: #1e293b; }
.blog-post-content code {
    background: #f1f5f9;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.blog-post-content table th,
.blog-post-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}
.blog-post-content table thead tr { background: #f8fafc; }

/* Blog sidebar */
.blog-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.blog-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.blog-cta-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}
.blog-cta-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.6;
}
.blog-related-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}
.blog-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.blog-related-item:hover { text-decoration: none; }
.blog-related-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}
.blog-related-item:hover .blog-related-item__title { color: #f97316; }
.blog-related-item__date {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ============================================================
   Blog — admin forms
   ============================================================ */
.blog-form-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.blog-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}
.blog-form-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.blog-form-input,
.blog-form-textarea,
.blog-form-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s;
    font-family: inherit;
}
.blog-form-input:focus,
.blog-form-textarea:focus,
.blog-form-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.blog-form-textarea { resize: vertical; min-height: 120px; }
.blog-form-textarea.content {
    min-height: 450px;
    font-family: monospace;
    font-size: 0.875rem;
}
.blog-form-row { margin-bottom: 1.25rem; }
.char-count {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 0.2rem;
}
.char-count.warn { color: #f59e0b; }
.char-count.over { color: #dc2626; }

@media (max-width: 900px) {
    .blog-post-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
    .blog-post-header h1 { font-size: 1.7rem; }
    .blog-post-sidebar { order: -1; }
    .blog-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .blog-hero h1 { font-size: 1.75rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid-section { padding: 2rem 1rem; }
}

/* --- Public status page (UptimeRobot) --- */
.status-page {
    padding: 2.5rem 1rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.status-hero {
    margin-bottom: 2rem;
}
.status-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f97316;
    margin: 0 0 0.5rem;
}
.status-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.status-hero__lead {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    max-width: 52ch;
}
.status-hero__lead strong {
    color: #1e293b;
}
.status-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.status-banner i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.status-banner--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.status-banner--error i {
    color: #dc2626;
}
.status-banner--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.status-banner--warning i {
    color: #d97706;
}
.status-banner--meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.status-banner__muted {
    color: #94a3b8;
    font-weight: 500;
}
.status-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}
.status-summary__icon {
    font-size: 2.25rem;
    line-height: 1;
}
.status-summary--operational {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #a7f3d0;
}
.status-summary--operational .status-summary__icon {
    color: #059669;
}
.status-summary--degraded {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border-color: #fcd34d;
}
.status-summary--degraded .status-summary__icon {
    color: #d97706;
}
.status-summary--down {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border-color: #fecaca;
}
.status-summary--down .status-summary__icon {
    color: #dc2626;
}
.status-summary--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.status-summary--muted .status-summary__icon {
    color: #94a3b8;
}
.status-summary__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #0f172a;
}
.status-summary__sub {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}
.status-summary__updated {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    text-align: right;
    color: #475569;
    font-size: 0.82rem;
}
.status-summary__updated-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
}
.status-summary__updated strong {
    font-size: 0.86rem;
    color: #0f172a;
}
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: -0.65rem 0 1.35rem;
    font-size: 0.82rem;
    color: #64748b;
}
.status-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.status-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.status-legend__dot--up { background: #22c55e; }
.status-legend__dot--partial { background: #68e696; }
.status-legend__dot--warn { background: #f59e0b; }
.status-legend__dot--down { background: #ef4444; }
.status-legend__dot--unknown { background: #cbd5e1; }
.status-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
}
.status-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 14px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.status-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.status-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.status-card__name {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.status-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
}
.status-pill--operational {
    background: #d1fae5;
    color: #047857;
}
.status-pill--degraded {
    background: #fef3c7;
    color: #b45309;
}
.status-pill--down {
    background: #fee2e2;
    color: #b91c1c;
}
.status-pill--pending {
    background: #e0f2fe;
    color: #0369a1;
}
.status-pill--muted {
    background: #f1f5f9;
    color: #64748b;
}
.status-card__url {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    word-break: break-all;
}
.status-card__url a {
    color: #2563eb;
    text-decoration: none;
}
.status-card__url a:hover {
    text-decoration: underline;
}
.status-card__stats {
    margin: 0;
    padding: 0.95rem 0 0;
    border-top: 1px solid #f1f5f9;
    display: grid;
    gap: 0.5rem;
}
.status-card__stats dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0;
}
.status-card__stats dd {
    margin: 0.15rem 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.status-bars {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    container-type: inline-size;
}
.status-bars__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.status-bars__bar {
    height: 40px;
    width: 100%;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 0.15rem;
    overflow: hidden;
}
.status-bars__pct {
    font-size: clamp(0.55rem, 1.8cqi, 0.72rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    white-space: nowrap;
}
.status-bars__bar--up .status-bars__pct,
.status-bars__bar--partial .status-bars__pct,
.status-bars__bar--warn .status-bars__pct,
.status-bars__bar--down .status-bars__pct {
    color: #fff;
}
.status-bars__bar--unknown .status-bars__pct {
    color: #475569;
    font-weight: 700;
    font-size: clamp(0.5rem, 1.5cqi, 0.65rem);
}
.status-bars__pct--empty {
    font-weight: 700;
}
.status-bars__date {
    font-size: clamp(0.6rem, 1.8cqi, 0.72rem);
    font-weight: 700;
    color: #64748b;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}
.status-bars__bar--up {
    background: #22c55e;
}
.status-bars__bar--warn {
    background: #f59e0b;
}
.status-bars__bar--down {
    background: #ef4444;
}
.status-bars__bar--partial {
    background: #68e696;
}
.status-bars__bar--unknown {
    background: #cbd5e1;
}
.status-downtime {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}
.status-downtime__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.5rem;
}
.status-downtime__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.status-downtime__window {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}
.status-downtime__empty {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    color: #15803d;
    line-height: 1.35;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}
.status-downtime__empty i {
    font-size: 0.9rem;
    opacity: 0.9;
}
.status-downtime__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.status-downtime__item {
    margin: 0;
}
.status-downtime__card {
    background: #fafafa;
    border: 1px solid #ebeef2;
    border-radius: 12px;
    border-left: 3px solid #fca5a5;
    padding: 0.45rem 0.65rem 0.5rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.status-downtime__duration {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    line-height: 1.2;
}
.status-downtime__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    line-height: 1.2;
}
.status-downtime__badge--live {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.status-downtime__grid {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(3.25rem, auto) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
    align-items: start;
}
@media (max-width: 480px) {
    .status-downtime__grid {
        grid-template-columns: 1fr 1fr;
    }
    .status-downtime__cell--narrow {
        grid-column: 1 / -1;
    }
    /* Mobile: each bar gets narrower, so tighten spacing and shrink the % label. */
    .status-bars {
        gap: 0.2rem;
    }
    .status-bars__bar {
        padding: 0;
        height: 32px;
    }
    .status-bars__pct {
        font-size: clamp(0.36rem, 2cqi, 0.5rem);
        letter-spacing: -0.035em;
    }
    .status-bars__date {
        font-size: clamp(0.5rem, 2cqi, 0.6rem);
    }
}
.status-downtime__cell {
    margin: 0;
    min-width: 0;
}
.status-downtime__cell--narrow dd {
    line-height: 1.2;
}
.status-downtime__cell dt {
    margin: 0 0 0.1rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.2;
}
.status-downtime__cell dd {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.status-downtime__reason {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.76rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.35;
}
.status-downtime__reason i {
    margin-top: 0.1rem;
    color: #94a3b8;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.status-downtime__note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}
.status-downtime__note code {
    font-size: 0.92em;
    background: #f8fafc;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.status-empty {
    padding: 2rem 1.25rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
.status-empty code {
    font-size: 0.88em;
    background: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.status-foot {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4e7eb;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}
.status-foot code {
    font-size: 0.85em;
    font-family: ui-monospace, monospace;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.status-foot a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.status-foot a:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .status-hero__title { font-size: 1.85rem; }
    .status-summary { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .status-summary__updated { margin-left: 0; align-items: flex-start; text-align: left; }
    .status-grid { grid-template-columns: 1fr; }
}

