/* Gavahito Panel — custom overrides (dana @font-face via PHP inline absolute URLs) */

html,
body.gavahito-panel-body .gavahito-panel,
body.gavahito-panel-body .gavahito-panel * {
    font-family: 'dana', 'Vazir', Tahoma, sans-serif !important;
}

body.gavahito-panel-body.gp-font-fallback-vazir .gavahito-panel,
body.gavahito-panel-body.gp-font-fallback-vazir .gavahito-panel * {
    font-family: 'Vazir', Tahoma, sans-serif !important;
}

body.gavahito-panel-body.gp-login-body,
body.gavahito-panel-body.gp-login-body *,
body.gavahito-panel-body .gp-login-page,
body.gavahito-panel-body .gp-login-page *,
body.gavahito-panel-body .gp-login-page input,
body.gavahito-panel-body .gp-login-page button,
body.gavahito-panel-body .gp-login-page textarea,
body.gavahito-panel-body .gp-login-page label {
    font-family: 'dana', 'Vazir', Tahoma, sans-serif !important;
    -webkit-text-size-adjust: 100%;
}

body.gavahito-panel-body.gp-login-body.gp-font-fallback-vazir,
body.gavahito-panel-body.gp-login-body.gp-font-fallback-vazir *,
body.gavahito-panel-body.gp-login-body.gp-font-fallback-vazir .gp-login-page,
body.gavahito-panel-body.gp-login-body.gp-font-fallback-vazir .gp-login-page * {
    font-family: 'Vazir', Tahoma, sans-serif !important;
}

body.gavahito-panel-body {
    margin: 0;
    padding: 0;
}

body.gavahito-panel-body:not(.gp-login-body) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.gavahito-panel-body.gp-login-body {
    overflow: auto;
    background: #f0f2f5 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* اسکرول فعال، اسکرول‌بار مخفی */
html:has(body.gavahito-panel-body) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(body.gavahito-panel-body)::-webkit-scrollbar,
body.gavahito-panel-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.view-animate {
    min-height: 0;
    overflow: visible;
}

#gavahito-panel-dashboard {
    overflow: visible;
    padding-bottom: 80px;
}

body.gavahito-panel-body .gavahito-panel {
    contain: none !important;
}

body.gavahito-panel-body #gavahito-panel-side-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 150 !important;
    pointer-events: auto !important;
}

body.gavahito-panel-body #gavahito-panel-side-panel ul.gavahito-panel-menu,
body.gavahito-panel-body #gavahito-panel-side-panel ul.gavahito-panel-menu a,
body.gavahito-panel-body #gavahito-panel-side-panel ul.gavahito-panel-menu button {
    pointer-events: auto !important;
}

body.gavahito-panel-body .back-drop {
    position: fixed !important;
    z-index: 105 !important;
}

body.gavahito-panel-body .back-drop:not(.active) {
    pointer-events: none !important;
}

body.gavahito-panel-body #sign-out.gp-logout-modal {
    position: fixed !important;
    z-index: 10060 !important;
}

/* جلوگیری از تداخل استایل داشبورد روی صفحه لاگین */
body.gavahito-panel-body.gp-login-body .gavahito-panel,
body.gavahito-panel-body.gp-login-body #gavahito-panel-side-panel,
body.gavahito-panel-body.gp-login-body #gavahito-panel-dashboard {
    display: none !important;
}

#gavahito-panel-loading {
    display: none !important;
}

/* ── Login (minimal standalone) ── */
.gp-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, var(--gp-primary-soft, rgba(37, 99, 235, 0.08)) 0%, #f0f2f5 45%, #f8fafc 100%);
}

.gp-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.gp-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.gp-login-logo {
    max-height: 48px;
    width: auto;
    margin-bottom: 20px;
}

.gp-login-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gp-primary, #2563eb);
    margin-bottom: 20px;
}

.gp-login-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.gp-login-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.gp-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
}

.gp-auth-tab {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.gp-auth-tab.is-active {
    background: #fff;
    color: var(--gp-primary, #2563eb);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.gp-login-textarea {
    height: auto;
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.gp-login-btn.gp-login-btn--secondary {
    background: transparent;
    color: var(--gp-btn-secondary-text-color, var(--gp-primary, #2563eb));
    border: 1px solid var(--gp-primary, #2563eb);
}

.gp-login-btn.gp-login-btn--secondary:hover:not(:disabled) {
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.08));
    opacity: 1;
}

.gp-pending-status {
    text-align: center;
    margin: 8px 0 20px;
}

.gp-pending-status .gp-cert-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.gp-register-only {
    display: none;
}

.gp-login-steps {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.gp-login-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.25s, transform 0.25s;
}

.gp-login-dot.completed,
.gp-login-dot.active {
    background: var(--gp-primary, #2563eb);
}

.gp-login-dot.active {
    transform: scale(1.15);
}

.gp-login-step {
    animation: gp-login-fade 0.3s ease;
}

.gp-hidden,
.gp-login-step.gp-hidden {
    display: none !important;
}

@keyframes gp-login-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gp-login-field {
    margin-bottom: 16px;
}

.gp-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.gp-login-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-family: 'dana', 'Vazir', Tahoma, sans-serif !important;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.gp-login-input:focus {
    background: #fff;
    border-color: var(--gp-primary, #2563eb);
    box-shadow: 0 0 0 3px var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
}

.gp-login-input::placeholder {
    color: #94a3b8;
}

.gp-login-code {
    text-align: center;
    letter-spacing: 0.45em;
    font-family: 'dana', 'Vazir', Tahoma, sans-serif !important;
    font-size: 20px;
    font-weight: 600;
}

.gp-login-btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--gp-primary, #2563eb);
    color: var(--gp-btn-text-color, #ffffff);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.gp-login-btn:hover:not(:disabled) {
    opacity: 0.92;
}

.gp-login-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.gp-login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gavahito-panel.dark .gp-login-btn:not(.gp-login-btn--secondary),
.gavahito-panel.dark .gp-profile-edit-btn,
.gavahito-panel.dark .gp-profile-photo-btn--primary,
.gavahito-panel.dark .gp-cert-modal-btn--primary,
.gavahito-panel.dark .gp-cert-view-btn,
html.gp-theme-dark body.gavahito-panel-body .gp-login-btn:not(.gp-login-btn--secondary),
html.gp-theme-dark body.gavahito-panel-body .gp-profile-edit-btn,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-photo-btn--primary,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-modal-btn--primary,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-view-btn {
    background: var(--color_dark, #ffb81f);
    border-color: var(--color_dark, #ffb81f);
    color: var(--gp-btn-text-color-dark, #1a1a1a);
}

.gavahito-panel.dark .gp-login-btn.gp-login-btn--secondary,
.gavahito-panel.dark #gup-pending-logout,
.gavahito-panel.dark .gp-cert-modal-btn--secondary,
html.gp-theme-dark body.gavahito-panel-body .gp-login-btn.gp-login-btn--secondary,
html.gp-theme-dark body.gavahito-panel-body #gup-pending-logout,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-modal-btn--secondary {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f));
    background: var(--color_dark_o, rgba(255, 184, 31, 0.1));
    border-color: rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35);
}

.gavahito-panel.dark .gp-profile-actions .gp-login-btn.gp-login-btn--secondary:hover:not(:disabled) {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
}

.gp-login-otp-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    line-height: 1.7;
}

.gp-login-otp-hint strong {
    color: #1e293b;
    font-weight: 600;
}

.gp-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 4px;
}

.gp-login-link {
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 12px;
    color: var(--gp-primary, #2563eb);
    cursor: pointer;
    font-family: inherit;
}

.gp-login-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gp-login-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    display: none;
}

.gp-login-message.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.gp-login-message.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

@media (max-width: 480px) {
    .gp-login-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .gp-login-title {
        font-size: 18px;
    }
}

/* Inner pages */
.gavahito-panel-page {
    padding: 0 5px 20px;
}

.gavahito-panel-page .gavahito-panel-card {
    margin-bottom: 15px;
}

.gavahito-panel-page-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.gavahito-panel.dark .gavahito-panel-page-title {
    color: #eee;
}

.gavahito-cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gavahito-cert-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.gavahito-panel.dark .gavahito-cert-list li {
    border-bottom-color: #333;
}

.gavahito-cert-list .cert-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.gavahito-cert-list .cert-code {
    font-size: 12px;
    color: #888;
}

.gavahito-cert-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
}

/* ── Profile page ── */
.gp-profile-page {
    padding: 0 4px 24px;
}

.gp-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gp-profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.1) 0%, #fff 55%);
    border: 1px solid rgba(var(--gp-primary-rgb, 37, 99, 235), 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gavahito-panel.dark .gp-profile-hero {
    background: linear-gradient(135deg, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.18) 0%, #1e293b 55%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gp-profile-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.gavahito-panel.dark .gp-profile-hero__avatar {
    border-color: #334155;
}

.gp-profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gp-profile-hero__info {
    flex: 1;
    min-width: 180px;
}

.gp-profile-hero__name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.gavahito-panel.dark .gp-profile-hero__name {
    color: #f1f5f9;
}

.gp-profile-hero__meta {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
}

.gavahito-panel.dark .gp-profile-hero__meta {
    color: #94a3b8;
}

.gp-profile-hero__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gp-primary, #2563eb);
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
}

.gavahito-panel.dark .gp-profile-hero__badge {
    color: var(--color_dark, #ffb81f);
    background: rgba(255, 184, 31, 0.15);
}

.gp-profile-edit-btn {
    width: auto !important;
    min-width: 160px;
    padding: 0 22px !important;
    margin-top: 0 !important;
    margin-right: auto;
}

.gp-profile-card {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.gavahito-panel.dark .gp-profile-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.gp-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gp-profile-field {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gavahito-panel.dark .gp-profile-field {
    background: #0f172a;
    border-color: #334155;
}

.gp-profile-field--full {
    grid-column: 1 / -1;
}

.gp-profile-field.is-editing {
    border-color: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.35);
    box-shadow: 0 0 0 3px var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
}

.gp-profile-field__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gp-profile-field__head label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.gavahito-panel.dark .gp-profile-field__head label {
    color: #94a3b8;
}

.gp-profile-field__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
    position: relative;
}

.gp-profile-field__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background: var(--gp-primary, #2563eb);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.gavahito-panel.dark .gp-profile-field__icon::after {
    background: var(--color_dark, #ffb81f);
}

.gp-profile-field__icon--user::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

.gp-profile-field__icon--id::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4Zm2 2v8h12V8Zm2 2h8v1h-8Zm0 2h6v1h-6Zm0 2h4v1h-4Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4Zm2 2v8h12V8Zm2 2h8v1h-8Zm0 2h6v1h-6Zm0 2h4v1h-4Z'/%3E%3C/svg%3E");
}

.gp-profile-field__icon--phone::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm1 3v14h8V5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm1 3v14h8V5Z'/%3E%3C/svg%3E");
}

.gp-profile-field__icon--mail::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4Zm2 2 8 5 8-5V8Zm0 2.2 8 5 8-5v6H6Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4Zm2 2 8 5 8-5V8Zm0 2.2 8 5 8-5v6H6Z'/%3E%3C/svg%3E");
}

.gp-profile-field__icon--map::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 14.5 9 2.5 2.5 0 0 1 12 11.5Z'/%3E%3C/svg%3E");
}

.gp-profile-field__icon--calendar::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 0 1 2 0v1h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1Zm13 8H4v10h16Zm-11 3h2v2H9Zm4 0h2v2h-2Zm4 0h2v2h-2ZM9 16h2v2H9Zm4 0h2v2h-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 0 1 2 0v1h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1Zm13 8H4v10h16Zm-11 3h2v2H9Zm4 0h2v2h-2Zm4 0h2v2h-2ZM9 16h2v2H9Zm4 0h2v2h-2Z'/%3E%3C/svg%3E");
}

