/* Crow Support Ticketing - All classes prefixed with 'crow-' to avoid conflicts */
/* ============================================
   Crow Support Ticketing - Public Styles
   Professional Dark Theme with Red/Black
   ============================================ */

/* ===== Widget Button ===== */
.crow-support-widget {
    position: fixed;
    z-index: 999999;
}

.crow-support-widget.crow-bottom-right {
    bottom: 25px;
    right: 25px;
}

.crow-support-widget.crow-bottom-left {
    bottom: 25px;
    left: 25px;
}

.crow-support-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.crow-support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.crow-support-btn:hover::before {
    left: 100%;
}

.crow-support-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.5);
}

.crow-btn-icon {
    font-size: 20px;
    animation: crow-pulse 2s infinite;
}

@keyframes crow-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.crow-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffd700;
    color: #1a1a2e;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: crow-bounce 0.5s ease infinite alternate;
}

@keyframes crow-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* ===== Popup Overlay ===== */
.crow-support-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.crow-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: crow-fade-in 0.3s ease;
}

@keyframes crow-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.crow-popup-container {
    position: relative;
    width: 420px;
    max-width: 95vw;
    max-height: 85vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: crow-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(233, 69, 96, 0.15);
}

@keyframes crow-slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Popup Header ===== */
.crow-popup-header {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.crow-popup-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: crow-shimmer 3s infinite;
}

@keyframes crow-shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crow-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.crow-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.crow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crow-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.crow-status.online {
    background: #4caf50;
    animation: crow-status-pulse 2s infinite;
}

@keyframes crow-status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

.crow-header-info h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.crow-header-info p {
    color: rgba(255,255,255,0.7);
    margin: 4px 0 0;
    font-size: 13px;
}

.crow-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crow-close-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* ===== Tabs ===== */
.crow-popup-tabs {
    display: flex;
    background: rgba(15, 15, 30, 0.8);
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-tab {
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    border: none;
    color: #888;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.crow-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #e94560;
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.crow-tab:hover {
    color: #e94560;
    background: rgba(233, 69, 96, 0.05);
}

.crow-tab.active {
    color: #e94560;
    background: rgba(233, 69, 96, 0.08);
}

.crow-tab.active::after {
    width: 60%;
}

.crow-tab span {
    font-size: 16px;
}

/* ===== Tab Content ===== */
.crow-popup-content {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.crow-tab-content {
    display: none;
    padding: 20px;
    animation: crow-fade-in 0.3s ease;
}

.crow-tab-content.active {
    display: block;
}

/* ===== Chat Tab ===== */
.crow-chat-messages {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.crow-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.crow-chat-messages::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.crow-chat-messages::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 3px;
}

.crow-chat-welcome {
    text-align: center;
    padding: 30px 20px;
    color: #a0a0a0;
}

.crow-welcome-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: crow-wave 1.5s infinite;
}

@keyframes crow-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.crow-chat-welcome h4 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 18px;
}

.crow-chat-welcome p {
    margin: 0;
    font-size: 14px;
}

.crow-chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    animation: crow-message-in 0.3s ease;
}

@keyframes crow-message-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.crow-chat-message.user {
    flex-direction: row-reverse;
}

.crow-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #c73e54);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.crow-chat-message.staff .crow-chat-avatar {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

.crow-chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.crow-chat-message.user .crow-chat-bubble {
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.crow-chat-message.staff .crow-chat-bubble {
    background: rgba(255,255,255,0.08);
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

.crow-chat-time {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.crow-chat-input-area {
    border-top: 1px solid rgba(233, 69, 96, 0.1);
    padding-top: 15px;
}

.crow-chat-field {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    transition: all 0.3s;
}

.crow-chat-field:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-chat-field::placeholder {
    color: #666;
}

.crow-chat-message-row {
    display: flex;
    gap: 8px;
}

.crow-chat-message-row textarea {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    resize: none;
    transition: all 0.3s;
}

.crow-chat-message-row textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e94560, #c73e54);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crow-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

/* ===== FAQ Tab ===== */
.crow-faq-search {
    margin-bottom: 15px;
}

.crow-faq-search input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.crow-faq-search input:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-faq-search input::placeholder {
    color: #666;
}

.crow-faq-item {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(233, 69, 96, 0.08);
    transition: all 0.3s;
}

.crow-faq-item:hover {
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(233, 69, 96, 0.03);
}

.crow-faq-question {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.crow-faq-question:hover {
    color: #e94560;
}

.crow-faq-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.crow-faq-arrow {
    margin-right: auto;
    font-size: 12px;
    transition: transform 0.3s;
    color: #e94560;
}

.crow-faq-item.active .crow-faq-arrow {
    transform: rotate(180deg);
}

.crow-faq-answer {
    padding: 0 16px 16px 50px;
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.7;
    animation: crow-fade-in 0.3s ease;
}

/* ===== Ticket Form ===== */
.crow-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crow-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crow-form-group label {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}

.crow-form-group input,
.crow-form-group select,
.crow-form-group textarea {
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.crow-form-group input:focus,
.crow-form-group select:focus,
.crow-form-group textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-form-group input::placeholder,
.crow-form-group textarea::placeholder {
    color: #666;
}

.crow-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e94560' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 35px;
}

.crow-form-group select option {
    background: #1a1a2e;
    color: #fff;
}

/* File Upload */
.crow-file-upload {
    position: relative;
}

.crow-file-drop {
    padding: 20px;
    border: 2px dashed rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
}

.crow-file-drop:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.05);
}

.crow-file-drop span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.crow-file-drop p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #e0e0e0;
}

.crow-file-drop small {
    font-size: 11px;
    color: #666;
}

.crow-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.crow-file-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #e0e0e0;
}

