.pcp-message {
    padding: 0.75em 1em;
    margin: 1em 0;
    border-left: 4px solid;
}

.pcp-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 2em;
    padding: 1em 0;
}

.pcp-step {
    display: flex;
    align-items: center;
    padding: 0.5em 1.25em;
    border-radius: 20px;
    opacity: 0.6;
}

.pcp-step.active {
    opacity: 1;
    font-weight: 600;
}

.pcp-step.completed {
    opacity: 0.8;
}

.pcp-upload-zone {
    border: 2px dashed;
    border-radius: 8px;
    padding: 3.75em 1.25em;
    text-align: center;
    cursor: pointer;
}

.pcp-upload-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 0.75em;
}

.pcp-upload-hint {
    font-size: 0.85em;
    opacity: 0.7;
}

.pcp-preview-wrapper {
    max-width: 400px;
    margin: 1.25em auto;
}

.pcp-preview-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.pcp-preview-info {
    text-align: center;
    margin: 0.75em 0;
}

.pcp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75em;
    margin: 1.25em 0;
}

.pcp-category-item {
    display: flex;
    align-items: center;
    padding: 0.75em 1em;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
}

.pcp-category-item input[type="checkbox"] {
    margin-right: 0.6em;
}

.pcp-payment-summary {
    border: 1px solid;
    border-radius: 8px;
    padding: 1.25em;
    margin: 1.25em 0;
}

.pcp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 0;
    border-bottom: 1px solid;
}

.pcp-summary-row:last-child {
    border-bottom: none;
}

.pcp-summary-total {
    font-weight: 700;
    font-size: 1.1em;
    padding-top: 0.75em;
    border-top: 2px solid;
}

.pcp-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75em;
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid;
}

.pcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.5em;
    cursor: pointer;
    text-decoration: none;
}

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

.pcp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25em;
    margin: 1.25em 0;
}

.pcp-gallery-item {
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.pcp-gallery-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pcp-gallery-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.pcp-gallery-image a img {
    pointer-events: none;
}

.pcp-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcp-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pcp-gallery-info {
    padding: 1em;
}

.pcp-gallery-info h3 {
    margin: 0 0 0.5em;
}

.pcp-gallery-photo-title {
    font-size: 0.9em;
    margin: 0 0 0.3em;
}

.pcp-gallery-author-info {
    margin: 1em 0;
    font-size: 0.9em;
}

.pcp-gallery-author-info strong {
    margin: 0 0.5em;
}

.pcp-filter-btn--small {
    font-size: 0.85em;
    padding: 0.2em 0.6em;
}

.pcp-categories {
    font-size: 0.85em;
    margin-bottom: 0.5em;
}

.pcp-status-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 12px;
    font-size: 0.8em;
}

.pcp-score {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0.5em;
}

.pcp-rank-badge {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    z-index: 1;
}

.pcp-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 1.25em 0;
}

.pcp-edition-filters {
    padding: 0.75em;
    border-radius: 8px;
}

.pcp-overall-winner {
    margin: 1.5em 0;
    padding: 1.25em;
    border: 2px solid #D4AF37;
    border-radius: 12px;
}

.pcp-overall-winner-badge {
    display: inline-block;
    background: #D4AF37;
    color: #fff;
    padding: 0.3em 1em;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    margin-bottom: 1em;
    letter-spacing: 0.05em;
}

.pcp-overall-winner-content {
    display: flex;
    gap: 1.25em;
    align-items: center;
}

.pcp-overall-winner-image {
    flex: 0 0 200px;
}

.pcp-overall-winner-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.pcp-overall-winner-info h3 {
    margin: 0 0 0.5em;
}

.pcp-overall-winner-medals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.75em;
}

.pcp-overall-winner-medals .pcp-medal {
    position: static;
    display: inline-block;
    padding: 0.2em 0.75em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
}

.pcp-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 1em;
    border: 1px solid;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
}

.pcp-filter-select {
    padding: 0.4em 0.75em;
    border: 1px solid;
    font-size: 0.9em;
}

.pcp-participant-name {
    font-size: 0.85em;
    margin-bottom: 0.25em;
}

.pcp-gallery-item--medal {
    position: relative;
}

.pcp-medal {
    position: absolute;
    left: 0.5em;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    line-height: 1.5;
    white-space: nowrap;
}

.pcp-medal:nth-child(2) {
    top: 0.5em;
}

.pcp-medal:nth-child(3) {
    top: 2.4em;
}

.pcp-medal:nth-child(4) {
    top: 4.3em;
}

.pcp-medal--gold {
    background: #d4af37;
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(212, 175, 55, 0.5);
}

.pcp-medal--silver {
    background: #A0A0A0;
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(168, 168, 168, 0.5);
}

.pcp-medal--bronze {
    background: #cd7f32;
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(205, 127, 50, 0.5);
}

.pcp-gallery-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.5em;
}

.pcp-gallery-status .pcp-score {
    margin-top: 0;
    font-size: 1.1em;
}

.pcp-gallery-status .pcp-score small {
    font-size: 0.7em;
    opacity: 0.7;
}

.pcp-vote-progress {
    font-size: 0.8em;
    opacity: 0.7;
}

.pcp-auth-container {
    max-width: 480px;
    margin: 2em auto;
}

