/* Support Alert */
.support-alert-container {
    margin-top: 8rem;
    margin-bottom: -6rem;
    position: relative;
    z-index: 100;
}

.support-alert {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 1.25rem 2rem;
    border-radius: 1.25rem;
    font-weight: 600;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
}

.support-alert div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-alert {
    margin-bottom: 1.5rem;
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* Support Page Premium Styles */
.support-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(93, 95, 239, 0.06) 0%, transparent 70%);
    z-index: 0;
}

.support-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(162, 89, 255, 0.06) 0%, transparent 70%);
    z-index: 0;
}

.support-hero .container {
    position: relative;
    z-index: 1;
}

.support-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.support-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    transition: 0.3s;
}

.support-nav-btn:hover,
.support-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(93, 95, 239, 0.35);
}

.support-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Tabs */
.support-content {
    padding: 4rem 0 8rem;
    background: #f8fafc;
}

.support-tabs {
    display: flex;
    gap: 2rem;
    /* max-width: 1200px; */
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .support-tabs {
        flex-direction: column;
    }
}

.support-sidebar {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .support-sidebar {
        width: 100%;
    }
}

.sidebar-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--primary-gradient-subtle);
    color: var(--primary-color);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.sidebar-link.active svg {
    opacity: 1;
}

.sidebar-link .count {
    margin-left: auto;
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.support-main {
    flex: 1;
    min-width: 0;
}

.support-panel {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-body {
    padding: 2rem;
}

/* Ticket List */
.ticket-list {
    display: flex;
    flex-direction: column;
}

.ticket-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
}

.ticket-item:hover {
    background: #f8fafc;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.ticket-status.open {
    background: #10b981;
}

.ticket-status.pending {
    background: #f59e0b;
}

.ticket-status.closed {
    background: #94a3b8;
}

.ticket-info {
    flex: 1;
    min-width: 0;
}

.ticket-subject {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-meta {
    font-size: 0.875rem;
    color: #64748b;
}

.ticket-date {
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #94a3b8;
}

.empty-icon svg {
    width: 36px;
    height: 36px;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    color: #0f172a;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 95, 239, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient-subtle);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #64748b;
    font-size: 0.9375rem;
}

/* Login Prompt */
.login-prompt {
    background: var(--primary-gradient-subtle);
    border: 1px solid rgba(93, 95, 239, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt p {
    color: #334155;
    margin-bottom: 1.25rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Guest Form Section */
.guest-form-section {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.guest-form-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 2rem;
    color: white;
    text-align: center;
}

.guest-form-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.guest-form-header p {
    color: rgba(255, 255, 255, 0.7);
}

.guest-form-body {
    padding: 2rem;
}

/* Ticket Page Specific Styles */
.ticket-page {
    padding: 10rem 0 6rem;
    background: #f8fafc;
    min-height: 100vh;
}

.ticket-container {
    max-width: 900px;
    margin: 0 auto;
}

.ticket-header {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.ticket-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.ticket-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.ticket-breadcrumb a:hover {
    text-decoration: underline;
}

.ticket-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ticket-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ticket-number {
    font-size: 0.875rem;
    color: #64748b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.open {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.closed {
    background: #f1f5f9;
    color: #64748b;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.meta-item {
    font-size: 0.875rem;
}

.meta-label {
    color: #64748b;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-weight: 600;
    color: #0f172a;
}

.priority-high {
    color: #dc2626;
}

.priority-medium {
    color: #f59e0b;
}

.priority-low {
    color: #10b981;
}

/* Conversation */
.conversation {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.conversation-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.conversation-body {
    padding: 0;
}

.message {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.message:last-child {
    border-bottom: none;
}

.message.admin {
    background: #f8fafc;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.message-avatar.admin {
    background: #0f172a;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.message-info {
    flex: 1;
}

.message-author {
    font-weight: 600;
    color: #0f172a;
}

.message-author .badge {
    display: inline-block;
    background: #0f172a;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.message-time {
    font-size: 0.8125rem;
    color: #64748b;
}

.message-content {
    color: #334155;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Reply Form */
.reply-form {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
    overflow: hidden;
}

.reply-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
}

.reply-body {
    padding: 2rem;
}

.reply-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: 0.2s;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(93, 95, 239, 0.1);
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-closed-notice {
    background: #f1f5f9;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

.ticket-closed-notice strong {
    color: #0f172a;
}