.gp-profile-field__value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    word-break: break-word;
}

.gavahito-panel.dark .gp-profile-field__value {
    color: #e2e8f0;
}

.gp-profile-field.is-editing .gp-profile-field__value {
    display: none;
}

.gp-profile-field--locked.is-editing .gp-profile-field__value {
    display: block;
    margin-top: 2px;
    padding: 11px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    cursor: not-allowed;
    user-select: text;
}

.gavahito-panel.dark .gp-profile-field--locked.is-editing .gp-profile-field__value {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

.gp-profile-input {
    margin-top: 0 !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.gavahito-panel.dark .gp-profile-input {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.gavahito-panel.dark .gp-profile-input::placeholder {
    color: #64748b !important;
}

.gp-profile-input:focus {
    border-color: var(--gp-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px var(--gp-primary-soft, rgba(37, 99, 235, 0.12)) !important;
}

.gp-profile-textarea,
textarea.gp-login-input {
    height: auto !important;
    min-height: 96px;
    padding: 12px 14px !important;
    line-height: 1.6 !important;
    resize: vertical;
}

/* ── Profile photo upload ── */
.gp-profile-photo-card {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.gavahito-panel.dark .gp-profile-photo-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.gp-profile-photo-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.gp-profile-photo-upload__drop {
    position: relative;
    width: 140px;
    height: 140px;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    appearance: none;
    border: 2px dashed rgba(var(--gp-primary-rgb, 37, 99, 235), 0.35);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.06) 0%, #f8fafc 100%);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gp-profile-photo-upload__drop:hover,
.gp-profile-photo-upload__drop.is-dragover {
    border-color: var(--gp-primary, #2563eb);
    box-shadow: 0 0 0 4px var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
    transform: translateY(-1px);
}

.gavahito-panel.dark .gp-profile-photo-upload__drop {
    background: linear-gradient(145deg, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.12) 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.35);
}

.gp-profile-photo-upload__drop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gp-profile-photo-upload__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gp-profile-photo-upload__drop:hover .gp-profile-photo-upload__overlay,
.gp-profile-photo-upload__drop.is-dragover .gp-profile-photo-upload__overlay {
    opacity: 1;
}

.gp-profile-photo-upload__icon {
    width: 28px;
    height: 28px;
    background: #fff;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6l2 4h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3Zm1.2 4L8.4 5H5v14h14V9h-3.6L13.8 7Zm3.3 9.5a4.5 4.5 0 1 0-7.8-4.5 4.5 4.5 0 0 0 7.8 4.5Zm-1.8-2.3 1.8-2.3 2.2 2.9 1.6-2 2.4 3.1H8.5Z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6l2 4h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3Zm1.2 4L8.4 5H5v14h14V9h-3.6L13.8 7Zm3.3 9.5a4.5 4.5 0 1 0-7.8-4.5 4.5 4.5 0 0 0 7.8 4.5Zm-1.8-2.3 1.8-2.3 2.2 2.9 1.6-2 2.4 3.1H8.5Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.gp-profile-photo-upload__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.gp-profile-photo-upload__sublabel {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.4;
}

.gp-profile-photo-upload__meta {
    flex: 1;
    min-width: 220px;
}

.gp-profile-photo-upload__hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.gavahito-panel.dark .gp-profile-photo-upload__hint {
    color: #94a3b8;
}

.gp-profile-photo-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gp-profile-photo-btn {
    width: auto !important;
    min-width: 150px;
    padding: 0 20px !important;
    margin-top: 0 !important;
}

.gp-profile-photo-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gp-profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-profile-actions {
    border-top-color: #334155;
}

.gp-profile-actions .gp-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: auto;
    min-width: 180px;
    padding: 0 24px;
    margin-top: 0;
}

.gp-profile-actions .gp-login-btn.gp-login-btn--secondary {
    min-width: 140px;
    color: var(--gp-btn-secondary-text-color, var(--gp-primary, #2563eb)) !important;
    background: var(--color_o, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.12)) !important;
    border: 1px solid rgba(var(--gp-primary-rgb, 37, 99, 235), 0.28) !important;
}

.gp-profile-actions .gp-login-btn.gp-login-btn--secondary:hover:not(:disabled) {
    color: var(--gp-btn-secondary-text-color, var(--gp-primary, #2563eb)) !important;
    background: var(--gp-primary-soft, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.2)) !important;
    border-color: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.4) !important;
    opacity: 1;
}

.gavahito-panel.dark .gp-profile-actions .gp-login-btn.gp-login-btn--secondary {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    background: var(--color_dark_o, rgba(var(--gp-primary-rgb, 37, 99, 235), 0.15)) !important;
    border-color: rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35) !important;
}

.gavahito-panel.dark .gp-profile-actions .gp-login-btn.gp-login-btn--secondary:hover:not(:disabled) {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    background: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.22) !important;
    border-color: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.45) !important;
}

@media (max-width: 999px) {
    #gp-profile-actions.gp-profile-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    #gp-profile-actions .gp-login-btn {
        width: 100%;
        max-width: 300px;
        min-width: 0;
    }

    #gp-profile-save {
        order: 1;
    }

    #gp-profile-cancel {
        order: 2;
    }
}

