/* Meridian Helpdesk — Dark Theme */
.mhd-helpdesk { max-width: 700px; margin: 0 auto; }

/* Login Prompt */
.mhd-login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 14px;
    max-width: 420px;
    margin: 0 auto;
}
.mhd-lock-icon { font-size: 3rem; margin-bottom: 12px; opacity: .6; }
.mhd-login-prompt h3 {
    font-family: var(--font-display, serif);
    color: var(--gold, #c2a96a);
    font-size: 1.4rem;
    margin: 0 0 8px;
}
.mhd-login-prompt p { color: var(--text-dim, #9a9a9a); font-size: .9rem; margin: 0 0 20px; }
.mhd-login-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--gold, #c2a96a), #d4be8a);
    color: #0f0f0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: opacity .2s;
}
.mhd-login-btn:hover { opacity: .85; color: #0f0f0f; }
.mhd-small { font-size: .8rem; color: var(--text-dim); margin-top: 16px !important; }
.mhd-small a { color: var(--gold); }

/* Tabs */
.mhd-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border, #2a2a2a);
    margin-bottom: 24px;
}
.mhd-tab {
    padding: 10px 20px;
    color: var(--text-dim, #9a9a9a);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.mhd-tab:hover { color: var(--text, #eaeaea); }
.mhd-tab.active {
    color: var(--gold, #c2a96a);
    border-bottom-color: var(--gold, #c2a96a);
    font-weight: 600;
}
.mhd-count {
    display: inline-block;
    background: rgba(255,255,255,.08);
    padding: 1px 7px;
    border-radius: 8px;
    font-size: .75rem;
    margin-left: 4px;
}

/* Form */
.mhd-form-wrap {
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 12px;
    padding: 28px;
}
.mhd-field { margin-bottom: 18px; }
.mhd-field label {
    display: block;
    font-size: .82rem;
    color: var(--text-dim, #9a9a9a);
    margin-bottom: 6px;
    font-weight: 500;
}
.mhd-field label span { color: var(--gold); }
.mhd-field label small { color: var(--text-dim); font-weight: 400; opacity: .7; }
.mhd-field input[type="text"],
.mhd-field input[type="url"],
.mhd-field select,
.mhd-field textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    color: var(--text, #eaeaea);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s;
}
.mhd-field input:focus,
.mhd-field select:focus,
.mhd-field textarea:focus {
    outline: none;
    border-color: var(--gold, #c2a96a);
}
.mhd-field textarea { resize: vertical; min-height: 120px; }
.mhd-field select option { background: #1a1a1a; color: #eaeaea; }
.mhd-field input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    color: var(--text, #eaeaea);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s;
}
.mhd-field input[type="email"]:focus { outline: none; border-color: var(--gold, #c2a96a); }
.mhd-field input[type="number"] {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    color: var(--text, #eaeaea);
    font-size: .9rem;
    padding: 10px 14px;
}
.mhd-field input[type="number"]:focus { outline: none; border-color: var(--gold, #c2a96a); }

.mhd-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold, #c2a96a), #d4be8a);
    color: #0f0f0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: opacity .2s;
}
.mhd-submit-btn:hover { opacity: .9; }
.mhd-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.mhd-form-msg { margin-top: 12px; font-size: .85rem; text-align: center; min-height: 20px; }
.mhd-form-msg.success { color: #4CAF50; }
.mhd-form-msg.error { color: #e25555; }

/* Tickets List */
.mhd-tickets-list { display: flex; flex-direction: column; gap: 8px; }
.mhd-ticket-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}
.mhd-ticket-row:hover {
    border-color: rgba(194,169,106,.3);
    transform: translateX(2px);
}
.mhd-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mhd-ticket-info { flex: 1; min-width: 0; }
.mhd-ticket-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text, #eaeaea);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mhd-ticket-sub {
    font-size: .78rem;
    color: var(--text-dim, #9a9a9a);
    margin-top: 3px;
}
.mhd-has-reply { color: #4CAF50; font-weight: 600; }
.mhd-arrow {
    font-size: 1.4rem;
    color: var(--text-dim, #9a9a9a);
    flex-shrink: 0;
}
.mhd-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-dim, #9a9a9a);
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 10px;
}

/* Ticket Detail */
.mhd-back {
    display: inline-block;
    color: var(--gold, #c2a96a);
    font-size: .85rem;
    margin-bottom: 16px;
    text-decoration: none;
}
.mhd-back:hover { text-decoration: underline; }
.mhd-ticket-head {
    margin-bottom: 16px;
}
.mhd-ticket-head h3 {
    font-family: var(--font-display, serif);
    color: var(--text, #eaeaea);
    font-size: 1.2rem;
    margin: 0 0 8px;
}
.mhd-ticket-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: .8rem;
    color: var(--text-dim, #9a9a9a);
}
.mhd-ticket-body {
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 10px;
    padding: 20px;
    line-height: 1.7;
    color: var(--text, #eaeaea);
    font-size: .9rem;
}
.mhd-ticket-images {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.mhd-ticket-images img {
    max-width: 280px;
    max-height: 180px;
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    transition: opacity .2s;
}
.mhd-ticket-images img:hover { opacity: .8; }

.mhd-admin-reply {
    margin-top: 20px;
    background: rgba(94, 114, 228, .08);
    border-left: 4px solid #5E72E4;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
}
.mhd-reply-label {
    font-weight: 700;
    color: #5E72E4;
    font-size: .85rem;
    margin-bottom: 8px;
}
.mhd-reply-label small {
    font-weight: 400;
    color: var(--text-dim);
    margin-left: 8px;
}
.mhd-reply-body {
    color: var(--text, #eaeaea);
    font-size: .9rem;
    line-height: 1.7;
}

/* Captcha row */
.mhd-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mhd-captcha-row label {
    margin-bottom: 0;
    white-space: nowrap;
}
.mhd-captcha-row input[type="number"] {
    width: 100px !important;
}
