/* Account pages — modern dark UI matching main site palette */

/* ── Layout ── */
.account-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    min-height: 70vh;
}

/* ── Top bar (logged in) ── */
.account-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.account-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.account-topbar-left .fa-user-circle {
    font-size: 22px;
    color: #4bc4ff;
}
.account-email {
    opacity: 0.55;
    font-size: 13px;
}
.account-signout-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: inherit;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s;
}
.account-signout-btn:hover { background: rgba(255,255,255,0.13); }

/* ── Sections ── */
.ac-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
}
.ac-section-header {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
}
.ac-section-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ac-section-header h2 i { color: #4bc4ff; }
.upload-count { opacity: 0.55; font-weight: 400; font-size: 14px; }
.ac-section-body { padding: 22px; }

/* ── Upload requirements notice ── */
.upload-req {
    font-size: 13px;
    opacity: 0.65;
    margin: 0 0 18px;
}

/* ── Dropzone ── */
.dropzone {
    border: 2px dashed rgba(75,196,255,0.35);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    background: rgba(75,196,255,0.03);
}
.dropzone.drag-over {
    border-color: #4bc4ff;
    background: rgba(75,196,255,0.08);
}
.dropzone-icon {
    font-size: 42px;
    color: #4bc4ff;
    opacity: 0.7;
    display: block;
    margin-bottom: 12px;
}
.dropzone-text { font-size: 15px; margin: 0 0 6px; opacity: 0.8; }
.dropzone-or   { font-size: 12px; margin: 0 0 14px; opacity: 0.4; }
.dropzone-btn  {
    display: inline-block;
    background: #4bc4ff;
    color: #0d0d1a;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.dropzone-btn:hover { background: #6ad0ff; }
.dropzone-fname {
    margin: 12px 0 0;
    font-size: 13px;
    color: #4bc4ff;
    min-height: 18px;
}

/* ── Upload fields ── */
.upload-fields { margin-top: 20px; }
.uf-group { margin-bottom: 16px; }
.uf-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    opacity: 0.8;
}
.uf-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.uf-group input[type="text"]:focus {
    outline: none;
    border-color: #4bc4ff;
}
.req { color: #f44336; }
.uf-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-upload-submit {
    background: #4bc4ff;
    color: #0d0d1a;
    border: none;
    padding: 11px 26px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.btn-upload-submit:hover  { background: #6ad0ff; }
.btn-upload-submit:active { transform: scale(0.97); }
.btn-upload-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-cancel-upload {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: inherit;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-cancel-upload:hover { background: rgba(255,255,255,0.07); }

/* ── Upload progress ── */
.upload-progress { margin-top: 16px; }
.prog-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.prog-fill {
    height: 100%;
    background: #4bc4ff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}
#prog-text { font-size: 13px; opacity: 0.7; }

/* ── Upload message ── */
.upload-msg {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.upload-msg.success {
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.35);
    color: #81c784;
}
.upload-msg.error {
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.35);
    color: #e57373;
}

/* ── No uploads ── */
.no-uploads-msg {
    text-align: center;
    opacity: 0.5;
    padding: 30px 0;
    font-size: 15px;
}

/* ── Uploads Grid ── */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.upload-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.upload-card:hover { border-color: rgba(75,196,255,0.3); }

.upload-card-thumb {
    position: relative;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/9;
}
.upload-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244,67,54,0.85);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.upload-card:hover .card-delete-btn { opacity: 1; }
.upload-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-pending  { background: rgba(255,152,0,0.85);  color: #fff; }
.badge-approved { background: rgba(76,175,80,0.85);  color: #fff; }
.badge-rejected { background: rgba(244,67,54,0.85);  color: #fff; }

.upload-card-info { padding: 12px 14px 14px; }
.card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.card-title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}
.btn-edit-title {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #4bc4ff;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-edit-title:hover { background: rgba(75,196,255,0.1); }
.card-date, .card-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.5;
    margin-right: 10px;
}
.card-view-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #4bc4ff;
    text-decoration: none;
}
.card-view-link:hover { text-decoration: underline; }
.card-rejection {
    margin-top: 8px;
    font-size: 12px;
    color: #e57373;
    background: rgba(244,67,54,0.08);
    border: 1px solid rgba(244,67,54,0.2);
    border-radius: 5px;
    padding: 7px 10px;
    line-height: 1.5;
}

/* ── Auth Section ── */
.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}
.auth-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
}
.auth-brand {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}
.auth-brand-accent { color: #4bc4ff; }
.auth-brand-sub {
    font-size: 13px;
    opacity: 0.5;
    font-weight: 400;
    margin: 4px 0 0;
}
.auth-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: inherit;
    padding: 9px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    opacity: 0.6;
}
.auth-tab.active {
    background: rgba(75,196,255,0.2);
    color: #4bc4ff;
    opacity: 1;
}
.auth-error {
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.35);
    color: #e57373;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.af-group { margin-bottom: 16px; }
.af-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    opacity: 0.75;
}
.af-group label i { color: #4bc4ff; width: 14px; }
.af-group small { font-weight: 400; opacity: 0.6; }
.af-group input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.af-group input:focus {
    outline: none;
    border-color: #4bc4ff;
}
.auth-submit-btn {
    width: 100%;
    background: #4bc4ff;
    color: #0d0d1a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit-btn:hover  { background: #6ad0ff; }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-switch {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    margin: 14px 0 0;
}
.auth-switch a { color: #4bc4ff; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-tos {
    text-align: center;
    font-size: 11px;
    opacity: 0.4;
    margin: 10px 0 0;
}
.auth-tos a { color: inherit; }

/* ── Edit Title Modal ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-box {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-weight: 600;
    font-size: 15px;
}
.modal-box-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.5;
    font-size: 16px;
    padding: 4px;
    transition: opacity 0.2s;
}
.modal-box-close:hover { opacity: 1; }
.modal-box-body { padding: 20px; }
.modal-text-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    color: inherit;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.modal-text-input:focus { outline: none; border-color: #4bc4ff; }
.modal-box-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.btn-modal-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: inherit;
    padding: 9px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-modal-cancel:hover { background: rgba(255,255,255,0.07); }
.btn-modal-save {
    background: #4bc4ff;
    color: #0d0d1a;
    border: none;
    padding: 9px 18px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-modal-save:hover { background: #6ad0ff; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .auth-card { padding: 24px 18px; }
    .uploads-grid { grid-template-columns: 1fr; }
    .account-topbar { flex-direction: column; align-items: flex-start; }
}
