:root {
    --bg: #0d1418;
    --bg-soft: #102128;
    --panel: rgba(15, 29, 36, 0.88);
    --panel-2: rgba(18, 39, 49, 0.95);
    --panel-3: rgba(11, 24, 30, 0.96);
    --border: rgba(255,255,255,0.12);
    --border-strong: rgba(255,255,255,0.2);
    --text: #f7f6fb;
    --muted: #bdd2d6;
    --accent: #2f85ff;
    --accent-2: #28d7a1;
    --accent-3: #68d6ff;
    --accent-dark: #111111;
    --danger: #ff7474;
    --success: #43d39e;
    --warn: #f5c65b;
    --shadow: 0 12px 30px rgba(0,0,0,0.24);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.16);
    --radius: 8px;
    --nav-height: 56px;
    --focus-ring: 0 0 0 3px rgba(47,133,255,0.28);
    --gradient-main: linear-gradient(135deg, rgba(47,133,255,0.84), rgba(40,215,161,0.76) 58%, rgba(104,214,255,0.72));
    --gradient-soft: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(47, 133, 255, 0.22), transparent 25%),
        radial-gradient(circle at 85% 18%, rgba(40, 215, 161, 0.16), transparent 23%),
        radial-gradient(circle at 70% 82%, rgba(104, 214, 255, 0.15), transparent 26%),
        linear-gradient(180deg, #0f181d 0%, #0d1418 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    z-index: 0;
}

body > .app-shell {
    position: relative;
    z-index: 1;
}

a {
    color: #cbe9ff;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #ffffff;
}

code {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2px 7px;
    color: #dff8ff;
}

h1,
h2,
h3,
.brand-title,
.plan-title,
.target-item__title,
.card__head h2,
.page-head h1 {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.app-shell {
    min-height: 100vh;
}

.dashboard-shell {
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 22px);
}



.dashboard-content,
.content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    background: rgba(25, 25, 31, 0.94);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

    .auth-panels button, .auth-panels input {
        margin-bottom: 10px;
    }

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
}

.brand-lockup {
    text-align: center;
    margin-bottom: 24px;
}

.brand-title {
    font-size: clamp(34px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: white;
    margin-top: 8px;
    font-size: 24px;
    border-bottom: solid 1px var(--muted);
}

.auth-panel {
    display: none;
}

.auth-panel.is-visible {
    display: block;
    animation: fadeSlide 0.22s ease;
}

.auth-card h1,
.auth-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(24px, 4.4vw, 30px);
}