.pcp-auth-tabs {
    display: flex;
    gap: 0;
    margin: 1.5em 0 0;
    border-bottom: 1px solid;
}

.pcp-auth-tab {
    flex: 1;
    padding: 0.75em 1em;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1em;
    opacity: 0.6;
    color: inherit;
}

.pcp-auth-tab.active {
    opacity: 1;
    border-bottom: 2px solid;
    font-weight: 600;
}

.pcp-auth-form-wrapper {
    padding-top: 1.5em;
}

.pcp-auth-input {
    width: 100%;
    padding: 0.6em 0.75em;
    border: 1px solid;
    font-size: 1em;
    box-sizing: border-box;
    background: transparent;
    color: inherit;
}

.pcp-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
}

.pcp-auth-submit {
    width: 100%;
    padding: 0.75em 1em;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.pcp-auth-container label {
    display: block;
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

.pcp-auth-container p {
    margin: 0 0 1em;
}

.pcp-judge-voting {
    max-width: 1200px;
    margin: 0 auto;
}

.pcp-judge-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5em;
    margin-top: 1.25em;
}

.pcp-judge-item {
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
}

.pcp-judge-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.pcp-judge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcp-judge-info {
    padding: 1.25em;
}

.pcp-judge-info h3 {
    margin: 0 0 0.5em;
}

.pcp-judge-categories {
    font-size: 0.85em;
    margin-bottom: 1em;
}

.pcp-judge-score {
    margin-bottom: 1em;
}

.pcp-judge-score label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.pcp-score-slider {
    width: 100%;
    margin: 0.5em 0;
}

.pcp-score-value {
    display: block;
    text-align: center;
    font-size: 1.75em;
    font-weight: 700;
}

.pcp-judge-actions {
    margin-top: 1em;
}

.pcp-judge-actions .pcp-btn {
    width: 100%;
}

.pcp-judge-message {
    margin-top: 0.75em;
}

.pcp-judge-message .pcp-message {
    margin: 0;
}

.pcp-judge-item.voted {
    opacity: 0.6;
    pointer-events: none;
}

.pcp-judge-revote-notice {
    padding: 0.5em 0.75em;
    margin-bottom: 0.75em;
    font-size: 0.85em;
    line-height: 1.5;
}

.pcp-judge-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.pcp-judge-image-link img {
    pointer-events: none;
}

.pcp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pcp-lightbox.pcp-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.pcp-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
    position: relative;
    z-index: 1;
}

.pcp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5em;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pcp-lightbox-close:hover {
    opacity: 1;
}

.pcp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3em;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000000;
    opacity: 0.6;
    padding: 1em 0.5em;
    line-height: 1;
    transition: opacity 0.2s;
    user-select: none;
}

.pcp-lightbox-nav:hover {
    opacity: 1;
}

.pcp-lightbox-nav--prev {
    left: 10px;
}

.pcp-lightbox-nav--next {
    right: 10px;
}

.pcp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9em;
    opacity: 0.7;
    z-index: 1000000;
}

.pcp-judges-gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.pcp-judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5em;
    margin-top: 1.25em;
}

.pcp-judge-card {
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 1.5em 1em;
}

.pcp-judge-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1em;
}

.pcp-judge-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pcp-judge-card-name {
    margin: 0 0 1em;
    font-size: 1.15em;
}

.pcp-judge-card-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.pcp-judge-link {
    font-size: 0.85em;
    padding: 0.3em 0.6em;
    border: 1px solid;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pcp-judge-link:hover {
    opacity: 0.7;
}

.pcp-contest-details {
    max-width: 800px;
    margin: 0 auto;
}

.pcp-details-section {
    margin-bottom: 2em;
}

.pcp-details-section h3 {
    margin: 0 0 0.75em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid;
}

.pcp-details-content {
    line-height: 1.7;
}

.pcp-details-content p {
    margin: 0 0 1em;
}

.pcp-details-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pcp-details-section li {
    margin-bottom: 0.5em;
}

.pcp-details-judges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.pcp-details-judge-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.pcp-details-judge-avatar img,
.pcp-details-judge-avatar .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pcp-details-judge-name {
    font-weight: 500;
}

.pcp-document-step {
    max-width: 600px;
    margin: 0 auto;
}

.pcp-document-description {
    font-size: 1.1em;
    margin-bottom: 0.75em;
}

.pcp-document-info {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 1.25em;
}

.pcp-document-upload-zone {
    border: 2px dashed;
    border-radius: 8px;
    padding: 2em;
    text-align: center;
    margin: 1.25em 0;
}

.pcp-document-status {
    padding: 0.75em 1em;
    border-radius: 6px;
    margin-bottom: 1em;
}

.pcp-document-validated {
    background: #f0f9f1;
    color: #1a7d36;
}

.pcp-document-rejected {
    background: #fcf0f1;
    color: #b32d2e;
}

.pcp-document-pending {
    background: #fef8ee;
    color: #b2620f;
}

.pcp-document-filename {
    font-size: 0.9em;
    color: #646970;
    margin-top: 0.75em;
}

@media (max-width: 768px) {
    .pcp-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .pcp-steps-indicator {
        flex-direction: column;
        align-items: center;
    }

    .pcp-step-actions {
        flex-direction: column;
    }

    .pcp-btn {
        width: 100%;
    }

    .pcp-judge-gallery {
        grid-template-columns: 1fr;
    }
}
