:root {
    --owner-primary: #2563eb;
    --owner-primary-dark: #1d4ed8;
    --owner-accent: #6366f1;
    --owner-sidebar: #0b1220;
    --owner-sidebar-hover: #1a2332;
    --owner-bg: #eef2f7;
    --owner-card: #ffffff;
    --owner-text: #0f172a;
    --owner-muted: #64748b;
    --owner-border: #e2e8f0;
    --owner-radius: 16px;
    --owner-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --owner-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    /* Clearance above phone system nav / home indicator (Android often reports 0 safe-area) */
    --owner-system-nav-inset: max(24px, env(safe-area-inset-bottom, 0px));
    --owner-bottom-nav-total: calc(68px + var(--owner-system-nav-inset));
}

* { box-sizing: border-box; }

body.owner-app {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--owner-bg);
    color: var(--owner-text);
    margin: 0;
    min-height: 100vh;
}

.owner-shell {
    display: flex;
    min-height: 100vh;
}

.owner-sidebar {
    width: 260px;
    background: var(--owner-sidebar);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1040;
    transition: transform 0.25s ease;
    overflow: hidden;
}

.owner-sidebar-brand {
    padding: 1.35rem 1.15rem 1.1rem;
    padding-top: max(1.35rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(37,99,235,0.12) 0%, transparent 100%);
    flex-shrink: 0;
}

.owner-topbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--owner-muted);
    text-decoration: none;
    border: 1px solid var(--owner-border, #e2e8f0);
    background: #fff;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.owner-topbar-logout:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.owner-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.owner-brand-avatar,
.owner-topbar-avatar,
.owner-hero-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.owner-brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1rem;
}

.owner-brand-text {
    min-width: 0;
}

.owner-sidebar-brand .business-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: #fff;
    word-break: break-word;
}

.owner-brand-tag {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.owner-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.owner-meta-row span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.owner-nav {
    padding: 0.75rem 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.owner-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.owner-nav a:hover {
    background: var(--owner-sidebar-hover);
    color: #fff;
}

.owner-nav a.active {
    background: var(--owner-primary);
    color: #fff;
}

.owner-nav a i {
    font-size: 1.15rem;
    width: 1.35rem;
    text-align: center;
}

.owner-nav-logout {
    margin-top: 0.5rem;
    color: #fca5a5 !important;
    border: 1px solid rgba(252, 165, 165, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

.owner-nav-logout:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fecaca !important;
}

.owner-nav-tour {
    margin-top: 0.35rem;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.22);
    background: rgba(59, 130, 246, 0.1);
}

.owner-nav-tour:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #dbeafe !important;
}

.owner-sidebar-footer {
    padding: 1rem 1.25rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.owner-sidebar-footer a {
    color: #fca5a5;
    text-decoration: none;
}

.owner-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

.owner-topbar {
    background: var(--owner-card);
    border-bottom: 1px solid var(--owner-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.owner-topbar-brand h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--owner-muted);
}

.owner-topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.owner-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--owner-text);
    padding: 0.25rem;
}

.owner-topbar-avatar-mobile {
    display: none;
}

.owner-topbar-avatar-desktop {
    display: flex;
}

.owner-topbar-business {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--owner-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Mobile bottom navigation */
.owner-bottom-nav {
    display: none;
}

.owner-content {
    padding: 1.25rem 1.5rem 2rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Premium dashboard hero */
.owner-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.35rem;
    margin-bottom: 1.25rem;
    color: #fff;
    box-shadow: var(--owner-shadow-lg);
    position: relative;
    overflow: hidden;
}

.owner-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.owner-hero-inner {
    position: relative;
    z-index: 1;
}

.owner-hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.owner-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 1.35rem;
    border: 2px solid rgba(255,255,255,0.25);
}

.owner-hero-greeting {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0 0 0.25rem;
}

.owner-hero-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.owner-hero-sub {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.owner-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.owner-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
}

.owner-pill-success { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.35); }
.owner-pill-warning { background: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.35); }
.owner-pill-danger { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.35); }
.owner-pill-offer { background: rgba(168, 85, 247, 0.25); border-color: rgba(168, 85, 247, 0.4); }

.owner-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.owner-action-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    background: var(--owner-card);
    border: 1px solid var(--owner-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--owner-text);
    box-shadow: var(--owner-shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    min-height: 110px;
}

.owner-action-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--owner-shadow-lg);
    border-color: #cbd5e1;
    color: var(--owner-text);
}

.owner-action-tile.tile-primary {
    background: linear-gradient(145deg, #eff6ff 0%, #fff 100%);
    border-color: #bfdbfe;
}

.owner-action-tile.tile-offer {
    background: linear-gradient(145deg, #faf5ff 0%, #fff 100%);
    border-color: #e9d5ff;
}

.owner-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--owner-primary);
    margin-bottom: 0.25rem;
}

.tile-primary .owner-action-icon { background: #dbeafe; }
.tile-offer .owner-action-icon { background: #ede9fe; color: #7c3aed; }

.owner-action-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.owner-action-desc {
    font-size: 0.78rem;
    color: var(--owner-muted);
    line-height: 1.35;
}

.owner-stat-grid-premium .owner-stat-card {
    border-radius: 16px;
    transition: transform 0.15s;
}

.owner-stat-grid-premium .owner-stat-card:hover {
    transform: translateY(-1px);
}

.owner-card-premium {
    border-radius: 16px;
    overflow: hidden;
}

.owner-card-premium .owner-card-header {
    background: #f8fafc;
    font-size: 0.95rem;
}

/* Generate vouchers — premium layout */
.owner-generate-layout {
    align-items: stretch;
}

.owner-generate-form-card {
    position: relative;
    background: var(--owner-card);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: var(--owner-shadow-lg);
    overflow: hidden;
}

.owner-generate-form-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.owner-generate-form-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.35rem 1.1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    position: relative;
    z-index: 1;
}

.owner-generate-form-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fde047;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.owner-generate-form-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.owner-generate-form-sub {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.owner-generate-form-body {
    padding: 1.35rem;
    position: relative;
    z-index: 1;
}

.owner-generate-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.owner-generate-step-num {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Package picker cards (replaces native select) */
.owner-package-picker {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.owner-package-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.owner-package-option:active {
    transform: scale(0.99);
}

.owner-package-option.selected {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.owner-package-option-check {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.owner-package-option.selected .owner-package-option-check {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.owner-package-option-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.owner-package-option-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--owner-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.owner-package-option-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.owner-package-option-price {
    font-weight: 800;
    color: #15803d;
}

.owner-package-option-dot {
    color: #94a3b8;
    font-weight: 700;
}

.owner-package-option-duration {
    color: var(--owner-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.owner-package-option-duration i {
    font-size: 0.78rem;
    color: var(--owner-primary);
}

.owner-package-option-wifi {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.owner-package-option.selected .owner-package-option-wifi {
    background: #dbeafe;
    color: #2563eb;
}

.owner-generate-manage-link {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
}

.owner-generate-manage-link a {
    color: var(--owner-primary);
    text-decoration: none;
    font-weight: 600;
}

.owner-generate-manage-link a:hover {
    text-decoration: underline;
}

.owner-generate-package-ticket {
    position: relative;
    margin-top: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    overflow: hidden;
}

.owner-generate-ticket-notch {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--owner-card);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 1px solid #bfdbfe;
}

.owner-generate-ticket-notch-left { left: -8px; }
.owner-generate-ticket-notch-right { right: -8px; }

.owner-generate-ticket-inner {
    padding: 1rem 1.15rem;
}

.owner-generate-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--owner-primary-dark);
    margin-bottom: 0.35rem;
}

.owner-generate-ticket-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--owner-text);
    margin-bottom: 0.5rem;
}

.owner-generate-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.88rem;
    color: #334155;
}

.owner-generate-ticket-meta i {
    color: var(--owner-primary);
    margin-right: 0.2rem;
}

.owner-generate-qty-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.owner-generate-qty-btn {
    width: 48px;
    border: 1px solid var(--owner-border);
    background: #f8fafc;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--owner-primary-dark);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.owner-generate-qty-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
}

.owner-generate-qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.owner-generate-qty-input {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    border-radius: 12px;
    min-height: 52px;
    letter-spacing: 0.05em;
}

.owner-generate-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.owner-generate-preset {
    flex: 1;
    border: 1px solid var(--owner-border);
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--owner-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.owner-generate-preset:hover,
.owner-generate-preset.active {
    border-color: var(--owner-primary);
    background: #eff6ff;
    color: var(--owner-primary-dark);
}

.owner-generate-slots {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--owner-border);
}

.owner-generate-slots-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #475569;
}

.owner-generate-slots-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.owner-generate-slots-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.owner-generate-slots-warn {
    font-size: 0.82rem;
    color: #b91c1c;
    font-weight: 600;
}

.owner-generate-revenue {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
}

.owner-generate-revenue-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
    margin-bottom: 0.25rem;
}

.owner-generate-revenue-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #14532d;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.owner-generate-revenue-detail {
    font-size: 0.78rem;
    color: #166534;
    margin-top: 0.2rem;
}

.owner-generate-submit {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    border: none;
}

.owner-generate-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

.owner-generate-submit-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: ownerGenerateShine 4s ease-in-out infinite;
}

@keyframes ownerGenerateShine {
    0%, 70% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.owner-generate-step-qty {
    margin-top: 0.85rem;
}

.owner-generate-slots-inline {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--owner-muted);
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.owner-generate-sticky-bar {
    display: none;
}

.owner-generate-sticky-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--owner-border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
}

.owner-generate-sticky-summary {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.owner-generate-sticky-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--owner-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-generate-sticky-total {
    font-size: 0.78rem;
    font-weight: 700;
    color: #15803d;
}

.owner-generate-sticky-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    white-space: nowrap;
}

.owner-generate-sticky-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.owner-generate-sticky-btn:not(:disabled):active {
    transform: scale(0.98);
}

.owner-generate-preview-panel {
    position: relative;
    min-height: 420px;
    border-radius: 20px;
    border: 1px solid var(--owner-border);
    background: var(--owner-card);
    box-shadow: var(--owner-shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.owner-generate-preview-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.owner-generate-preview-content {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 360px;
}

.owner-generate-preview-ticket-stack {
    position: relative;
    width: 140px;
    height: 88px;
    margin: 0 auto 1.5rem;
}

.owner-generate-preview-ticket {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 72px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    background: #fff;
}

.owner-generate-preview-ticket-back {
    top: 12px;
    opacity: 0.35;
    transform: translateX(-50%) rotate(-6deg);
}

.owner-generate-preview-ticket-mid {
    top: 6px;
    opacity: 0.6;
    transform: translateX(-50%) rotate(3deg);
}

.owner-generate-preview-ticket-front {
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-color: #93c5fd;
    background: linear-gradient(145deg, #eff6ff, #fff);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    font-family: ui-monospace, monospace;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--owner-primary);
}

.owner-generate-preview-ticket-front i {
    font-size: 1.25rem;
}

.owner-generate-preview-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--owner-text);
}

.owner-generate-preview-text {
    font-size: 0.9rem;
    color: var(--owner-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.owner-generate-preview-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.owner-generate-preview-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid var(--owner-border);
    border-radius: 999px;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
}

.owner-generate-preview-steps span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--owner-primary);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.owner-generate-result-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #bbf7d0;
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.08);
}

