/* ================================================================
   UBA Account — Personal Cabinet
   Colors: #202224 (bg) · #d2ee4e (accent) · #fff (text)
   Font:   Bebas Neue (headings) · Manrope (body)
   ================================================================ */

/* ── Layout ────────────────────────────────────────────────────── */

.uba-account-wrap {
    background: #202224;
    color: #fff;
    min-height: 60vh;
    padding: 60px 24px 80px;
}

/* ── Login box ─────────────────────────────────────────────────── */

.uba-login-box {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.uba-login-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 12px;
}

.uba-login-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 40px;
}

.uba-login-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uba-code-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ── Inputs ────────────────────────────────────────────────────── */

.uba-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.uba-input:focus {
    border-color: #d2ee4e;
}

.uba-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.uba-code-input {
    text-align: center;
    font-size: 28px;
    letter-spacing: 8px;
    font-family: 'Bebas Neue', sans-serif;
}

.uba-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    resize: none;
    overflow: hidden;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.uba-textarea:focus {
    border-color: #d2ee4e;
}

.uba-textarea--single {
    line-height: 1.5;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.uba-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 36px;
    background: #d2ee4e;
    color: #202224;
    border: none;
    border-radius: 50px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.uba-btn-primary:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #202224;
}

.uba-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.uba-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.uba-btn-ghost:hover {
    border-color: #d2ee4e;
    color: #d2ee4e;
}

/* ── Newsletter consent checkbox ──────────────────────────────── */

