:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --accent: #ff6b6b;
    --accent-1: #76250d;
    --accent-2: #0D5E76;
    --muted: #6b7280;
    --nav-bg: #0f1724;
    --max-w: 1100px;
    --radius: 12px;
    --header-h: 72px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #0b1220;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background: linear-gradient(180deg, var(--nav-bg), #0b1220);
    color: #ffffff;
    padding: 0;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

.sidebar {
    background: #35424a;
    color: #ffffff;
    padding: 15px;
    width: 250px;
    float: left;
    height: 100vh;
}

.main-content {
    margin-left: 260px;
    padding: 20px;
}

h1,
h2,
h3 {
    color: #333;
}

.hero h1 {
    font-size: 5rem;
    text-align: center;
    color: #333;
    padding: 20px;
    border: 3px solid #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

/* Navigation as tabs */
.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
}

.nav .brand {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Poppins', system-ui, sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav .nav-links {
    display: flex;
    gap: 10px
}

.nav .nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    height: 3px;
    background: transparent;
    border-radius: 3px;
    transition: background .18s ease, transform .18s ease;
}

.nav .nav-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* show pressed / focus state so Home stays visible when clicked */
.nav .nav-links a:active,
.nav .nav-links a:focus {
    outline: none;
    transform: translateY(-1px) scale(0.98);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.nav .nav-links a.active::after {
    background: var(--accent-1);
    transform: translateY(0);
}

/* Centered hero on index */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 20px;
}

.hero .card {
    background: var(--card);
    padding: 48px 56px;
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(13, 24, 40, 0.08);
    max-width: 900px;
    transform: translateY(6px);
    opacity: 0;
    animation: fadeUp .7s ease .06s forwards;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 12px;
    color: #071032;
    font-family: 'Poppins', system-ui, sans-serif
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 20px
}

.hero a.cta {
    display: inline-block;
    padding: 12px 22px;
    background: var(--accent-2);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(13, 94, 118, 0.14);
    transition: transform .12s ease, box-shadow .12s ease
}

.hero a.cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 94, 118, 0.18)
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:760px) {
    .hero {
        padding: 30px 16px
    }

    .hero .card {
        padding: 26px
    }

    .hero h1 {
        font-size: 1.6rem
    }
}