.owner-generate-result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border-bottom: 1px solid #bbf7d0;
}

.owner-generate-result-success {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.owner-generate-result-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.owner-generate-result-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #14532d;
}

.owner-generate-result-sub {
    font-size: 0.82rem;
    color: #166534;
}

.owner-generate-copy-all {
    border: 1px solid #86efac;
    background: #fff;
    color: #15803d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.owner-generate-copy-all:hover {
    background: #f0fdf4;
}

.owner-generate-result-hint {
    font-size: 0.82rem;
    color: var(--owner-muted);
    margin-bottom: 1rem;
}

.owner-generate-code-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.55rem;
}

.owner-generate-code-grid .owner-generate-code-item {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 2px solid #bfdbfe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    min-width: 0;
    padding: 0.65rem 0.4rem;
    font-size: clamp(0.95rem, 2.6vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

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

.owner-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: #334155;
}

.owner-preflight {
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.owner-preflight-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.35rem;
}

.owner-preflight-title i {
    margin-right: 0.35rem;
}

.owner-preflight-after {
    padding-top: 0.65rem;
    border-top: 1px dashed #cbd5e1;
    line-height: 1.45;
}

.owner-ap-setup {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.owner-ap-setup-panel + .owner-ap-setup-panel {
    margin-top: 0;
}

.owner-ap-setup-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    margin-bottom: 0.65rem;
}

.owner-ap-setup-badge-omada {
    background: #e0f2fe;
    color: #0369a1;
}

.owner-ap-setup-badge-unifi {
    background: #dbeafe;
    color: #1d4ed8;
}

.owner-copy-block {
    position: relative;
    margin: 0.5rem 0 0.35rem;
}

.owner-copy-value {
    display: block;
    width: 100%;
    padding: 0.75rem 3.25rem 0.75rem 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    border: none;
    border-radius: 8px;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-all;
    cursor: pointer;
    text-align: left;
}

.owner-copy-value:hover {
    background: #1e293b;
}

.owner-copy-btn {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: #334155;
    color: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.owner-copy-btn:hover {
    background: #475569;
}

.owner-copy-btn.copied {
    background: #059669;
}

.owner-ap-tip {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    color: #475569;
    line-height: 1.45;
}

.owner-ap-ssh-builder .owner-ap-ssh-ip-input {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.9rem;
}

.owner-ap-ssh-builder .owner-ap-ssh-command-block {
    margin-bottom: 0;
}

.owner-ap-ssh-builder {
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.owner-unifi-wizard-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.owner-unifi-wizard-step {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #cbd5e1;
}

.owner-unifi-wizard-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.owner-unifi-wizard-step-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.owner-unifi-wizard-step-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.owner-unifi-wizard-step-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.owner-unifi-wizard-step-body {
    padding-left: 2rem;
    color: #475569;
}

.owner-unifi-wizard-step-body .owner-copy-block {
    margin-top: 0.35rem;
}

.owner-unifi-sample-output {
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: #0f172a;
    color: #94a3b8;
    border-radius: 8px;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.owner-unifi-form-jump {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.owner-steps {
    padding-left: 1.15rem;
    color: #475569;
    font-size: 0.92rem;
}

.owner-steps li {
    margin-bottom: 0.5rem;
}

.owner-steps li:last-child {
    margin-bottom: 0;
}

/* Hotspots — premium add-AP wizard */
.owner-page-hotspots .owner-content {
    padding-bottom: 0.5rem;
}

.owner-hotspots-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.owner-hotspots-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    letter-spacing: -0.02em;
}

.owner-hotspots-section-sub {
    font-size: 0.82rem;
    color: var(--owner-muted);
}

.owner-hotspots-live-row {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.owner-hotspots-layout {
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.owner-bongonet-ai-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.owner-bongonet-ai-brand-compact {
    margin-bottom: 0.35rem;
}

.owner-bongonet-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.owner-bongonet-ai-badge-sm {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.owner-bongonet-ai-tagline {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.owner-bongonet-ai-panel {
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5ff 100%);
}

.owner-bongonet-ai-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.owner-bongonet-ai-panel-spinner {
    color: #2563eb;
}

.owner-bongonet-ai-typing {
    font-size: 0.84rem;
    color: #334155;
    min-height: 1.25rem;
}

.owner-bongonet-ai-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: #2563eb;
    animation: ownerBongonetAiBlink 0.9s step-end infinite;
}

.owner-bongonet-ai-typed {
    min-height: 1.25em;
}

.owner-bongonet-ai-scan-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
}

.owner-bongonet-ai-scan-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

@keyframes ownerBongonetAiBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.owner-omada-camera-modal-content {
    border-radius: 16px;
}

.owner-omada-camera-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

.owner-omada-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.owner-omada-scan-file-label {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.owner-omada-scan-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.owner-omada-scan-step + .owner-omada-scan-step {
    margin-top: 0.5rem;
}

.owner-omada-scan-preview {
    max-height: 220px;
    object-fit: contain;
    background: #f8fafc;
}

.owner-omada-scan-analysis-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.45;
    background: transparent;
    border: 0;
    padding: 0;
}

.owner-omada-scan-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.owner-omada-scan-dl dt {
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.owner-omada-scan-dl dd {
    margin: 0;
}

.owner-omada-scan-candidate {
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.owner-omada-scan-candidate:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
}

.owner-hotspots-form-card {
    position: relative;
    background: var(--owner-card);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: var(--owner-shadow-lg);
    overflow: hidden;
}

.owner-hotspots-form-glow {
    position: absolute;
    top: -35%;
    right: -25%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.owner-hotspots-form-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #14532d 45%, #059669 100%);
    color: #fff;
    position: relative;
    z-index: 1;
}

.owner-hotspots-form-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #bbf7d0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.owner-hotspots-form-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.owner-hotspots-form-sub {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

.owner-hotspots-form-body {
    padding: 1.2rem 1.25rem 1.25rem;
    position: relative;
    z-index: 1;
}

.owner-hotspots-compact-block {
    margin-bottom: 0.85rem;
}

.owner-hotspots-step-spaced {
    margin-top: 0.85rem;
}

.owner-hotspots-password-wrap {
    margin-bottom: 0.35rem;
}

.owner-hotspots-form-body .owner-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.owner-hotspots-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--owner-muted);
}

.owner-vendor-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.15rem;
}

.owner-vendor-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.65rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}

.owner-vendor-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.owner-vendor-option.selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.owner-vendor-option-check {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.owner-vendor-option.selected .owner-vendor-option-check {
    display: flex;
}

.owner-vendor-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.owner-vendor-option-icon-omada {
    background: #e0f2fe;
    color: #0369a1;
}

.owner-vendor-option-icon-ruijie {
    background: #fffbeb;
    color: #b45309;
}

.owner-ap-request-list {
    display: grid;
    gap: 0.75rem;
}

.owner-ap-request-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.owner-ap-request-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.owner-ap-request-serial code {
    font-size: 0.82rem;
}

.owner-ap-request-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.owner-ap-request-note {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
}

.owner-vendor-option-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.owner-hotspots-advanced {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.owner-hotspots-advanced summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    list-style: none;
}

.owner-hotspots-advanced summary::-webkit-details-marker {
    display: none;
}

.owner-hotspots-advanced summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.15s;
}

.owner-hotspots-advanced[open] summary::after {
    transform: rotate(180deg);
}

.owner-hotspots-advanced-body {
    padding: 0 0.9rem 0.9rem;
    border-top: 1px dashed #e2e8f0;
}

.owner-hotspots-submit {
    min-height: 52px;
    font-size: 1rem;
    margin-top: 0.15rem;
}

.owner-hotspots-portal-note {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    color: var(--owner-muted);
    line-height: 1.45;
    word-break: break-all;
}

.owner-hotspots-portal-note code {
    font-size: 0.68rem;
}

.owner-adopt-success-banner {
    margin-bottom: 1rem;
}

.owner-adopt-success-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    font-size: 0.92rem;
    line-height: 1.45;
}

.owner-adopt-success-banner-inner .bi-check-circle-fill {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.owner-adopt-success-banner-inner .btn-close {
    margin-left: auto;
    flex-shrink: 0;
}

.owner-adopt-success-modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.owner-adopt-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #059669;
    font-size: 2.4rem;
}

.owner-adopt-success-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.owner-adopt-success-lead {
    color: #475569;
    margin-bottom: 1.1rem;
}

.owner-adopt-success-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    text-align: left;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.owner-adopt-success-summary dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.owner-adopt-success-summary dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.owner-adopt-success-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.owner-adopt-success-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: #047857;
}

.owner-adopt-success-steps .bi-check-lg {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.owner-ap-card-highlight {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.35);
    transition: box-shadow 0.3s ease;
}

.owner-hotspots-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.owner-hotspots-alert-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.owner-hotspots-alert-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.owner-hotspots-alert.is-success .owner-hotspots-alert-icon {
    color: #059669;
}

.owner-hotspots-alert.is-error .owner-hotspots-alert-icon {
    color: #dc2626;
}

.owner-hotspots-alert.is-warning .owner-hotspots-alert-icon {
    color: #d97706;
}

.owner-hotspots-alert-title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.owner-hotspots-alert-message {
    font-size: 0.88rem;
    line-height: 1.45;
}

.owner-hotspots-alert.is-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.owner-hotspots-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.owner-hotspots-alert.is-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.owner-adopt-progress {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.owner-adopt-progress-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #1e40af;
}

.owner-adopt-progress-inner strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.owner-adopt-progress-inner p {
    font-size: 0.82rem;
    color: #3b82f6;
    line-height: 1.4;
}

.owner-adopt-progress-copy {
    flex: 1;
    min-width: 0;
}

.owner-adopt-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.owner-adopt-loading-timer {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.owner-adopt-timer-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.owner-adopt-timer-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.35s ease;
}

.owner-omada-wifi-progress .owner-adopt-timer-row {
    margin-bottom: 0.5rem;
}