.crow-file-item .crow-remove-file {
    cursor: pointer;
    color: #e94560;
    font-weight: 700;
}

/* Submit Button */
.crow-submit-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.crow-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.crow-submit-btn:hover::before {
    left: 100%;
}

.crow-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.crow-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.crow-ticket-success {
    text-align: center;
    padding: 30px 20px;
    animation: crow-fade-in 0.5s ease;
}

.crow-success-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: crow-success-bounce 0.6s ease;
}

@keyframes crow-success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.crow-ticket-success h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 20px;
}

.crow-ticket-success p {
    color: #a0a0a0;
    margin: 0 0 8px;
    font-size: 14px;
}

.crow-ticket-success strong {
    color: #e94560;
    font-size: 18px;
}

/* ===== Ticket Tracker ===== */
.crow-tracker-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.crow-tracker-box {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crow-tracker-box h2 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 24px;
}

.crow-tracker-box > p {
    color: #a0a0a0;
    margin: 0 0 25px;
}

.crow-tracker-box form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.crow-tracker-box input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
}

.crow-tracker-box input:focus {
    outline: none;
    border-color: #e94560;
}

.crow-tracker-results {
    margin-top: 20px;
}

.crow-tracker-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(233, 69, 96, 0.08);
    transition: all 0.3s;
}

.crow-tracker-ticket:hover {
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(233, 69, 96, 0.03);
}

