/* =============================================================
   Drycured Auth — UI stilovi
   Brand: Digitalna pušnica
   Color: --ast-global-color-0 (#DCA54A gold)
   Font:  DM Sans / Mulish
============================================================== */

:root {
    --dc-gold:        var(--ast-global-color-0, #DCA54A);
    --dc-gold-soft:   #c9a45c;
    --dc-gold-tint:   rgba(220, 165, 74, 0.12);
    --dc-text:        var(--ast-global-color-3, #1a1a1a);
    --dc-text-muted:  #6b6b6b;
    --dc-bg-soft:     #fafafa;
    --dc-border:      rgba(0, 0, 0, 0.08);
    --dc-shadow:      0 12px 40px rgba(20, 14, 8, 0.14);
    --dc-radius:      12px;
    --dc-font:        'DM Sans', 'Mulish', system-ui, -apple-system, sans-serif;
}

/* =============================================================
   Header user button (pored #dc-search-btn)
============================================================== */
.dc-user-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dc-text);
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}
.dc-user-btn:hover  { color: var(--dc-gold); background: var(--dc-gold-tint); }
.dc-user-btn:focus-visible {
    outline: 2px solid var(--dc-gold);
    outline-offset: 2px;
}
.dc-user-btn.dc-uninjected { display: none; }  /* sakrij dok JS ne premjesti */
.dc-user-btn.dc-injected   { display: inline-flex; }

.dc-user-icon { display: block; }
.dc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dc-gold);
    box-sizing: border-box;
}

/* =============================================================
   Login modal
============================================================== */
.dc-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--dc-font);
}
.dc-modal[hidden] { display: none; }
.dc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: dcFadeIn 0.2s ease;
}
.dc-modal__panel {
    position: relative;
    background: #fff;
    border-radius: var(--dc-radius);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--dc-shadow);
    border-top: 4px solid var(--dc-gold);
    animation: dcSlideUp 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
    box-sizing: border-box;
}
.dc-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #b0b0b0;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 50%;
    transition: all 0.15s ease;
    font-family: inherit;
}
.dc-modal__close:hover { background: #f4f4f4; color: var(--dc-text); }
.dc-modal__title {
    font-family: var(--dc-font);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--dc-text);
    letter-spacing: -0.5px;
}
.dc-modal__title i {
    font-style: italic;
    color: var(--dc-gold);
}
.dc-modal__subtitle {
    color: var(--dc-text-muted);
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}

/* =============================================================
   Form components
============================================================== */
.dc-form { display: flex; flex-direction: column; gap: 14px; }
.dc-form__field { display: flex; flex-direction: column; gap: 6px; }
.dc-form__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--dc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.dc-form input[type="text"],
.dc-form input[type="email"],
.dc-form input[type="password"] {
    padding: 12px 14px;
    border: 1px solid var(--dc-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--dc-font);
    background: var(--dc-bg-soft);
    color: var(--dc-text);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.dc-form input:focus {
    outline: none;
    border-color: var(--dc-gold);
    background: #fff;
    box-shadow: 0 0 0 3px var(--dc-gold-tint);
}
.dc-form__row {
    display: flex;
    gap: 14px;
}
.dc-form__row .dc-form__field { flex: 1; min-width: 0; }
.dc-form__row--between {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
@media (max-width: 480px) {
    .dc-form__row { flex-direction: column; gap: 14px; }
    .dc-form__row--between { flex-direction: row; }
}
.dc-form__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dc-text-muted);
    cursor: pointer;
    line-height: 1.4;
}
.dc-form__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--dc-gold);
    margin: 0;
}
.dc-form__check a {
    color: var(--dc-gold);
    text-decoration: none;
    font-weight: 600;
}
.dc-form__check a:hover { text-decoration: underline; }
.dc-form__hint { font-size: 11px; color: var(--dc-text-muted); }

