/* ── Gate ──────────────────────────────────────────── */

.vdf-title    { margin: 0 0 28px; font-size: 28px; color: #666; text-align: center;}
.vdf-gate-btns { display: flex; gap: 12px; justify-content: center; }

.vdf-btn-solid, .vdf-btn-outline {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 26px; border-radius: 8px; font-size: 15px;
    font-weight: 700; cursor: pointer; border: none; transition: all 0.2s;
    text-decoration: none;
}
.vdf-btn-solid   { background: #ff8100; color: #fff; box-shadow: 0 2px 12px rgba(34,113,177,0.25); }
.vdf-btn-solid:active, .vdf-btn-solid:hover { background-color: #ffffff00;    color: #ff8100;      border: solid 2px;}
.vdf-btn-outline { background: #f0f6fc00; color: #ff8100; border: 2px solid #ff8100; }
.vdf-btn-outline:hover { background: #ff8100; transform: translateY(-1px);     border: none;}

/* ── Modal ─────────────────────────────────────────── */
.vdf-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.vdf-modal-box {
    background: #fff; border-radius: 16px; width: 100%;
    max-width: 480px; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.vdf-modal-close {
        position: absolute;
    top: 8px;
    right: 5px;
    background: #ff8100;
    border: none;
    border-radius: 50%;
    width: 30px;
    padding: 0px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
}
.vdf-modal-close:hover { background: #ddd; }

.vdf-mswitch {
    margin: 0px;
    font-size: 18px;
    color: #666;
    text-align: center;
}

/* Tabs */
.vdf-modal-tabs {
    display: flex; border-bottom: 2px solid #f0f0f0;
    background: #fafafa; border-radius: 16px 16px 0 0; overflow: hidden;
}
.vdf-mtab {
    flex: 1; padding: 15px; border: none; background: none;
    font-size: 15px; font-weight: 600; color: #888; cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.vdf-mtab:focus, .vdf-mtab:hover, button:focus, button:hover {background: #ff8100; color: #fff;border-color: #ff8100}
.vdf-mtab.active { color: #ff8100; border-bottom-color: #ff8100; background: #fff; }

/* Panels */
.vdf-mpanel { display: none; padding: 24px 28px 28px; }
.vdf-mpanel.active { display: block; }
.vdf-mpanel h3 { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: #1a1a1a; }

/* Fields */
.vdf-mrow   { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.vdf-mfield { margin-bottom: 16px; }
.vdf-mfield label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #555; margin-bottom: 6px; }
.vdf-req { color: #e74c3c; }

/* Input with icon */
.vdf-minput { position: relative; display: flex; align-items: center; }
.vdf-minput-icon { position: absolute; left: 11px; color: #aaa; pointer-events: none; }
.vdf-minput input {
    width: 100%; padding: 10px 12px 10px 34px;
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    font-size: 14px; background: #fafafa; box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.vdf-minput input:focus { border-color: #ff8100; background: #fff; box-shadow: 0 0 0 3px rgba(34,113,177,0.12); }

/* Error */
.vdf-merror {
    color: #c0392b; background: #fdecea; border-radius: 6px;
    font-size: 13px; max-height: 0; overflow: hidden; transition: all 0.2s;
}
.vdf-merror:not(:empty) { padding: 10px 14px; max-height: 60px; margin-bottom: 12px; }

/* Submit */
.vdf-msubmit {
    width: 100%; padding: 12px; background: #ff8100; color: #fff;
    border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.vdf-msubmit:hover   { opacity: 0.9; }
.vdf-msubmit:active  { transform: scale(0.98); }
.vdf-msubmit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Switch link */
.vdf-mswitch { text-align: center; font-size: 13px; color: #777; margin: 14px 0 0; }
.vdf-mswitch a { color: #ff8100; font-weight: 600; text-decoration: none; }
.vdf-mswitch a:hover { text-decoration: underline; }

/* ── User bar ───────────────────────────────────────── */
.vdf-user-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-radius: 10px; padding: 10px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.vdf-user-info  { display: flex; align-items: center; gap: 10px; }
.vdf-avatar     { border-radius: 50% !important; width: 34px !important; height: 34px !important; }
.vdf-user-name  { display: block; font-size: 14px; font-weight: 700; color: #222; }
.vdf-user-email { display: block; font-size: 12px; color: #888; }
.vdf-logout-btn { padding: 6px 14px; background: #fdecea; color: #c0392b; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.vdf-logout-btn:hover { background: #f5c6c6; color: #c0392b; }

@media (max-width: 480px) {
    .vdf-gate        { padding: 28px 18px; }
    .vdf-gate-btns   { flex-direction: row; }
    .vdf-modal-box   { border-radius: 12px; }
    .vdf-mpanel      { padding: 20px 16px 24px; }
    .vdf-mrow        { grid-template-columns: 1fr; gap: 0; }
    .vdf-title {     font-size: 24px;    line-height: 31px;}
}