@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

body {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary-glow), 0 0 60px rgba(16, 185, 129, 0.2);
    transition: width 0.15s ease, height 0.15s ease, background 0.3s ease;
    animation: cursorPulse 1.5s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-glow), 0 0 60px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-glow), 0 0 80px rgba(16, 185, 129, 0.3);
    }
}

.cursor-ring {
    position: fixed;
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px rgba(16, 185, 129, 0.05);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, border-width 0.3s ease;
    animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cursor-ring-inner {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 1.5px dashed var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    animation: ringRotateReverse 6s linear infinite;
}

@keyframes ringRotateReverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.cursor-dot.hover {
    width: 14px;
    height: 14px;
    background: var(--primary-hover);
    box-shadow: 0 0 40px var(--primary-glow-strong), 0 0 80px rgba(16, 185, 129, 0.4);
    animation: none;
}

.cursor-ring.hover {
    width: 70px;
    height: 70px;
    border-color: var(--primary-hover);
    border-width: 3px;
    box-shadow: 0 0 50px var(--primary-glow-strong), inset 0 0 50px rgba(16, 185, 129, 0.1);
    animation: ringRotate 4s linear infinite;
}

.cursor-ring-inner.hover {
    width: 50px;
    height: 50px;
    opacity: 1;
    border-color: var(--primary-hover);
    animation: ringRotateReverse 3s linear infinite;
}

.cursor-dot.click {
    width: 4px;
    height: 4px;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.2);
    animation: none;
}

.cursor-ring.click {
    width: 24px;
    height: 24px;
    border-color: #ffffff;
    border-width: 4px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    animation: none;
}

.cursor-ring-inner.click {
    width: 16px;
    height: 16px;
    opacity: 0;
    animation: none;
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 99996;
}

[data-theme="dark"] .cursor-dot {
    background: #34d399;
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.5), 0 0 80px rgba(52, 211, 153, 0.2);
}
[data-theme="dark"] .cursor-ring {
    border-color: #34d399;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.3), inset 0 0 40px rgba(52, 211, 153, 0.05);
}
[data-theme="dark"] .cursor-ring-inner {
    border-color: #34d399;
}
[data-theme="dark"] .cursor-dot.hover {
    background: #6ee7b7;
    box-shadow: 0 0 50px rgba(52, 211, 153, 0.7), 0 0 100px rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .cursor-ring.hover {
    border-color: #6ee7b7;
    box-shadow: 0 0 60px rgba(52, 211, 153, 0.5), inset 0 0 60px rgba(52, 211, 153, 0.1);
}
[data-theme="dark"] .cursor-ring-inner.hover {
    border-color: #6ee7b7;
}

.detail-id .copy-btn {
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 700;
    box-shadow: var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.detail-id .copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}
.detail-id .copy-btn:hover::before {
    left: 100%;
}
.detail-id .copy-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--primary-glow-strong);
}
.detail-id .copy-btn:active {
    transform: scale(0.95);
}
.detail-id .copy-btn i {
    font-size: 1.3rem;
}
.detail-id .copy-btn .btn-text {
    font-size: 1.15rem;
}
.detail-id .copy-btn.copied {
    background: var(--success);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
}

.contact-box .copy-contact {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--primary-glow);
    position: relative;
    overflow: hidden;
}
.contact-box .copy-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.contact-box .copy-contact:hover::before {
    left: 100%;
}
.contact-box .copy-contact:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--primary-glow-strong);
}
.contact-box .copy-contact:active {
    transform: scale(0.95);
}
.contact-box .copy-contact i {
    font-size: 1.1rem;
}
.contact-box .copy-contact .btn-text {
    font-size: 1rem;
}
.contact-box .copy-contact.copied {
    background: var(--success);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
}

.support-item .support-copy {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--primary-glow);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.support-item .support-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.support-item .support-copy:hover::before {
    left: 100%;
}
.support-item .support-copy:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--primary-glow-strong);
}
.support-item .support-copy:active {
    transform: scale(0.95);
}
.support-item .support-copy i {
    font-size: 1.1rem;
}
.support-item .support-copy .btn-text {
    font-size: 1rem;
}
.support-item .support-copy.copied {
    background: var(--success);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.6);
}