label {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
    color: #d3e6ea;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    background: rgba(20,20,26,0.92);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    padding: 2px 8px;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #93afb5;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
.info-pin:focus-visible {
    border-color: rgba(124,92,255,0.7);
    box-shadow: var(--focus-ring);
}

textarea {
    resize: vertical;
    min-height: 112px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    padding: 4px 0;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.btn {
	line-height:1em;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(47,45,62,0.92);
    color: var(--text);
    border-radius: 10px;
    padding: 5px 10px;
    min-height: 30px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.22);
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background: var(--gradient-main);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

.btn--ghost {
    background: rgba(255,255,255,0.03);
}

.btn--danger {
    background: linear-gradient(180deg, rgba(255,92,110,0.22), rgba(209,84,84,0.18));
    color: #ffe6e8;
    border-color: rgba(255,92,110,0.45);
}

.btn--green {
    background: #153215;
}

.btn--small {
    padding: 5px 10px;
    min-height: 30px;
    font-size: 13px;
}

.share-chip {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-radius: 999px;
    padding: 5px 9px;
    min-height: 28px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-chip:hover {
    border-color: rgba(255,255,255,0.24);
}

.inline-name-input {
    width: 100%;
    margin-top: 0;
    min-height: 20px;
    font-weight: 700;
}

.inline-name-input.is-saving {
    border-color: rgba(245,198,91,0.55);
}

.inline-name-input.is-saved {
    border-color: rgba(67,211,158,0.55);
    box-shadow: 0 0 0 3px rgba(67,211,158,0.14);
}

.inline-name-input.is-error {
    border-color: rgba(255,116,116,0.55);
    box-shadow: 0 0 0 3px rgba(255,116,116,0.12);
}

.auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.auth-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-actions--single {
    grid-template-columns: 1fr;
}

.auth-legal-links {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.checkbox--stacked {
    align-items: flex-start;
}

.checkbox--stacked span {
    line-height: 1.45;
}

.linkish {
    appearance: none;
    border: 0;
    background: transparent;
    color: #cbe9ff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-doc {
    display: grid;
    gap: 10px;
    line-height: 1.6;
}

.legal-doc h3 {
    margin: 10px 0 0;
    font-size: 16px;
}

.legal-doc p {
    margin: 0;
}

.flash {
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
}

.flash--success {
    color: #e8fff5;
    border-color: rgba(67,211,158,0.55);
    background: rgba(67,211,158,0.16);
}

.flash--error {
    color: #ffe9ee;
    border-color: rgba(255,116,116,0.55);
    background: rgba(255,116,116,0.16);
}

.page-head {



}

.page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 32px);
}

.page-head p {
    margin: 0;
    color: var(--muted);
    
}

.page-head__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.status-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #fff;
}

.status-pill:nth-child(1) {
    background: rgba(124,92,255,0.18);
    border-color: rgba(124,92,255,0.35);
}

.status-pill:nth-child(2) {
    background: rgba(0,210,255,0.14);
    border-color: rgba(0,210,255,0.28);
}

.status-pill:nth-child(3) {
    background: rgba(255,79,163,0.14);
    border-color: rgba(255,79,163,0.28);
}

.status-pill--warn {
    color: #fff5dc;
    border-color: rgba(245,198,91,0.55);
    background: rgba(245,198,91,0.18);
}

.info-box,
.placeholder-card,
.card,
.empty-state {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    font-size: clamp(12px, 2vw, 16px);
}

.info-box,
.placeholder-card,
.empty-state {
    padding: 14px;
    margin-bottom: 14px;
}

.info-box {
    position: relative;
    padding-right: 52px;
}


.info-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: 7px;
    cursor: help;
    box-shadow: 0 8px 18px rgba(81, 67, 148, 0.35);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.cards-grid--profile {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.card {
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.card--wide {
    grid-column: 1 / -1;
}

.card__head,
.target-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card__head h2,
.card h2,
.card h3,
.placeholder-card h2,
.empty-state h3,
.info-box strong {
    margin: 0;
}

.card__actions,
.target-item__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card__text,
.project-meta,
.target-item__meta,
.profile-kv,
.muted {
    color: var(--muted);
}

.project-meta {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

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

.target-item {
    padding: 10px;
    border-radius: 7px;
    border: 0;
}

.ti_ok {background: rgba(255,255,255,0.04);}
.ti_no {background: rgba(255,0,0,0.2);}

.target-item__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-kv {
    display: grid;
    gap: 10px;
}

.upgrade-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.upgrade-box--pro {
    border-color: rgba(67,211,158,0.42);
    background: rgba(67,211,158,0.10);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.plan-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.plan-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    color: var(--muted);
    margin-bottom: 12px;
}

.paypal-button-wrap {
    min-height: 46px;
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 22px 0;
}

.payments-table {
    display: grid;
    gap: 8px;
}

.payments-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr 1.6fr;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    border: 0;
}

.payments-row--head {
    background: rgba(255,255,255,0.08);
    font-weight: 700;
    color: #fff;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    min-height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10,10,14,0.96);
    border-top: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.22);
    z-index: 40;
}

.bottom-nav__item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #d7d0e6;
    text-decoration: none;
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 4px;
    min-height: var(--nav-height);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
}

.bottom-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-nav__label--short {
    display: none;
}

.bottom-nav__item.is-active {
    color: #fff;
    background: rgba(124,92,255,0.16);
}

.dialog {
    display: none;
}

.dialog label {font-size: 0.8em; margin: 10px 0 3px 0;}

.video-preview-wrap {
    padding: 0;
    margin: -16px;
    background: #000;
}

.video-preview-wrap video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 140px);
    background: #000;
}

.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.ui-widget.ui-widget-content,
.ui-dialog .ui-dialog-content {
    color: #f8f7fb;
}

.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
    padding: 10px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    border: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    background: black;
}

.ui-dialog .ui-dialog-titlebar {
    flex: 0 0 auto;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #000000;
    color: #fff;
    padding: 10px 16px;
}

.ui-dialog .ui-dialog-title {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin: 0;
    line-height: 32px;
}

