/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    RARA Dashboard
    Version: 1.0.0
    Author: Johnny
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Google Font
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    CSS Variables
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

:root {

    /* Brand */
    --primary: #5865F2;
    --primary-hover: #4752C4;
    --secondary: #8B5CF6;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Background */
    --background: #0B1120;
    --background-secondary: #111827;
    --background-tertiary: #1F2937;

    /* Glass */
    --glass: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.10);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text: #F9FAFB;
    --text-muted: #9CA3AF;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);

    /* Radius */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    /* Transition */
    --transition: 220ms cubic-bezier(.2, .8, .2, 1);

}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Reset
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #5865F215 0%, transparent 40%),
        radial-gradient(circle at bottom right, #8B5CF615 0%, transparent 35%),
        linear-gradient(180deg, var(--background), var(--background-secondary));
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Selection
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

::selection {
    background: var(--primary);
    color: white;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Scrollbar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: #4e5568;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Typography
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Layout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.container {
    width: min(1280px, 92%);
    margin: auto;
}

.section {
    padding: 100px 0;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Glass Components
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Navbar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.navbar {
    position: sticky;
    top: 20px;
    z-index: 1000;

    width: min(1280px, 95%);
    margin: 20px auto;
    padding: 18px 32px;

    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(20px);

    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.logo h2 {
    font-size: 1.4rem;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
/* new */
.dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* new */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 28px;
    flex-shrink: 0;
}
/* new */

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Buttons & Logout Forms
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 35px rgba(88, 101, 242, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(88, 101, 242, .45);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary:hover {
    background: var(--glass-hover);
}

/* Form Logout Button Overrides */
.logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.logout-button {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Hero
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    width: min(900px, 95%);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

.hero-buttons {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Floating Background
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.background-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

.circle-1 {
    width: 350px;
    height: 350px;
    background: #5865F2;
    top: -120px;
    left: -120px;
}

.circle-2 {
    width: 280px;
    height: 280px;
    background: #8B5CF6;
    bottom: -120px;
    right: -120px;
    animation-delay: 2s;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Dashboard Layout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.dashboard {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.dashboard-title p {
    margin-top: 8px;
    color: var(--text-muted);
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Generic Card
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.card {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.card-description {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: .95rem;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    User Profile Card
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: auto;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 35px rgba(88, 101, 242, .45);
}

.profile-name {
    margin-top: 22px;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-username {
    margin-top: 4px;
    color: var(--text-muted);
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info-label {
    color: var(--text-muted);
}

.profile-info-value {
    font-weight: 600;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Statistics Grid
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--text-muted);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    margin-top: 12px;
    font-size: 2.4rem;
    font-weight: 800;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(88, 101, 242, .15);
    color: var(--primary);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Guild Grid
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.guild-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.guild-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: var(--shadow-lg);
}

.guild-banner {
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.guild-content {
    padding: 24px;
}

.guild-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: -54px;
}

.guild-icon {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    border: 4px solid var(--background-secondary);
    object-fit: cover;
    background: #2b2d31;
}

.guild-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.guild-id {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 2px;
}

.guild-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Badges
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

.badge-primary {
    background: rgba(88, 101, 242, .18);
    color: var(--primary);
}

.badge-success {
    background: rgba(34, 197, 94, .18);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, .18);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, .18);
    color: var(--danger);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Forms
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.form-label {
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, .18);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Alerts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.alert {
    padding: 18px 22px;
    border-radius: 14px;
    border-left: 5px solid;
}

.alert-success {
    background: rgba(34, 197, 94, .12);
    border-color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, .12);
    border-color: var(--warning);
}

.alert-danger {
    background: rgba(239, 68, 68, .12);
    border-color: var(--danger);
}

.alert-info {
    background: rgba(88, 101, 242, .12);
    border-color: var(--primary);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Empty State
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.empty-state {
    text-align: center;
    padding: 70px 30px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: .5;
}

.empty-state-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.empty-state-text {
    margin-top: 10px;
    max-width: 420px;
    margin-inline: auto;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Sidebar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-link:hover {
    background: var(--glass-hover);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.sidebar-link.logout-button {
    display: flex;
    align-items: center;
    width: 100%;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Dashboard Table
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: rgba(255, 255, 255, .04);
}

.table th {
    text-align: left;
    padding: 18px 22px;
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.table td {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Setting Row
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-title {
    font-weight: 700;
}

.setting-description {
    margin-top: 6px;
    font-size: .92rem;
    color: var(--text-muted);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Toggle Switch
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.switch {
    position: relative;
    width: 58px;
    height: 30px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #40444B;
    border-radius: 999px;
    transition: var(--transition);
}

.slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    left: 3px;
    top: 3px;
    transition: var(--transition);
}

.switch input:checked + .slider {
    background: var(--success);
}

.switch input:checked + .slider::before {
    transform: translateX(28px);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Dropdown
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    padding: 12px;
    background: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 500;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, .05);
}

.dropdown-item.logout-button {
    display: flex;
    width: 100%;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Progress Bar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Loading Spinner
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, .1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Tooltip
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #000;
    color: white;
    font-size: .8rem;
    padding: 8px 12px;
    border-radius: 10px;
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Footer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Animations & Keyframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-up { animation: fadeUp .8s ease both; }
.fade-in { animation: fadeIn .35s ease; }
.float   { animation: float 4s ease-in-out infinite; }

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Utilities
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }

.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

.p-1 { padding: 12px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 60px; }

.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

.hidden, .d-none { display: none !important; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.grid { display: grid; }

.gap-1 { gap: 12px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 28px; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/*━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    Responsive Styles
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━*/

/* Large Tablets */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 280px 1fr;
    }
    .guild-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablets */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
    }
    .dashboard-main {
        order: 1;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 1200px);
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .hero {
        padding: 80px 0;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .dashboard-header {
        margin-bottom: 30px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .guild-grid {
        grid-template-columns: 1fr;
    }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    .table th,
    .table td {
        padding: 14px;
        font-size: .9rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .card {
        padding: 20px;
    }
    .profile-name {
        font-size: 1.25rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .btn {
        width: 100%;
    }
    .guild-header {
        flex-direction: column;
        text-align: center;
        margin-top: -40px;
    }
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(88, 101, 242, .5);
    outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Print */
@media print {
    body {
        background: white;
        color: black;
    }
    .sidebar,
    .btn,
    .footer {
        display: none;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}