.gavahito-panel.dark .gp-login-otp-hint strong,
.gavahito-panel.dark .gp-login-field label {
    color: #cbd5e1;
}

.gavahito-panel.dark .gp-login-input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

.gavahito-panel.dark .gp-login-input::placeholder {
    color: #64748b;
}

.gavahito-panel.dark .gp-login-message.error {
    background: rgba(185, 28, 28, 0.15);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
}

.gavahito-panel.dark .gp-login-message.success {
    background: rgba(21, 128, 61, 0.15);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.35);
}

@media (max-width: 768px) {
    .gp-profile-grid {
        grid-template-columns: 1fr;
    }

    .gp-profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gp-profile-hero__avatar,
    .gp-cert-hero__icon,
    .gp-settings-hero__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .gp-profile-hero__info {
        min-width: 0;
        width: 100%;
    }

    .gp-profile-edit-btn {
        width: 100% !important;
        margin-right: 0;
        margin-left: 0;
    }

    .gp-profile-actions .gp-login-btn {
        width: 100%;
    }

    .gp-profile-photo-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-profile-photo-upload__drop {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .gp-profile-photo-upload__actions .gp-profile-photo-btn {
        width: 100% !important;
    }
}

/* ── Certificates page ── */
.gp-cert-page {
    padding: 0 4px 24px;
}

.gp-cert {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gp-cert-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
    position: relative;
}

.gp-cert-hero__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    background: var(--gp-primary, #2563eb);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2 4 4h-4ZM8 12h8v2H8Zm0 4h5v2H8Z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2 4 4h-4ZM8 12h8v2H8Zm0 4h5v2H8Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.gavahito-panel.dark .gp-cert-hero__icon::after {
    background: var(--color_dark, #ffb81f);
}

.gp-cert-card .gp-profile-grid .gp-profile-field {
    background: #f8fafc;
}

.gavahito-panel.dark .gp-cert-card .gp-profile-grid .gp-profile-field {
    background: #0f172a;
}

.gp-cert-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.gavahito-panel.dark .gp-cert-section-title {
    color: #f1f5f9;
}

.gp-cert-empty {
    text-align: center;
    padding: 28px 16px;
    color: #64748b;
    font-size: 15px;
}

.gavahito-panel.dark .gp-cert-empty {
    color: #94a3b8;
}

.gp-cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gp-cert-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gp-cert-item:hover {
    border-color: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.28);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.gavahito-panel.dark .gp-cert-item {
    background: #0f172a;
    border-color: #334155;
}

.gavahito-panel.dark .gp-cert-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gp-cert-item__main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}

.gp-cert-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
    position: relative;
}

.gp-cert-item__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    background: var(--gp-primary, #2563eb);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2 4 4h-4Z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2 4 4h-4Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.gavahito-panel.dark .gp-cert-item__icon::after {
    background: var(--color_dark, #ffb81f);
}

.gp-cert-item__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.gavahito-panel.dark .gp-cert-item__title {
    color: #f1f5f9;
}

.gp-cert-item__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.gp-cert-item__code {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--gp-primary, #2563eb);
    font-weight: 700;
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.1));
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.gp-cert-item__meta {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.gp-cert-item__meta::before {
    content: '•';
    margin-left: 0;
    margin-right: 0;
    display: none;
}

.gavahito-panel.dark .gp-cert-item__code {
    color: var(--color_dark, #ffb81f);
    background: rgba(255, 184, 31, 0.12);
}

.gavahito-panel.dark .gp-cert-item__meta {
    color: #94a3b8;
}

.gp-cert-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 140px;
}

.gp-cert-item__date {
    font-size: 12px;
    color: #64748b;
}

.gavahito-panel.dark .gp-cert-item__date {
    color: #94a3b8;
}

.gp-cert-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.gp-cert-view-btn {
    width: auto !important;
    min-width: 110px;
    padding: 0 16px !important;
    margin-top: 0 !important;
    font-size: 13px !important;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#gp-cert-auto-issue-date[readonly],
#gp-cert-auto-expire-date[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}

.gavahito-panel.dark #gp-cert-auto-issue-date[readonly],
.gavahito-panel.dark #gp-cert-auto-expire-date[readonly] {
    background: #1e293b;
    color: #cbd5e1;
}

.gp-cert-request-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
}

.gp-profile-incomplete {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 52%, #fff7ed 100%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.1);
}

.gp-profile-incomplete__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23b45309' stroke-width='2' stroke-linecap='round' d='M12 8v5m0 3h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3C/svg%3E") center/22px no-repeat;
}

.gp-profile-incomplete__body {
    flex: 1;
    min-width: 0;
}

.gp-profile-incomplete__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: #92400e;
    line-height: 1.5;
}

.gp-profile-incomplete__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: #a16207;
}

.gp-profile-incomplete__fields-wrap {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.gp-profile-incomplete__fields-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
}

.gp-profile-incomplete__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gp-profile-incomplete__fields li {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    line-height: 1.4;
}

.gp-profile-incomplete__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.gp-profile-incomplete__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gp-profile-incomplete__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.gavahito-panel.dark .gp-profile-incomplete,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete {
    border-color: rgba(251, 191, 36, 0.24);
    background: linear-gradient(145deg, rgba(69, 26, 3, 0.95) 0%, rgba(120, 53, 15, 0.72) 55%, rgba(28, 25, 23, 0.92) 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.gavahito-panel.dark .gp-profile-incomplete__icon,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__icon {
    background-color: rgba(251, 191, 36, 0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' d='M12 8v5m0 3h.01M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3C/svg%3E");
}

.gavahito-panel.dark .gp-profile-incomplete__title,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__title {
    color: #fde68a;
}

.gavahito-panel.dark .gp-profile-incomplete__text,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__text {
    color: #fcd34d;
}

.gavahito-panel.dark .gp-profile-incomplete__fields-wrap,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__fields-wrap {
    background: rgba(15, 23, 42, 0.48);
    border-color: rgba(251, 191, 36, 0.16);
}

.gavahito-panel.dark .gp-profile-incomplete__fields-label,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__fields-label {
    color: #fbbf24;
}

.gavahito-panel.dark .gp-profile-incomplete__fields li,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__fields li {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.gavahito-panel.dark .gp-profile-incomplete__actions,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__actions {
    border-top-color: rgba(251, 191, 36, 0.14);
}

.gavahito-panel.dark .gp-profile-incomplete__btn,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1c1917 !important;
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.18);
}

.gavahito-panel.dark .gp-profile-incomplete__btn:hover,
html.gp-theme-dark body.gavahito-panel-body .gp-profile-incomplete__btn:hover {
    box-shadow: 0 10px 22px rgba(251, 191, 36, 0.24);
}

.gp-cert-identity-summary {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gp-cert-identity-summary__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.gp-cert-identity-summary__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--gp-primary-rgb, 37, 99, 235), 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232563eb' stroke-width='2' stroke-linecap='round' d='M20 21a8 8 0 0 0-16 0M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z'/%3E%3C/svg%3E") center/20px no-repeat;
}

.gp-cert-identity-summary__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.gp-cert-identity-summary__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

.gp-cert-identity-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gp-cert-identity-summary__item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.gp-cert-identity-summary__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #64748b;
}

.gp-cert-identity-summary__value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.gp-cert-identity-summary__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gp-primary, #2563eb) !important;
    text-decoration: none !important;
}

