/* ==========================================================================
   ALESTA2 GLOBAL - MODERN NOSTALGIC TICKET & SUPPORT SYSTEM CSS
   Obsidian Dark, Gold Varnish, Gameforge Nostalgia Design Language
   ========================================================================== */

#tickets .content, #ticket .content {
    background: none !important;
}

#tickets .content-bg, #ticket .content-bg {
    background: none !important;
}

#tickets .content-bg-bottom, #ticket .content-bg-bottom {
    background: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.alesta-ticket-container {
    background: linear-gradient(180deg, rgba(22, 14, 8, 0.97) 0%, rgba(13, 8, 4, 0.99) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    padding: 22px 20px 32px 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), inset 0 0 35px rgba(212, 175, 55, 0.06);
    color: #e5d2b3;
    font-family: 'Tahoma', 'Segoe UI', Arial, sans-serif;
    margin-bottom: 25px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.alesta-ticket-container::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 9px;
    pointer-events: none;
}

/* 1. HERO & NAV HEADER */
.alesta-ticket-hero {
    background: linear-gradient(145deg, rgba(38, 24, 13, 0.9), rgba(18, 11, 6, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 18px 20px;
    position: relative;
    box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.08), 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.alesta-ticket-hero-title h2 {
    color: #ffd700;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alesta-ticket-hero-title p {
    color: #b5a287;
    font-size: 0.84rem;
    margin: 0;
}

.alesta-ticket-nav-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.alesta-btn-gold {
    background: linear-gradient(180deg, #d4af37 0%, #aa8010 100%);
    color: #120a02 !important;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid #ffd700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.alesta-btn-gold:hover {
    background: linear-gradient(180deg, #ffd700 0%, #c49514 100%);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    color: #000 !important;
}

.alesta-btn-dark {
    background: rgba(30, 19, 10, 0.85);
    color: #e5d2b3 !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alesta-btn-dark:hover {
    border-color: #d4af37;
    background: rgba(45, 28, 15, 0.95);
    color: #ffd700 !important;
}

/* 2. ALERTS & NOTICES */
.alesta-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alesta-alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #79f2af;
}
.alesta-alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff8b80;
}
.alesta-alert-warning {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: #ffd27d;
}

/* 3. TICKET TABLE (LIST VIEW) */
.alesta-table-wrapper {
    background: rgba(18, 11, 6, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.alesta-ticket-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.alesta-ticket-table th {
    background: linear-gradient(180deg, rgba(42, 26, 14, 0.95) 0%, rgba(26, 16, 9, 0.95) 100%);
    color: #ffd700;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.alesta-ticket-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: #e5d2b3;
    vertical-align: middle;
}

.alesta-ticket-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.alesta-ticket-table tr:last-child td {
    border-bottom: none;
}

/* BADGES */
.alesta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.alesta-pill-open {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.alesta-pill-answered {
    background: rgba(243, 156, 18, 0.18);
    border: 1px solid rgba(243, 156, 18, 0.55);
    color: #f39c12;
}

.alesta-pill-waiting {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: #3498db;
}

.alesta-pill-closed {
    background: rgba(149, 165, 166, 0.15);
    border: 1px solid rgba(149, 165, 166, 0.4);
    color: #bdc3c7;
}

/* Priority Pills */
.alesta-priority-low { color: #88c0d0; }
.alesta-priority-normal { color: #ebcb8b; }
.alesta-priority-high { color: #d08770; font-weight: bold; }
.alesta-priority-urgent { color: #bf616a; font-weight: bold; text-shadow: 0 0 5px rgba(191,97,106,0.5); }

/* 4. FORM STYLING (NEW TICKET) */
.alesta-form-box {
    background: rgba(20, 12, 7, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.alesta-form-group {
    margin-bottom: 18px;
}

.alesta-form-label {
    display: block;
    color: #ffd700;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.alesta-input, .alesta-select, .alesta-textarea {
    width: 100%;
    background: rgba(10, 6, 3, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    color: #fff;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.alesta-input:focus, .alesta-select:focus, .alesta-textarea:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
    background: rgba(14, 8, 4, 0.95);
}

.alesta-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.alesta-help-text {
    font-size: 0.78rem;
    color: #9e8b75;
    margin-top: 5px;
    display: block;
}

/* 5. TICKET THREAD & CONVERSATION VIEW */
.alesta-thread-meta {
    background: rgba(25, 15, 8, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.alesta-meta-item {
    font-size: 0.84rem;
}

.alesta-meta-label {
    color: #9e8b75;
    display: block;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.alesta-meta-value {
    color: #fff;
    font-weight: 600;
}

.alesta-thread-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.alesta-msg-card {
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* User Message */
.alesta-msg-user {
    background: linear-gradient(145deg, rgba(28, 17, 10, 0.95), rgba(18, 11, 6, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-left: 4px solid #b59247;
}

/* Staff / GM Message */
.alesta-msg-staff {
    background: linear-gradient(145deg, rgba(45, 26, 12, 0.98), rgba(26, 15, 7, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(212, 175, 55, 0.08);
}

.alesta-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.alesta-msg-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 0.92rem;
}

.alesta-author-gm {
    color: #ffd700;
}

.alesta-author-user {
    color: #e5d2b3;
}

.alesta-gm-badge {
    background: linear-gradient(180deg, #d4af37, #8c6708);
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alesta-msg-date {
    color: #8c7860;
    font-size: 0.78rem;
}

.alesta-msg-body {
    color: #e8d9c5;
    font-size: 0.88rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.alesta-msg-attachment {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    font-size: 0.82rem;
}

.alesta-attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffd700;
    text-decoration: underline;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.alesta-attachment-btn:hover {
    color: #fff;
    border-color: #ffd700;
}

/* 6. REPLY SECTION */
.alesta-reply-card {
    background: rgba(20, 12, 7, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 20px;
}

.alesta-reply-title {
    color: #ffd700;
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Guest / Login Notice */
.alesta-auth-notice {
    background: rgba(25, 15, 8, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
}

.alesta-auth-notice i {
    font-size: 40px;
    color: #d4af37;
    margin-bottom: 14px;
}

.alesta-auth-notice h3 {
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.alesta-auth-notice p {
    color: #c9b99f;
    max-width: 500px;
    margin: 0 auto 20px auto;
    font-size: 0.9rem;
    line-height: 1.5;
}
