/* Global Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2c2f33; /* Darker main background */

    color: #dcddde; /* Light grey text */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Teko', 'Rajdhani', 'Oswald', sans-serif;
    color: #ffffff; /* White headings */
    margin-bottom: 0.75em;
    font-weight: 500;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
    color: #b9bbbe; /* Slightly darker grey for paragraphs */
}

a {
    color: #7289da; /* Discord purple for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #8a9dfc;
}

/* Header */
header.site-header {
    background-color: #23272a; /* Very dark header background */
    color: #fff;
    padding: 1em 2em;
    text-align: center;
    border-bottom: 2px solid #e8003c; /* Accent border */
}

header.site-header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

/* Navigation */
nav.main-nav {
    background-color: #2f3136; /* Slightly lighter than header */
    padding: 0.5em 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav.main-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav.main-nav ul li {
    margin: 0 1em;
}

nav.main-nav ul li a {
    color: #dcddde;
    padding: 0.6em 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
    background-color: #7289da;
    color: #fff;
    text-decoration: none;
}

nav.main-nav ul li .logout-button {
    background-color: #f04747; /* Red for logout */
    color: #fff;
}
nav.main-nav ul li .logout-button:hover {
    background-color: #c83a3a;
}
nav.main-nav ul li .logout-button #usernameDisplayHeader {
    font-weight: normal;
    font-size: 0.9em;
}


/* Main Content Container */
.container {
    width: 90%;
    max-width: 1400px; /* Wider max-width for dashboards */
    margin: 2em auto;
    padding: 2em;
    background-color: #36393f; /* Content area background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-grow: 1;
}

/* Sections */
.section, .dashboard-section {
    margin-bottom: 2.5em;
    padding: 1.5em;
    background-color: #2f3136; /* Section background */
    border-radius: 6px;
    border: 1px solid #40444b;
}
.section h2, .dashboard-section h2 {
    border-bottom: 2px solid #7289da;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    color: #fff;
}

/* Footer */
footer.site-footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: #23272a;
    color: #8e9297; /* Lighter grey for footer text */
    font-size: 0.9em;
    border-top: 1px solid #40444b;
}

/* Fixed Header Logo */
.fixed-header-logo {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 60px; /* Adjust size as needed */
    height: auto;
    z-index: 1000; /* Ensure it's above most other content */
    border-radius: 5px; /* Optional: if you want rounded corners for the logo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Optional: subtle shadow */
}