.gavahito-panel.dark .gp-cert-identity-summary {
    background: #0f172a;
    border-color: #334155;
}

.gavahito-panel.dark .gp-cert-identity-summary__title,
.gavahito-panel.dark .gp-cert-identity-summary__value {
    color: #f8fafc;
}

.gavahito-panel.dark .gp-cert-identity-summary__hint,
.gavahito-panel.dark .gp-cert-identity-summary__label {
    color: #94a3b8;
}

.gavahito-panel.dark .gp-cert-identity-summary__item {
    background: #111827;
    border-color: #334155;
}

@media (max-width: 640px) {
    .gp-profile-incomplete {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .gp-profile-incomplete__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .gp-profile-incomplete__actions {
        flex-direction: column;
        margin-top: 14px;
        padding-top: 14px;
    }

    .gp-profile-incomplete__btn {
        width: 100%;
    }

    .gp-cert-identity-summary__grid {
        grid-template-columns: 1fr;
    }
}

.gavahito-panel.dark .gp-cert-request-hint {
    color: #94a3b8;
}

.gp-cert-requests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gp-cert-request-item {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-cert-request-item {
    background: #0f172a;
    border-color: #334155;
}

.gp-cert-request-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.gp-cert-request-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.gavahito-panel.dark .gp-cert-request-item__meta {
    color: #94a3b8;
}

.gp-cert-request-item__note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.gavahito-panel.dark .gp-cert-request-item__note {
    color: #cbd5e1;
}

/* ── Settings page ── */
.gp-settings-page {
    padding: 0 4px 24px;
}

.gp-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gp-settings-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
    background: var(--gp-primary-soft, rgba(37, 99, 235, 0.12));
    color: var(--gp-primary, #2563eb);
}

.gp-settings-hero__icon .gp-dash-icon,
.gp-settings-hero__icon svg {
    width: 34px !important;
    height: 34px !important;
}

.gavahito-panel.dark .gp-settings-hero__icon {
    color: var(--color_dark, #ffb81f);
}

.gp-settings-theme-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-settings-theme-row {
    background: #0f172a;
    border-color: #334155;
}

.gp-settings-theme-row__info {
    flex: 1;
    min-width: 220px;
}

.gp-settings-theme-row__title {
    margin: 0 0 8px;
}

.gp-settings-theme-row__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.gavahito-panel.dark .gp-settings-theme-row__desc {
    color: #94a3b8;
}

.gp-settings-theme-switch {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.gavahito-panel.dark .gp-settings-theme-switch {
    background: #1e293b;
    border-color: #475569;
}

.gp-settings-theme-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 108px;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gp-settings-theme-option:hover:not(.is-active) {
    color: #334155;
    background: rgba(255, 255, 255, 0.55);
}

.gavahito-panel.dark .gp-settings-theme-option {
    color: #94a3b8;
}

.gavahito-panel.dark .gp-settings-theme-option:hover:not(.is-active) {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.gp-settings-theme-option.is-active {
    background: #fff;
    color: var(--gp-primary, #2563eb);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.gavahito-panel.dark .gp-settings-theme-option.is-active {
    background: #334155;
    color: var(--color_dark, #ffb81f);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.gp-settings-theme-option__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.gp-settings-theme-option__icon path,
.gp-settings-theme-option__icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Header theme toggle — match .gavahito-panel-home circle + icon size */
.gp-theme-toggle-btn {
    position: relative;
    color: #1a1a1a;
    cursor: pointer;
}

.gavahito-panel.dark .gp-theme-toggle-btn {
    color: #e3e3e3;
}

.gp-theme-icon path,
.gp-theme-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Same icon size as home (14×15 inside 40px circle) — show only one at a time */
.gp-theme-toggle-btn svg.gp-theme-toggle-icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0;
    display: none;
    pointer-events: none;
}

.gp-theme-toggle-btn svg.gp-theme-toggle-icon--moon {
    display: block;
}

.gavahito-panel.dark .gp-theme-toggle-btn svg.gp-theme-toggle-icon--moon {
    display: none;
}

.gavahito-panel.dark .gp-theme-toggle-btn svg.gp-theme-toggle-icon--sun {
    display: block;
}

/* Theme toggle in notifications — same on mobile, tablet, desktop */
#gavahito-panel-dashboard header .gavahito-panel-notifications {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 1000px) {
    #gavahito-panel-dashboard header .gavahito-panel-notifications {
        padding-right: 24px !important;
        padding-left: 0 !important;
        margin-right: 4px;
    }
}

.gavahito-panel-notifications .gp-theme-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: solid 1px #eee;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gavahito-panel.dark .gavahito-panel-notifications .gp-theme-toggle-btn {
    border-color: #444;
}

li.gavahito-panel-notification {
    position: relative;
    overflow: visible;
}

li.gavahito-panel-notification #gp-panel-notifications-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: solid 1px #eee;
    border-radius: 50% !important;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

li.gavahito-panel-notification #gp-panel-notifications-toggle svg {
    width: 20px !important;
    height: auto;
    flex-shrink: 0;
}

li.gavahito-panel-notification #gp-panel-notifications-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.gavahito-panel.dark li.gavahito-panel-notification #gp-panel-notifications-toggle,
html.gp-theme-dark body.gavahito-panel-body li.gavahito-panel-notification #gp-panel-notifications-toggle {
    border-color: #444;
    color: #e3e3e3;
}

.gavahito-panel.dark li.gavahito-panel-notification #gp-panel-notifications-toggle:hover,
html.gp-theme-dark body.gavahito-panel-body li.gavahito-panel-notification #gp-panel-notifications-toggle:hover {
    background: var(--color_dark_o, rgba(255, 184, 31, 0.12));
    border-color: rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35);
}

li.gavahito-panel-notification #gp-panel-notifications-badge,
li.gavahito-panel-notification .gp-panel-notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    left: auto;
    z-index: 5;
    box-sizing: border-box;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    padding: 0 !important;
    border: 2px solid #fff;
    background-color: #ef394e;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    text-align: center;
}

li.gavahito-panel-notification #gp-panel-notifications-badge:not(:empty),
li.gavahito-panel-notification .gp-panel-notifications-badge:not(:empty) {
    font-variant-numeric: tabular-nums;
}

li.gavahito-panel-notification #gp-panel-notifications-badge.gp-panel-notifications-badge--wide,
li.gavahito-panel-notification .gp-panel-notifications-badge.gp-panel-notifications-badge--wide {
    width: auto !important;
    min-width: 20px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
}

.gavahito-panel.dark li.gavahito-panel-notification #gp-panel-notifications-badge,
.gavahito-panel.dark li.gavahito-panel-notification .gp-panel-notifications-badge,
html.gp-theme-dark body.gavahito-panel-body li.gavahito-panel-notification #gp-panel-notifications-badge,
html.gp-theme-dark body.gavahito-panel-body li.gavahito-panel-notification .gp-panel-notifications-badge {
    border-color: #1f2937;
}

body.gp-notifications-open,
html.gp-notifications-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 768px) {
    .gp-settings-theme-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-settings-theme-switch {
        width: 100%;
    }

    .gp-settings-theme-option {
        flex: 1;
        min-width: 0;
    }
}

/* Certificate detail page (replaces popup modal) */
.gp-cert-detail-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-cert-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gp-cert-detail-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gavahito-panel.dark .gp-cert-detail-back {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.gavahito-panel.dark .gp-cert-detail-back:hover {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

.gp-cert-detail-card {
    overflow: hidden;
}

.gp-cert-detail-card .gp-cert-modal__body {
    padding-top: 0;
}

.gp-cert-detail-card .gp-cert-modal__title {
    margin-top: 0;
}

/* Sidebar close — center X icon inside button (mobile/tablet only) */
@media (max-width: 999px) {
    body.gavahito-panel-body .gavahito-panel > .gp-menu-backdrop {
        z-index: 100 !important;
    }

    body.gavahito-panel-body .gavahito-panel > #gavahito-panel-side-panel,
    body.gavahito-panel-body .gavahito-panel > #gavahito-panel-side-panel.active {
        z-index: 150 !important;
    }

    body.gavahito-panel-body .back-drop.gp-menu-backdrop.active {
        z-index: 100 !important;
    }

    body.gavahito-panel-body #gavahito-panel-side-panel.active,
    body.gavahito-panel-body #gavahito-panel-side-panel.active ul.gavahito-panel-menu,
    body.gavahito-panel-body #gavahito-panel-side-panel.active ul.gavahito-panel-menu a,
    body.gavahito-panel-body #gavahito-panel-side-panel.active ul.gavahito-panel-menu button,
    body.gavahito-panel-body #gavahito-panel-side-panel.active #close_menu {
        pointer-events: auto !important;
    }

    #close_menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #close_menu::before,
    #close_menu::after {
        left: 50%;
        top: 50%;
        right: auto;
        margin: 0;
    }

    #close_menu::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #close_menu::after {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@media (min-width: 1000px) {
    #close_menu {
        display: none !important;
    }
}