/* ===== My Tickets ===== */
.crow-my-tickets {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.crow-my-tickets h2 {
    color: #fff;
    margin: 0 0 25px;
    font-size: 28px;
}

.crow-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.crow-empty-state p {
    color: #a0a0a0;
    margin: 0 0 20px;
    font-size: 16px;
}

.crow-tickets-table-wrapper {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.crow-tickets-table th {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
    padding: 16px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crow-tickets-table td {
    padding: 14px 16px;
    color: #e0e0e0;
    font-size: 14px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.05);
}

.crow-tickets-table tr:hover td {
    background: rgba(233, 69, 96, 0.03);
}

.crow-status-badge,
.crow-priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.crow-status-open { background: rgba(233, 69, 96, 0.15); color: #e94560; }
.crow-status-in_progress { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.crow-status-waiting { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.crow-status-resolved { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.crow-status-closed { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }

.crow-priority-urgent { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.crow-priority-high { background: rgba(233, 69, 96, 0.15); color: #e94560; }
.crow-priority-medium { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.crow-priority-low { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }

.crow-rating {
    font-size: 14px;
}

.crow-pending-rating {
    color: #888;
    font-size: 12px;
}

.crow-action-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #e94560, #c73e54);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.crow-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .crow-popup-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .crow-support-popup {
        padding: 0;
        align-items: flex-end;
    }

    .crow-tracker-box {
        padding: 25px;
    }

    .crow-tracker-box form {
        flex-direction: column;
    }

    .crow-tickets-table-wrapper {
        overflow-x: auto;
    }

    .crow-tickets-table {
        min-width: 800px;
    }
}

/* ===== Animations ===== */
.crow-loading {
    text-align: center;
    padding: 20px;
    color: #888;
    animation: crow-pulse 1.5s infinite;
}

.crow-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.crow-success {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}


/* ===== Single Ticket View ===== */
.crow-single-ticket-view {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.crow-ticket-view-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.crow-ticket-view-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.crow-ticket-view-brand img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(233, 69, 96, 0.1);
    padding: 8px;
    border: 2px solid rgba(233, 69, 96, 0.2);
}

.crow-ticket-view-brand h2 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.crow-ticket-view-brand p {
    color: #a0a0a0;
    margin: 6px 0 0;
    font-size: 14px;
}

.crow-ticket-view-body {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(233, 69, 96, 0.1);
    margin-bottom: 25px;
}

.crow-view-message {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    animation: crow-fade-in 0.4s ease;
}

.crow-view-staff {
    flex-direction: row-reverse;
}

.crow-view-staff .crow-view-content {
    align-items: flex-end;
}

.crow-view-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #c73e54);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(233, 69, 96, 0.3);
    overflow: hidden;
}

.crow-view-staff .crow-view-avatar {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    border-color: rgba(15, 52, 96, 0.3);
}

.crow-view-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.crow-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.crow-view-meta strong {
    color: #fff;
    font-size: 15px;
}

.crow-view-meta span {
    color: #888;
    font-size: 12px;
}

.crow-staff-label {
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.crow-view-text {
    background: rgba(255,255,255,0.05);
    padding: 16px 20px;
    border-radius: 14px;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    word-wrap: break-word;
}

.crow-view-staff .crow-view-text {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(233, 69, 96, 0.05));
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-ticket-view-reply {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-ticket-view-reply h3 {
    color: #e94560;
    margin: 0 0 20px;
    font-size: 18px;
}

.crow-ticket-view-reply textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.crow-ticket-view-reply textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-ticket-closed-banner {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.crow-ticket-closed-banner p {
    color: #27ae60;
    font-size: 16px;
    margin: 0 0 15px;
}

.crow-rating-display {
    margin-top: 15px;
}

.crow-rating-display p {
    color: #ffd700;
    font-size: 20px;
    margin: 0 0 10px;
}

.crow-rating-display em {
    color: #a0a0a0;
    font-size: 14px;
}

/* ===== Chat Avatar with Logo ===== */
.crow-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== Login Required ===== */
.crow-login-required {
    text-align: center;
    padding: 40px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-login-required p {
    color: #a0a0a0;
    font-size: 16px;
}


/* ===== My Tickets Page - Professional Styling ===== */
.crow-my-tickets {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.crow-my-tickets > h2 {
    color: #fff;
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crow-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.crow-empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.crow-empty-state p {
    color: #a0a0a0;
    margin: 0 0 25px;
    font-size: 18px;
}

.crow-empty-state .crow-submit-btn {
    display: inline-block;
    text-decoration: none;
}

.crow-tickets-table-wrapper {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(233, 69, 96, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.crow-tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.crow-tickets-table thead {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(233, 69, 96, 0.05));
}

.crow-tickets-table thead th {
    padding: 18px 20px;
    color: #e94560;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
    border-bottom: 2px solid rgba(233, 69, 96, 0.2);
}

.crow-tickets-table tbody td {
    padding: 16px 20px;
    color: #e0e0e0;
    font-size: 14px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.05);
    vertical-align: middle;
}

.crow-tickets-table tbody tr {
    transition: all 0.3s;
}

.crow-tickets-table tbody tr:hover {
    background: rgba(233, 69, 96, 0.03);
}

.crow-tickets-table tbody tr:last-child td {
    border-bottom: none;
}

.crow-status-badge,
.crow-priority-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.crow-status-open { background: rgba(233, 69, 96, 0.15); color: #e94560; }
.crow-status-in_progress { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.crow-status-waiting { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.crow-status-resolved { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.crow-status-closed { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }

.crow-priority-urgent { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.crow-priority-high { background: rgba(233, 69, 96, 0.15); color: #e94560; }
.crow-priority-medium { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.crow-priority-low { background: rgba(149, 165, 166, 0.15); color: #95a5a6; }

.crow-rating {
    font-size: 16px;
    letter-spacing: 2px;
}

.crow-pending-rating {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.crow-action-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #e94560, #c73e54);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.crow-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

/* Tracker page styling */
.crow-tracker-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.crow-tracker-box {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crow-tracker-box h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 26px;
}

.crow-tracker-box > p {
    color: #a0a0a0;
    margin: 0 0 30px;
    font-size: 15px;
}

.crow-tracker-box form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto 20px;
}

.crow-tracker-box input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.crow-tracker-box input[type="email"]:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-tracker-box input[type="email"]::placeholder {
    color: #666;
}

.crow-tracker-results {
    margin-top: 25px;
    text-align: right;
}

.crow-tracker-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(233, 69, 96, 0.08);
    transition: all 0.3s;
}

.crow-tracker-ticket:hover {
    border-color: rgba(233, 69, 96, 0.2);
    background: rgba(233, 69, 96, 0.03);
}

/* Responsive */
@media (max-width: 768px) {
    .crow-tickets-table-wrapper {
        overflow-x: auto;
    }
    .crow-tickets-table {
        min-width: 800px;
    }
    .crow-tracker-box {
        padding: 30px 20px;
    }
    .crow-tracker-box form {
        flex-direction: column;
    }
}


/* ===== New Ticket Page - Full Page Form ===== */
.crow-new-ticket-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.crow-new-ticket-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.crow-new-ticket-header img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(233, 69, 96, 0.1);
    padding: 10px;
    border: 2px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 20px;
}

.crow-new-ticket-header h1 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.crow-new-ticket-header p {
    color: #a0a0a0;
    margin: 0;
    font-size: 15px;
}

.crow-new-ticket-form-wrapper {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(233, 69, 96, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.crow-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}

.crow-new-ticket-form-wrapper .crow-form-group {
    margin-bottom: 22px;
}

.crow-new-ticket-form-wrapper .crow-form-group label {
    display: block;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.crow-new-ticket-form-wrapper .crow-form-group input,
.crow-new-ticket-form-wrapper .crow-form-group select,
.crow-new-ticket-form-wrapper .crow-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 12px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.crow-new-ticket-form-wrapper .crow-form-group input:focus,
.crow-new-ticket-form-wrapper .crow-form-group select:focus,
.crow-new-ticket-form-wrapper .crow-form-group textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.crow-new-ticket-form-wrapper .crow-form-group input::placeholder,
.crow-new-ticket-form-wrapper .crow-form-group textarea::placeholder {
    color: #666;
}

.crow-file-upload-page {
    position: relative;
}

.crow-file-drop-page {
    padding: 30px;
    border: 2px dashed rgba(233, 69, 96, 0.3);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
    background: rgba(255,255,255,0.02);
}

.crow-file-drop-page:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.05);
}

.crow-drop-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.crow-file-drop-page p {
    margin: 0 0 6px;
    font-size: 15px;
    color: #e0e0e0;
}

.crow-file-drop-page small {
    font-size: 12px;
    color: #666;
}

.crow-submit-lg {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    justify-content: center;
    margin-top: 10px;
}

.crow-btn-icon-submit {
    font-size: 22px;
}

/* Success Page */
.crow-ticket-success-page {
    text-align: center;
    padding: 50px 30px;
    animation: crow-fade-in 0.5s ease;
}

.crow-success-animation {
    margin-bottom: 25px;
}

.crow-success-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto;
    animation: crow-scale-bounce 0.6s ease;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

@keyframes crow-scale-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.crow-ticket-success-page h2 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 24px;
}

.crow-ticket-number-display {
    color: #a0a0a0;
    font-size: 16px;
    margin-bottom: 15px;
}

.crow-ticket-number-display strong {
    color: #e94560;
    font-size: 22px;
    font-family: 'Courier New', monospace;
}

.crow-ticket-success-page > p {
    color: #888;
    margin: 0 0 30px;
    font-size: 14px;
}

.crow-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.crow-success-actions .crow-submit-btn {
    text-decoration: none;
    display: inline-flex;
}

/* ===== Admin Create Ticket ===== */
.crow-create-ticket-form {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-form-section:last-of-type {
    border-bottom: none;
}

.crow-form-section h3 {
    color: #e94560;
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
}

.crow-form-actions-large {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(233, 69, 96, 0.1);
}

.crow-success-banner {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(39, 174, 96, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: crow-fade-in 0.5s ease;
}

.crow-success-icon-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
    animation: crow-scale-bounce 0.6s ease;
}

.crow-success-banner h2 {
    color: #fff;
    margin: 0 0 15px;
    font-size: 26px;
}

.crow-ticket-number-highlight {
    color: #e94560;
    font-size: 24px;
    font-family: 'Courier New', monospace;
    background: rgba(233, 69, 96, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
}

.crow-success-banner > p {
    color: #a0a0a0;
    margin: 0 0 25px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .crow-form-row {
        grid-template-columns: 1fr;
    }
    .crow-new-ticket-form-wrapper {
        padding: 25px;
    }
    .crow-success-actions {
        flex-direction: column;
    }
    .crow-form-actions-large {
        flex-direction: column;
    }
}