.ui-dialog .ui-dialog-content {
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 16px;
    overflow: auto;
    max-height: calc(100vh - 132px);
}

.ui-dialog .ui-dialog-buttonpane {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 16px 16px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #000000;
}

.ui-dialog .ui-dialog-buttonpane button,
.ui-dialog .ui-button,
.ui-dialog .ui-button:focus {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: #191b20;
    color: #fff;
    border-radius: 0;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: none;
}

.ui-dialog .ui-dialog-buttonpane button + button {
    background: rgba(255,255,255,0.06);
}

.ui-dialog .ui-button.ui-dialog-titlebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 72px;
    height: 32px;
    right: 10px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    background: rgba(255,255,255,0.00);
    color: #fff;
    text-indent: 0;
    white-space: nowrap;
    overflow: visible;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ui-dialog .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
    display: none;
}

.ui-dialog .ui-dialog-titlebar-close::after {
    content: none;
}

.ui-widget-overlay {
    position: fixed;
    inset: 0;
    background: rgba(52,0,68,0.5);
    opacity: 1;
}

.ui-tooltip {
    max-width: min(340px, calc(100vw - 24px));
    background: linear-gradient(180deg, rgba(18,17,24,0.98), rgba(25,21,35,0.98));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 16px 38px rgba(0,0,0,0.44);
    border-radius: 16px;
    padding: 12px 14px;
    line-height: 1.5;
    font-size: 14px;
}

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

@media (max-width: 1024px) {
    .dashboard-content,
    .content-wrap {
        padding: 10px 10px;
    }

    .cards-grid,
    .cards-grid--profile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {


    .page-head,
    .card__head,
    .target-head,
    .target-item,
    .target-item__actions {
        flex-direction: column;
    }

    .auth-screen {
        align-items: flex-start;
        padding: 18px 14px 110px;
    }

    .auth-card {
        padding: 18px 16px;
        border-radius: 16px;
    }



    .auth-actions {
        grid-template-columns: 1fr;
    }

    .page-head__actions,
    .card__actions,
    .target-item__actions {
        width: 100%;
    }

    .page-head__actions .btn,
    .card__actions .btn,
    .target-item__actions .btn,
    .target-head .btn {
        width: 100%;
    }

    .payments-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .payments-row--head {
        display: none;
    }

    .payments-row > div {
        position: relative;
        padding-left: 0;
    }

    .bottom-nav__item {
        font-size: 10px;
        padding: 7px 1px;
    }

    .info-box {
        padding-right: 18px;
    }

    .ui-dialog {
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 16px);
    }

    .ui-dialog .ui-dialog-content {
        max-height: calc(100vh - 156px);
    }

    .video-preview-wrap {
        margin: -14px;
    }

    .video-preview-wrap video {
        max-height: calc(100vh - 148px);
    }

    .ui-dialog .ui-dialog-buttonpane button {
        width: 100%;
        margin: 6px 0 0;
    }
}

@media (max-width: 480px) {
    .dashboard-content,
    .content-wrap {
        padding: 10px 10px;
    }

    .brand-title {
        letter-spacing: 0.03em;
    }

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

    

    .status-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .status-pill,
    .btn,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea {
        max-width: 100%;
    }

    .target-item {
        padding: 10px;
    }

    .bottom-nav__item {
        font-size: 10px;
    }

    .bottom-nav__label--full {
        display: none;
    }

    .bottom-nav__label--short {
        display: block;
    }
}

.video-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 0;
}

.video-item__main {
    min-width: 0;
    flex: 1;
}

.video-item__link {
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.video-item__link:hover {
    color: #cbe9ff;
    text-decoration: underline;
}

.video-item__meta {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    word-break: break-word;
}

.video-empty {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 0;
    color: var(--muted);
}

@media (max-width: 720px) {
    .video-item {
        flex-direction: column;
        align-items: stretch;
    }

    .video-item__actions .btn {
        width: 100%;
    }
}

    .shine {
      background: linear-gradient(90deg, #ffffff, #ff86d0 35%, #a688ff 65%, #7fdfff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    
    .right {float:right;}

	.zc { color: #705600; font-size: 0.9em; position: relative;}
	.small {font-size: 0.8em;}
	.free {margin: 5px 0px 10px 0px;}
