.eticket-page {
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eticket {
    position: relative;
    width: 330px;
}

/* Perfect Postage Stamp Edge Outer Frame */
.stamp-outer-frame {
    background-color: #d8dce1;
    padding: 12px;
    position: relative;
    border-radius: 4px;
    background-image: 
        radial-gradient(circle 5px at 0px 50%, var(--bg-body) 99%, transparent 100%),
        radial-gradient(circle 5px at 100% 50%, var(--bg-body) 99%, transparent 100%),
        radial-gradient(circle 5px at 50% 0px, var(--bg-body) 99%, transparent 100%),
        radial-gradient(circle 5px at 50% 100%, var(--bg-body) 99%, transparent 100%);
    background-size: 14px 14px;
    background-position: left, right, top, bottom;
    background-repeat: repeat-y, repeat-y, repeat-x, repeat-x;
}

/* Inner Ticket Pass */
.eticket-body {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ticket-top {
    padding: 14px 20px 0px 20px;
    text-align: center;
    background: linear-gradient(90deg, #6831e3, #f528cb);
    border-radius: 16px 16px 0 0;
    color: #ffffff;
}

.ticket-details {
    padding: 14px 20px 0;
    text-align: center;
    background: #ffffff;
    color: #1a1a2e;
}

.athlenic-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.athlenic-brand-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.athlenic-brand-icon {
    height: 1.3em;
    width: auto;
    filter: brightness(0) invert(1);
}

.athlenic-brand-name {
    font-size: 1rem;
    font-weight: 700;
}

.athlenic-brand-name span {
    color: rgba(255, 255, 255, 0.6);
}

.event-name-bar {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.4rem 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
}

.participant-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a2e;
    text-align: left;
}

.main-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sub-title {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-top: 3px;
    margin-bottom: 14px;
    text-transform: uppercase;
    opacity: 0.95;
}

.dotted-divider {
    border-bottom: 2px dotted rgba(0, 0, 0, 0.12);
    margin: 12px 0;
    width: 100%;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
}

.info-item .label {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: right;
    color: #1a1a2e;
}

.bib-line {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #210041;
    text-align: center;
    padding: 0.6rem 20px;
    margin: 0.55rem -20px 0;
    background: #f3eefa;
    border-top: 2px dotted rgba(0, 0, 0, 0.12);
    border-bottom: 2px dotted rgba(0, 0, 0, 0.12);
}

/* Perforation Cutout Notches */
.seam-notch {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #d8dce1;
    border-radius: 50%;
    top: -12px;
    z-index: 10;
}

.notch-left { left: -12px; }
.notch-right { right: -12px; }

/* Bottom Stub & QR Container */
.ticket-bottom-stub {
    padding: 0;
    position: relative;
}

.stub-inner-border {
    padding: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f7fc;
}

.qr-bg-box {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-qr-image {
    width: 120px;
    height: 120px;
    display: block;
}

.eticket-footer {
    padding: 0.5rem 1.2rem;
    text-align: center;
    background: #6a3fa0;
}

.eticket-footer-url {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.download-btn {
    display: block;
    margin: 0.7rem auto 0;
    padding: 0.45rem 1.2rem;
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.download-btn:hover {
    background: #6c757d;
    color: #fff;
}