.gp-cert-modal__body {
    padding-top: 0;
}

.gp-cert-modal__sections-loading {
    margin: 0;
    padding: 8px 0 4px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.gavahito-panel.dark .gp-cert-modal__sections-loading {
    color: #94a3b8;
}

.gp-cert-modal__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.gavahito-panel.dark .gp-cert-modal__title {
    color: #f1f5f9;
}

.gp-cert-modal__code {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.gp-cert-modal__image-wrap {
    position: relative;
    margin-top: 8px;
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    min-height: 180px;
}

.gavahito-panel.dark .gp-cert-modal__image-wrap {
    border-color: #334155;
    background: #0f172a;
}

.gp-cert-modal__image-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.gavahito-panel.dark .gp-cert-modal__image-loader {
    color: #94a3b8;
}

.gp-cert-modal__image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

#gp-cert-modal-download.gp-hidden {
    display: none;
}

.gp-cert-modal__sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.gp-cert-modal__section-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.gavahito-panel.dark .gp-cert-modal__section-title {
    color: #cbd5e1;
}

.gp-cert-modal__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gp-cert-modal__detail {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gavahito-panel.dark .gp-cert-modal__detail {
    background: #0f172a;
    border-color: #334155;
}

.gp-cert-modal__detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.gavahito-panel.dark .gp-cert-modal__detail-label {
    color: #94a3b8;
}

.gp-cert-modal__detail-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.5;
}

.gavahito-panel.dark .gp-cert-modal__detail-value {
    color: #f1f5f9 !important;
}

.gp-cert-modal__detail-value--date {
    color: #1d4ed8 !important;
}

.gavahito-panel.dark .gp-cert-modal__detail-value--date {
    color: #93c5fd !important;
}

.gp-cert-modal__detail-value--code {
    color: #0f766e !important;
    letter-spacing: 0.02em;
}

.gavahito-panel.dark .gp-cert-modal__detail-value--code {
    color: #5eead4 !important;
}

.gp-cert-badge--status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.gp-cert-badge--active {
    background: #16a34a !important;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.gp-cert-badge--pending {
    background: #d97706 !important;
}

.gp-cert-badge--expired {
    background: #dc2626 !important;
}

.gp-cert-badge--revoked {
    background: #4b5563 !important;
}

.gp-cert-item__side .gp-cert-badge {
    color: inherit;
}

.gp-cert-status-reason-box {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.95);
    color: #0f172a;
    line-height: 1.8;
    text-align: right;
    white-space: normal;
}

.gavahito-panel.dark .gp-cert-status-reason-box,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-status-reason-box {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(100, 116, 139, 0.55);
    color: #e2e8f0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gavahito-panel.dark .gp-cert-modal__detail-value .gp-cert-status-reason-box,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-modal__detail-value .gp-cert-status-reason-box {
    color: #e2e8f0 !important;
}

.gp-cert-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.gp-cert-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    border: none;
}

.gp-cert-modal-btn:hover {
    opacity: 0.92;
}