.dc-form__error,
.dc-form__success {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}
.dc-form__error   { background: #fdf2f2; color: #b00020; border-left: 3px solid #b00020; }
.dc-form__success { background: #f0f8ed; color: #2d6b2d; border-left: 3px solid #2d6b2d; }

.dc-form__divider {
    text-align: center;
    margin: 18px 0 14px;
    color: #aaa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    font-weight: 600;
}
.dc-form__divider::before,
.dc-form__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: var(--dc-border);
}
.dc-form__divider::before { left: 0; }
.dc-form__divider::after  { right: 0; }
.dc-form__link {
    color: var(--dc-gold);
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.dc-form__link:hover { text-decoration: underline; }
.dc-form__footer-text {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--dc-text-muted);
}
.dc-form__footer-text a {
    color: var(--dc-gold);
    font-weight: 700;
    text-decoration: none;
}
.dc-form__footer-text a:hover { text-decoration: underline; }

/* =============================================================
   Buttons
============================================================== */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--dc-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-sizing: border-box;
}
.dc-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.dc-btn--primary {
    background: var(--dc-gold);
    color: #fff;
}
.dc-btn--primary:hover:not(:disabled) {
    background: var(--dc-gold-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 165, 74, 0.3);
}
.dc-btn--ghost {
    background: transparent;
    color: var(--dc-text);
    border: 1px solid var(--dc-border);
}
.dc-btn--ghost:hover:not(:disabled) {
    border-color: var(--dc-gold);
    color: var(--dc-gold);
    background: var(--dc-gold-tint);
}
.dc-btn--block { width: 100%; }

/* =============================================================
   User dropdown (logged-in)
============================================================== */
.dc-user-dropdown {
    position: fixed;
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    border-top: 3px solid var(--dc-gold);
    min-width: 280px;
    padding: 6px 0;
    z-index: 9999;
    font-family: var(--dc-font);
    animation: dcFadeIn 0.15s ease;
}
.dc-user-dropdown[hidden] { display: none; }
.dc-user-dropdown__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dc-border);
    margin-bottom: 4px;
}
.dc-user-dropdown__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dc-gold);
    flex-shrink: 0;
}
.dc-user-dropdown__identity { min-width: 0; flex: 1; }
.dc-user-dropdown__name {
    font-weight: 700;
    color: var(--dc-text);
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dc-user-dropdown__email {
    font-size: 12px;
    color: var(--dc-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dc-user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--dc-text);
    text-decoration: none;
    font-size: 14px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-family: inherit;
    box-sizing: border-box;
}
.dc-user-dropdown__item:hover {
    background: var(--dc-gold-tint);
    color: var(--dc-gold);
}
.dc-user-dropdown__item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--dc-gold);
    flex-shrink: 0;
}
.dc-user-dropdown__logout {
    border-top: 1px solid var(--dc-border);
    margin-top: 4px;
    color: #b00020;
}
.dc-user-dropdown__logout:hover {
    background: #fdf2f2;
    color: #b00020;
}
.dc-user-dropdown__logout .dashicons { color: #b00020; }

/* =============================================================
   Registration page (/registracija/)
============================================================== */
.dc-register-page {
    max-width: 560px;
    margin: 60px auto 80px;
    padding: 0 20px;
    font-family: var(--dc-font);
}
.dc-register-page__title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin: 0;
    text-align: center;
    color: var(--dc-text);
    line-height: 1.1;
}
.dc-register-page__divider {
    width: 80px;
    height: 2px;
    background: var(--dc-gold);
    margin: 18px auto 20px;
}
.dc-register-page__subtitle {
    text-align: center;
    color: var(--dc-text-muted);
    margin: 0 0 36px;
    font-size: 15px;
    line-height: 1.5;
}
.dc-register-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--dc-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--dc-gold);
}
.dc-register-page__notice {
    max-width: 560px;
    margin: 80px auto;
    padding: 30px;
    text-align: center;
    background: #fff;
    border-radius: var(--dc-radius);
    border-top: 4px solid var(--dc-gold);
    font-family: var(--dc-font);
    color: var(--dc-text-muted);
}
@media (max-width: 540px) {
    .dc-register-page__title { font-size: 32px; }
    .dc-register-form { padding: 24px; }
}

/* =============================================================
   Toast notification (verified success)
============================================================== */
.dc-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #2d6b2d;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-family: var(--dc-font);
    font-weight: 600;
    font-size: 14px;
    animation: dcSlideIn 0.3s ease;
    max-width: 360px;
}
@media (max-width: 480px) {
    .dc-toast { right: 10px; left: 10px; max-width: none; }
}

