.home-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1s ease;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 800;
}

.hero-section h1 .hero-name {
    color: var(--primary);
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: 'Fira Code', 'Cairo', monospace;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::after { transform: scaleX(1); }

.card:hover .card-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--primary);
}

.card-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    transition: 0.4s;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.card-full {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 50px;
    background: linear-gradient(90deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.9) 100%);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.card-full .card-icon {
    font-size: 6rem;
    margin: 0;
    order: 2;
}

.card-full .text-content {
    text-align: right;
    order: 1;
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .card-full {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 25px;
    }
    .card-full .card-icon { margin-bottom: 15px; order: 0; }
    .card-full .text-content { order: 1; text-align: center; }
    .hero-section h1 { font-size: 1.8rem; }
}

.fab-wrapper {
    position: fixed;
    bottom: 70px;
    right: 25px;
    z-index: 999;
}

.fab-main {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.fab-wrapper.active .fab-main {
    transform: rotate(135deg);
    background: var(--accent);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
}

.fab-menu {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fab-item {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s all;
    pointer-events: auto;
}

.fab-wrapper.active .fab-item:nth-child(1) { transform: translate(-80px, 0); opacity: 1; visibility: visible; transition-delay: 0.1s; }
.fab-wrapper.active .fab-item:nth-child(2) { transform: translate(-60px, -60px); opacity: 1; visibility: visible; transition-delay: 0.2s; }
.fab-wrapper.active .fab-item:nth-child(3) { transform: translate(0, -80px); opacity: 1; visibility: visible; transition-delay: 0.3s; }

.fab-item:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 20, 0.9); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
}

.modal-card {
    background: var(--bg-card); width: 90%; max-width: 420px;
    padding: 35px; border-radius: 25px; border: 1px solid var(--primary);
    position: relative; box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    background: transparent; border: none;
    color: var(--primary); font-size: 28px; cursor: pointer;
    z-index: 10000; transition: 0.3s;
}

.close-modal:hover { color: var(--accent); transform: scale(1.1); }

.modal-card h2 {
    color: #fff; text-align: left; margin-bottom: 25px;
    font-family: 'Fira Code', 'Cairo', monospace;
    font-size: 1.3rem; letter-spacing: 1px;
}

.field-group { margin-bottom: 20px; text-align: left; }
.field-group label { display: block; margin-bottom: 8px; color: var(--primary); font-size: 14px; font-weight: 700; }

.field-group input, .field-group select {
    width: 100%; padding: 12px; background: rgba(15, 23, 42, 0.9);
    border: 1px solid #1e293b; border-radius: 12px; color: #fff;
    font-family: 'Cairo'; font-size: 15px;
}

.edit-term-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 5px;
}

.term-radio {
    display: flex; align-items: center; justify-content: center;
    padding: 12px; background: rgba(15, 23, 42, 0.6);
    border: 1px solid #1e293b; border-radius: 12px;
    cursor: pointer; transition: 0.3s; color: #fff; font-size: 14px;
}

.term-radio input { display: none; }

.term-radio.selected {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.modal-actions { display: flex; gap: 12px; margin-top: 30px; }
.action-btn { flex: 1; padding: 14px; border: none; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; }

.edit-mode { background: #00ff88; color: #000; }
.save-mode { background: var(--primary); color: #000; }
.delete-mode { background: transparent; border: 1px solid #ff4444; color: #ff4444; }
.delete-mode:hover { background: #ff4444; color: #fff; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