.gp-cert-modal-btn--primary {
    background: var(--gp-primary, #2563eb) !important;
    color: var(--gp-btn-text-color, #fff) !important;
}

.gavahito-panel.dark .gp-cert-modal-btn--primary {
    background: var(--color_dark, #ffb81f) !important;
    color: var(--gp-btn-text-color-dark, #1a1a1a) !important;
}

.gp-cert-modal-btn--secondary {
    background: #fff !important;
    color: var(--gp-btn-secondary-text-color, #0f172a) !important;
    border: 2px solid #cbd5e1 !important;
}

.gavahito-panel.dark .gp-cert-modal-btn--secondary {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    background: var(--color_dark_o, rgba(255, 184, 31, 0.1)) !important;
    border: 1px solid rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35) !important;
}

@media (max-width: 768px) {
    .gp-cert-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gp-cert-item__main {
        flex-direction: column;
        align-items: center;
        min-width: 0;
        width: 100%;
    }

    .gp-cert-item__side {
        align-items: center;
        width: 100%;
    }

    .gp-cert-view-btn,
    .gp-cert-modal-btn {
        width: 100% !important;
    }

    .gp-cert-modal__details {
        grid-template-columns: 1fr;
    }
}

.gavahito-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

/* Hide WP admin bar on panel */
body.gavahito-panel-body #wpadminbar {
    display: none !important;
}

body.gavahito-panel-body.admin-bar {
    margin-top: 0 !important;
}

/* ── Panel icons (currentColor) ── */
.gp-menu-icon,
.gp-social-icon {
    flex-shrink: 0;
    transition: color 0.25s ease;
}

ul.gavahito-panel-menu li a svg,
ul.gavahito-panel-menu li button svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

ul.social a svg,
footer ul a svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    color: inherit;
    fill: currentColor;
}

ul.gavahito-panel-menu li a,
ul.gavahito-panel-menu li button {
    display: flex !important;
    align-items: center !important;
    color: #64748b !important;
}

ul.gavahito-panel-menu li a .gp-menu-icon,
ul.gavahito-panel-menu li button .gp-menu-icon {
    color: inherit;
}

.gp-menu-icon-custom {
    width: 20px;
    height: 20px;
    margin-left: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

ul.gavahito-panel-menu li a:hover,
ul.gavahito-panel-menu li button:hover {
    color: var(--color, #2563eb) !important;
}

ul.gavahito-panel-menu li.active a,
ul.gavahito-panel-menu li.active button {
    color: var(--color, #2563eb) !important;
}

ul.gavahito-panel-menu li.active a svg,
ul.gavahito-panel-menu li.active a svg g,
ul.gavahito-panel-menu li.active button svg,
ul.gavahito-panel-menu li.active button svg g {
    fill: currentColor !important;
}

.gavahito-panel.dark ul.gavahito-panel-menu li a,
.gavahito-panel.dark ul.gavahito-panel-menu li button {
    color: #94a3b8 !important;
}

.gavahito-panel.dark ul.gavahito-panel-menu li.active a,
.gavahito-panel.dark ul.gavahito-panel-menu li.active button,
.gavahito-panel.dark ul.gavahito-panel-menu li a:hover,
.gavahito-panel.dark ul.gavahito-panel-menu li button:hover {
    color: var(--color_dark, #ffb81f) !important;
}

.gavahito-panel.dark ul.gavahito-panel-menu li.active a svg g,
.gavahito-panel.dark ul.gavahito-panel-menu li.active button svg g {
    fill: currentColor !important;
}

ul.social a,
footer ul a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

ul.social a:hover,
footer ul a:hover {
    color: var(--color, #2563eb);
}

.gavahito-panel.dark ul.social a,
.gavahito-panel.dark footer ul a {
    color: #64748b;
}

.gavahito-panel.dark ul.social a:hover,
.gavahito-panel.dark footer ul a:hover {
    color: var(--color_dark, #ffb81f);
}

/* ── Dashboard (gp-dash) — redesigned layout ── */
.view-animate .gp-dash {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 4px 24px;
}

.gp-dash-icon {
    flex-shrink: 0;
    color: currentColor;
}

.gp-dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color, #2563eb) 0%, color-mix(in srgb, var(--color, #2563eb) 70%, #1e293b) 100%);
    color: #fff;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--color, #2563eb) 25%, transparent);
}

.gp-dash-hero-main {
    flex: 1 1 280px;
    min-width: 0;
}

.gp-dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.gp-dash-welcome {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.gp-dash-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.gp-dash-date {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    flex: 0 1 auto;
}

.gp-dash-date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.gp-dash-date-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gp-dash-date-label {
    font-size: 12px;
    opacity: 0.75;
}

.gp-dash-date-col strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.gp-dash-date-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
}

.gp-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.gp-dash-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.gp-dash-stat--primary {
    border-color: color-mix(in srgb, var(--color, #2563eb) 30%, #e8edf3);
    background: color-mix(in srgb, var(--color, #2563eb) 6%, #fff);
}

.gp-dash-stat--primary .gp-dash-stat-icon {
    color: var(--color, #2563eb);
    background: color-mix(in srgb, var(--color, #2563eb) 12%, #fff);
}

.gp-dash-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--gp-stat-accent, var(--color, #2563eb));
    background: color-mix(in srgb, var(--gp-stat-accent, var(--color, #2563eb)) 12%, #fff);
    flex-shrink: 0;
}

.gp-dash-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gp-dash-stat-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.gp-dash-stat-label {
    font-size: 12px;
    color: #64748b;
}

.gp-dash-cert-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gp-dash-cert-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-color: color-mix(in srgb, var(--color, #2563eb) 25%, #e8edf3);
}

.gp-dash-cert-illustration {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.gp-dash-cert-banner-body {
    flex: 1;
    min-width: 0;
}

.gp-dash-cert-banner-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.gp-dash-cert-banner-count {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color, #2563eb);
}

.gp-dash-cert-banner-label {
    margin: 6px 0 14px;
    font-size: 13px;
    color: #64748b;
}

.gp-dash-cert-banner-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color, #2563eb);
}

.gp-dash-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

.gp-dash-grid--single {
    grid-template-columns: 1fr;
}

/* Sidebar logo — centered on mobile, tablet, and desktop */
#gavahito-panel-side-panel > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

#gavahito-panel-side-panel .logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#gavahito-panel-side-panel .logo-dark {
    display: none;
}

.gavahito-panel.dark #gavahito-panel-side-panel .logo-light {
    display: none;
}

.gavahito-panel.dark #gavahito-panel-side-panel .logo-dark {
    display: block;
}

ul.gavahito-panel-menu li.gp-menu-divider {
    list-style: none;
    padding: 0;
    margin: 6px 16px;
    height: 24px;
    pointer-events: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
}

.gavahito-panel.dark ul.gavahito-panel-menu li.gp-menu-divider {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Custom menu sections — isolated embed island (shortcode / HTML) */
.gavahito-panel-page .gavahito-panel-card.gp-custom-section {
    padding: 24px 28px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: visible;
}

.gavahito-panel.dark .gavahito-panel-page .gavahito-panel-card.gp-custom-section {
    background: #303030;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.gp-custom-section .gavahito-panel-page-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf3;
}

.gavahito-panel.dark .gp-custom-section .gavahito-panel-page-title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gp-custom-section-body {
    line-height: 1.8;
    overflow: visible;
}

/* Panel chrome stays interactive above embedded search/cert overlays */
body.gp-custom-embed-active #gavahito-panel-dashboard header {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

body.gp-custom-embed-active #gavahito-panel-dashboard header * {
    pointer-events: auto;
}

body.gp-custom-embed-active #gavahito-panel-side-panel {
    z-index: 150;
}

body.gp-custom-embed-active .gavahito-panel > .gp-menu-backdrop {
    z-index: 100;
}

body.gp-custom-embed-active #sign-out {
    z-index: 120;
}

/* Embed island — auto height; panel styles must not leak in */
.gp-embed-island {
    position: relative;
    z-index: 1;
    overflow: visible;
    border-radius: 14px;
    min-height: 0;
    max-width: 100%;
}

body.gavahito-panel-body .gavahito-panel .gp-embed-island,
body.gavahito-panel-body .gavahito-panel .gp-embed-island * {
    font-family: inherit !important;
    letter-spacing: normal;
    text-transform: none;
}

body.gavahito-panel-body .gavahito-panel .gp-embed-island [class*="gavahito"] {
    font-family: 'Vazir', Tahoma, sans-serif !important;
}

.gp-custom-section-embed {
    position: relative;
    width: 100%;
}

.gp-custom-section-embed--shortcode {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: inherit;
    overflow: visible;
}

.gp-embed-island--shortcode .gavahito-search-container,
.gp-embed-island--shortcode .gavahito-modern-container,
.gp-embed-island--shortcode .gavahito-minimal-container,
.gp-embed-island--shortcode .gavahito-classic-container,
.gp-embed-island--search .gavahito-search-container,
.gp-embed-island--search .gavahito-modern-container,
.gp-embed-island--search .gavahito-minimal-container,
.gp-embed-island--search .gavahito-classic-container {
    position: relative !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    border-radius: inherit !important;
    overflow: visible !important;
    z-index: 1 !important;
}

/* Full-panel overlays (moved to #gavahito-panel-dashboard via JS) — below header */
body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay {
    position: fixed !important;
    top: var(--gp-panel-header-offset, 70px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--gp-panel-header-offset, 70px)) !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    z-index: 50 !important;
    border-radius: 0 !important;
}

body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay:not(.show) {
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay.gavahito-minimal-popup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
}

body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay.gavahito-certificate-page.show,
body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay.gavahito-modern-loader.show,
body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-overlay.gavahito-minimal-popup.show {
    pointer-events: auto !important;
}

body.gp-custom-embed-active #gavahito-panel-dashboard > .gp-panel-embed-toast {
    position: fixed !important;
    z-index: 95 !important;
    top: calc(var(--gp-panel-header-offset, 70px) + 12px) !important;
}

/* HTML custom content island */
.gp-embed-island--html {
    padding: 20px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    word-break: break-word;
}

.gavahito-panel.dark .gp-embed-island--html {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.12);
}

.gp-embed-island--html > *:first-child,
.gp-custom-section-embed--html > *:first-child {
    margin-top: 0;
}

.gp-embed-island--html > *:last-child,
.gp-custom-section-embed--html > *:last-child {
    margin-bottom: 0;
}

.gp-embed-island--html p,
.gp-embed-island--html ul,
.gp-embed-island--html ol,
.gp-custom-section-embed--html p,
.gp-custom-section-embed--html ul,
.gp-custom-section-embed--html ol {
    margin: 0 0 0.85em;
}

.gp-embed-island--html p:last-child,
.gp-custom-section-embed--html p:last-child {
    margin-bottom: 0;
}

.gp-embed-island--html .gp-login-btn,
.gp-embed-island--html button,
.gp-embed-island--html input,
.gp-embed-island--html textarea,
.gp-embed-island--html select {
    font: inherit;
    letter-spacing: inherit;
}

@media screen and (max-width: 768px) {
    .gavahito-panel-page .gavahito-panel-card.gp-custom-section {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .gp-embed-island {
        border-radius: 12px;
    }

    .gp-embed-island--html {
        padding: 16px;
    }
}

.gp-custom-section-body iframe,
.gp-custom-section-body img,
.gp-embed-island iframe,
.gp-embed-island img {
    max-width: 100%;
    border-radius: 10px;
}

.gp-embed-island--html iframe,
.gp-custom-section-embed--html iframe {
    border: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-embed-island--html iframe,
.gavahito-panel.dark .gp-custom-section-embed--html iframe {
    border-color: rgba(255, 255, 255, 0.12);
}

.gp-dash-panel,
.gp-dash-actions {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.gp-dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.gp-dash-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color, #2563eb);
}

.gp-dash-panel-title h3,
.gp-dash-actions-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.gp-dash-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color, #2563eb);
    text-decoration: none;
    white-space: nowrap;
}

.gp-dash-link:hover {
    text-decoration: underline;
}

.gp-dash-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.gp-dash-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-dash-bar-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gp-dash-bar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.gp-dash-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gp-dash-bar-label {
    flex: 1;
    color: #475569;
}

.gp-dash-bar-count {
    font-weight: 700;
    color: #0f172a;
}

.gp-dash-bar-track {
    height: 8px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.gp-dash-bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 0;
    transition: width 0.6s ease;
}

.gp-dash-recent {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.gp-dash-recent h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.gp-dash-recent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gp-dash-recent li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.gp-dash-recent-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-dash-recent-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.gp-dash-actions-title {
    margin-bottom: 18px;
}

.gp-dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gp-dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gp-dash-action:hover {
    background: color-mix(in srgb, var(--color, #2563eb) 8%, #fff);
    border-color: color-mix(in srgb, var(--color, #2563eb) 25%, #e8edf3);
    color: var(--color, #2563eb);
    transform: translateY(-2px);
}

.gp-dash-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--color, #2563eb);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.gp-dash-action--logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.gp-dash-action--logout:hover .gp-dash-action-icon {
    color: #dc2626;
}

.gavahito-panel.dark .gp-dash-stat,
.gavahito-panel.dark .gp-dash-panel,
.gavahito-panel.dark .gp-dash-actions,
.gavahito-panel.dark .gp-dash-cert-banner {
    background: #1a1a1a;
    border-color: #2d2d2d;
}

.gavahito-panel.dark .gp-dash-cert-banner-body h3 {
    color: #f1f5f9;
}

.gavahito-panel.dark .gp-dash-cert-banner-count {
    color: var(--color_dark, #ffb81f);
}

.gavahito-panel.dark .gp-dash-cert-banner-link {
    color: var(--color_dark, #ffb81f);
}

.gavahito-panel.dark .gp-dash-stat-num,
.gavahito-panel.dark .gp-dash-panel-title h3,
.gavahito-panel.dark .gp-dash-actions-title,
.gavahito-panel.dark .gp-dash-bar-count {
    color: #f1f5f9;
}

.gavahito-panel.dark .gp-dash-stat-label,
.gavahito-panel.dark .gp-dash-bar-label {
    color: #94a3b8;
}

.gavahito-panel.dark .gp-dash-stat--primary {
    background: color-mix(in srgb, var(--color_dark, #ffb81f) 8%, #1a1a1a);
    border-color: color-mix(in srgb, var(--color_dark, #ffb81f) 25%, #2d2d2d);
}

.gavahito-panel.dark .gp-dash-stat--primary .gp-dash-stat-icon,
.gavahito-panel.dark .gp-dash-stat-icon {
    background: color-mix(in srgb, var(--gp-stat-accent, var(--color_dark, #ffb81f)) 15%, #252525);
    color: var(--gp-stat-accent, var(--color_dark, #ffb81f));
}

.gavahito-panel.dark .gp-dash-empty,
.gavahito-panel.dark .gp-dash-recent li,
.gavahito-panel.dark .gp-dash-action {
    background: #252525;
    border-color: #333;
    color: #cbd5e1;
}

.gavahito-panel.dark .gp-dash-action-icon {
    background: #1a1a1a;
    color: var(--color_dark, #ffb81f);
}

.gavahito-panel.dark .gp-dash-action:hover {
    background: color-mix(in srgb, var(--color_dark, #ffb81f) 10%, #252525);
    border-color: color-mix(in srgb, var(--color_dark, #ffb81f) 30%, #333);
    color: var(--color_dark, #ffb81f);
}

.gavahito-panel.dark .gp-dash-bar-track {
    background: #333;
}

.gavahito-panel.dark .gp-dash-recent {
    border-top-color: #333;
}

.gavahito-panel.dark .gp-dash-recent h4,
.gavahito-panel.dark .gp-dash-recent-name {
    color: #e2e8f0;
}

.gavahito-panel.dark .gp-dash-link {
    color: var(--color_dark, #ffb81f);
}

@media (max-width: 991px) {
    .gp-dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gp-dash-cert-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }

    .gp-dash-cert-illustration {
        width: 100px;
    }

    .gp-dash-hero {
        padding: 22px 18px;
    }

    .gp-dash-welcome {
        font-size: 18px;
    }

    .gp-dash-date {
        width: 100%;
        flex-wrap: wrap;
    }

    .gp-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gp-dash-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Mobile / tablet menu backdrop (inside panel, below sidebar) ── */
body.gavahito-panel-body .gavahito-panel > .gp-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    z-index: 100 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none !important;
}

body.gavahito-panel-body .gavahito-panel > .gp-menu-backdrop.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto !important;
}

/* ── Logout confirmation modal ── */
body.gavahito-panel-body .back-drop.gp-logout-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    z-index: 10050 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none !important;
}

body.gavahito-panel-body .back-drop.gp-logout-backdrop.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto !important;
}

body.gavahito-panel-body #sign-out.gp-logout-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    z-index: 10060 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    background: transparent !important;
    border-radius: 0 !important;
    transform: none !important;
    overflow: visible !important;
}

body.gavahito-panel-body #sign-out.gp-logout-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
}

body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__box {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(calc(100vw - 32px), 420px) !important;
    max-width: 420px !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 28px) clamp(18px, 4vw, 24px) clamp(18px, 3.5vw, 24px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    box-sizing: border-box !important;
}

html.gp-theme-dark body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__box,
body.gavahito-panel-body:has(#gavahito-panel-root.dark) #sign-out.gp-logout-modal .gp-logout-modal__box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

#sign-out.gp-logout-modal .gp-logout-modal__text {
    margin: 0 0 clamp(18px, 3.5vw, 24px);
    font-size: clamp(15px, 2.8vw, 16px);
    font-weight: 700;
    line-height: 1.75;
    color: #0f172a !important;
}

html.gp-theme-dark body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__text,
body.gavahito-panel-body:has(#gavahito-panel-root.dark) #sign-out.gp-logout-modal .gp-logout-modal__text {
    color: #f1f5f9 !important;
}

#sign-out.gp-logout-modal .gp-logout-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 0 !important;
    width: 100%;
}

#sign-out.gp-logout-modal .gp-logout-modal__btn {
    flex: 1 1 120px;
    min-width: 120px;
    max-width: 160px;
    height: 46px;
    padding: 0 22px !important;
    border-radius: 12px !important;
    font-size: clamp(14px, 2.6vw, 15px) !important;
    font-weight: 700 !important;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    width: auto !important;
    margin-top: 0 !important;
}

#sign-out.gp-logout-modal .gp-logout-modal__btn:hover {
    opacity: 0.92;
}

#sign-out.gp-logout-modal .gp-logout-modal__btn--confirm {
    background: var(--gp-primary, #2563eb) !important;
    color: var(--gp-btn-text-color, #fff) !important;
    border: none !important;
}

html.gp-theme-dark body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__btn--confirm,
body.gavahito-panel-body:has(#gavahito-panel-root.dark) #sign-out.gp-logout-modal .gp-logout-modal__btn--confirm {
    background: var(--color_dark, #ffb81f) !important;
    color: var(--gp-btn-text-color-dark, #1a1a1a) !important;
}

#sign-out.gp-logout-modal .gp-logout-modal__btn--cancel {
    background: #fff !important;
    color: var(--gp-btn-secondary-text-color, #0f172a) !important;
    border: 2px solid #cbd5e1 !important;
}

html.gp-theme-dark body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__btn--cancel,
body.gavahito-panel-body:has(#gavahito-panel-root.dark) #sign-out.gp-logout-modal .gp-logout-modal__btn--cancel {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35) !important;
}

@media (max-width: 480px) {
    #sign-out.gp-logout-modal .gp-logout-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    #sign-out.gp-logout-modal .gp-logout-modal__btn {
        max-width: none;
        width: 100% !important;
        flex: 1 1 auto;
    }
}

@media (max-width: 999px), (min-width: 1000px) {
    body.gavahito-panel-body #sign-out.gp-logout-modal,
    body.gavahito-panel-body #sign-out.gp-logout-modal.active,
    body.gavahito-panel-body #sign-out.gp-logout-modal.image-off {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        transform: none !important;
        display: block !important;
    }

    body.gavahito-panel-body #sign-out.gp-logout-modal .gp-logout-modal__box {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0 !important;
    }
}

/* ─── Panel notifications popup ─── */
body.gavahito-panel-body #gp-panel-notifications-popup.notification-popup {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55) !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

body.gavahito-panel-body #gp-panel-notifications-popup.notification-popup.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body.gavahito-panel-body #gp-panel-notifications-popup .gp-panel-notifications-popup__inner {
    width: min(520px, calc(100% - 32px));
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.gavahito-panel-body #gp-panel-notifications-popup .gp-panel-notifications-popup__inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.gavahito-panel.dark #gp-panel-notifications-popup .gp-panel-notifications-popup__inner,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-popup .gp-panel-notifications-popup__inner {
    background: #1f2937;
    color: #f8fafc;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__head button {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__body {
    position: relative;
    min-height: 160px;
}

.gp-panel-notifications-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 160px;
    padding: 28px 16px;
    text-align: center;
}

.gp-panel-notifications-loading.is-active {
    display: flex;
}

.gp-panel-notifications-loading__spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(var(--gp-primary-rgb, 32, 82, 255), 0.18);
    border-top-color: var(--gp-primary, #2052ff);
    animation: gp-panel-notifications-spin 0.75s linear infinite;
}

.gp-panel-notifications-loading__text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

html.gp-theme-dark body.gavahito-panel-body .gp-panel-notifications-loading__spinner,
.gavahito-panel.dark .gp-panel-notifications-loading__spinner {
    border-color: rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.2);
    border-top-color: var(--color_dark, #ffb81f);
}

html.gp-theme-dark body.gavahito-panel-body .gp-panel-notifications-loading__text,
.gavahito-panel.dark .gp-panel-notifications-loading__text {
    color: #94a3b8;
}

@keyframes gp-panel-notifications-spin {
    to {
        transform: rotate(360deg);
    }
}

.gp-panel-notifications-popup__body.is-loading #gp-panel-notifications-list,
.gp-panel-notifications-popup__body.is-loading .gp-panel-notifications-empty {
    visibility: hidden;
    pointer-events: none;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__foot.is-busy .gp-login-btn {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__foot {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#gp-panel-notifications-popup .gp-panel-notifications-popup__foot .gp-login-btn {
    flex: 1 1 180px;
    width: auto !important;
    height: auto !important;
    min-height: 44px;
    margin-top: 0 !important;
}

.gavahito-panel.dark #gp-panel-notifications-popup .gp-panel-notifications-popup__foot .gp-login-btn.gp-login-btn--secondary,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-popup .gp-panel-notifications-popup__foot .gp-login-btn.gp-login-btn--secondary {
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    background: var(--color_dark_o, rgba(255, 184, 31, 0.1)) !important;
    border: 1px solid rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.35) !important;
}

.gavahito-panel.dark #gp-panel-notifications-popup .gp-panel-notifications-popup__foot .gp-login-btn.gp-login-btn--secondary:hover:not(:disabled),
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-popup .gp-panel-notifications-popup__foot .gp-login-btn.gp-login-btn--secondary:hover:not(:disabled) {
    background: rgba(var(--gp-primary-dark-rgb, 255, 184, 31), 0.18) !important;
    color: var(--gp-btn-secondary-text-color-dark, var(--color_dark, #ffb81f)) !important;
    opacity: 1;
}

#gp-panel-notifications-list .notification,
#gp-panel-notifications-list .gp-panel-notification-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#gp-panel-notifications-list .notification.unread,
#gp-panel-notifications-list .gp-panel-notification-item.unread {
    border-color: rgba(var(--gp-primary-rgb, 32, 82, 255), 0.35);
    background: rgba(var(--gp-primary-rgb, 32, 82, 255), 0.06);
}

.gavahito-panel.dark #gp-panel-notifications-list .notification,
.gavahito-panel.dark #gp-panel-notifications-list .gp-panel-notification-item,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .notification,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .gp-panel-notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

#gp-panel-notifications-list .gp-panel-notification-item__body,
#gp-panel-notifications-list .notification .right {
    flex: 1;
    min-width: 0;
    text-align: right;
}

#gp-panel-notifications-list .gp-panel-notification-item__title,
#gp-panel-notifications-list .notification .title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

#gp-panel-notifications-list .gp-panel-notification-item__message,
#gp-panel-notifications-list .notification .right p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

#gp-panel-notifications-list .gp-panel-notification-item__message.unread,
#gp-panel-notifications-list .notification .right p.unread {
    color: #0f172a;
    font-weight: 600;
}

#gp-panel-notifications-list .gp-panel-notification-item__message--html {
    font-weight: inherit;
}

#gp-panel-notifications-list .gp-panel-notification-item__message--html p {
    margin: 0 0 8px;
}

#gp-panel-notifications-list .gp-panel-notification-item__message--html p:last-child {
    margin-bottom: 0;
}

#gp-panel-notifications-list .gp-panel-notification-item__message-wrap.is-collapsed .gp-panel-notification-item__message--html {
    max-height: 4.8em;
    overflow: hidden;
}

#gp-panel-notifications-list .gp-panel-notification-read-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gp-primary, #2052ff);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gavahito-panel.dark #gp-panel-notifications-list .gp-panel-notification-read-more,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .gp-panel-notification-read-more {
    color: var(--gp-primary, #7aa2ff);
}

.gavahito-panel.dark #gp-panel-notifications-list .gp-panel-notification-item__message.unread,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .gp-panel-notification-item__message.unread,
.gavahito-panel.dark #gp-panel-notifications-list .notification .right p.unread,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .notification .right p.unread {
    color: #f8fafc;
}

#gp-panel-notifications-list .gp-panel-notification-item__actions button,
#gp-panel-notifications-list .notification .left button {
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    background: var(--gp-primary, #2052ff);
    color: var(--gp-btn-text-color, #fff);
}

#gp-panel-notifications-list .gp-panel-notification-open--read {
    background: rgba(var(--gp-primary-rgb, 32, 82, 255), 0.12);
    color: var(--gp-primary, #2052ff);
    font-weight: 700;
}

.gavahito-panel.dark #gp-panel-notifications-list .gp-panel-notification-open--read,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .gp-panel-notification-open--read {
    background: rgba(255, 255, 255, 0.1);
    color: #dbeafe;
}

#gp-panel-notifications-list .gp-panel-notification-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
}

.gavahito-panel.dark #gp-panel-notifications-list .gp-panel-notification-status,
html.gp-theme-dark body.gavahito-panel-body #gp-panel-notifications-list .gp-panel-notification-status {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
}

.gp-panel-notifications-list {
    display: block;
}

/* ─── Certificate renewal page ─── */
.gp-cert-renewal-section + .gp-cert-renewal-section,
.gp-cert-renewal-section + .gp-login-message {
    margin-top: 20px;
}

.gp-cert-renewal-section__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.gp-cert-renewal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gp-cert-renewal-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.gavahito-panel.dark .gp-cert-renewal-item,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-renewal-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.gp-cert-renewal-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.gp-cert-renewal-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.gp-cert-renewal-item__actions .gp-login-input,
.gp-cert-renewal-item__actions select {
    min-width: 140px;
    flex: 1 1 140px;
    max-width: 220px;
}

.gp-cert-renewal-item--expiring .gp-cert-item__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gp-cert-renewal-days-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.gavahito-panel.dark .gp-cert-renewal-days-badge,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-renewal-days-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.gp-cert-renewal-section__desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.gp-cert-renewal-section--form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-cert-renewal-section--form,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-renewal-section--form {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.gp-cert-renewal-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gp-cert-renewal-form__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.gp-cert-renewal-form__preview {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.gp-cert-renewal-form__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    cursor: pointer;
}

.gp-cert-renewal-form__actions {
    margin-top: 16px;
}

.gp-cert-renewal-form__actions .gp-login-btn {
    min-width: 160px;
}

.gp-cert-renewal-section--requests {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.gavahito-panel.dark .gp-cert-renewal-section--requests,
html.gp-theme-dark body.gavahito-panel-body .gp-cert-renewal-section--requests {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.gp-user-renewal-requests {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gp-user-renewal-request {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.gavahito-panel.dark .gp-user-renewal-request,
html.gp-theme-dark body.gavahito-panel-body .gp-user-renewal-request {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.gp-user-renewal-request__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gp-user-renewal-request__main strong {
    font-size: 15px;
}

.gp-user-renewal-request__meta {
    font-size: 13px;
    color: #64748b;
}

.gp-user-renewal-request__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