.uba-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.uba-consent-input {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.uba-consent-input:checked {
    background: #d2ee4e;
    border-color: #d2ee4e;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7L10 1' stroke='%23202224' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.uba-consent-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.uba-consent-label:hover .uba-consent-text {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Messages ──────────────────────────────────────────────────── */

.uba-message {
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.uba-message.is-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.uba-message.is-success {
    background: rgba(210, 238, 78, 0.12);
    border: 1px solid rgba(210, 238, 78, 0.35);
    color: #d2ee4e;
}

.uba-error {
    color: #fca5a5;
    font-family: 'Manrope', sans-serif;
    padding: 40px;
    text-align: center;
}

/* ── Dashboard header ──────────────────────────────────────────── */

.uba-account-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 48px;
    flex-wrap: wrap;
}

.uba-account-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.uba-account-email {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 4px;
}

/* ── Applications list ─────────────────────────────────────────── */

.uba-apps-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uba-app-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uba-app-card__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.uba-app-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.uba-app-card__body {
    flex: 1;
    min-width: 0;
}

.uba-app-card__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uba-app-status {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.uba-app-status--paid {
    background: rgba(210, 238, 78, 0.15);
    color: #d2ee4e;
    border: 1px solid rgba(210, 238, 78, 0.3);
}

.uba-app-status--draft {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.uba-app-status--submitted {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.uba-app-card__action {
    flex-shrink: 0;
}

.uba-submitted-badge {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #34d399;
}

.uba-app-status--pending_payment {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.uba-app-status--not-started {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.uba-app-card__email {
    display: block;
    margin-top: 5px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Fill form ─────────────────────────────────────────────────── */

.uba-fill-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.uba-fill-form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.uba-back-link {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    padding: 10px;
}

.uba-back-link:hover {
    color: #d2ee4e;
    text-decoration: none;
}

.uba-save-indicator {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    min-width: 120px;
    text-align: right;
}

.uba-save-indicator.is-saving {
    color: #fbbf24;
}

.uba-save-indicator.is-saved {
    color: #34d399;
}

.uba-fill-form-header {
    margin-bottom: 40px;
}

.uba-fill-form-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 16px;
}

.uba-fill-form-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ── Form fields ───────────────────────────────────────────────── */

.uba-form-fields {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.uba-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uba-field-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

.required-mark {
    color: #d2ee4e;
    margin-left: 3px;
}

.uba-field-help {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.uba-char-counter {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

.uba-field-error {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #fca5a5;
}

/* ── Terms checkbox ────────────────────────────────────────────── */

.uba-terms-check {
    margin-bottom: 24px;
}

.uba-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.uba-terms-input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.uba-terms-input:checked {
    background: #d2ee4e;
    border-color: #d2ee4e;
}

.uba-terms-input:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: 2px solid #202224;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.uba-terms-text {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.uba-terms-text a {
    color: #d2ee4e;
    text-decoration: underline;
}

.uba-terms-error {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #fca5a5;
    margin: 10px 0 0 32px;
}

/* ── Form actions ──────────────────────────────────────────────── */

.uba-fill-form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Submitted notice ──────────────────────────────────────────── */

.uba-submitted-notice {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 0;
}

.uba-submitted-notice h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: #34d399;
    margin: 0 0 16px;
}

.uba-submitted-notice p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px;
}

/* ── File upload (reused styles) ───────────────────────────────── */

.uba-existing-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.uba-existing-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.uba-existing-file a {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #d2ee4e;
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .uba-account-wrap {
        padding: 40px 16px 60px;
    }

    .uba-account-title {
        font-size: 42px;
    }

    .uba-app-card {
        flex-wrap: wrap;
    }

    .uba-app-card__action {
        width: 100%;
    }

    .uba-btn-primary {
        width: 100%;
    }

    .uba-fill-form-actions {
        flex-direction: column;
    }

    .uba-fill-form-actions .uba-btn-primary,
    .uba-fill-form-actions .uba-btn-ghost {
        width: 100%;
    }
}

/* ── Account tabs ───────────────────────────────────────────────── */

.uba-acc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    max-width: 1100px;
    margin: 0 auto 40px;
}

.uba-acc-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: -1px;
    margin-right: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.uba-acc-tab:hover:not(.is-active) {
    color: rgba(255,255,255,0.65);
}

.uba-acc-tab.is-active {
    color: #fff;
    border-bottom-color: #d2ee4e;
}

.uba-acc-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #d2ee4e;
    color: #202224;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* ── Tab panels ─────────────────────────────────────────────────── */

.uba-tab-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.uba-tab-panel[hidden] { display: none !important; }

/* ── Empty state ────────────────────────────────────────────────── */

.uba-empty-state {
    text-align: center;
    padding: 72px 0;
}

.uba-empty-state p {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 28px;
}


.uba-cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.uba-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.uba-cart-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.uba-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uba-cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uba-cart-item__title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.uba-cart-item__price {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.uba-cart-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.uba-cart-remove:hover {
    color: #ff6b6b;
}

.uba-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.uba-cart-total {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}

.uba-cart-total strong {
    color: #d2ee4e;
    font-size: 18px;
}

/* ── Add-to-cart button states ──────────────────────────────────── */

.uba-add-cart-btn.is-in-cart {
    border-color: #d2ee4e;
    color: #d2ee4e;
    cursor: default;
}

@media (max-width: 640px) {
    .uba-cart-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .uba-cart-footer .uba-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ── My Tickets panel ──────────────────────────────────────────── */

.uba-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uba-ticket-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
}

.uba-ticket-row__icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.uba-ticket-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uba-ticket-row__type {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uba-ticket-row__meta {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.uba-ticket-row__status {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.uba-ticket-status--paid {
    background: rgba(99,214,120,0.15);
    color: #63d678;
    border: 1px solid rgba(99,214,120,0.3);
}

.uba-ticket-status--pending {
    background: rgba(255,193,7,0.12);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.25);
}

.uba-ticket-status--cancelled {
    background: rgba(255,107,107,0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.25);
}

.uba-ticket-row__download {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 14px;
}

/* ── Cart ticket items ─────────────────────────────────────────── */

.uba-cart-item--ticket .uba-cart-item__thumb--ticket {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(210,238,78,0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.uba-cart-item__qty {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

@media (max-width: 480px) {
    .uba-ticket-row {
        flex-wrap: wrap;
    }
    .uba-ticket-row__download {
        width: 100%;
        text-align: center;
    }
}
