.ytc-page-footer {
    background: var(--pfooter-bg, #1a1a2e);
    color: var(--pfooter-text, #cccccc);
    padding: 48px 0 32px;
    margin-top: 48px;
    width: 100%;
}

/* Contact info bar */
.ytc-pf-info-bar {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.ytc-pf-info-item {
    font-size: 13px;
    color: var(--pfooter-text, #cccccc);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ytc-pf-info-item a {
    color: var(--pfooter-text, #cccccc);
    text-decoration: none;
    transition: color 0.2s;
}

.ytc-pf-info-item a:hover {
    color: var(--pfooter-link, #667eea);
}

.ytc-page-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ytc-page-footer[data-cols="3"] .ytc-page-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Headings */
.ytc-pf-heading {
    color: var(--pfooter-heading, #ffffff);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pfooter-link, #667eea);
    display: inline-block;
}

/* Links */
.ytc-pf-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ytc-pf-nav li {
    margin-bottom: 8px;
}

.ytc-pf-nav a {
    color: var(--pfooter-text, #cccccc);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.ytc-pf-nav a:hover {
    color: var(--pfooter-link, #667eea);
    padding-left: 4px;
}

/* Contact form - step layout */
.ytc-pf-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ytc-pf-step {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.ytc-pf-step.active {
    display: flex;
}

.ytc-pf-step-label {
    margin: 0 0 2px 0;
    font-size: 12px;
    opacity: 0.6;
    color: var(--pfooter-text, #cccccc);
}

.ytc-pf-step-btns {
    display: flex;
    gap: 8px;
}

.ytc-pf-form input,
.ytc-pf-form textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--pfooter-text, #cccccc);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ytc-pf-form input::placeholder,
.ytc-pf-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.ytc-pf-form input:focus,
.ytc-pf-form textarea:focus {
    outline: none;
    border-color: var(--pfooter-link, #667eea);
}

.ytc-pf-form textarea {
    resize: vertical;
    min-height: 90px;
}

.ytc-pf-form button {
    background: var(--pfooter-link, #667eea);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}

.ytc-pf-form button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ytc-pf-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ytc-pf-back {
    background: transparent !important;
    color: var(--pfooter-text, #cccccc) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    opacity: 1 !important;
}

.ytc-pf-form-msg {
    font-size: 13px;
    min-height: 18px;
}

.ytc-pf-form-msg.success { color: #4caf50; }
.ytc-pf-form-msg.error   { color: #f44336; }

/* Map */
.ytc-pf-map-iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .ytc-page-footer-inner,
    .ytc-page-footer[data-cols="3"] .ytc-page-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ytc-pf-info-bar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Login button in info bar */
.ytc-pf-login-btn {
    background: var(--pfooter-link, #667eea);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity .2s;
}
.ytc-pf-login-btn:hover { opacity: .8; }

/* User button in info bar */
.ytc-pf-user-btn {
    position: relative;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.ytc-user-menu {
    display: none;
    position: absolute;
    bottom: 28px;
    left: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    min-width: 130px;
    z-index: 999;
    overflow: hidden;
}
.ytc-user-menu.active { display: block; }
.ytc-user-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--pfooter-text, #ccc);
    text-decoration: none;
    font-size: 13px;
}
.ytc-user-menu a:hover { background: rgba(255,255,255,0.08); }

/* Login Modal */
.ytc-login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.ytc-login-modal.active { display: flex; }

.ytc-login-modal-box {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 32px 28px;
    width: 100%;
    max-width: 360px;
    position: relative;
    color: #ccc;
}

.ytc-login-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    color: #ccc; font-size: 18px;
    cursor: pointer;
}

.ytc-login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.ytc-tab-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.ytc-tab-btn.active {
    background: var(--pfooter-link, #667eea);
    color: #fff;
}

.ytc-tab-panel { display: none; }
.ytc-tab-panel.active { display: block; }

.ytc-tab-panel input,
.ytc-tab-panel textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.ytc-tab-panel button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--pfooter-link, #667eea);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s;
}
.ytc-tab-panel button[type="submit"]:hover { opacity: .85; }

.ytc-forgot {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--pfooter-link, #667eea);
}

.ytc-or {
    text-align: center;
    margin: 14px 0;
    font-size: 12px;
    color: #888;
}

.ytc-google-btn {
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s;
}
.ytc-google-btn:hover { opacity: .9; }

.ytc-form-msg {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

/* Profile Modal */
.ytc-profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}
.ytc-profile-modal.active { display: flex; }

.ytc-profile-modal-box {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    position: relative;
    color: #ccc;
    margin: auto;
    overflow: hidden;
}

.ytc-profile-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.ytc-profile-banner {
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.ytc-banner-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ytc-banner-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    cursor: pointer;
}

.ytc-banner-name {
    margin: 0;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.ytc-btn-upload-avatar {
    position: absolute;
    bottom: 0; left: 58px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--pfooter-link, #667eea);
    border: 2px solid #fff;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}

.ytc-profile-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ytc-ptab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}
.ytc-ptab-btn.active {
    color: var(--pfooter-link, #667eea);
    border-bottom-color: var(--pfooter-link, #667eea);
}

.ytc-ptab-content { display: none; padding: 24px; }
.ytc-ptab-content.active { display: block; }

.ytc-info-grid { display: grid; gap: 10px; }
.ytc-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 14px;
}
.ytc-info-item strong { color: #fff; }

.ytc-settings-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ytc-settings-section:last-of-type { border-bottom: none; }
.ytc-settings-section h4 { margin: 0 0 14px; color: #fff; font-size: 15px; }

.ytc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ytc-form-group { margin-bottom: 12px; }
.ytc-form-group label { display: block; margin-bottom: 5px; font-size: 13px; color: #aaa; }
.ytc-form-group input,
.ytc-form-group select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}
.ytc-form-group select option { background: #1a1a2e; }

.ytc-btn-submit {
    width: 100%;
    padding: 11px;
    background: var(--pfooter-link, #667eea);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s;
}
.ytc-btn-submit:hover { opacity: .85; }

.ytc-btn-logout {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
}
.ytc-btn-logout:hover { background: rgba(255,255,255,0.15); }

.ytc-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--pfooter-link, #667eea);
    color: #fff;
}
.ytc-level-admin { background: linear-gradient(135deg,#dc3545,#c82333); }
.ytc-level-editor { background: linear-gradient(135deg,#fd7e14,#e8590c); }
.ytc-level-author { background: linear-gradient(135deg,#ffc107,#e0a800); color:#000; }
.ytc-level-member { background: linear-gradient(135deg,#6c757d,#5a6268); }

@media (max-width: 600px) {
    .ytc-form-row { grid-template-columns: 1fr; }
    .ytc-profile-modal { padding: 0; }
    .ytc-profile-modal-box { border-radius: 0; min-height: 100vh; }
}