/* =============================================================
   BuddyPress profile — basic drycured theming
============================================================== */
#buddypress {
    font-family: var(--dc-font);
}
#buddypress div.item-list-tabs ul li.selected a,
#buddypress div.item-list-tabs ul li.current a {
    background: var(--dc-gold);
    color: #fff;
}
#buddypress div.item-list-tabs ul li a:hover {
    color: var(--dc-gold);
}
#buddypress .standard-form input[type="submit"],
#buddypress a.button,
#buddypress button {
    background: var(--dc-gold);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 13px;
}
#buddypress .standard-form input[type="submit"]:hover,
#buddypress a.button:hover,
#buddypress button:hover {
    background: var(--dc-gold-soft);
}
#buddypress #item-header-avatar img.avatar {
    border: 3px solid var(--dc-gold);
}
#buddypress #item-header #item-header-content h2 a,
#buddypress #item-header #item-header-content h2 {
    color: var(--dc-text);
}

/* =============================================================
   Animations
============================================================== */
@keyframes dcFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes dcSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes dcSlideIn {
    from { transform: translateX(30px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
 * Drycured Auth — input visibility toggle
 * ============================================================ */
.dc-input-visibility {
    position: relative;
    display: block;
    width: 100%;
}

.dc-input-visibility input {
    width: 100%;
    padding-right: 48px !important;
}

.dc-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8B6F47;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.78;
    transition: opacity 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dc-visibility-toggle:hover,
.dc-visibility-toggle:focus {
    opacity: 1;
    color: #D4AF37;
    outline: none;
}

.dc-visibility-toggle:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 2px;
    border-radius: 999px;
}

.dc-visibility-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-visibility-toggle:active {
    transform: translateY(-50%) scale(0.96);
}

/* ============================================================
 * Drycured Auth — bbPress frontend profile edit form fixes
 * ============================================================ */
#bbp-your-profile,
.bbp-user-edit,
#bbpress-forums #bbp-your-profile {
    max-width: 980px;
}

#bbpress-forums #bbp-your-profile fieldset {
    border: 1px solid rgba(139, 111, 71, 0.12);
    background: rgba(255, 255, 255, 0.72);
    padding: 22px 26px;
    margin-bottom: 24px;
}

#bbpress-forums #bbp-your-profile label {
    min-width: 150px;
    display: inline-block;
    color: #1f2933;
    font-weight: 500;
}

#bbpress-forums #bbp-your-profile input[type="text"],
#bbpress-forums #bbp-your-profile input[type="url"],
#bbpress-forums #bbp-your-profile input[type="email"],
#bbpress-forums #bbp-your-profile input[type="password"],
#bbpress-forums #bbp-your-profile select,
#bbpress-forums #bbp-your-profile textarea {
    width: 100%;
    max-width: 560px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #d8d3c8;
    border-radius: 4px;
    background: #fff;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.4;
}

#bbpress-forums #bbp-your-profile select {
    min-width: 560px;
    padding-right: 42px;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}

#bbpress-forums #bbp-your-profile textarea {
    min-height: 160px;
    resize: vertical;
}

#bbpress-forums #bbp-your-profile .description,
#bbpress-forums #bbp-your-profile p.description {
    margin-left: 154px;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 768px) {
    #bbpress-forums #bbp-your-profile label {
        display: block;
        min-width: 0;
        margin-bottom: 6px;
    }

    #bbpress-forums #bbp-your-profile input[type="text"],
    #bbpress-forums #bbp-your-profile input[type="url"],
    #bbpress-forums #bbp-your-profile input[type="email"],
    #bbpress-forums #bbp-your-profile input[type="password"],
    #bbpress-forums #bbp-your-profile select,
    #bbpress-forums #bbp-your-profile textarea {
        max-width: 100%;
        min-width: 0;
    }

    #bbpress-forums #bbp-your-profile .description,
    #bbpress-forums #bbp-your-profile p.description {
        margin-left: 0;
    }
}

/* ============================================================
 * Drycured Auth — bbPress user profile centered layout
 * ============================================================ */
#bbpress-forums {
    max-width: 1180px;
    margin: 54px auto 70px auto;
    padding: 0 28px;
    box-sizing: border-box;
}

#bbpress-forums #bbp-user-wrapper {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    width: 100%;
}

#bbpress-forums #bbp-single-user-details {
    width: 180px;
    float: none;
    margin: 0;
}

#bbpress-forums #bbp-user-body {
    float: none;
    width: 100%;
    max-width: 820px;
    margin: 0;
}

#bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar {
    width: 160px;
    height: 160px;
    object-fit: cover;
    background: #e5e5e5;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation {
    margin-top: 18px;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation li {
    margin: 0;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation a {
    display: block;
    padding: 10px 12px;
    color: #8B6F47;
    text-decoration: none;
    border-radius: 4px;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a,
#bbpress-forums #bbp-single-user-details #bbp-user-navigation a:hover {
    background: rgba(139, 111, 71, 0.10);
    color: #2a2a2a;
}

#bbpress-forums #bbp-your-profile {
    max-width: 100%;
}

#bbpress-forums #bbp-your-profile fieldset {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile profile layout */
@media (max-width: 860px) {
    #bbpress-forums {
        margin-top: 34px;
        padding: 0 18px;
    }

    #bbpress-forums #bbp-user-wrapper {
        display: block;
    }

    #bbpress-forums #bbp-single-user-details {
        width: 100%;
        margin-bottom: 28px;
        text-align: center;
    }

    #bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar {
        width: 120px;
        height: 120px;
    }

    #bbpress-forums #bbp-user-body {
        max-width: 100%;
    }
}

/* ============================================================
 * Drycured Auth — professional bbPress profile workspace polish
 * ============================================================ */

/* Main profile area */
#bbpress-forums {
    width: min(1180px, calc(100vw - 56px));
    max-width: 1180px;
    margin: 48px auto 80px auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    color: #172033;
}

/* Two-column workspace */
#bbpress-forums #bbp-user-wrapper {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 42px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Left profile card */
#bbpress-forums #bbp-single-user-details {
    width: 220px !important;
    float: none !important;
    margin: 0 !important;
    padding: 22px 18px !important;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(139, 111, 71, 0.16);
    border-top: 4px solid #D4AF37;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
    position: sticky;
    top: 112px;
}

/* Avatar */
#bbpress-forums #bbp-single-user-details #bbp-user-avatar {
    text-align: center;
    margin-bottom: 18px;
}

#bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar {
    width: 132px !important;
    height: 132px !important;
    object-fit: cover;
    border-radius: 999px;
    background: #f1eee6;
    border: 4px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 8px 22px rgba(139, 111, 71, 0.12);
}

/* Left navigation */
#bbpress-forums #bbp-single-user-details #bbp-user-navigation {
    margin-top: 12px !important;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation li {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation a {
    display: block !important;
    padding: 11px 13px !important;
    border-radius: 10px;
    color: #8B6F47 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a,
#bbpress-forums #bbp-single-user-details #bbp-user-navigation a:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(139, 111, 71, 0.10));
    color: #172033 !important;
    transform: translateX(2px);
}

/* Right body card */
#bbpress-forums #bbp-user-body {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Section title */
#bbpress-forums #bbp-user-body h2,
#bbpress-forums #bbp-user-body h3 {
    color: #172033;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* Form wrapper */
#bbpress-forums #bbp-your-profile {
    max-width: 100% !important;
    width: 100% !important;
}

/* Form sections as cards */
#bbpress-forums #bbp-your-profile fieldset {
    width: 100% !important;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid rgba(139, 111, 71, 0.14) !important;
    border-radius: 16px !important;
    padding: 28px 34px !important;
    margin: 0 0 26px 0 !important;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.07);
}

/* Field rows */
#bbpress-forums #bbp-your-profile fieldset > div,
#bbpress-forums #bbp-your-profile fieldset p {
    max-width: 820px;
}

/* Labels */
#bbpress-forums #bbp-your-profile label {
    min-width: 150px !important;
    width: 150px !important;
    display: inline-block !important;
    padding-right: 18px;
    box-sizing: border-box;
    color: #283044 !important;
    font-size: 14px;
    font-weight: 700 !important;
    text-align: right;
    vertical-align: top;
}

/* Inputs */
#bbpress-forums #bbp-your-profile input[type="text"],
#bbpress-forums #bbp-your-profile input[type="url"],
#bbpress-forums #bbp-your-profile input[type="email"],
#bbpress-forums #bbp-your-profile input[type="password"],
#bbpress-forums #bbp-your-profile select,
#bbpress-forums #bbp-your-profile textarea {
    width: calc(100% - 172px) !important;
    max-width: 640px !important;
    min-width: 360px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 13px !important;
    border: 1px solid #d8d3c8 !important;
    border-radius: 10px !important;
    background: #fbfaf7 !important;
    color: #172033 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#bbpress-forums #bbp-your-profile input:focus,
