:root {
    /* CURATED DESIGN SYSTEM - AURA ELITE FROST THEME */
    --primary: #5d5dff;
    --primary-glow: rgba(93, 93, 255, 0.4);
    --secondary: #92a3fd;
    --bg-aura: #0a0a0c;
    --surface-aura: rgba(28, 28, 30, 0.7);
    --text-aura: #f5f5f7;
    --text-aura-muted: #86868b;
    --border-aura: rgba(255, 255, 255, 0.08);
    --glass-aura: rgba(255, 255, 255, 0.03);

    --radius-aura-lg: 32px;
    --radius-aura-md: 20px;
    --radius-aura-sm: 12px;

    --ease-aura: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-aura: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-aura);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(93, 93, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(146, 163, 253, 0.1) 0%, transparent 40%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-aura);
    overflow: hidden;
}

#app-container {
    width: 420px;
    height: 88vh;
    background: var(--surface-aura);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-aura);
    border-radius: var(--radius-aura-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Glass Grain Effect */
#app-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.header-aura {
    padding: 2rem 1.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 10;
}

.brand-aura h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a2a2a2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-aura span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.settings-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--glass-aura);
    border: 1px solid var(--border-aura);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s var(--ease-aura);
}

.settings-btn:hover {
    background: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.main-aura {
    flex: 1;
    overflow-y: hidden;
    padding: 1.2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 10;
}

.main-aura::-webkit-scrollbar {
    display: none;
}

.section-aura {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.aura-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-aura-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 0.25rem;
}

.grid-aura {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* BUTTON DESIGN - PREMIUM LAYERED STYLE */
.button-aura {
    height: 56px;
    background: var(--glass-aura);
    border: 1px solid var(--border-aura);
    border-radius: var(--radius-aura-md);
    color: var(--text-aura);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s var(--ease-aura);
    position: relative;
    overflow: hidden;
}

.button-aura::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.button-aura i {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: transform 0.4s var(--ease-aura);
}

.button-aura:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.button-aura:active {
    transform: scale(0.96);
}

.button-aura.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.button-aura.active i {
    transform: scale(1.2);
    opacity: 1;
}

.button-aura.danger.active {
    background: #ff3b30;
    border-color: #ff3b30;
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.3);
}

/* LOGS - SYNTAX HIGHLIGHTED PANELS */
.logs-aura {
    height: 320px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-aura-md);
    border: 1px solid var(--border-aura);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logs-aura-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-aura);
    display: flex;
    justify-content: space-between;
}

.log-view-aura {
    flex: 1;
    padding: 1.25rem 1rem;
    overflow-y: overlay;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.7;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

/* CUSTOM MODERN SCROLLBAR */
.log-view-aura::-webkit-scrollbar {
    width: 4px;
}

.log-view-aura::-webkit-scrollbar-track {
    background: transparent;
}

.log-view-aura::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.log-view-aura::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.log-line-aura {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    animation: aura-slide-in 0.3s var(--ease-aura);
}

@keyframes aura-slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-ts-aura {
    color: var(--primary);
    opacity: 0.6;
}

.log-key-aura {
    color: var(--secondary);
    font-weight: 700;
}

.log-coord-aura {
    color: #50e3c2;
    font-weight: 700;
}

/* MODAL - BOTTOM SHEET BLUR */
.overlay-aura {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s var(--ease-aura);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-aura.active {
    opacity: 1;
    pointer-events: auto;
}

.sheet-aura {
    width: 380px;
    background: #1c1c1e;
    border: 1px solid var(--border-aura);
    border-radius: var(--radius-aura-lg);
    padding: 2.5rem 2rem;
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    transition: all 0.6s var(--spring-aura);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.overlay-aura.active .sheet-aura {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.row-aura {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-aura);
}

.row-aura:last-child {
    border: none;
}

.input-aura {
    width: 70px;
    height: 42px;
    background: var(--glass-aura);
    border: 1px solid var(--border-aura);
    border-radius: 12px;
    color: var(--primary);
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    outline: none;
}

.input-aura:focus {
    border-color: var(--primary);
    background: rgba(93, 93, 255, 0.05);
}

/* TOAST - iOS FLOATING PILL */
.toast-aura {
    position: fixed;
    top: 2rem;
    background: rgba(44, 44, 46, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-aura);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    transform: translateY(-150%) scale(0.8);
    opacity: 0;
    transition: all 0.7s var(--spring-aura);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.toast-aura.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* TOGGLE DESIGN */
.switch-aura {
    position: relative;
    width: 50px;
    height: 30px;
}

.switch-aura input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-aura {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.4s var(--ease-aura);
}

.slider-aura:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.4s var(--ease-aura);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

input:checked+.slider-aura {
    background: var(--primary);
}

input:checked+.slider-aura:before {
    transform: translateX(20px);
}

/* FOOTER & COPYRIGHT */
.footer-aura {
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-aura);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.copyright-aura {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-aura-muted);
    letter-spacing: 0.5px;
}

.support-aura {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--glass-aura);
    border: 1px solid var(--border-aura);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    color: var(--text-aura);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-aura);
    border: none;
}

.support-aura:hover {
    background: var(--primary);
    transform: scale(1.05);
}