/* Top notification shown when dashboard is blocked */
.top-notice {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2200;
    width: calc(100% - 40px);
    max-width: var(--max-w);
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.top-notice-inner {
    width: 100%;
    box-sizing: border-box;
    background: rgba(239, 68, 68, 0.25);
    /* red with 25% opacity */
    border: 2px solid #ef4444;
    /* red border */
    color: #b91c1c;
    /* darker red text */
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), opacity .28s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.top-notice.visible .top-notice-inner {
    opacity: 1;
    transform: translateY(0)
}

/* close button with circular timer */
.top-notice-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.top-notice-close .notice-timer {
    display: block;
    width: 30px;
    height: 30px;
}

.top-notice-close .timer-bg {
    stroke: rgba(185, 28, 28, 0.12);
}

.top-notice-close .timer-progress {
    stroke: #ef4444;
    stroke-dasharray: 94;
    stroke-dashoffset: 94;
    transform: rotate(-90deg);
    transform-origin: 18px 18px;
}

.top-notice-close .close-x {
    position: absolute;
    font-size: 16px;
    line-height: 1;
    color: #7f1d1d;
    pointer-events: none
}

.top-notice-content {
    flex: 1;
    text-align: left;
    padding-right: 6px
}

/* Features Section */
.features {
    max-width: 1100px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0b1220;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(11, 18, 32, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e6e9ee;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(11, 18, 32, 0.12);
    border-color: var(--accent-1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 16px 0 12px;
    color: #0b1220;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar layout for ads */
.main-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    align-items: flex-start;
}

.sidebar-left,
.sidebar-right {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-left {
    order: 1;
}

.main-container>main,
.main-container>.hero,
.main-container>.dashboard {
    flex: 1;
    order: 2;
    min-width: 0;
}

.sidebar-right {
    order: 3;
}

.ad-space {
    background: white;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    text-align: center;
}

.ad-space ins {
    display: block !important;
}

/* Responsive: hide sidebars on smaller screens */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
        max-width: 300px;
    }

    .sidebar-left,
    .sidebar-right {
        order: unset;
    }

    .main-container>main,
    .main-container>.hero,
    .main-container>.dashboard {
        order: unset;
    }
}

/* Dark Mode Toggle Switch - Apple iOS 26 Liquid Glass Design */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.toggle-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.toggle-checkbox:checked+.toggle-label {
    background: linear-gradient(135deg, rgba(13, 94, 118, 0.3), rgba(13, 94, 118, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(13, 94, 118, 0.5);
    box-shadow:
        0 8px 32px rgba(13, 94, 118, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-inner {
    font-size: 16px;
    position: absolute;
    left: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    z-index: 2;
    line-height: 1;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.toggle-checkbox:checked+.toggle-label .toggle-inner {
    opacity: 1;
    left: auto;
    right: 8px;
    transform: scale(1);
}

.toggle-switch {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 24px rgba(31, 38, 135, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset -1px -1px 3px rgba(0, 0, 0, 0.08),
        inset 1px 1px 3px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.toggle-checkbox:checked+.toggle-label .toggle-switch {
    transform: translateX(29px);
    background: linear-gradient(135deg, rgba(13, 94, 118, 0.9), rgba(13, 94, 118, 0.7));
    box-shadow:
        0 8px 24px rgba(13, 94, 118, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset -1px -1px 3px rgba(0, 0, 0, 0.1),
        inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    border-color: rgba(13, 94, 118, 0.6);
}

.toggle-inner::before {
    content: "☀️";
    display: inline-block;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
    width: 100%;
    text-align: center;
}

.toggle-checkbox:checked+.toggle-label .toggle-inner::before {
    content: "🌙";
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
    width: 100%;
    text-align: center;
}

/* Dark Mode Styles */
body.dark-mode {
    --bg: #1a1a1a;
    --card: #2d2d2d;
    --muted: #b0b0b0;
    --accent-1: #76250d;
    --accent-2: #0D5E76;
}

body.dark-mode {
    background: var(--bg);
    color: #e0e0e0;
}

body.dark-mode header {
    background: linear-gradient(180deg, #0a0a0a, #000);
}

body.dark-mode .hero .card {
    background: var(--card);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero h1,
body.dark-mode .features h2 {
    color: #e0e0e0;
}

body.dark-mode .hero p,
body.dark-mode .feature-card p {
    color: var(--muted);
}

body.dark-mode .feature-card {
    background: var(--card);
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .feature-card h3 {
    color: #e0e0e0;
}

body.dark-mode .form-container {
    background: var(--card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-container input,
body.dark-mode .form-container label {
    color: #e0e0e0;
    background: #3a3a3a;
    border-color: #444;
}

body.dark-mode .form-container input::placeholder {
    color: #999;
}

body.dark-mode .dashboard {
    background: var(--card);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

body.dark-mode .ad-space {
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation styling for dark mode - keep white and glowy */
body.dark-mode .nav .brand {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

body.dark-mode .nav .nav-links a {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

body.dark-mode .nav .nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

body.dark-mode .nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

body.dark-mode .nav .nav-links a:active,
body.dark-mode .nav .nav-links a:focus {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.45);
}

/* Tools Discovery Section */
.tools-discovery {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tools-discovery h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #0b1220;
}

/* Featured Tools */
.featured-tools {
    margin-bottom: 30px;
}

.featured-tools h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0b1220;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.featured-card {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.featured-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.featured-card h5 {
    margin: 10px 0;
    font-size: 16px;
}

.featured-user {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* Tools Browse */
.tools-browse {
    margin-top: 20px;
}

.filter-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-section label {
    font-weight: 600;
    color: #0b1220;
}

.multi-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

/* Filter Dropdown */
.filter-menu-wrapper {
    position: relative;
    display: inline-block;
}

.filter-trigger {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0b1220;
    transition: all 0.2s ease;
}

.filter-trigger:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 200px;
    margin-top: 5px;
}

.filter-dropdown.active {
    display: block;
}

.filter-menu {
    padding: 8px 0;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.filter-item:hover {
    background: #f3f4f6;
}

.filter-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tools-table thead {
    background: #f3f4f6;
}

.tools-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #0b1220;
    border-bottom: 2px solid #e5e7eb;
}

.tools-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
}

.tool-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.tool-row:hover {
    background: #f9fafb;
}

.category-badge {
    display: inline-block;
    padding: 3px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* User Profile Card in Tool Row */
.user-cell {
    position: relative;
    display: inline-block;
}

.user-profile-card {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.user-cell:hover .user-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.user-profile-card .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.user-profile-card .profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-profile-card .profile-username {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0b1220;
}

.user-profile-card .profile-action {
    margin: 0;
    font-size: 11px;
    color: #0D5E76;
    font-weight: 500;
}

/* Dark mode for user profile card */
body.dark-mode .user-profile-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .user-profile-card .profile-username {
    color: #f3f4f6;
}

body.dark-mode .user-profile-card .profile-pic {
    border-color: #374151;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 15px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Dark mode support */
body.dark-mode .tools-discovery {
    background: #1f2937;
    color: #f3f4f6;
    border: 1px solid rgba(13, 94, 118, 0.3);
}

body.dark-mode .tools-discovery h3,
body.dark-mode .tools-discovery h4 {
    color: #f3f4f6;
}

body.dark-mode .filter-section label {
    color: #f3f4f6;
}

body.dark-mode .multi-select {
    background: #111827;
    color: #f3f4f6;
    border-color: #374151;
}

body.dark-mode .tools-table thead {
    background: #1f2937;
}

body.dark-mode .tools-table th {
    color: #f3f4f6;
    border-bottom-color: #374151;
    background: #1f2937;
}

body.dark-mode .tools-table {
    background: #111827;
}

body.dark-mode .tools-table td {
    color: #e0e0e0;
    border-bottom-color: #374151;
    background: #111827;
}

body.dark-mode .tool-row {
    background: #1f2937;
}

body.dark-mode .tool-row:hover {
    background: #2a3f5f;
}

body.dark-mode .category-badge {
    background: #374151;
    color: #f3f4f6;
    border: 1px solid rgba(13, 94, 118, 0.3);
}

body.dark-mode .filter-trigger {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
    transition: all 0.2s ease;
}

body.dark-mode .filter-trigger:hover {
    background: #2a3f5f;
    border-color: var(--accent-2);
    box-shadow: 0 0 10px rgba(13, 94, 118, 0.3);
}

body.dark-mode .filter-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-item {
    color: #d1d5db;
}

body.dark-mode .filter-item:hover {
    background: #374151;
}

/* Featured Tools Section */
.featured-tools-section {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-tools-section h3 {
    color: #0b1220 !important;
}

/* Featured Tools Dark Mode */
body.dark-mode .featured-tools-section {
    background: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .featured-tools-section h3 {
    color: #f3f4f6 !important;
}

/* Featured Card Dark Mode */
body.dark-mode .featured-card {
    background: linear-gradient(135deg, #2a3f5f 0%, #1a2834 100%);
    border: 2px solid rgba(13, 94, 118, 0.5);
    color: #f3f4f6;
    transition: all 0.3s ease;
}

body.dark-mode .featured-card:hover {
    border-color: var(--accent-2);
    box-shadow: 0 8px 16px rgba(13, 94, 118, 0.4), 0 0 20px rgba(13, 94, 118, 0.3);
}

body.dark-mode .featured-card h5 {
    color: #f3f4f6;
}

body.dark-mode .featured-user {
    color: #d1d5db;
}

/* Tool ID and Account ID Display Styling */
#detailToolId,
#accountId {
    background: #f3f4f6;
    color: #1f2937;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    word-break: break-all;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
}

#detailToolId:hover,
#accountId:hover {
    background: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Dark Mode - Tool ID and Account ID */
body.dark-mode #detailToolId,
body.dark-mode #accountId {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

body.dark-mode #detailToolId:hover,
body.dark-mode #accountId:hover {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply animations to key elements */
.modal-content {
    animation: slideIn 0.3s ease-out;
}

.featured-card {
    animation: fadeIn 0.4s ease-out;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tool-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-row:hover {
    background: rgba(76, 175, 80, 0.1);
}

body.dark-mode .tool-row:hover {
    background: rgba(76, 175, 80, 0.15);
}

.category-badge {
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* ===== COMPREHENSIVE ANIMATION & DESIGN EFFECTS ===== */

/* Bloom/Glow Effects */
@keyframes bloomPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(13, 94, 118, 0.3), 0 0 40px rgba(13, 94, 118, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(13, 94, 118, 0.6), 0 0 60px rgba(13, 94, 118, 0.3);
    }
}

@keyframes bloomAccent {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(118, 37, 13, 0.3), 0 0 30px rgba(118, 37, 13, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(118, 37, 13, 0.6), 0 0 50px rgba(118, 37, 13, 0.3);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(13, 94, 118, 0.5), 0 0 10px rgba(13, 94, 118, 0.3);
    }

    50% {
        text-shadow: 0 0 10px rgba(13, 94, 118, 0.8), 0 0 20px rgba(13, 94, 118, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotateZ(0deg);
    }

    15% {
        transform: rotateZ(-5deg);
    }

    30% {
        transform: rotateZ(5deg);
    }

    45% {
        transform: rotateZ(-5deg);
    }

    60% {
        transform: rotateZ(5deg);
    }

    75% {
        transform: rotateZ(-2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.2);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Section Enhancements */
.hero .card {
    border: 1px solid rgba(13, 94, 118, 0.3);
}

.hero h1 {
    animation: glow 2s ease-in-out infinite;
    letter-spacing: 1px;
}

.hero a.cta {
    animation: floatUp 1s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.hero a.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.hero a.cta:hover::before {
    left: 100%;
}

.hero a.cta:hover {
    animation: heartBeat 0.6s ease-in-out;
}

/* Feature Cards with Bloom */
.feature-card {
    animation: fadeInScale 0.6s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 94, 118, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 94, 118, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
    animation: rotateSpin 20s linear infinite;
}

.feature-card:hover {
    animation: bloomAccent 1s ease-in-out;
}

.feature-icon {
    animation: bounce 2s ease-in-out infinite;
    font-size: 48px;
}

/* Navigation Enhancements */
.nav .brand {
    animation: floatDown 0.6s ease-out;
}

.nav .nav-links a {
    animation: fadeInScale 0.5s ease-out backwards;
}

.nav .nav-links a:nth-child(1) {
    animation-delay: 0s;
}

.nav .nav-links a:nth-child(2) {
    animation-delay: 0.1s;
}

.nav .nav-links a:nth-child(3) {
    animation-delay: 0.2s;
}

.nav .nav-links a:nth-child(4) {
    animation-delay: 0.3s;
}

.nav .nav-links a:nth-child(5) {
    animation-delay: 0.4s;
}

.nav .nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-2);
    transition: width 0.3s ease;
}

.nav .nav-links a:hover::before {
    width: 100%;
}

/* Tools Table Enhancements */
.tools-table {
    width: 100%;
    table-layout: fixed;
}

.tools-table th {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tools-table th:nth-child(1) {
    width: 20%;
}

.tools-table th:nth-child(2) {
    width: 25%;
}

.tools-table th:nth-child(3) {
    width: 15%;
}

.tools-table th:nth-child(4) {
    width: 40%;
}

.tool-row {
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-row:hover::before {
    transform: scaleY(1);
}

.tool-row:hover {
    background: linear-gradient(90deg, rgba(13, 94, 118, 0.05) 0%, transparent 100%);
}

/* Featured Cards Bloom */
.featured-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.featured-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover::after {
    opacity: 1;
}

.featured-icon {
    animation: bounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-icon {
    animation: heartBeat 0.6s ease-in-out;
}

/* Modal Enhancements */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(13, 94, 118, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(13, 94, 118, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, rgba(13, 94, 118, 0.05) 0%, transparent 100%);
    border-bottom: 2px solid rgba(13, 94, 118, 0.1);
    animation: slideInLeft 0.5s ease-out;
}

.modal-body {
    animation: slideInRight 0.5s ease-out 0.1s both;
}

.modal-footer {
    background: linear-gradient(135deg, transparent 0%, rgba(13, 94, 118, 0.05) 100%);
    animation: slideInUp 0.5s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Button Animations */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: floatUp 0.6s ease-out;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    animation: bloomPulse 0.6s ease-in-out;
}

/* Filter Dropdown Animations */
.filter-trigger {
    animation: fadeInScale 0.5s ease-out;
    position: relative;
}

.filter-trigger::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

.filter-trigger.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.filter-dropdown {
    animation: slideInUp 0.3s ease-out;
    border: 1px solid rgba(13, 94, 118, 0.2);
}

.filter-item {
    position: relative;
    transition: all 0.2s ease;
    animation: floatUp 0.3s ease-out backwards;
}

.filter-item:nth-child(1) {
    animation-delay: 0s;
}

.filter-item:nth-child(2) {
    animation-delay: 0.05s;
}

.filter-item:nth-child(3) {
    animation-delay: 0.1s;
}

.filter-item:nth-child(4) {
    animation-delay: 0.15s;
}

.filter-item:nth-child(5) {
    animation-delay: 0.2s;
}

.filter-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-2);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.filter-item:hover::before {
    transform: scaleY(1);
}

/* Search Bar Animation */
#dashboardSearch {
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#dashboardSearch input {
    transition: all 0.3s ease;
    border: 2px solid rgba(13, 94, 118, 0.2);
}

#dashboardSearch input:focus {
    box-shadow: 0 0 20px rgba(13, 94, 118, 0.4), inset 0 0 20px rgba(13, 94, 118, 0.05);
    animation: bloomPulse 0.6s ease-in-out;
}

#dashboardSearch button {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#dashboardSearch:hover button {
    opacity: 1;
}

@keyframes rotateSpinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Category Badge Animations */
.category-badge {
    position: relative;
    animation: fadeInScale 0.4s ease-out;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.category-badge:hover::before {
    left: 100%;
}

/* Tool ID & Account ID Bloom */
.tool-id-display {
    position: relative;
    animation: fadeInScale 0.6s ease-out;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.tool-id-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 94, 118, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-id-display:hover::before {
    opacity: 1;
}

/* Featured Tools Section */
.featured-tools-section {
    animation: floatUp 0.8s ease-out 0.2s both;
}

.featured-tools-section h3 {
    animation: slideInLeft 0.6s ease-out;
}

/* Profile Form Enhancements */
.form-group {
    animation: floatUp 0.5s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0s;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.form-group:nth-child(4) {
    animation-delay: 0.3s;
}

.form-group:nth-child(5) {
    animation-delay: 0.4s;
}

.form-group input,
.form-group textarea,
.form-group select {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid rgba(13, 94, 118, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    box-shadow: 0 0 20px rgba(13, 94, 118, 0.3), inset 0 0 20px rgba(13, 94, 118, 0.05);
    border-color: var(--accent-2);
    animation: bloomPulse 0.6s ease-in-out;
}

.form-group label {
    animation: slideInLeft 0.4s ease-out;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dark Mode Animations */
body.dark-mode .feature-card::before {
    background: radial-gradient(circle, rgba(13, 94, 118, 0.15) 0%, transparent 70%);
}

body.dark-mode .hero .card {
    border-color: rgba(13, 94, 118, 0.4);
}

body.dark-mode .modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(13, 94, 118, 0.15);
    border-color: rgba(13, 94, 118, 0.3);
}

body.dark-mode .modal-body {
    color: #d1d5db;
}

body.dark-mode .modal-body p {
    color: #d1d5db;
}

body.dark-mode .modal-footer {
    border-top-color: #374151;
}

body.dark-mode .tool-id-display {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

body.dark-mode .tool-id-display::before {
    background: radial-gradient(circle, rgba(13, 94, 118, 0.2) 0%, transparent 70%);
}

body.dark-mode .form-group input:focus {
    box-shadow: 0 0 20px rgba(13, 94, 118, 0.5), inset 0 0 20px rgba(13, 94, 118, 0.1);
}

/* Loading Animation */
@keyframes loading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loading {
    background: linear-gradient(-45deg, #f3f4f6, #e5e7eb, #f3f4f6, #e5e7eb);
    background-size: 200% 200%;
    animation: loading 1.5s ease infinite;
}

body.dark-mode .loading {
    background: linear-gradient(-45deg, #374151, #4b5563, #374151, #4b5563);
}