#bbpress-forums #bbp-your-profile select:focus,
#bbpress-forums #bbp-your-profile textarea:focus {
    outline: none !important;
    border-color: #D4AF37 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18) !important;
}

/* Select fix */
#bbpress-forums #bbp-your-profile select {
    cursor: pointer;
    padding-right: 42px !important;
    text-overflow: unset !important;
}

/* Textarea */
#bbpress-forums #bbp-your-profile textarea {
    min-height: 170px !important;
    resize: vertical;
}

/* Descriptions */
#bbpress-forums #bbp-your-profile .description,
#bbpress-forums #bbp-your-profile p.description {
    margin-left: 172px !important;
    max-width: 640px;
    color: #6b7280 !important;
    font-size: 13px !important;
    line-height: 1.55;
}

/* Submit button area */
#bbpress-forums #bbp-your-profile .submit {
    margin-left: 172px !important;
}

#bbpress-forums #bbp-your-profile input[type="submit"],
#bbpress-forums #bbp-your-profile button,
#bbpress-forums #bbp-your-profile .button {
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #D4AF37, #B88A2B) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    padding: 12px 22px !important;
    box-shadow: 0 10px 24px rgba(184, 138, 43, 0.22);
    cursor: pointer;
}

#bbpress-forums #bbp-your-profile input[type="submit"]:hover,
#bbpress-forums #bbp-your-profile button:hover,
#bbpress-forums #bbp-your-profile .button:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

/* Reduce empty feeling on wide screens */
@media (min-width: 1200px) {
    #bbpress-forums #bbp-your-profile fieldset {
        max-width: 900px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    #bbpress-forums {
        width: min(100%, calc(100vw - 36px));
        margin-top: 34px !important;
    }

    #bbpress-forums #bbp-user-wrapper {
        grid-template-columns: 190px minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    #bbpress-forums #bbp-single-user-details {
        width: 190px !important;
        padding: 20px 14px !important;
    }

    #bbpress-forums #bbp-your-profile input[type="text"],
    #bbpress-forums #bbp-your-profile input[type="url"],
    #bbpress-forums #bbp-your-profile input[type="email"],
    #bbpress-forums #bbp-your-profile input[type="password"],
    #bbpress-forums #bbp-your-profile select,
    #bbpress-forums #bbp-your-profile textarea {
        min-width: 0;
        max-width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 780px) {
    #bbpress-forums {
        width: min(100%, calc(100vw - 28px));
        margin: 28px auto 56px auto !important;
    }

    #bbpress-forums #bbp-user-wrapper {
        display: block !important;
    }

    #bbpress-forums #bbp-single-user-details {
        position: static;
        width: 100% !important;
        margin-bottom: 24px !important;
        text-align: center;
    }

    #bbpress-forums #bbp-single-user-details #bbp-user-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #bbpress-forums #bbp-your-profile fieldset {
        padding: 22px 18px !important;
    }

    #bbpress-forums #bbp-your-profile label {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        text-align: left;
        padding-right: 0;
        margin-bottom: 7px;
    }

    #bbpress-forums #bbp-your-profile input[type="text"],
    #bbpress-forums #bbp-your-profile input[type="url"],
    #bbpress-forums #bbp-your-profile input[type="email"],
    #bbpress-forums #bbp-your-profile input[type="password"],
    #bbpress-forums #bbp-your-profile select,
    #bbpress-forums #bbp-your-profile textarea {
        width: 100% !important;
        min-width: 0 !important;
    }

    #bbpress-forums #bbp-your-profile .description,
    #bbpress-forums #bbp-your-profile p.description,
    #bbpress-forums #bbp-your-profile .submit {
        margin-left: 0 !important;
    }
}





/* ============================================================
 * Drycured — frontend account settings page
 * Only styles the /postavke-racuna/ form, not the header.
 * ============================================================ */

body.page-id-2341 .entry-header,
body.page-id-2341 header.entry-header {
    display: none !important;
}

