/* ClipKing CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #0d0e15;
    --card-bg: rgba(22, 24, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    --danger: #ef4444;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --sidebar-width: 280px;
    --feed-width: 480px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
}

/* Background Ambient Glows */
.ambient-glow-1 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, rgba(0,0,0,0) 70%);
    top: -10vw;
    left: -10vw;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.ambient-glow-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, rgba(0,0,0,0) 70%);
    bottom: -10vw;
    right: -10vw;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* App Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    position: relative;
    z-index: 1;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(13, 14, 21, 0.8);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 10;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.logo-icon-svg {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px var(--accent-purple-glow));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.logo-icon-svg:hover {
    transform: scale(1.12) rotate(-6deg);
    filter: drop-shadow(0 0 12px var(--accent-cyan-glow));
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-text span {
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 1px;
}

.nav-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.05);
}

.nav-item.active .item-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Sidebar Ad Banner */
.sidebar-ad {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.sidebar-ad::before {
    content: 'AD';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
}

.sidebar-ad img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.sidebar-ad-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sidebar-ad-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Feed Container (The Swipe Area) */
.feed-container {
    width: var(--feed-width);
    height: 100vh;
    max-height: 860px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 20px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
}

.feed-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Clip Card */
.clip-card {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: auto;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom X Tweet Container */
.tweet-embed-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #151820;
    padding: 1.5rem;
    position: relative;
}

.tweet-mock-card {
    background: #000000;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tweet-user-info {
    display: flex;
    flex-direction: column;
}

.tweet-display-name {
    font-weight: 700;
    color: var(--text-primary);
}

.tweet-username {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tweet-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.tweet-video-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 300px;
    background: #111;
    border-radius: 12px;
    border: 1px dashed var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.tweet-video-placeholder svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

/* Card Floating Overlay (Details & Buttons) */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 5;
}

.overlay-meta {
    pointer-events: auto;
}

.rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.5rem;
}

.rank-badge.rank-other {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.game-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.clip-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.clip-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Floating Actions (Right Side Buttons) */
.action-buttons {
    position: absolute;
    right: 1rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    z-index: 6;
    pointer-events: auto;
}

.action-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
    transform: scale(1.08);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.action-btn.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.2);
}

.action-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Interstitial Ad Card inside Feed */
.ad-card {
    background: linear-gradient(180deg, #1b162b 0%, #0d0c15 100%);
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--glass-border);
}

.ad-card-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.ad-card-media {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #111;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.ad-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.ad-card-cta {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.ad-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-purple-glow);
}

/* Submit Modal & Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141622;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    border: none;
    padding: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-purple-glow);
}

.submit-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Legal Footer */
.legal-footer {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.legal-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200;
}

.toast {
    background: rgba(20, 22, 34, 0.9);
    border-left: 4px solid var(--accent-purple);
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 280px;
    max-width: 400px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-danger {
    border-left-color: var(--danger);
}

.toast.toast-warning {
    border-left-color: var(--accent-cyan);
}

.mobile-submit-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
    z-index: 90;
    transition: all 0.3s ease;
}

.mobile-submit-btn:hover {
    transform: scale(1.08);
}

/* Mobile elements default hidden on desktop */
.mobile-header {
    display: none;
}
.sidebar-overlay {
    display: none;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
        padding: 0 1.5rem;
        background: rgba(13, 14, 21, 0.85);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 990;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Menu Toggle Button (Hamburger) */
    .menu-toggle-btn {
        background: none;
        border: none;
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1001;
        padding: 0;
    }

    .menu-toggle-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Transform Sidebar to Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Slide off-screen */
        width: 280px;
        height: 100%;
        background: #0d0e15;
        border-right: 1px solid var(--glass-border);
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        overflow-y: auto; /* Enable vertical scrolling */
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.6);
        padding-top: 5rem; /* Allow space for hamburger */
        padding-bottom: 2rem;
    }

    .sidebar.active {
        left: 0;
    }

    /* Sidebar overlay background */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .app-container {
        flex-direction: column;
        padding-top: 60px; /* Offset for fixed mobile header */
        height: calc(100vh - 60px);
    }

    .feed-container {
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .mobile-submit-btn {
        display: flex;
        z-index: 980;
    }
}

@media (max-width: 480px) {
    body {
        background-color: #000;
    }
    .app-container {
        width: 100vw;
        height: calc(100vh - 60px);
    }
    .feed-container {
        width: 100vw;
    }
    .action-buttons {
        right: 0.5rem;
    }
}

/* Creator Devices Styles */
.device-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Custom scrollbar for device list */
.device-list-container::-webkit-scrollbar {
    width: 6px;
}
.device-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.device-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.device-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.device-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.05);
}

.device-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.device-item-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.device-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.device-item-link-btn {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--accent-purple-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.device-item-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px var(--accent-purple-glow);
}

/* Device Registration Form Styles */
.device-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.device-input-row .form-input {
    margin-bottom: 0;
}

.remove-row-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.remove-row-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fff;
}

/* Active status for device button in card */
.action-btn.device-active {
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    background: rgba(6, 182, 212, 0.15) !important;
    box-shadow: 0 0 15px var(--accent-cyan-glow) !important;
}

.action-btn.device-active:hover {
    background: rgba(6, 182, 212, 0.25) !important;
    transform: scale(1.08);
}