[data-theme="dark"] .detail-id .copy-btn {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.35);
}
[data-theme="dark"] .detail-id .copy-btn:hover {
    box-shadow: 0 0 70px rgba(52, 211, 153, 0.55);
}
[data-theme="dark"] .contact-box .copy-contact {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.35);
}
[data-theme="dark"] .contact-box .copy-contact:hover {
    box-shadow: 0 0 70px rgba(52, 211, 153, 0.55);
}
[data-theme="dark"] .support-item .support-copy {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.35);
}
[data-theme="dark"] .support-item .support-copy:hover {
    box-shadow: 0 0 70px rgba(52, 211, 153, 0.55);
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    opacity: 0.7;
    transition: background var(--transition), opacity var(--transition);
}

[data-theme="dark"] .bg-overlay {
    background: #0a0a0f;
    opacity: 0.85;
}

.container,
.support-fab,
.support-modal-overlay {
    position: relative;
    z-index: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --card: rgba(255, 255, 255, 0.85);
    --card-hover: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #d1fae5;
    --primary-dark: #064e3b;
    --primary-glow: 0 0 30px rgba(16, 185, 129, 0.3);
    --primary-glow-strong: 0 0 60px rgba(16, 185, 129, 0.5);
    --primary-gradient: linear-gradient(135deg, #10b981, #34d399);
    
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    
    --font-display: 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Vazirmatn', 'Inter', 'Segoe UI', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0a0a0f;
    --bg-secondary: #14141e;
    --card: rgba(26, 26, 46, 0.85);
    --card-hover: rgba(26, 26, 46, 0.95);
    --text: #e8eef2;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1a2a2a;
    --border-light: #1a1a2e;
    
    --primary: #34d399;
    --primary-hover: #6ee7b7;
    --primary-light: #064e3b;
    --primary-dark: #ecfdf5;
    --primary-glow: 0 0 40px rgba(52, 211, 153, 0.25);
    --primary-glow-strong: 0 0 80px rgba(52, 211, 153, 0.4);
    --primary-gradient: linear-gradient(135deg, #34d399, #6ee7b7);
    
    --secondary: #94a3b8;
    --secondary-hover: #cbd5e1;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(52, 211, 153, 0.08);
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
    padding: 1.5rem;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    box-shadow: var(--primary-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--shadow-glow);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .navbar {
    border-color: rgba(52, 211, 153, 0.2);
    box-shadow: var(--shadow), 0 0 40px rgba(52, 211, 153, 0.05);
}
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: var(--primary-glow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: var(--font-display);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition);
}
.logo i {
    color: var(--primary);
    font-size: 1.6rem;
    filter: drop-shadow(var(--primary-glow));
}
.logo span {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .theme-toggle {
    border-color: rgba(52, 211, 153, 0.3);
}
.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: var(--primary-glow);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.2rem 0;
}

.category-btn {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-family: var(--font-body);
}
[data-theme="dark"] .category-btn {
    border-color: rgba(52, 211, 153, 0.2);
}
.category-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .category-btn:hover {
    box-shadow: var(--primary-glow);
}
.category-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--primary-glow);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.item-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
}
[data-theme="dark"] .item-card {
    border-color: rgba(52, 211, 153, 0.1);
}
.item-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
[data-theme="dark"] .item-card:hover {
    box-shadow: var(--shadow-lg), 0 0 50px rgba(52, 211, 153, 0.08);
}
.item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--primary-glow);
}
.item-card:hover::after {
    opacity: 1;
}

.item-image {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-image .no-image {
    opacity: 0.3;
    font-size: 3.5rem;
}

.item-info {
    padding: 1rem 1.2rem 1.2rem;
}
.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-body);
    margin-bottom: 0.2rem;
}
[data-theme="dark"] .item-name {
    color: #ecfdf5;
}
.item-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}
.item-category i {
    font-size: 0.7rem;
    color: var(--primary);
}
.item-description-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    opacity: 0.7;
    font-family: var(--font-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.item-view-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    box-shadow: var(--primary-glow);
}
.item-card:hover .item-view-hint {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.2;
    color: var(--primary);
}
.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 700;
}
.empty-state p {
    font-family: var(--font-body);
    color: var(--text-muted);
}