body.page-id-2341 .site-content .ast-container {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.dc-profile-settings-wrap {
    max-width: 760px;
    margin: 64px auto 92px auto;
    padding: 0 24px;
}

.dc-profile-settings-card {
    background: #ffffff;
    border-top: 4px solid #D4AF37;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    padding: 38px 44px 40px 44px;
}

.dc-profile-settings-title {
    font-family: "DM Sans", sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 12px 0;
    text-align: center;
    letter-spacing: 0.03em;
}

.dc-profile-settings-subtitle {
    max-width: 560px;
    margin: 0 auto 34px auto;
    color: #5b6472;
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
}

.dc-profile-settings-form {
    display: grid;
    gap: 18px;
}

.dc-profile-settings-row {
    display: grid;
    gap: 7px;
}

.dc-profile-settings-row label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #172033;
    margin: 0;
}

.dc-profile-settings-row input,
.dc-profile-settings-row textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px;
    box-sizing: border-box;
    padding: 11px 14px !important;
    border: 1px solid #d8d3c8 !important;
    border-radius: 10px !important;
    background: #fbfaf7 !important;
    color: #172033 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    box-shadow: none !important;
}

.dc-profile-settings-row textarea {
    min-height: 150px;
    resize: vertical;
}

.dc-profile-settings-row input:focus,
.dc-profile-settings-row textarea:focus {
    outline: none !important;
    border-color: #D4AF37 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18) !important;
}

.dc-profile-settings-note {
    margin-top: -3px;
    color: #7a6f5c;
    font-size: 13px;
    line-height: 1.45;
}

.dc-profile-settings-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.dc-profile-settings-submit {
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #D4AF37, #B88A2B) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    padding: 13px 30px !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(184, 138, 43, 0.22) !important;
}

.dc-profile-settings-submit:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.dc-profile-settings-message {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.dc-profile-settings-message.success {
    background: #eef8ef;
    color: #256029;
    border: 1px solid #bfe5c2;
}

.dc-profile-settings-message.error {
    background: #fff1f1;
    color: #9f1d1d;
    border: 1px solid #f1b7b7;
}

@media (max-width: 760px) {
    .dc-profile-settings-wrap {
        margin: 42px auto 70px auto;
        padding: 0 18px;
    }

    .dc-profile-settings-card {
        padding: 28px 22px 30px 22px;
    }

    .dc-profile-settings-title {
        font-size: 30px;
    }
}

/* ============================================================
 * Drycured — account settings page sidebar + text polish
 * Only affects /postavke-racuna/ page content.
 * ============================================================ */

body.dc-account-settings-page .dc-profile-settings-wrap {
    max-width: 1180px !important;
    margin: 54px auto 90px auto !important;
    padding: 0 28px !important;
}

body.dc-account-settings-page .dc-profile-settings-head {
    max-width: 760px;
    margin: 0 auto 34px auto !important;
    text-align: center !important;
}

body.dc-account-settings-page .dc-profile-settings-title {
    text-align: center !important;
    font-size: 42px !important;
    line-height: 1.12 !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 16px 0 !important;
}

body.dc-account-settings-page .dc-profile-settings-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 680px !important;
}

body.dc-account-settings-page .dc-profile-settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

body.dc-account-settings-page .dc-profile-sidebar-card {
    background: #ffffff;
    border: 1px solid rgba(139, 111, 71, 0.16);
    border-top: 4px solid #D4AF37;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    padding: 22px 18px;
    position: sticky;
    top: 112px;
}

body.dc-account-settings-page .dc-profile-sidebar-avatar {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: #f1eee6;
    border: 4px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 8px 22px rgba(139, 111, 71, 0.12);
    display: block;
    margin: 0 auto 18px auto;
    overflow: hidden;
}

body.dc-account-settings-page .dc-profile-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.dc-account-settings-page .dc-profile-sidebar-nav {
    display: grid;
    gap: 6px;
}

body.dc-account-settings-page .dc-profile-sidebar-nav a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: #8B6F47;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.dc-account-settings-page .dc-profile-sidebar-nav a:hover,
body.dc-account-settings-page .dc-profile-sidebar-nav a.is-current {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(139, 111, 71, 0.10));
    color: #172033;
    transform: translateX(2px);
}

body.dc-account-settings-page .dc-profile-settings-main {
    min-width: 0;
}

body.dc-account-settings-page .dc-profile-section {
    max-width: 900px;
}

@media (max-width: 860px) {
    body.dc-account-settings-page .dc-profile-settings-layout {
        display: block;
    }

    body.dc-account-settings-page .dc-profile-sidebar-card {
        position: static;
        margin-bottom: 28px;
    }

    body.dc-account-settings-page .dc-profile-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