/* Forms */
.form-label {
    display: block;
    margin-bottom: .5rem;
    color: #b9bbbe;
    font-weight: 500;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75em 1em;
    margin-bottom: 1em;
    background-color: #202225; /* Darker input background */
    color: #dcddde;
    border: 1px solid #40444b; /* Subtle border */
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #7289da;
    box-shadow: 0 0 0 0.2rem rgba(114, 137, 218, 0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.dashboard-button, .btn-primary, .btn-secondary, .btn-danger, .btn-info, .btn-success, .btn-warning {
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
.dashboard-button i, .btn-primary i, .btn-secondary i, .btn-danger i, .btn-info i, .btn-success i, .btn-warning i {
    font-size: 0.9em; /* Slightly smaller icons in buttons */
}


.dashboard-button, .btn-primary {
    background-color: #7289da; /* Discord purple */
    color: #fff;
}
.dashboard-button:hover, .btn-primary:hover {
    background-color: #5f73bc;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #4f545c; /* Dark grey */
    color: #fff;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success { background-color: #43b581; color: #fff; } /* Green */
.btn-success:hover { background-color: #3aa070; }

.btn-danger { background-color: #f04747; color: #fff; } /* Red */
.btn-danger:hover { background-color: #d84040; }

.btn-warning { background-color: #faa61a; color: #2e3136; } /* Yellow */
.btn-warning:hover { background-color: #e09306; }

.btn-info { background-color: #4a90e2; color: #fff; } /* Blue */
.btn-info:hover { background-color: #3a7bc8; }


/* Login Page Specific */
.login-section {
    text-align: center;
}
.discord-login-button {
    display: inline-flex;
    align-items: center;
    background-color: #5865F2; /* Discord brand color */
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.discord-login-button img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.discord-login-button:hover {
    background-color: #4752C4;
    text-decoration: none;
}
#login-error-message {
    background-color: #f04747;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    display: inline-block;
}

/* Dashboard Hub Specific */
.server-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5em;
}
.server-card {
    background-color: #2f3136;
    padding: 1.5em;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #40444b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.server-card img.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1em;
    border: 2px solid #e8003c;
}
.server-card h3 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
}
.server-card .dashboard-button {
    width: 100%;
    margin-top: 1em;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5em;
    border: 1px solid #40444b;
    border-radius: 6px;
}
.dashboard-table, .ticket-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2f3136;
    color: #dcddde;
}
.dashboard-table th, .ticket-table th,
.dashboard-table td, .ticket-table td {
    border: 1px solid #40444b;
    padding: 0.8em 1em;
    text-align: left;
    vertical-align: middle;
}
.dashboard-table th, .ticket-table th {
    background-color: #202225; /* Darker header for tables */
    color: #fff;
    font-weight: 600;
}
.dashboard-table tr:nth-child(even), .ticket-table tr:nth-child(even) {
    background-color: #36393f; /* Alternating row color */
}
.dashboard-table tr:hover, .ticket-table tr:hover {
    background-color: #40444b;
}
.dashboard-table .actions button, .ticket-table .actions button,
.dashboard-table .actions a, .ticket-table .actions a {
    color: #7289da;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    margin-right: 5px;
    border-radius: 3px;
}
.dashboard-table .actions button:hover, .ticket-table .actions button:hover,
.dashboard-table .actions a:hover, .ticket-table .actions a:hover {
    background-color: #7289da;
    color: #fff;
    text-decoration: none;
}

/* Status Badges */
.status-badge {
    padding: 0.4em 0.8em;
    font-size: .8em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10px; /* Pill shape */
    display: inline-block;
}
.status-open { background-color: #43b581; } /* Green */
.status-claimed { background-color: #faa61a; color: #2e3136;} /* Yellow */
.status-closed { background-color: #f04747; } /* Red */
.status-default { background-color: #747f8d; } /* Grey */

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Add padding for smaller screens */
}
.modal-dialog-custom {
    background-color: #36393f;
    color: #dcddde;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-top: 4px solid #7289da; /* Accent top border */
}
.modal-dialog-custom.modal-lg { max-width: 900px; }
.modal-dialog-custom.modal-xl { max-width: 1100px; }

/* Config Modal Tabs */
.config-modal-tabs {
    display: flex;
    border-bottom: 1px solid #4f545c;
    margin-bottom: 1.5em;
}
.config-modal-tabs .tab-link {
    padding: 0.8em 1.2em;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #b9bbbe;
    font-size: 1em;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; /* Align with container border */
}
.config-modal-tabs .tab-link.active {
    color: #fff;
    border-bottom-color: #7289da;
}
.config-modal-tabs .tab-link:hover {
    color: #fff;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Dynamic field rows in config modal */
.dynamic-field-row-container {
    padding: 10px;
    border: 1px dashed #4f545c;
    border-radius: 5px;
    margin-top: 10px;
}
.dynamic-field-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #40444b;
}
.dynamic-field-row:last-child {
    border-bottom: none;
}
.dynamic-field-row input[type="text"],
.dynamic-field-row input[type="url"],
.dynamic-field-row textarea {
    flex-grow: 1;
    margin-bottom: 0 !important; /* Override default form-control margin */
}
.dynamic-field-row .form-check-input {
    margin-left: 5px;
    height: auto; /* Adjust checkbox alignment */
}
.dynamic-field-row .remove-dynamic-field {
    background-color: #f04747;
    color: white;
    border: none;
    padding: 0.4em 0.7em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}
.dynamic-field-row .remove-dynamic-field:hover {
    background-color: #d84040;
}
.config-section-divider {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    border: 0;
    border-top: 1px solid #4f545c;
}

/* Chat Messages in Modal */
.chat-messages {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #4f545c;
    padding: 1em;
    margin-bottom: 1.5em;
    background-color: #2f3136;
    border-radius: 5px;
}
.chat-message {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #40444b;
    display: flex;
    gap: 0.8em;
}
.chat-message:last-child { border-bottom: none; }
.chat-message img.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.chat-message .message-details { flex: 1; }
.chat-message .author-tag {
    font-weight: 600;
    color: #fff;
}
.chat-message .timestamp {
    font-size: 0.8em;
    color: #72767d;
    margin-left: 0.5em;
}
.chat-message .content {
    margin-top: 0.3em;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap; /* Preserve line breaks */
}
.chat-message .content img, /* For images directly in content */
.chat-message .attachments img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 5px;
    margin-top: 0.5em;
    display: block;
}
.chat-message .attachments a {
    display: inline-block;
    margin-top: 0.5em;
    margin-right: 0.5em;
    padding: 0.3em 0.6em;
}
.chat-message .embed {
    border-left: 4px solid #7289da;
    background-color: #292b2f;
    padding: 0.8em;
    border-radius: 4px;
    margin-top: 0.5em;
}
.chat-message .embed h5 { font-size: 1.1em; margin-bottom: 0.3em;}
.chat-message .embed p { font-size: 0.95em; margin-bottom: 0.3em;}


/* Staff Notes in Modal */
.staff-note {
    background-color: #292b2f;
    border-left: 4px solid #faa61a;
    padding: 0.8em 1em;
    margin-bottom: 0.8em;
    font-size: 0.9em;
    border-radius: 4px;
}
.staff-note small {
    color: #72767d;
    display: block;
    margin-bottom: 0.3em;
}

/* Loading Spinner */
#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1056;
    font-size: 1.2em;
    color: #fff;
    background-color: rgba(32,34,37,0.9); /* Darker, more opaque */
    padding: 1.5em 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.8em;
}
#loadingSpinner::before { /* Simple spinner animation */
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #5c5f66;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Config Modal Specifics */
#customFieldsConfigContainer .row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
#customFieldsConfigContainer .row input[type="text"] {
    flex-grow: 1;
    margin-bottom: 0; /* Override general form-control margin */
}
.remove-custom-field-row {
    background-color: #f04747;
    color: white;
    border: none;
    padding: 0.5em 0.8em;
    border-radius: 4px;
    cursor: pointer;
    height: fit-content; /* Align with input height */
}
.remove-custom-field-row:hover { background-color: #d84040; }

.form-row { /* For config modal rows */
    display: flex;
    gap: 1.5em; /* Increased gap */
    margin-bottom: 1.5em; /* Increased margin */
}
.form-row > div {
    flex: 1; /* Equal width columns */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-danger { color: #f04747; }
.text-warning { color: #faa61a; }
.text-success { color: #43b581; }
.text-muted { color: #8e9297; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .container { width: 95%; padding: 1.5em; margin: 1em auto; }
    header.site-header { padding: 0.8em 1em; }
    header.site-header h1 { font-size: 1.5em; }
    nav.main-nav ul { flex-direction: column; align-items: stretch; }
    nav.main-nav ul li { margin: 0.5em 0; text-align: center; }
    nav.main-nav ul li a { display: block; }

    .form-row { flex-direction: column; gap: 0; } /* Stack form elements in config modal */
    .form-row > div { margin-bottom: 1em; }

    .modal-dialog-custom { padding: 1.5em; }
    .modal-header-custom h5 { font-size: 1.3em; }

    .dashboard-table, .ticket-table { font-size: 0.9em; }
    .dashboard-table th, .ticket-table th,
    .dashboard-table td, .ticket-table td { padding: 0.6em 0.8em; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .container { padding: 1em; }
    .dashboard-button, .btn-primary /* etc */ { font-size: 0.9em; padding: 0.5em 1em; }
    .modal-dialog-custom { width: 100%; max-height: 95vh; border-radius: 0; }
}

/* ===== Pro Visual Polish (safe, CSS-only) ===== */
:root {
    --accent-red: #e8003c;
    --accent-blue: #7289da;
    --surface-1: #2f3136;
    --surface-2: #36393f;
    --stroke: #40444b;
}

/* Subtle animated ambient background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
      radial-gradient(circle at 15% 10%, rgba(232, 0, 60, 0.10), transparent 35%),
      radial-gradient(circle at 85% 15%, rgba(114, 137, 218, 0.12), transparent 38%),
      radial-gradient(circle at 35% 85%, rgba(114, 137, 218, 0.06), transparent 34%);
    animation: ambientShift 14s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% { transform: translateY(0) scale(1); opacity: 0.85; }
    100% { transform: translateY(-8px) scale(1.02); opacity: 1; }
}

/* Nav polish */
nav.main-nav {
    border-bottom: 1px solid rgba(232,0,60,0.15);
}

nav.main-nav ul li a {
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

/* Containers and sections: slightly richer depth */
.container {
    border: 1px solid rgba(232, 0, 60, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.section, .dashboard-section {
    transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: fadeSlideIn 420ms ease both;
}

.section:hover, .dashboard-section:hover {
    border-color: rgba(114,137,218,0.42);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons: more tactile */
.dashboard-button, .btn-primary, .btn-secondary, .btn-danger, .btn-info, .btn-success, .btn-warning {
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.dashboard-button:active, .btn-primary:active, .btn-secondary:active,
.btn-danger:active, .btn-info:active, .btn-success:active, .btn-warning:active {
    transform: translateY(0);
}

/* Server cards: premium glow and top accent */
.server-card {
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    opacity: 0.65;
}

/* Better focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Modern scrollbar */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: #23272a;
}
*::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 999px;
    border: 2px solid #23272a;
}
*::-webkit-scrollbar-thumb:hover {
    background: #7289da;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Premium Unified UI Refresh ===== */
:root {
    --ui-bg: #14171c;
    --ui-surface: rgba(44, 46, 54, 0.92);
    --ui-surface-strong: rgba(54, 57, 63, 0.95);
    --ui-border: rgba(114, 137, 218, 0.20);
    --ui-border-strong: rgba(232, 0, 60, 0.26);
    --ui-text: #dcddde;
    --ui-text-soft: #b9bbbe;
    --ui-glow-red: rgba(232, 0, 60, 0.26);
    --ui-glow-blue: rgba(114, 137, 218, 0.25);
    --ui-radius-sm: 10px;
    --ui-radius-md: 14px;
    --ui-radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1200px 700px at 12% -10%, rgba(232, 0, 60, 0.10), transparent 60%),
        radial-gradient(1000px 650px at 95% 0%, rgba(114, 137, 218, 0.14), transparent 58%),
        linear-gradient(160deg, #191d23 0%, var(--ui-bg) 100%);
    color: var(--ui-text);
}

header.site-header,
nav.main-nav,
.container,
.section,
.dashboard-section,
.glass-card,
.glass-card-about,
.glass-card-commands,
.glass-card-support,
.contact-card,
.contact-info,
.server-card,
.feature-item,
.feature-card,
.team-member,
.command-list li,
.stat-card,
.changelog-section,
.team-section,
.dashboard-hero-card {
    border-color: var(--ui-border) !important;
}

nav.main-nav {
    position: sticky;
    top: 0;
    z-index: 950;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(28, 31, 38, 0.82);
    border-bottom: 1px solid rgba(232, 0, 60, 0.22);
}

nav.main-nav ul {
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.2rem 0.35rem;
}

nav.main-nav ul li a {
    border-radius: 999px;
    padding: 0.62em 1.08em;
    border: 1px solid transparent;
    letter-spacing: 0.15px;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
    background: linear-gradient(135deg, #e8003c 0%, #7289da 100%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.container,
.glass-card,
.glass-card-about,
.glass-card-commands,
.glass-card-support,
.contact-card,
.contact-info,
.dashboard-hero-card {
    background: linear-gradient(165deg, rgba(54, 57, 63, 0.92), rgba(38, 41, 48, 0.95)) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.33), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.section,
.dashboard-section,
.feature-item,
.feature-card,
.server-card,
.team-member,
.command-list li,
.changelog-section,
.team-section,
.stat-card {
    background: linear-gradient(165deg, rgba(51, 54, 61, 0.95), rgba(41, 44, 51, 0.96)) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.section:hover,
.dashboard-section:hover,
.feature-item:hover,
.feature-card:hover,
.server-card:hover,
.team-member:hover,
.command-list li:hover {
    border-color: var(--ui-border-strong) !important;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 0, 60, 0.14) inset;
    transform: translateY(-3px);
}

.hero-title,
.about-title,
.commands-title,
.support-title,
.dashboard-hero-card h1,
.contact-hero h1 {
    letter-spacing: 0.5px;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.40), 0 0 26px rgba(114, 137, 218, 0.12);
}

.tip-banner,
.dashboard-quick-tip,
.info-banner {
    border: 1px solid rgba(114, 137, 218, 0.30) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dashboard-button,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-info,
.btn-success,
.btn-warning,
.dashboard-link,
.big-discord-invite,
.contact-info a.big-discord,
.discord-login-button {
    border-radius: 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.24s ease !important;
}

.dashboard-button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-info:hover,
.btn-success:hover,
.btn-warning:hover,
.dashboard-link:hover,
.big-discord-invite:hover,
.contact-info a.big-discord:hover,
.discord-login-button:hover {
    transform: translateY(-2px) scale(1.01);
    filter: saturate(1.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.dashboard-button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-info:active,
.btn-success:active,
.btn-warning:active {
    transform: translateY(0);
}

.form-control,
.form-select,
textarea.form-control {
    background: rgba(27, 31, 37, 0.92);
    border: 1px solid rgba(114, 137, 218, 0.24);
    border-radius: 10px;
    color: #e4e6eb;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8e9297;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(114, 137, 218, 0.80);
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.20), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.dashboard-table,
.ticket-table {
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-table th,
.ticket-table th {
    background: linear-gradient(180deg, #252933 0%, #21242c 100%);
    border-bottom: 1px solid rgba(114, 137, 218, 0.28);
}

.dashboard-table tr:hover,
.ticket-table tr:hover {
    background: rgba(114, 137, 218, 0.12) !important;
}

.status-badge {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.server-card::after,
.feature-card::after,
.feature-item::after,
.team-member::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.04));
    opacity: 0.58;
}

.site-footer {
    background: linear-gradient(180deg, rgba(20, 23, 28, 0.9), rgba(15, 17, 22, 0.96)) !important;
    border-top: 1px solid rgba(232, 0, 60, 0.35) !important;
}

.footer-banner {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.32));
}

#backToTop,
.feature-card .feature-info-btn {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 960px) {
    .container,
    .glass-card,
    .glass-card-about,
    .glass-card-commands,
    .glass-card-support,
    .contact-card,
    .contact-info,
    .dashboard-hero-card {
        border-radius: 14px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 640px) {
    nav.main-nav {
        padding: 0.45rem 0.2rem;
    }

    nav.main-nav ul {
        gap: 0.28rem;
    }

    nav.main-nav ul li a {
        padding: 0.52em 0.86em;
        font-size: 0.93rem;
    }

    .hero-title,
    .about-title,
    .commands-title,
    .support-title,
    .dashboard-hero-card h1,
    .contact-hero h1 {
        line-height: 1.18;
    }
}