.owner-adopt-loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: owner-adopt-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.owner-adopt-loading-spinner-inline {
    width: 18px;
    height: 18px;
    border-width: 2px;
    display: inline-block;
    vertical-align: -3px;
    margin-right: 0.35rem;
}

@keyframes owner-adopt-spin {
    to { transform: rotate(360deg); }
}

.owner-adopt-loading-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--owner-bottom-nav-total) + 58px);
    z-index: 1040;
    padding: 0 0.75rem;
    pointer-events: none;
}

.owner-adopt-loading-overlay-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #bfdbfe;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    font-size: 0.88rem;
    color: #1e40af;
}

.owner-adopt-loading-overlay-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: #1e3a8a;
}

.owner-adopt-loading-overlay-card p {
    font-size: 0.82rem;
    color: #3b82f6;
    line-height: 1.4;
}

.owner-hotspots-sticky-btn.is-loading {
    opacity: 0.92;
    min-width: 118px;
}

body.owner-adopt-is-loading {
    overflow: hidden;
}

.owner-adopt-feedback-modal .modal-dialog {
    margin: 0.75rem;
    max-width: 420px;
}

.owner-adopt-feedback-modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.owner-adopt-error-modal-content {
    border-top: 4px solid #dc2626;
}

.owner-adopt-feedback-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 0.85rem;
}

.owner-adopt-feedback-icon-error {
    background: #fef2f2;
    color: #dc2626;
}

.owner-adopt-feedback-icon-warning {
    background: #fffbeb;
    color: #d97706;
}

.owner-omada-precheck-list {
    text-align: left;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
}

.owner-omada-precheck-list li {
    margin-bottom: 0.65rem;
}

.owner-omada-precheck-list li:last-child {
    margin-bottom: 0;
}

.owner-adopt-feedback-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.owner-adopt-feedback-lead {
    text-align: center;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.owner-adopt-error-hint {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.owner-adopt-error-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.owner-adopt-error-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 0.82rem;
    color: #991b1b;
    line-height: 1.4;
}

.owner-adopt-error-steps li i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.owner-hotspots-steps {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
}

.owner-hotspots-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.owner-hotspots-step-item.is-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.owner-hotspots-step-item.is-fail {
    background: #fef2f2;
    border-color: #fecaca;
}

.owner-hotspots-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.owner-hotspots-step-item.is-ok .owner-hotspots-step-icon {
    background: #059669;
    color: #fff;
}

.owner-hotspots-step-item.is-fail .owner-hotspots-step-icon {
    background: #dc2626;
    color: #fff;
}

.owner-hotspots-guide-panel {
    position: relative;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 45%, #f0fdf4 100%);
    overflow: hidden;
    box-shadow: var(--owner-shadow);
}

.owner-hotspots-guide-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.owner-hotspots-guide-content {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.35rem 1.25rem;
}

.owner-hotspots-guide-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    margin-bottom: 0.35rem;
}

.owner-hotspots-guide-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.owner-hotspots-guide-lead {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.owner-hotspots-guide-panel .owner-ap-setup-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.owner-hotspots-guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.owner-hotspots-guide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}

.owner-hotspots-guide-checklist li span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.owner-hotspots-guide-after {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.owner-hotspots-guide-after i {
    font-size: 1.1rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.owner-hotspots-ruijie {
    margin-top: 0.5rem;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    overflow: hidden;
}

.owner-hotspots-ruijie summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    list-style: none;
}

.owner-hotspots-ruijie summary::-webkit-details-marker {
    display: none;
}

.owner-hotspots-ruijie-body {
    padding: 0 1rem 0.85rem;
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.5;
}

.owner-hotspots-ruijie-body p {
    margin-bottom: 0.5rem;
}

.owner-hotspots-ruijie-body p:last-child {
    margin-bottom: 0;
}

.owner-hotspots-sticky-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .owner-page-hotspots .owner-main {
        padding-bottom: calc(var(--owner-bottom-nav-total) + 76px);
    }

    .owner-page-hotspots .owner-hotspots-form-body .owner-form-control {
        font-size: 16px;
        min-height: 48px;
        padding: 0.65rem 0.85rem;
    }

    .owner-page-hotspots .owner-vendor-option {
        min-height: 88px;
        padding: 1rem 0.5rem;
    }

    .owner-page-hotspots .owner-vendor-option-name {
        font-size: 0.78rem;
    }

    .owner-hotspots-alert {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .owner-hotspots-step-item {
        font-size: 0.88rem;
        padding: 0.75rem 0.85rem;
    }

    .owner-adopt-feedback-modal .modal-dialog {
        margin: 0;
        min-height: 100%;
        align-items: flex-end;
        max-width: none;
    }

    .owner-adopt-error-modal .modal-content {
        border-radius: 18px 18px 0 0;
        max-height: 90vh;
    }

    .owner-adopt-feedback-modal .modal-footer .btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .owner-adopt-loading-overlay {
        bottom: calc(var(--owner-bottom-nav-total) + 64px);
    }

    .owner-adopt-loading-overlay-card {
        padding: 1rem 1.05rem;
    }

    .owner-adopt-progress:not([hidden]) {
        display: block !important;
    }

    .owner-hotspots-form-header {
        padding: 0.85rem 1rem;
    }

    .owner-hotspots-form-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .owner-hotspots-form-title {
        font-size: 1rem;
    }

    .owner-hotspots-form-sub {
        display: none;
    }

    .owner-hotspots-form-body {
        padding: 0.85rem 1rem 1rem;
    }

    .owner-hotspots-submit {
        display: none !important;
    }

    .owner-hotspots-sticky-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--owner-bottom-nav-total);
        z-index: 1030;
    }

    .owner-hotspots-sticky-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 1rem;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    .owner-hotspots-sticky-label {
        font-size: 0.82rem;
        font-weight: 600;
        color: #334155;
    }

    .owner-hotspots-sticky-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 1rem;
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        color: #fff;
        font-size: 0.88rem;
        font-weight: 700;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    .owner-hotspots-sticky-btn:disabled {
        opacity: 0.65;
    }

    .owner-hotspots-guide-panel {
        min-height: auto;
    }

    .owner-hotspots-clients-link span {
        display: none;
    }
}

@media (min-width: 992px) {
    .owner-hotspots-sticky-bar {
        display: none !important;
    }

    .owner-hotspots-guide-panel {
        position: sticky;
        top: 1rem;
    }
}

/* Access points / hotspots */
.owner-ap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.owner-ap-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--owner-border);
}

.owner-ap-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.owner-ap-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--owner-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.owner-ap-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.owner-ap-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--owner-card);
    border: 1px solid var(--owner-border);
    border-radius: 16px;
    box-shadow: var(--owner-shadow);
}

.owner-ap-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--owner-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.owner-ap-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--owner-text);
    word-break: break-word;
}

.owner-ap-mac {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
}

.owner-ap-mac code {
    color: var(--owner-muted);
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.owner-ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.owner-ap-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.owner-ap-tag.tag-voucher {
    background: #eff6ff;
    color: #1d4ed8;
}

.owner-ap-tag.tag-offer {
    background: #f3e8ff;
    color: #7c3aed;
}

.owner-ap-tag.tag-muted {
    background: #f1f5f9;
    color: #64748b;
}

.owner-ap-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.owner-ap-card-link {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--owner-muted);
    text-decoration: none;
    background: #f8fafc;
}

.owner-ap-delete-wrap {
    margin-top: 0.75rem;
}

.owner-ap-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.owner-ap-delete-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.owner-ap-delete-confirm {
    margin-top: 0.35rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.owner-ap-delete-text {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #7f1d1d;
}

.owner-ap-delete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.owner-ap-delete-msg {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
}

.owner-ap-delete-msg.is-error {
    color: #b91c1c;
}

.owner-ap-card-link:hover {
    background: #eff6ff;
    color: var(--owner-primary);
}

.owner-ap-ssid-edit {
    margin: 0.5rem 0 0.65rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.owner-ap-ssid-view {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
}

.owner-ap-ssid-label {
    color: #64748b;
    font-weight: 600;
}

.owner-ap-ssid-value {
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.owner-ap-ssid-open {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}

.owner-ap-ssid-change-btn {
    margin-left: auto;
    border: none;
    background: #fff;
    color: var(--owner-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    cursor: pointer;
}

.owner-ap-ssid-change-btn:hover {
    background: #eff6ff;
}

.owner-ap-ssid-form .owner-form-label {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.owner-ap-ssid-form .owner-form-control {
    font-size: 0.88rem;
}

.owner-ap-ssid-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.owner-ap-ssid-msg {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.owner-ap-ssid-msg.is-success {
    color: #047857;
}

.owner-ap-ssid-msg.is-error {
    color: #b91c1c;
}

.owner-ap-tag.tag-live,
.owner-ap-live-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-weight: 700;
}

.owner-ap-hardware-badge.is-online,
.owner-pill-ap-online {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.owner-ap-hardware-badge.is-offline,
.owner-pill-ap-offline {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.owner-ap-hardware-badge.is-unknown {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.owner-ap-card.is-offline .owner-ap-card-icon {
    background: #fef2f2;
    color: #b91c1c;
}

.owner-ap-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.owner-pill-live {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.owner-live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #047857;
    text-align: center;
}

.owner-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: owner-live-dot-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes owner-live-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.owner-live-status--error {
    color: #b45309;
}

.owner-live-status--error .owner-live-dot {
    display: none;
}

.owner-stat-pulse {
    animation: owner-stat-pulse 0.55s ease-out;
}

@keyframes owner-stat-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
        color: #059669;
    }
    100% {
        transform: scale(1);
    }
}

.owner-clients-page {
    max-width: 980px;
}

.owner-clients-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    margin-bottom: 0.25rem;
}

.owner-clients-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #047857;
}

.owner-clients-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
}

.owner-clients-sub {
    color: var(--owner-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 36rem;
}

.owner-clients-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.owner-clients-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.owner-clients-legend-item.legend-online {
    background: #ecfdf5;
    color: #047857;
}

.owner-clients-legend-item.legend-offline {
    background: #fef2f2;
    color: #b91c1c;
}

.owner-clients-legend-item.legend-unpaid {
    background: #fff7ed;
    color: #c2410c;
}

.owner-clients-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.owner-clients-stat {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 0.85rem 0.95rem 0.8rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.owner-clients-stat.stat-highlight {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(145deg, #eff6ff 0%, #ffffff 70%);
}

.owner-clients-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.45rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--owner-primary);
    font-size: 1rem;
}

.owner-clients-stat-icon.stat-muted {
    background: #f1f5f9;
    color: #64748b;
}

.owner-clients-stat .label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--owner-muted);
    margin-bottom: 0.2rem;
}

.owner-clients-stat strong {
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.owner-clients-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.owner-clients-section {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.owner-clients-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--owner-border);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.owner-clients-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.owner-clients-section-sub {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--owner-muted);
}

.owner-clients-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.65rem;
    border-radius: 12px;
    background: var(--owner-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.owner-clients-count-sessions {
    background: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

@media (max-width: 900px) {
    .owner-clients-hero {
        grid-template-columns: 1fr;
    }
}

.owner-preview-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--owner-muted);
    margin: 0 0 0.65rem;
}

.owner-device-list {
    display: flex;
    flex-direction: column;
}

.owner-device-list-page {
    gap: 0.75rem;
    padding: 1rem 1.1rem 1.15rem;
    background: #f8fafc;
}

.owner-device-list-compact .owner-device-row {
    padding: 0.75rem 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.owner-device-list-compact .owner-device-avatar,
.owner-device-list-compact .owner-device-actions {
    display: none;
}

.owner-device-list-compact .owner-device-head {
    flex-direction: column;
    align-items: flex-start;
}

.owner-device-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.owner-device-list:not(.owner-device-list-page) .owner-device-row {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid var(--owner-border);
    padding: 0.9rem 1rem;
}

.owner-device-list:not(.owner-device-list-page) .owner-device-row:last-child {
    border-bottom: none;
}

.owner-device-row--online {
    border-left: 3px solid #10b981;
}

.owner-device-row--offline {
    border-left: 3px solid #f87171;
}

.owner-device-row--unpaid {
    border-left: 3px solid #fb923c;
}

.owner-device-avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1e40af;
    background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.owner-device-body {
    min-width: 0;
    flex: 1;
}

.owner-device-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.owner-device-identity strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
    word-break: break-word;
}

.owner-device-mac {
    display: inline-block;
    font-size: 0.72rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.owner-device-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.owner-device-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.owner-device-chip-package {
    color: #065f46;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.owner-device-chip-time {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.owner-device-type {
    font-weight: 600;
    color: var(--owner-primary);
}

.owner-device-paid {
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.owner-device-actions {
    flex-shrink: 0;
    align-self: center;
}

.owner-device-unauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff;
    color: #b91c1c;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.owner-device-unauth:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.owner-device-unauth:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 720px) {
    .owner-device-row {
        flex-wrap: wrap;
    }
    .owner-device-actions {
        width: 100%;
        align-self: stretch;
    }
    .owner-device-unauth {
        width: 100%;
    }
}

.owner-device-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.owner-device-tag.tag-online {
    background: #ecfdf5;
    color: #047857;
}

.owner-device-tag.tag-offline {
    background: #fef2f2;
    color: #b91c1c;
}

.owner-device-tag.tag-unpaid {
    background: #fff7ed;
    color: #c2410c;
}

.owner-device-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--owner-muted);
    font-size: 0.9rem;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #fff;
}

.owner-ap-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.owner-provider-check {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--owner-border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.owner-package-portal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.owner-package-portal-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--owner-border);
}

