.vp-page {
    background: #f4f7fa;
    min-height: 70vh;
    padding: 60px 20px 80px;
}

.vp-container {
    max-width: 1000px;
    margin: 0 auto;
}

.vp-container-narrow {
    max-width: 480px;
}

.vp-header {
    text-align: center;
    margin-bottom: 30px;
}

.vp-header-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

.vp-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 10px;
}

.vp-header-sub {
    font-weight: 400;
    color: #6c757d;
    font-size: 1.1rem;
}

.vp-intro {
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.vp-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.vp-upload-card {
    border-left: 4px solid #3498db;
}

.vp-card-title {
    font-size: 1.15rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 18px;
}

.vp-card-title i {
    color: #3498db;
    margin-right: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.vp-reg-input {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
}

.vp-hint {
    display: block;
    color: #95a5a6;
    font-size: 0.8rem;
    margin-top: 5px;
}

.vp-photo-source-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vp-source-btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 600;
}

.vp-file-input {
    /* Visually hidden but still focusable/tabbable, not display:none --
       the <label for="..."> pattern above needs the real input present
       to trigger it. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#vpSelectedSummary {
    margin-top: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.vp-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.vp-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f4;
}

.vp-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vp-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-preview-remove:hover {
    background: #e74c3c;
}

.vp-preview-status {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0,0,0,0.55);
}

.vp-preview-item.is-uploading .vp-preview-status {
    background: rgba(52, 152, 219, 0.85);
}

.vp-preview-item.is-done .vp-preview-status {
    background: rgba(39, 174, 96, 0.85);
}

.vp-preview-item.is-failed .vp-preview-status {
    background: rgba(231, 76, 60, 0.9);
    cursor: pointer;
}

.vp-preview-item.is-failed img {
    opacity: 0.6;
}

#vpSaveNoteStatus {
    color: #6c757d;
    font-style: italic;
    margin-left: 6px;
}

.vp-btn-block {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.vp-btn-block:disabled {
    opacity: 0.7;
}

.vp-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.vp-progress-track {
    flex: 1;
    height: 10px;
    border-radius: 6px;
    background: #e6ebf0;
    overflow: hidden;
}

.vp-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 6px;
    transition: width 0.2s ease;
}

.vp-progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 36px;
    text-align: right;
}

.vp-switch-link {
    text-align: center;
    margin-top: 10px;
}

.vp-link-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.vp-link-btn:hover {
    color: #3498db;
}

.vp-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.vp-photo-card {
    border: 1px solid #eaeef1;
    border-radius: 10px;
    overflow: hidden;
    background: #fafbfc;
}

.vp-photo-thumb {
    cursor: pointer;
    height: 160px;
    overflow: hidden;
    background: #eee;
}

.vp-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.vp-photo-thumb:hover img {
    transform: scale(1.05);
}

.vp-photo-meta {
    padding: 10px 12px;
}

.vp-photo-date {
    font-size: 0.78rem;
    color: #95a5a6;
    margin-bottom: 4px;
}

.vp-photo-desc {
    font-size: 0.88rem;
    color: #2c3e50;
    margin-bottom: 4px;
    word-break: break-word;
}

.vp-photo-loc {
    font-size: 0.75rem;
    margin-top: 4px;
}

.vp-photo-loc a {
    color: #3498db;
    text-decoration: none;
}

.vp-photo-loc a:hover {
    text-decoration: underline;
}

.vp-photo-loc-none {
    color: #b0b8bf;
}

.vp-empty {
    color: #95a5a6;
    text-align: center;
    padding: 20px 0;
}

/* Lightbox */
.vp-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.vp-modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
}

.vp-modal-caption {
    color: #fff;
    text-align: center;
    padding: 12px;
    max-width: 600px;
}

.vp-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 576px) {
    .vp-page { padding: 30px 12px 60px; }
    .vp-card { padding: 18px; }
}
