.dtmt-page,
.dtmt-gate {
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto;
}

.dtmt-page *,
.dtmt-gate * {
    box-sizing: border-box;
}

.dtmt-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.dtmt-page-header h1,
.dtmt-gate h2,
.dtmt-event-card h2 {
    margin-top: 0;
}

.dtmt-page-header p {
    margin-bottom: 0;
    color: #6b7280;
}

.dtmt-session-badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
}

.dtmt-gate {
    max-width: 520px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    text-align: center;
}

.dtmt-gate__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: #ea3c12;
    font-size: 40px;
}

.dtmt-otp-form {
    margin-top: 22px;
}

.dtmt-otp-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.dtmt-otp-code {
    width: min(100%, 280px) !important;
    min-height: 54px;
    margin: 0 auto;
    text-align: center;
    font-size: 28px !important;
    font-weight: 700;
    letter-spacing: 8px;
    border-radius: 10px !important;
}

.dtmt-countdown {
    margin: 10px 0 18px;
    font-size: 14px;
    color: #6b7280;
}

.dtmt-resend-form {
    margin-top: 14px;
}

.dtmt-link-button {
    padding: 4px;
    border: 0;
    background: transparent;
    color: #ea3c12;
    text-decoration: underline;
    cursor: pointer;
}

.dtmt-link-button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.dtmt-security-note {
    margin: 22px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.dtmt-button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}

.dtmt-button--primary,
.dtmt-button--download {
    background: #ea3c12;
    color: #fff !important;
}

.dtmt-button--primary:hover,
.dtmt-button--download:hover {
    filter: brightness(.94);
}

.dtmt-notice {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 9px;
    text-align: left;
    font-size: 14px;
}

.dtmt-notice--success {
    background: #f0fdf4;
    color: #166534;
}

.dtmt-notice--error {
    background: #fef2f2;
    color: #991b1b;
}

.dtmt-notice--info {
    background: #eff6ff;
    color: #1e40af;
}

.dtmt-events {
    display: grid;
    gap: 24px;
}

.dtmt-event-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.dtmt-event-card__header {
    padding: 18px 22px;
    border-bottom: 1px solid #eef0f2;
}

.dtmt-event-card__header h2 {
    margin-bottom: 0;
    font-size: clamp(20px, 3vw, 27px);
}

.dtmt-event-card__body {
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
}

.dtmt-event-card__media {
    width: 100%;
}

.dtmt-event-card__media img,
.dtmt-event-card__placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f4f6;
}

.dtmt-event-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
}

.dtmt-ticket-list {
    display: grid;
    align-content: start;
}

.dtmt-ticket-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f2;
}

.dtmt-ticket-row:first-child {
    padding-top: 0;
}

.dtmt-ticket-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dtmt-ticket-row__info {
    min-width: 0;
}

.dtmt-ticket-row__number {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 13px;
}

.dtmt-ticket-row__type {
    display: block;
    overflow-wrap: anywhere;
}

.dtmt-ticket-row__price {
    white-space: nowrap;
    font-weight: 700;
}

.dtmt-empty {
    padding: 42px 24px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    text-align: center;
    background: #fafafa;
}

.dtmt-empty__icon {
    margin-bottom: 10px;
    font-size: 46px;
}

.dtmt-empty h3 {
    margin: 0 0 8px;
}

.dtmt-empty p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 720px) {
    .dtmt-page-header {
        flex-direction: column;
    }

    .dtmt-session-badge {
        white-space: normal;
    }

    .dtmt-gate {
        padding: 24px 18px;
    }

    .dtmt-event-card__body {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .dtmt-event-card__media {
        width: min(100%, 360px);
        max-width: 100%;
        margin: 0 auto;
    }

    .dtmt-event-card__header {
        padding: 16px;
    }

    .dtmt-ticket-row {
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
        padding: 16px 0;
    }

    .dtmt-ticket-row__info {
        grid-column: 1;
    }

    .dtmt-ticket-row__price {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .dtmt-ticket-row .dtmt-button--download {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 7px;
    }

}