.owner-package-portal-list li:last-child {
    border-bottom: none;
}

.owner-stat-inline strong {
    color: var(--owner-primary-dark);
}

.owner-voucher-select-all {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--owner-muted);
    cursor: pointer;
}

.owner-th-check,
.owner-td-check {
    width: 42px;
    text-align: center;
    vertical-align: middle;
}

.owner-voucher-table .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

.owner-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.owner-stat-card {
    background: var(--owner-card);
    border-radius: var(--owner-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--owner-shadow);
    border: 1px solid var(--owner-border);
}

.owner-stat-card .label {
    font-size: 0.8rem;
    color: var(--owner-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.owner-stat-card .value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.owner-stat-card .icon-wrap {
    float: right;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.owner-stat-card.stat-blue .icon-wrap { background: #dbeafe; color: #2563eb; }
.owner-stat-card.stat-green .icon-wrap { background: #dcfce7; color: #16a34a; }
.owner-stat-card.stat-gray .icon-wrap { background: #f1f5f9; color: #64748b; }
.owner-stat-card.stat-purple .icon-wrap { background: #ede9fe; color: #7c3aed; }

.owner-card {
    background: var(--owner-card);
    border-radius: var(--owner-radius);
    box-shadow: var(--owner-shadow);
    border: 1px solid var(--owner-border);
    margin-bottom: 1.25rem;
}

.owner-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--owner-border);
    font-weight: 700;
    font-size: 1rem;
}

.owner-card-body {
    padding: 1.25rem;
}

.owner-btn-primary {
    background: var(--owner-primary);
    border: none;
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

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

.owner-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.owner-quick-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    background: var(--owner-card);
    border: 1px solid var(--owner-border);
    border-radius: 12px;
    color: var(--owner-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--owner-shadow);
    transition: border-color 0.15s, transform 0.15s;
}

.owner-quick-actions a:hover {
    border-color: var(--owner-primary);
    transform: translateY(-1px);
    color: var(--owner-primary);
}

.voucher-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
}

.voucher-code-item {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-family: ui-monospace, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--owner-primary-dark);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.voucher-code-item:hover {
    border-color: var(--owner-primary);
    background: #eff6ff;
}

.preset-btn {
    border: 1px solid var(--owner-border);
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-btn:hover, .preset-btn.active {
    border-color: var(--owner-primary);
    background: #eff6ff;
    color: var(--owner-primary);
}

.badge-status {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-status.active { background: #dcfce7; color: #15803d; }
.badge-status.used {
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #f87171;
}
.badge-status.cancelled { background: #fee2e2; color: #b91c1c; }
.badge-status.pending { background: #fef3c7; color: #b45309; }
.badge-status.approved { background: #dbeafe; color: #1d4ed8; }
.badge-status.paid { background: #dcfce7; color: #15803d; }
.badge-status.rejected { background: #fee2e2; color: #b91c1c; }
.badge-status.processing { background: #e0e7ff; color: #4338ca; }
.badge-status.success { background: #dcfce7; color: #15803d; }
.badge-status.failed { background: #fee2e2; color: #b91c1c; }

.owner-voucher-row--used {
    background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 100%);
}

.owner-voucher-row--used td {
    border-bottom-color: #fecaca;
}

.owner-voucher-row--used .voucher-code-cell {
    color: #b91c1c;
}

.owner-voucher-row--used:hover {
    background: linear-gradient(90deg, #fee2e2 0%, #fef2f2 100%);
}

.owner-voucher-row--flash {
    animation: owner-voucher-flash 1.8s ease-out;
}

@keyframes owner-voucher-flash {
    0% {
        background-color: #fef9c3;
    }
    100% {
        background-color: transparent;
    }
}

.owner-voucher-row--used.owner-voucher-row--flash {
    animation: owner-voucher-flash-used 1.8s ease-out;
}

@keyframes owner-voucher-flash-used {
    0% {
        background: #fecaca;
    }
    100% {
        background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .owner-live-dot,
    .owner-stat-pulse,
    .owner-voucher-row--flash,
    .owner-voucher-row--used.owner-voucher-row--flash {
        animation: none;
    }
}

.owner-table {
    width: 100%;
    border-collapse: collapse;
}

.owner-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--owner-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--owner-border);
    background: #f8fafc;
}

.owner-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--owner-border);
    vertical-align: middle;
}

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

.voucher-code-cell {
    font-family: ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--owner-primary-dark);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--owner-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.owner-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.owner-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.owner-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.owner-alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.owner-subscription-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.owner-subscription-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.owner-subscription-danger,
.owner-subscription-suspended {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.owner-subscription-banner-btn {
    background: #fff;
    color: inherit;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.1);
}

.owner-subscription-banner-btn:hover {
    opacity: 0.9;
    color: inherit;
}

/* Login page */
.owner-login-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
}

.owner-login-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.owner-login-nav a:hover {
    color: #fff;
}

.owner-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e40af 45%, #2563eb 100%);
    padding: 1.5rem;
}

.owner-login-wrap {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.owner-login-header {
    padding: 2rem 2rem 0;
}

.owner-login-body {
    padding: 1.5rem 2rem 2rem;
}

.owner-login-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.owner-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.owner-login-header .owner-login-logo {
    margin-bottom: 1.25rem;
}

.owner-login-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--owner-text);
}

.owner-login-subtitle {
    color: var(--owner-muted);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.45;
}

.owner-login-hint {
    color: var(--owner-muted);
    font-size: 0.85rem;
    text-align: center;
    margin: 1.25rem 0 0;
}

.owner-login-submit {
    margin-top: 0.5rem;
}

.owner-login-nav a + a {
    margin-left: 1rem;
}

/* Register — same premium shell as login */
.owner-register-page {
    align-items: flex-start;
    padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 2.5rem));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.owner-register-page .owner-login-wrap {
    max-width: 440px;
}

.owner-register-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.owner-register-progress-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    min-width: 0;
}

.owner-register-progress-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--owner-border);
    z-index: 0;
}

.owner-register-progress-item.done:not(:last-child)::after {
    background: var(--owner-primary);
}

.owner-register-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--owner-muted);
    border: 2px solid var(--owner-border);
    position: relative;
    z-index: 1;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.owner-register-progress-item.active .owner-register-progress-dot {
    background: var(--owner-primary);
    border-color: var(--owner-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.owner-register-progress-item.done .owner-register-progress-dot {
    background: #eff6ff;
    border-color: var(--owner-primary);
    color: var(--owner-primary);
}

.owner-register-progress-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--owner-muted);
    text-align: center;
    line-height: 1.2;
}

.owner-register-progress-item.active .owner-register-progress-label {
    color: var(--owner-primary);
}

.owner-register-progress-item.done .owner-register-progress-label {
    color: var(--owner-text);
}

.owner-register-step-panel {
    display: none;
}

.owner-register-step-panel.is-active {
    display: block;
    animation: ownerRegisterStepIn 0.28s ease;
}

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

.owner-register-wizard-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.owner-register-wizard-actions .owner-btn-primary,
.owner-register-wizard-actions .owner-btn-ghost {
    flex: 1;
    min-height: 48px;
}

.owner-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--owner-border);
    background: #fff;
    color: var(--owner-text);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.owner-btn-ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.owner-register-step-heading {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--owner-text);
}

.owner-register-step-desc {
    font-size: 0.875rem;
    color: var(--owner-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.owner-register-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--owner-muted);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--owner-border);
}

.owner-register-section + .owner-register-section {
    margin-top: 1.25rem;
}

.owner-referral-box {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--owner-border);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.25rem;
    margin-bottom: 0.25rem;
}

.owner-referral-box .owner-form-label {
    margin-bottom: 0.5rem;
}