.detail-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.detail-card {
    max-width: 750px;
    width: 100%;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    box-shadow: var(--primary-glow);
}

.detail-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-image .no-image {
    font-size: 6rem;
    color: var(--text-muted);
    opacity: 0.2;
}

.detail-name {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 1rem;
}
[data-theme="dark"] .detail-category {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.detail-description {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    text-align: right;
    transition: var(--transition);
}
.detail-description:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.detail-description .desc-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}
.detail-description .desc-label i {
    color: var(--primary);
}
.detail-description .desc-text {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text);
    font-family: var(--font-body);
}
.detail-description .desc-text:empty::before {
    content: 'توضیحاتی برای این ایتم ثبت نشده است.';
    color: var(--text-muted);
    opacity: 0.5;
    font-style: italic;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: right;
}
.detail-info .info-item {
    background: var(--bg-secondary);
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.detail-info .info-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.detail-info .info-item .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
}
.detail-info .info-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-body);
}
.detail-info .info-item .value i {
    color: var(--primary);
    margin-left: 4px;
}
.detail-info .info-item.full-width {
    grid-column: 1 / -1;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.contact-box {
    background: var(--bg-secondary);
    padding: 1.2rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.contact-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}
.contact-box .contact-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}
.contact-box .contact-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.contact-box .contact-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    direction: ltr;
    font-family: var(--font-body);
    word-break: break-all;
}

.edit-contact-btn {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    font-family: var(--font-body);
}
.edit-contact-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.detail-id {
    background: var(--bg-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.detail-id .id-value {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.back-btn {
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--primary-glow);
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
}
.back-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--primary-glow-strong);
}

.detail-not-found {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}
.detail-not-found i {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}
.detail-not-found h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    color: var(--text);
}
.detail-not-found p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.support-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg), var(--primary-glow);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .support-fab {
    box-shadow: var(--shadow-lg), 0 0 60px rgba(52, 211, 153, 0.3);
}
.support-fab:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-xl), var(--primary-glow-strong);
}
.support-fab:active {
    transform: scale(0.95);
}

.support-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease;
}
[data-theme="dark"] .support-modal-overlay {
    background: rgba(10, 10, 15, 0.85);
}
.support-modal-overlay.active {
    display: flex;
}
@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

.support-modal {
    max-width: 440px;
    width: 100%;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    border: 1px solid var(--border);
}
[data-theme="dark"] .support-modal {
    border-color: rgba(52, 211, 153, 0.15);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(52, 211, 153, 0.05);
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
[data-theme="dark"] .support-modal-header {
    border-bottom-color: rgba(52, 211, 153, 0.1);
}
.support-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    color: var(--text);
}
.support-modal-header h3 i {
    color: var(--primary);
}
.support-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.support-modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.support-modal-body {
    padding: 1.8rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}
[data-theme="dark"] .support-item {
    border-color: rgba(52, 211, 153, 0.08);
}
.support-item:last-child {
    margin-bottom: 0;
}
.support-item:hover {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: var(--shadow-glow);
}
.support-item .support-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}
[data-theme="dark"] .support-item .support-icon {
    background: rgba(52, 211, 153, 0.12);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.1);
}
.support-item .support-info {
    flex: 1;
    min-width: 0;
}
.support-item .support-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-body);
    font-weight: 600;
}
.support-item .support-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    direction: ltr;
    font-family: var(--font-body);
    word-break: break-all;
}

.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-body);
}
[data-theme="dark"] .footer {
    border-top-color: rgba(52, 211, 153, 0.1);
}
.footer .divider-line {
    width: 60px;
    height: 3px;
    margin: 0 auto 1.2rem;
    background: var(--primary-gradient);
    border-radius: 10px;
    opacity: 0.5;
    box-shadow: var(--primary-glow);
}
.footer span {
    color: var(--primary);
    font-weight: 600;
}
.footer .minecraft-icons {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.2rem;
}
.footer .minecraft-icons i {
    color: var(--text-muted);
    transition: var(--transition);
    cursor: default;
}
.footer .minecraft-icons i:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    max-width: 460px;
    width: 100%;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}