.owner-referral-hint {
    font-size: 0.8125rem;
    color: var(--owner-muted);
    margin: 0.5rem 0 0.85rem;
    line-height: 1.45;
}

.owner-referral-hint.valid { color: #059669; font-weight: 500; }
.owner-referral-hint.invalid { color: #dc2626; }

.owner-register-status {
    text-align: center;
}

.owner-register-status-icon {
    font-size: 2.75rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}

.owner-register-status-icon.success { color: #059669; }
.owner-register-status-icon.warning { color: #d97706; }
.owner-register-status-icon.danger { color: #dc2626; }
.owner-register-status-icon.muted { color: var(--owner-muted); }

.owner-register-status-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--owner-text);
}

.owner-register-status-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1.15rem;
}

.owner-register-status-badge.pending { background: #fef3c7; color: #92400e; }
.owner-register-status-badge.approved { background: #d1fae5; color: #065f46; }
.owner-register-status-badge.rejected { background: #fee2e2; color: #991b1b; }

.owner-register-meta {
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
    text-align: left;
    background: #f8fafc;
    border: 1px solid var(--owner-border);
    border-radius: 12px;
    overflow: hidden;
}

.owner-register-meta li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--owner-border);
    font-size: 0.875rem;
}

.owner-register-meta li:last-child { border-bottom: none; }

.owner-register-meta .label { color: var(--owner-muted); flex-shrink: 0; }
.owner-register-meta .value {
    margin: 0;
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.owner-register-note {
    font-size: 0.875rem;
    color: var(--owner-muted);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.owner-register-cta-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--owner-muted);
}

.owner-register-cta-link a {
    color: var(--owner-primary);
    font-weight: 600;
    text-decoration: none;
}

.owner-register-cta-link a:hover {
    text-decoration: underline;
}

.owner-form-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    display: block;
}

.owner-package-advanced > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--owner-border);
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 650;
    font-size: 0.9rem;
}

.owner-package-advanced > summary::-webkit-details-marker {
    display: none;
}

.owner-package-advanced > summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.15s ease;
}

.owner-package-advanced[open] > summary::after {
    transform: rotate(180deg);
}

.owner-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--owner-border);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.owner-form-control:focus {
    outline: none;
    border-color: var(--owner-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.owner-password-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.owner-password-wrap .owner-form-control {
    margin-bottom: 0;
    padding-right: 3rem;
}

.owner-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--owner-muted);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.owner-password-toggle:hover,
.owner-password-toggle:focus {
    color: var(--owner-primary);
    background: #f1f5f9;
    outline: none;
}

.owner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

@media (max-width: 991px) {
    body.owner-app {
        background: linear-gradient(180deg, #e8eef6 0%, var(--owner-bg) 120px);
    }

    .owner-sidebar {
        transform: translateX(-100%);
        width: min(300px, 88vw);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
    }
    .owner-sidebar.open {
        transform: translateX(0);
    }
    .owner-main {
        margin-left: 0;
        padding-bottom: var(--owner-bottom-nav-total);
    }
    .owner-menu-btn-desktop {
        display: none;
    }
    .owner-topbar-avatar-desktop {
        display: none;
    }
    .owner-topbar-avatar-mobile {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.8rem;
    }
    .owner-overlay.show {
        display: block;
    }
    .owner-table-wrap { overflow-x: auto; }
    .owner-content {
        padding: 0.85rem 1rem 1.25rem;
        max-width: none;
    }
    .owner-topbar {
        padding: 0.65rem 1rem;
        padding-top: max(0.65rem, env(safe-area-inset-top));
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    }
    .owner-topbar-brand h1 {
        font-size: 1rem;
        font-weight: 800;
        color: var(--owner-text);
    }
    .owner-topbar-business {
        font-size: 0.72rem;
        color: var(--owner-muted);
        font-weight: 600;
    }
    .owner-hero {
        padding: 1.15rem 1.15rem 1rem;
        border-radius: 18px;
        margin-bottom: 1rem;
    }
    .owner-hero-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }
    .owner-hero-title {
        font-size: 1.45rem;
    }
    .owner-action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .owner-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .owner-stat-card {
        padding: 1rem 0.85rem;
    }
    .owner-stat-card .value {
        font-size: 1.35rem;
    }
    .owner-card {
        border-radius: 18px;
        box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
    }
    .owner-card-header {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }
    .owner-card-body {
        padding: 1rem;
    }
    .owner-btn-primary {
        min-height: 52px;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
    }
    .owner-form-control {
        font-size: 16px;
        min-height: 48px;
        border-radius: 12px;
    }
    .owner-quick-actions {
        flex-direction: column;
    }
    .owner-quick-actions a {
        justify-content: center;
    }

    /* Bottom tab bar — icons sit above system navigation via spacer row */
    .owner-bottom-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        padding: 0.4rem 0.5rem 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
        touch-action: manipulation;
    }

    .owner-bottom-nav-inner {
        display: grid;
        grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
        align-items: end;
        min-height: 56px;
    }

    .owner-bottom-nav-spacer {
        width: 100%;
        height: var(--owner-system-nav-inset);
        flex-shrink: 0;
        pointer-events: none;
        background: inherit;
    }

    .owner-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.35rem 0.15rem;
        border: none;
        background: none;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        min-height: 52px;
        border-radius: 12px;
        transition: color 0.15s, background 0.15s;
        cursor: pointer;
        font-family: inherit;
    }

    .owner-bottom-nav-item i {
        font-size: 1.35rem;
        line-height: 1;
    }

    .owner-bottom-nav-item.active {
        color: var(--owner-primary);
    }

    .owner-bottom-nav-item.active i {
        transform: scale(1.05);
    }

    .owner-bottom-nav-fab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        text-decoration: none;
        color: var(--owner-primary-dark);
        margin-top: -22px;
        padding-bottom: 0.1rem;
    }

    .owner-bottom-nav-fab-ring {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: linear-gradient(145deg, #3b82f6 0%, #2563eb 45%, #6366f1 100%);
        color: #fff;
        font-size: 1.65rem;
        box-shadow:
            0 10px 28px rgba(37, 99, 235, 0.45),
            0 0 0 4px rgba(255, 255, 255, 0.95),
            0 0 0 5px rgba(37, 99, 235, 0.15);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .owner-bottom-nav-fab:active .owner-bottom-nav-fab-ring {
        transform: scale(0.94);
    }

    .owner-bottom-nav-fab.active .owner-bottom-nav-fab-ring {
        box-shadow:
            0 12px 32px rgba(37, 99, 235, 0.55),
            0 0 0 4px rgba(255, 255, 255, 0.95),
            0 0 0 6px rgba(37, 99, 235, 0.25);
    }

    .owner-bottom-nav-fab-label {
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-top: 0.35rem;
        color: var(--owner-primary-dark);
    }

    .owner-generate-submit {
        min-height: 56px;
        font-size: 1.1rem;
        letter-spacing: 0.01em;
    }

    /* Generate page — no scroll to reach button */
    .owner-page-generate .owner-content {
        padding-bottom: 0.5rem;
    }

    .owner-page-generate .owner-main {
        padding-bottom: calc(var(--owner-bottom-nav-total) + 76px);
    }

    .owner-page-generate.owner-has-results .owner-main {
        padding-bottom: var(--owner-bottom-nav-total);
    }

    .owner-page-generate:not(.owner-has-results) .owner-topbar-brand h1 {
        font-size: 0.95rem;
    }

    .owner-generate-form-header {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .owner-generate-form-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .owner-generate-form-title {
        font-size: 1rem;
    }

    .owner-generate-form-sub {
        display: none;
    }

    .owner-generate-form-body {
        padding: 0.85rem 1rem 1rem;
    }

    .owner-generate-form-card {
        border-radius: 16px;
        box-shadow: var(--owner-shadow);
    }

    .owner-generate-step {
        margin-bottom: 0.35rem;
    }

    .owner-generate-step-qty {
        margin-top: 0.65rem;
        width: 100%;
    }

    .owner-package-option {
        padding: 0.75rem 0.85rem;
    }

    .owner-package-option-name {
        font-size: 0.95rem;
    }

    .owner-generate-qty-input {
        min-height: 46px;
        font-size: 1.25rem;
    }

    .owner-generate-qty-btn {
        width: 44px;
    }

    .owner-generate-desktop-only {
        display: none !important;
    }

    .owner-generate-submit-inline {
        display: none !important;
    }

    .owner-generate-sticky-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--owner-bottom-nav-total);
        z-index: 1030;
    }

    .owner-generate-layout {
        margin-bottom: 0;
    }

    .owner-generate-preview-panel {
        min-height: 280px;
    }
}

@media (min-width: 992px) {
    .owner-generate-sticky-bar {
        display: none !important;
    }
}

@media (max-width: 575px) {
    :root {
        --owner-system-nav-inset: max(28px, env(safe-area-inset-bottom, 0px));
        --owner-bottom-nav-total: calc(72px + var(--owner-system-nav-inset));
    }

    .owner-bottom-nav-fab-ring {
        width: 62px;
        height: 62px;
        font-size: 1.65rem;
    }

    .owner-bottom-nav-fab {
        margin-top: -24px;
    }

    .owner-hero-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .owner-hero-meta {
        justify-content: center;
    }

    .owner-action-grid {
        grid-template-columns: 1fr;
    }

    .owner-action-tile {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 0.95rem 1rem;
    }

    .owner-action-icon {
        margin-bottom: 0;
    }

    .owner-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .owner-login-page {
        align-items: center;
        justify-content: center;
        padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
        min-height: 100dvh;
    }

    .owner-login-wrap {
        max-width: none;
        width: 100%;
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    }

    .owner-login-header {
        padding: 1.5rem 1.25rem 0;
        text-align: left;
    }

    .owner-login-logo {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .owner-login-title {
        font-size: 1.3rem;
    }

    .owner-login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .owner-login-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .owner-form-label {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
    }

    .owner-form-control {
        font-size: 16px;
        padding: 0.85rem 1rem;
        min-height: 48px;
        border-radius: 10px;
        background: #fff;
    }

    .owner-password-wrap .owner-form-control {
        padding-right: 3.25rem;
    }

    .owner-btn-primary {
        min-height: 48px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .owner-login-submit {
        margin-top: 0.25rem;
    }

    .owner-login-hint {
        margin-top: 0.85rem;
        font-size: 0.8rem;
    }

    .owner-register-page {
        padding-top: max(2.75rem, calc(env(safe-area-inset-top) + 2rem));
    }

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

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

    .voucher-code-item {
        font-size: 1.15rem;
        padding: 0.75rem 0.35rem;
    }

    .owner-generate-code-grid .owner-generate-code-item {
        font-size: 1rem;
        letter-spacing: 0.03em;
        padding: 0.6rem 0.25rem;
    }
}

/* PWA install prompt */
.owner-pwa-install {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    padding: 0 0.75rem;
    pointer-events: none;
}

body:not(.owner-app) .owner-pwa-install {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    .owner-pwa-install {
        bottom: 1rem;
        max-width: 420px;
        left: auto;
        right: 1rem;
    }
}

.owner-pwa-install-inner {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.owner-pwa-install-icon img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.owner-pwa-install-copy {
    grid-column: 2;
    min-width: 0;
}

.owner-pwa-install-copy strong {
    display: block;
    font-size: 0.92rem;
    color: var(--owner-text, #0f172a);
    margin-bottom: 0.15rem;
}

.owner-pwa-install-copy span {
    display: block;
    font-size: 0.78rem;
    color: var(--owner-muted, #64748b);
    line-height: 1.35;
}

.owner-pwa-install-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
}

.owner-pwa-install-primary,
.owner-pwa-install-dismiss {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.owner-pwa-install-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.owner-pwa-install-dismiss {
    background: #f1f5f9;
    color: #475569;
}

.owner-offline-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--owner-bg, #f8fafc);
}

.owner-offline-icon {
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.2);
}

.owner-offline-page h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.owner-offline-page p {
    color: var(--owner-muted, #64748b);
    max-width: 22rem;
    margin-bottom: 1.25rem;
}

/* Withdraw — premium wallet UI */
.owner-withdraw-wallet {
    margin-bottom: 1.25rem;
}

.owner-withdraw-wallet-panel {
    background: linear-gradient(145deg, #0f172a 0%, #14532d 42%, #059669 100%);
    border-radius: 22px;
    padding: 1.65rem 1.5rem 1.5rem;
    color: #fff;
    box-shadow: var(--owner-shadow-lg);
    position: relative;
    overflow: hidden;
}

.owner-withdraw-wallet-panel::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -6%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.owner-withdraw-wallet-label {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    opacity: 0.82;
    margin: 0 0 0.35rem;
}

.owner-withdraw-wallet-amount {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 0.65rem;
}

.owner-withdraw-wallet-amount span {
    font-size: 0.5em;
    font-weight: 700;
    opacity: 0.88;
}

.owner-withdraw-wallet-dest {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    opacity: 0.92;
    margin: 0 0 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.owner-withdraw-wallet-dest .font-monospace {
    font-size: 0.95em;
    letter-spacing: 0.02em;
}

.owner-withdraw-wallet-dest-sep {
    opacity: 0.65;
}

.owner-withdraw-wallet-form {
    position: relative;
    z-index: 1;
}

@keyframes owner-withdraw-btn-bounce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-5px) scale(1.01);
    }
    55% {
        transform: translateY(2px) scale(0.995);
    }
    75% {
        transform: translateY(-2px) scale(1.005);
    }
}

@keyframes owner-withdraw-btn-glow {
    0%,
    100% {
        box-shadow:
            0 14px 36px rgba(0, 0, 0, 0.35),
            0 0 0 0 rgba(251, 191, 36, 0.45);
    }
    50% {
        box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.4),
            0 0 0 8px rgba(251, 191, 36, 0.22);
    }
}

.owner-btn-withdraw-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #fde68a 35%, #fbbf24 70%, #f59e0b 100%);
    color: #78350f;
    font-weight: 800;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    animation: owner-withdraw-btn-bounce 2.4s ease-in-out infinite, owner-withdraw-btn-glow 2.4s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.owner-btn-withdraw-wallet:hover {
    filter: brightness(1.04) saturate(1.05);
    animation-duration: 1.6s, 1.6s;
}

.owner-btn-withdraw-wallet:active {
    animation: none;
    transform: scale(0.98);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.owner-btn-withdraw-wallet:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .owner-btn-withdraw-wallet {
        animation: owner-withdraw-btn-glow 3s ease-in-out infinite;
    }

    .owner-btn-withdraw-wallet:hover {
        animation-duration: 3s;
    }
}

.owner-btn-withdraw-wallet-text {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: #451a03;
}

.owner-btn-withdraw-wallet-amount {
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    color: #451a03;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(120, 53, 15, 0.18);
}

.owner-withdraw-optional-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.owner-withdraw-optional-note summary {
    cursor: pointer;
    list-style: none;
    width: fit-content;
    opacity: 0.9;
}

.owner-withdraw-optional-note summary::-webkit-details-marker {
    display: none;
}

.owner-withdraw-wallet-hint,
.owner-withdraw-wallet-change-pending {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.92;
}

.owner-withdraw-wallet-change-pending code {
    margin-left: 0.35rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.owner-withdraw-settings {
    margin-top: 0.75rem;
    border: 1px solid var(--owner-border);
    border-radius: 16px;
    background: #fff;
    padding: 0.65rem 1rem;
}

.owner-withdraw-settings summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--owner-muted);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-withdraw-settings summary::-webkit-details-marker {
    display: none;
}

.owner-withdraw-settings-body {
    padding: 0.75rem 0 0.25rem;
}

.owner-withdraw-support {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #9f1239;
}

.owner-withdraw-support a {
    color: #be123c;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.owner-withdraw-support a:hover {
    text-decoration: underline;
}

/* Withdraw confirmation receipt */
body.owner-withdraw-receipt-open {
    overflow: hidden;
}

.owner-withdraw-receipt-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.owner-withdraw-receipt-backdrop:not([hidden]) {
    display: flex;
}

.owner-withdraw-receipt-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.owner-withdraw-receipt {
    width: 100%;
    max-width: 100%;
    max-height: min(92vh, 520px);
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 22px 22px 0 0;
    padding: 0.65rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.22);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
}

.owner-withdraw-receipt-backdrop.is-open .owner-withdraw-receipt {
    transform: translateY(0);
}

.owner-withdraw-receipt-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0.35rem auto 0.85rem;
}