.modal-box h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-family: var(--font-body);
    color: var(--text);
}
.modal-box h3 i {
    color: var(--primary);
}
.modal-box .form-group {
    margin-bottom: 1.2rem;
}
.modal-box .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}
.modal-box .form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--font-body);
    direction: ltr;
}
.modal-box .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--primary-glow);
}
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}
.modal-actions .btn {
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-family: var(--font-body);
}
.modal-actions .btn-save {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--primary-glow);
}
.modal-actions .btn-save:hover {
    box-shadow: var(--primary-glow-strong);
    transform: translateY(-2px);
}
.modal-actions .btn-cancel {
    background: var(--danger);
    color: #fff;
}
.modal-actions .btn-cancel:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .navbar {
        padding: 0.6rem 1.2rem;
        border-radius: var(--radius);
    }
    .logo {
        font-size: 1.4rem;
    }
    .logo i {
        font-size: 1.2rem;
    }
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .custom-cursor {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    
    .support-fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        left: 20px;
    }
    .support-modal {
        margin: 0.5rem;
    }
    .support-modal-header {
        padding: 1rem 1.2rem;
    }
    .support-modal-header h3 {
        font-size: 1rem;
    }
    .support-modal-body {
        padding: 1.2rem;
    }
    .support-item {
        padding: 0.7rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .support-item .support-copy {
        width: 100%;
        text-align: center;
        padding: 0.3rem;
    }
    
    .detail-wrapper {
        padding: 1rem;
    }
    .detail-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    .detail-image {
        height: 200px;
    }
    .detail-name {
        font-size: 1.8rem;
    }
    .detail-info {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .detail-info .info-item.full-width {
        grid-column: 1;
    }
    .contact-section {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .detail-id {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
    .detail-description {
        padding: 1rem;
    }
    .detail-description .desc-text {
        font-size: 0.95rem;
    }
    .modal-box {
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    .navbar {
        padding: 0.5rem 0.8rem;
        border-radius: 12px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo i {
        font-size: 1rem;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .item-image {
        height: 120px;
    }
    .item-info {
        padding: 0.6rem 0.8rem 0.8rem;
    }
    .item-name {
        font-size: 0.85rem;
    }
    .item-category {
        font-size: 0.7rem;
    }
    .item-description-preview {
        font-size: 0.7rem;
    }
    .item-view-hint {
        font-size: 0.5rem;
        padding: 2px 8px;
        top: 8px;
        right: 8px;
    }
    
    .support-fab {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        bottom: 15px;
        left: 15px;
    }
    .support-modal-header {
        padding: 0.8rem 1rem;
    }
    .support-modal-header h3 {
        font-size: 0.9rem;
    }
    .support-modal-body {
        padding: 1rem;
    }
    .support-item {
        padding: 0.5rem 0.8rem;
    }
    .support-item .support-value {
        font-size: 0.85rem;
    }
    
    .detail-wrapper {
        padding: 0.5rem;
    }
    .detail-card {
        padding: 1rem;
        border-radius: 12px;
    }
    .detail-image {
        height: 150px;
        border-radius: 8px;
    }
    .detail-name {
        font-size: 1.4rem;
    }
    .detail-description {
        padding: 0.8rem;
    }
    .detail-description .desc-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    .detail-info .info-item {
        padding: 0.7rem 0.8rem;
    }
    .detail-info .info-item .value {
        font-size: 0.9rem;
    }
    .contact-box {
        padding: 0.8rem;
    }
    .contact-box .contact-icon {
        font-size: 1.4rem;
    }
    .detail-id {
        font-size: 0.65rem;
        padding: 0.5rem 0.8rem;
        gap: 6px;
    }
    .detail-actions {
        flex-direction: column;
        align-items: center;
    }
    .back-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .modal-box {
        padding: 1rem;
    }
    .modal-box h3 {
        font-size: 1.1rem;
    }
    .modal-actions {
        flex-direction: column;
    }
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}