.owner-withdraw-receipt-kicker {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.owner-withdraw-receipt-amount {
    margin: 0.35rem 0 1rem;
    text-align: center;
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

.owner-withdraw-receipt-amount span {
    font-size: 0.45em;
    font-weight: 700;
    color: #475569;
}

.owner-withdraw-receipt-lines {
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    gap: 0.65rem;
}

.owner-withdraw-receipt-line {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.owner-withdraw-receipt-line dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.owner-withdraw-receipt-line dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.owner-withdraw-receipt-hint {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.owner-withdraw-receipt-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.65rem;
}

.owner-withdraw-receipt-cancel,
.owner-withdraw-receipt-confirm {
    border-radius: 14px;
    padding: 0.85rem 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    min-height: 48px;
}

.owner-withdraw-receipt-cancel {
    background: #f1f5f9;
    color: #475569;
}

.owner-withdraw-receipt-cancel:active {
    background: #e2e8f0;
}

.owner-withdraw-receipt-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fde68a 35%, #fbbf24 70%, #f59e0b 100%);
    color: #451a03;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.owner-withdraw-receipt-confirm:disabled {
    opacity: 0.7;
}

@media (min-width: 520px) {
    .owner-withdraw-receipt-backdrop {
        align-items: center;
        padding: 1rem;
    }

    .owner-withdraw-receipt {
        max-width: 400px;
        border-radius: 22px;
        padding: 1rem 1.25rem 1.25rem;
        transform: translateY(12px) scale(0.96);
        opacity: 0;
    }

    .owner-withdraw-receipt-backdrop.is-open .owner-withdraw-receipt {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .owner-withdraw-receipt-handle {
        display: none;
    }
}

.owner-payout-display--compact {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.owner-withdraw-hero--setup {
    margin-bottom: 1.25rem;
    padding-bottom: 1.35rem;
}

.owner-withdraw-hero {
    background: linear-gradient(135deg, #0f172a 0%, #14532d 45%, #059669 100%);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #fff;
    box-shadow: var(--owner-shadow-lg);
    position: relative;
    overflow: hidden;
}

.owner-withdraw-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -8%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.owner-withdraw-hero-inner {
    position: relative;
    z-index: 1;
}

.owner-withdraw-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.owner-withdraw-hero-label {
    font-size: 0.82rem;
    opacity: 0.85;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.owner-withdraw-hero-balance {
    font-size: clamp(1.85rem, 5vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.owner-withdraw-hero-balance span {
    font-size: 0.55em;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 0.15rem;
}

.owner-withdraw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.owner-withdraw-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.owner-withdraw-mini-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    backdrop-filter: blur(6px);
}

.owner-withdraw-mini-stat .lbl {
    display: block;
    font-size: 0.68rem;
    opacity: 0.78;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.owner-withdraw-mini-stat .val {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.owner-status-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--owner-border);
}

.owner-status-pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
}

.owner-status-pipeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.owner-status-pipeline-step.done:not(:last-child)::after {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.owner-status-pipeline-step.active:not(:last-child)::after {
    background: linear-gradient(90deg, #22c55e 50%, #e2e8f0 50%);
}

.owner-status-pipeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.owner-status-pipeline-step.done .owner-status-pipeline-dot {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 0 0 1px #22c55e;
}

.owner-status-pipeline-step.active .owner-status-pipeline-dot {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    box-shadow: 0 0 0 1px #2563eb, 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.owner-status-pipeline-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--owner-muted);
    line-height: 1.25;
    padding: 0 0.25rem;
}

.owner-status-pipeline-step.done .owner-status-pipeline-label,
.owner-status-pipeline-step.active .owner-status-pipeline-label {
    color: var(--owner-text);
}

.owner-payout-display {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid var(--owner-border);
    margin-bottom: 0;
}

.owner-payout-display-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.owner-payout-display-icon.bank {
    background: linear-gradient(135deg, #0f766e, #059669);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.owner-payout-display-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.owner-payout-display-detail {
    font-size: 0.82rem;
    color: var(--owner-muted);
    margin: 0;
}

.owner-payout-display-detail code {
    font-size: 0.85rem;
    color: var(--owner-text);
    background: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--owner-border);
}

.owner-payout-change {
    margin-top: 0.85rem;
}

.owner-payout-change summary {
    width: fit-content;
    color: var(--owner-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.owner-payout-change summary::-webkit-details-marker {
    display: none;
}

.owner-payout-change summary:hover {
    color: var(--owner-text);
}

.owner-withdraw-form-card {
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    overflow: hidden;
}

.owner-withdraw-form-card .owner-card-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #065f46;
    border-bottom: 1px solid rgba(5, 150, 105, 0.12);
}

.owner-withdraw-blocked {
    text-align: center;
    padding: 1.5rem 1rem;
}

.owner-withdraw-blocked-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fef3c7;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.owner-withdraw-blocked p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--owner-muted);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.owner-withdraw-history-card .owner-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.owner-withdraw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.owner-withdraw-filter-btn {
    border: 1px solid var(--owner-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--owner-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.owner-withdraw-filter-btn:hover,
.owner-withdraw-filter-btn.active {
    border-color: var(--owner-primary);
    background: #eff6ff;
    color: var(--owner-primary);
}

.owner-withdraw-timeline {
    padding: 0.5rem 1rem 1rem;
}

.owner-withdraw-timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.owner-withdraw-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.owner-wd-timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.owner-wd-timeline-marker.pending { background: #fef3c7; color: #b45309; }
.owner-wd-timeline-marker.approved { background: #dbeafe; color: #1d4ed8; }
.owner-wd-timeline-marker.paid { background: #dcfce7; color: #15803d; }
.owner-wd-timeline-marker.rejected { background: #fee2e2; color: #b91c1c; }
.owner-wd-timeline-marker.processing { background: #e0e7ff; color: #4338ca; }
.owner-wd-timeline-marker.failed { background: #fee2e2; color: #b91c1c; }

.owner-wd-timeline-body {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--owner-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: box-shadow 0.15s;
}

.owner-wd-timeline-body:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.owner-wd-timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.owner-wd-amount {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-right: 0.5rem;
}

.owner-wd-timeline-head time {
    font-size: 0.75rem;
    color: var(--owner-muted);
    white-space: nowrap;
}

.owner-wd-progress {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.owner-wd-progress-step {
    flex: 1;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    line-height: 1.2;
}

.owner-wd-progress-step.done {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #15803d;
}

.owner-wd-progress-step.current {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.owner-wd-progress-step.failed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.owner-wd-details {
    font-size: 0.82rem;
}

.owner-wd-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--owner-primary);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.owner-wd-details summary::-webkit-details-marker { display: none; }

.owner-wd-details summary::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
    transition: transform 0.15s;
}

.owner-wd-details[open] summary::before {
    transform: rotate(90deg);
}

.owner-wd-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--owner-border);
}

.owner-wd-details-grid dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--owner-muted);
    margin: 0;
}

.owner-wd-details-grid dd {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
}

.owner-withdraw-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.owner-withdraw-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.85rem;
}

.owner-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.owner-verification-badge.pending { background: #fef3c7; color: #b45309; }
.owner-verification-badge.approved { background: #dcfce7; color: #15803d; }
.owner-verification-badge.change_requested { background: #e0f2fe; color: #0369a1; }
.owner-verification-badge.resubmit { background: #ede9fe; color: #6d28d9; }

.badge-status.change_requested { background: #e0f2fe; color: #0369a1; }
.badge-status.resubmit { background: #ede9fe; color: #6d28d9; }

/* Free WiFi toggle (owner offers) */
.owner-free-toggle-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--owner-border);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: border-color 0.15s, background 0.15s;
}

.owner-free-toggle-card.is-free {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.owner-free-toggle-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.owner-free-toggle-card.is-free .owner-free-toggle-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}

.owner-free-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

/* Owner — guest help number preview */
.owner-portal-brand-preview {
    text-align: center;
}

.owner-portal-brand-frame {
    background: linear-gradient(160deg, #0f172a 0%, #1e40af 55%, #2563eb 100%);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.owner-header-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.45rem;
    font-weight: 600;
}

.owner-header-choice.is-disabled {
    opacity: 0.55;
}

.owner-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.owner-color-row input[type="color"] {
    width: 52px;
    height: 36px;
    padding: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.owner-color-preview {
    height: 42px;
    border-radius: 12px;
    margin: 0.25rem 0 0.9rem;
}

.owner-portal-brand-name {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 34px;
}

.owner-portal-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: inline-block;
}

.owner-portal-audio-preview audio {
    max-width: 100%;
}

.owner-portal-help-preview {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.owner-preview-help-call {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.owner-preview-help-body {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.owner-preview-help-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #15803d;
    margin-bottom: 0.35rem;
}

.owner-preview-help-number-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owner-preview-help-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
    animation: owner-preview-help-bounce 2.8s ease-in-out infinite;
}

@keyframes owner-preview-help-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .owner-preview-help-icon {
        animation: none;
    }
}

.owner-preview-help-number {
    font-size: 1rem;
    font-weight: 800;
}

.owner-preview-help-go {
    color: #16a34a;
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    .owner-withdraw-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .owner-status-pipeline-label {
        font-size: 0.65rem;
    }

    .owner-wd-details-grid {
        grid-template-columns: 1fr;
    }
}

/* —— Account & security —— */
.owner-page-account .owner-content {
    max-width: 1100px;
}

.owner-topbar-avatar-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.owner-topbar-avatar-link:hover,
.owner-topbar-avatar-link:focus-visible {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    outline: none;
}

.owner-account-profile-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem 0.5rem;
}

.owner-account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #6366f1 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.owner-account-profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--owner-text);
    line-height: 1.3;
}

.owner-account-profile-business {
    font-size: 0.88rem;
    color: var(--owner-muted);
}

.owner-account-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.owner-account-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.owner-account-fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--owner-primary);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.owner-account-fact-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.owner-account-fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--owner-muted);
    font-weight: 600;
}

.owner-account-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--owner-text);
    word-break: break-word;
}

.owner-account-tip {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
}

.owner-account-tip i {
    color: #16a34a;
    font-size: 1.1rem;
    margin-top: 0.05rem;
}

.owner-account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.owner-account-show-all-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--owner-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.owner-account-show-all-btn:hover,
.owner-account-show-all-btn:focus-visible {
    color: var(--owner-primary);
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    outline: none;
}

.owner-account-show-all-btn[aria-pressed='true'] {
    color: var(--owner-primary);
    border-color: rgba(37, 99, 235, 0.45);
    background: #eff6ff;
}

.owner-account-field {
    margin-bottom: 0.25rem;
}

.owner-account-field .owner-form-label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.owner-account-input-shell {
    position: relative;
}

.owner-account-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    z-index: 1;
    pointer-events: none;
}

.owner-account-password-wrap {
    margin-bottom: 0;
}

.owner-account-input.owner-form-control {
    padding-left: 2.65rem;
    padding-right: 3rem;
    min-height: 48px;
    border-radius: 12px;
    border-color: #e2e8f0;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.owner-account-input.owner-form-control:focus {
    border-color: var(--owner-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.owner-account-toggle {
    right: 0.25rem;
}

.owner-account-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 1.1rem 0 1.25rem;
}

.owner-password-strength {
    margin: 0.65rem 0 0.5rem;
}

.owner-password-strength-segments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 0.4rem;
}

.owner-password-strength-segments span {
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.2s ease;
}

.owner-password-strength-segments[data-level='1'] span:nth-child(1) { background: #f59e0b; }
.owner-password-strength-segments[data-level='2'] span:nth-child(-n+2) { background: #eab308; }
.owner-password-strength-segments[data-level='3'] span:nth-child(-n+3) { background: #22c55e; }
.owner-password-strength-segments[data-level='4'] span { background: #16a34a; }

.owner-password-strength-label {
    font-size: 0.78rem;
    color: var(--owner-muted);
    font-weight: 500;
}

.owner-account-checklist {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.owner-account-checklist li {
    font-size: 0.75rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s;
}

.owner-account-checklist li.is-met {
    color: #16a34a;
    font-weight: 600;
}

.owner-account-checklist li i {
    font-size: 0.85rem;
}

.owner-account-match-hint {
    font-size: 0.82rem;
    color: #16a34a;
    margin: 0.45rem 0 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.owner-form-control.is-valid-soft {
    border-color: rgba(22, 163, 74, 0.5);
    background: #f0fdf4;
}

.owner-form-control.is-invalid-soft {
    border-color: rgba(220, 38, 38, 0.45);
    background: #fef2f2;
}

.owner-account-submit {
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.owner-account-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
    line-height: 1.45;
    animation: ownerAccountAlertIn 0.35s ease;
}

@keyframes ownerAccountAlertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.owner-account-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.owner-account-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 575px) {
    .owner-account-profile-banner {
        flex-direction: column;
        text-align: center;
    }

    .owner-account-checklist {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* —— Platform Fee — fully free celebrate —— */
.owner-page-subscription-free .owner-content {
    max-width: 720px;
}

.owner-subscription-celebrate {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(165deg, #ecfdf5 0%, #f0fdf4 35%, #ffffff 100%);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.12);
}

.owner-subscription-celebrate-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.owner-subscription-confetti {
    position: absolute;
    font-size: 1.35rem;
    opacity: 0.45;
    animation: ownerSubscriptionFloat 6s ease-in-out infinite;
}

.owner-subscription-confetti:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.owner-subscription-confetti:nth-child(2) { top: 18%; right: 10%; animation-delay: 1.2s; }
.owner-subscription-confetti:nth-child(3) { bottom: 22%; left: 14%; animation-delay: 2.4s; }
.owner-subscription-confetti:nth-child(4) { bottom: 16%; right: 12%; animation-delay: 0.8s; }

@keyframes ownerSubscriptionFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
    50% { transform: translateY(-12px) rotate(8deg); opacity: 0.65; }
}

.owner-subscription-celebrate-body {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 2.25rem;
}

.owner-subscription-celebrate-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #10b981, #059669);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
}

.owner-subscription-happy-pop {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    animation: ownerSubscriptionHappyPop 2s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes ownerSubscriptionHappyPop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.12) rotate(-10deg); }
    50% { transform: scale(1.15) rotate(10deg); }
    75% { transform: scale(1.08) rotate(-5deg); }
}

.owner-subscription-celebrate-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.owner-subscription-celebrate-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #065f46;
    margin: 0;
}

.owner-subscription-celebrate-lead {
    font-size: 1rem;
    line-height: 1.55;
    color: #047857;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.owner-subscription-celebrate-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 22rem;
    text-align: left;
    display: grid;
    gap: 0.65rem;
}

.owner-subscription-celebrate-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #065f46;
}

.owner-subscription-celebrate-list li i {
    color: #10b981;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* —— MikroTik owner enrollment (premium) —— */
.owner-mikrotik-readiness-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.owner-mikrotik-readiness-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.owner-mikrotik-readiness-list li.is-ok i {
    color: #059669;
}

.owner-mikrotik-readiness-list li.is-fail i {
    color: #dc2626;
}

.owner-mikrotik-suite-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.owner-mikrotik-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    margin: 0 0 0.25rem;
}

.owner-mikrotik-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: var(--owner-shadow);
}

.owner-mikrotik-router-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.owner-mikrotik-card.is-selected {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.owner-mikrotik-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 42%, #047857 100%);
    color: #fff;
    position: relative;
    z-index: 1;
}

.owner-mikrotik-card-header-main {
    flex: 1;
    min-width: 0;
}

.owner-mikrotik-compact-setup summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--owner-primary, #1d4ed8);
}

.owner-mikrotik-compact .owner-mikrotik-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.owner-mikrotik-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.owner-mikrotik-card-header .owner-mikrotik-delete {
    color: #fecaca;
    border-color: rgba(254, 202, 202, 0.7);
    background: transparent;
}

.owner-mikrotik-card-header .owner-mikrotik-delete:hover {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.owner-mikrotik-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.owner-mikrotik-status-badge.is-live {
    background: rgba(16, 185, 129, 0.2);
    color: #bbf7d0;
    border: 1px solid rgba(110, 231, 183, 0.35);
}

.owner-mikrotik-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
    animation: owner-mikrotik-pulse 2s ease-in-out infinite;
}

@keyframes owner-mikrotik-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.owner-mikrotik-status-badge.is-pending {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
    border: 1px solid rgba(252, 211, 77, 0.35);
}

.owner-mikrotik-status-badge.is-idle {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.owner-mikrotik-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
}

.owner-mikrotik-flow-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 100%;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.owner-mikrotik-flow-step.is-current {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.owner-mikrotik-flow-step.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.owner-mikrotik-flow-num {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #475569;
}

.owner-mikrotik-flow-step.is-current .owner-mikrotik-flow-num {
    background: #2563eb;
    color: #fff;
}

.owner-mikrotik-flow-step.is-done .owner-mikrotik-flow-num {
    background: #059669;
    color: #fff;
}

.owner-mikrotik-flow-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.owner-mikrotik-flow-hint {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.owner-mikrotik-script-panel {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: linear-gradient(165deg, #f8fafc 0%, #f0fdf4 100%);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.owner-mikrotik-script-panel .owner-mikrotik-script-extras {
    display: none;
    margin-top: 0.75rem;
}

.owner-mikrotik-script-panel.is-open .owner-mikrotik-script-extras {
    display: block;
}

.owner-mikrotik-script-msg:not(.is-visible):empty {
    display: none;
}

.owner-mikrotik-script-panel .owner-mikrotik-script-actions {
    margin-bottom: 0;
}

.owner-mikrotik-script-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.owner-mikrotik-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.owner-mikrotik-btn-primary:hover:not(:disabled) {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.owner-mikrotik-btn-primary:disabled {
    opacity: 0.65;
}

.owner-mikrotik-script-note {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 0.35rem;
    line-height: 1.45;
}

.owner-mikrotik-script-note code {
    font-size: 0.85em;
}

.owner-mikrotik-script-msg {
    display: block;
    font-size: 0.78rem;
    min-height: 1.2em;
}

.owner-mikrotik-script-msg.is-ok { color: #059669; font-weight: 600; }
.owner-mikrotik-script-msg.is-error { color: #dc2626; }
.owner-mikrotik-script-msg.is-busy { color: #64748b; }

.owner-mikrotik-script-summary {
    font-size: 0.78rem;
    color: #64748b;
    cursor: pointer;
    margin-top: 0.5rem;
}

.owner-mikrotik-script-ta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    margin-top: 0.5rem;
    border-radius: 10px;
}

.owner-mikrotik-inline-alert {
    margin-bottom: 1rem;
}

.owner-mikrotik-ip-line {
    font-size: 0.8rem;
    color: #475569;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.owner-mikrotik-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.owner-mikrotik-field .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
}

.owner-mikrotik-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.owner-mikrotik-api-msg {
    font-size: 0.8rem;
    flex: 1 1 180px;
}

.owner-mikrotik-api-msg:empty {
    display: none;
}

.owner-mikrotik-api-msg.is-ok { color: #059669; font-weight: 600; }
.owner-mikrotik-api-msg.is-error { color: #dc2626; }
.owner-mikrotik-api-msg.is-busy { color: #64748b; }

.owner-mikrotik-api-msg.is-analyzing {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    color: inherit;
    font-weight: 500;
    container-type: inline-size;
    container-name: mtk-analyze;
}

.owner-mikrotik-verify-form.is-analyzing button[type="submit"] {
    opacity: 0.7;
    pointer-events: none;
}

.owner-mtk-analyze {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.7rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    color: #f8fafc;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(56, 189, 248, 0.24), transparent 52%),
        radial-gradient(90% 90% at 100% 100%, rgba(16, 185, 129, 0.22), transparent 48%),
        linear-gradient(145deg, #0b1220 0%, #132337 46%, #0c2f2a 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
}

.owner-mtk-analyze-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.16), transparent);
    animation: ownerMtkScan 2.6s ease-in-out infinite;
    pointer-events: none;
}

.owner-mtk-analyze-visual {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.owner-mtk-analyze-ring,
.owner-mtk-analyze-orbit,
.owner-mtk-analyze-core {
    position: absolute;
    border-radius: 50%;
}

.owner-mtk-analyze-ring {
    inset: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-top-color: #67e8f9;
    animation: ownerMtkSpin 1.35s linear infinite;
}

.owner-mtk-analyze-ring-2 {
    inset: 8px;
    border-top-color: transparent;
    border-right-color: #6ee7b7;
    animation-duration: 1.05s;
    animation-direction: reverse;
}

.owner-mtk-analyze-orbit {
    inset: 1px;
    animation: ownerMtkSpin 2.1s linear infinite;
}

.owner-mtk-analyze-orbit i {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #e0f2fe;
}

.owner-mtk-analyze-core {
    inset: 17px;
    background: radial-gradient(circle at 35% 30%, #fff, #38bdf8 42%, #059669 78%);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
    animation: ownerMtkPulse 1.6s ease-in-out infinite;
}

.owner-mtk-analyze-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1 1 auto;
}

.owner-mtk-analyze-kicker,
.owner-mtk-analyze-title,
.owner-mtk-analyze-step {
    margin: 0;
}

.owner-mtk-analyze-kicker {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #67e8f9;
}

.owner-mtk-analyze-title {
    margin-top: 0.12rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.owner-mtk-analyze-step {
    margin-top: 0.12rem;
    min-height: 1.15em;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.owner-mtk-analyze-track {
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.owner-mtk-analyze-track span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #67e8f9, #6ee7b7);
    animation: ownerMtkBar 1.35s ease-in-out infinite;
}

.owner-mtk-analyze.is-done .owner-mtk-analyze-ring,
.owner-mtk-analyze.is-done .owner-mtk-analyze-orbit,
.owner-mtk-analyze.is-done .owner-mtk-analyze-scan,
.owner-mtk-analyze.is-done .owner-mtk-analyze-track span,
.owner-mtk-analyze.is-done .owner-mtk-analyze-core {
    animation: none;
}

.owner-mtk-analyze.is-done .owner-mtk-analyze-core {
    background: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
}

.owner-mtk-analyze.is-done .owner-mtk-analyze-kicker {
    color: #6ee7b7;
}

.owner-mtk-analyze.is-done .owner-mtk-analyze-track span {
    width: 100%;
    background: #34d399;
}

@keyframes ownerMtkSpin {
    to { transform: rotate(360deg); }
}

@keyframes ownerMtkPulse {
    0%, 100% { transform: scale(0.86); opacity: 0.85; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes ownerMtkBar {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(290%); }
}

@keyframes ownerMtkScan {
    0% { transform: translateY(-110%); }
    100% { transform: translateY(260%); }
}

@media (max-width: 640px) {
    .owner-mtk-analyze {
        gap: 0.65rem;
        padding: 0.7rem 0.75rem;
        border-radius: 14px;
    }
}

@container mtk-analyze (max-width: 420px) {
    .owner-mtk-analyze {
        gap: 0.6rem;
        padding: 0.7rem 0.75rem;
    }

    .owner-mtk-analyze-visual {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .owner-mtk-analyze-ring-2 {
        inset: 6px;
    }

    .owner-mtk-analyze-core {
        inset: 13px;
    }

    .owner-mtk-analyze-title {
        font-size: 0.86rem;
    }

    .owner-mtk-analyze-step {
        font-size: 0.74rem;
    }
}

@container mtk-analyze (max-width: 280px) {
    .owner-mtk-analyze {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .owner-mtk-analyze-copy,
    .owner-mtk-analyze-track {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .owner-mtk-analyze-ring,
    .owner-mtk-analyze-orbit,
    .owner-mtk-analyze-scan,
    .owner-mtk-analyze-track span,
    .owner-mtk-analyze-core {
        animation: none;
    }

    .owner-mtk-analyze-track span {
        width: 70%;
    }
}

.owner-adopt-progress.owner-mtk-analyze,
.owner-omada-wifi-progress.owner-mtk-analyze,
.owner-bongonet-ai-panel.owner-mtk-analyze,
.owner-adopt-loading-overlay-card.owner-mtk-analyze {
    margin-bottom: 0.85rem;
}

.owner-mtk-analyze .owner-adopt-timer-row {
    margin-bottom: 0.35rem;
}

.owner-mtk-analyze .owner-adopt-loading-timer {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e0f2fe;
}

.owner-mtk-analyze .owner-adopt-timer-bar {
    height: 3px;
    margin-bottom: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
}

.owner-mtk-analyze .owner-adopt-timer-bar > span {
    width: 0%;
    background: linear-gradient(90deg, #67e8f9, #6ee7b7);
    animation: none;
}

.owner-adopt-loading-overlay-card.owner-mtk-analyze strong,
.owner-adopt-loading-overlay-card.owner-mtk-analyze p,
.owner-mtk-analyze .owner-hotspots-field-hint,
.owner-mtk-analyze .owner-bongonet-ai-typing,
.owner-mtk-analyze .owner-hotspots-step {
    color: #e2e8f0;
}

.owner-mtk-analyze .owner-bongonet-ai-cursor {
    background: #67e8f9;
}

.owner-mtk-analyze .owner-hotspots-steps {
    margin-top: 0.45rem;
}

.owner-mtk-analyze .owner-hotspots-step {
    font-size: 0.76rem;
    line-height: 1.35;
}

.owner-mtk-analyze strong {
    color: #f8fafc;
}

.owner-mikrotik-card-foot {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
}

.owner-mikrotik-mac-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #94a3b8;
}

.owner-mikrotik-card-foot code {
    font-size: 0.72rem;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .owner-mikrotik-flow {
        grid-template-columns: 1fr;
    }

    .owner-mikrotik-fields {
        grid-template-columns: 1fr;
    }

    .owner-mikrotik-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .owner-mikrotik-actions .btn-outline-secondary {
        width: 100%;
    }
}
