.smart-functions-section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.95),
        rgba(138, 43, 226, 0.1)
    );
    position: relative;
    overflow: hidden;
}

/* Háttér effektek */
.mystical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: floatBackground 30s linear infinite;
}

.functions-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.functions-container h1 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem;
}

.function-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
    display: block;
    color: inherit;
}

.function-card * {
    pointer-events: none;
}

/* Késleltetett megjelenés minden kártyának */
.function-card:nth-child(1) { animation-delay: 0.2s; }
.function-card:nth-child(2) { animation-delay: 0.4s; }
.function-card:nth-child(3) { animation-delay: 0.6s; }
.function-card:nth-child(4) { animation-delay: 0.8s; }

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(138, 43, 226, 0.1),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.function-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary-purple);
    box-shadow: 
        0 10px 30px rgba(138, 43, 226, 0.2),
        0 0 50px rgba(138, 43, 226, 0.1) inset;
}

.function-card:hover::before {
    left: 100%;
}

.function-icon {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.function-card:hover .function-icon {
    transform: scale(1.1) rotate(360deg);
    color: var(--primary-orange);
}

.function-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.function-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-purple),
        var(--primary-orange)
    );
    transition: width 0.3s ease;
}

.function-card:hover h3::after {
    width: 100%;
}

.function-card p {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.function-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Misztikus részecskék */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: float 20s linear infinite;
}

/* Animációk */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatBackground {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Reszponzív dizájn */
@media (max-width: 1024px) {
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .functions-grid {
        grid-template-columns: 1fr;
    }
    
    .functions-container h1 {
        font-size: 2rem;
    }
}

/* Access Check Modal */
.access-check-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.access-check-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(30, 30, 40, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.2);
    max-width: 400px;
    width: 90%;
    transition: all 0.3s ease;
}

.modal-content h2 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal-buttons a {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.login-btn {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-purple);
    border: 1px solid rgba(138, 43, 226, 0.3);
    min-width: 120px;
    justify-content: center;
}

.subscribe-btn {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-orange));
    color: white;
    min-width: 120px;
    justify-content: center;
}

.modal-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.modal-buttons a::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: 0.5s;
}

.modal-buttons a:hover::before {
    left: 100%;
}

/* Aktív állapot */
.function-card:not(.disabled) {
    cursor: pointer;
}

/* Letiltott állapot */
.function-card.disabled {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: not-allowed;
}

/* Function Control Styles */
.function-control-card {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Hover effekt minden oldalról */
.function-control-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(138, 43, 226, 0.1),
        transparent 40%
    );
    top: var(--mouse-y);
    left: var(--mouse-x);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.function-control-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.function-control-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.access-levels {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.access-levels label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.time-settings {
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding-top: 1rem;
}

.schedule-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.schedule-times {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.schedule-times.active {
    opacity: 1;
    pointer-events: all;
}

.schedule-times input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-light);
}

/* Quick Access Toolbar */
.quick-access-toolbar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 1rem;
    display: none;
}

.quick-access-toolbar.visible {
    display: block;
}

.quick-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-toggle:hover {
    background: rgba(138, 43, 226, 0.1);
}

/* Admin Panel Styles - Új design */
.admin-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-backdrop.active {
    opacity: 1;
}

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: linear-gradient(
        135deg,
        rgba(25, 25, 35, 0.95),
        rgba(40, 40, 60, 0.95)
    );
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 2rem;
    z-index: 10000;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 50px rgba(138, 43, 226, 0.2),
        0 0 100px rgba(0, 0, 0, 0.5);
}

.admin-panel.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
}

.admin-header h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.admin-logout-btn {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-logout-btn:hover {
    background: rgba(255, 0, 0, 0.25);
    transform: translateY(-2px);
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Function Controls - Új design */
.function-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.function-control-card {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    overflow: hidden;
}

/* Késleltetett megjelenés a kártyáknak */
.function-control-card:nth-child(1) { animation-delay: 0.1s; }
.function-control-card:nth-child(2) { animation-delay: 0.2s; }
.function-control-card:nth-child(3) { animation-delay: 0.3s; }
.function-control-card:nth-child(4) { animation-delay: 0.4s; }

.function-control-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.function-control-card:hover::before {
    opacity: 1;
}

.function-control-card:active {
    transform: scale(0.98);
}

.function-control-card h3 {
    color: var(--primary-purple);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.3s;
}

/* Access Levels - Új design */
.access-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.4s;
}

.access-level-option {
    background: rgba(20, 20, 30, 0.6);
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.access-level-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.access-level-option input[type="radio"] {
    cursor: pointer;
}

.access-level-option:hover {
    background: rgba(138, 43, 226, 0.1);
}

/* Switch gomb stílusok */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-purple);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Időzítés beállítások */
.time-settings {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 0.8s;
    margin-top: 1rem;
}

.time-settings input[type="datetime-local"] {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 100%;
}

.time-settings input[type="datetime-local"]:hover {
    border-color: rgba(138, 43, 226, 0.5);
}

/* Mentés gomb */
.save-btn {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-orange));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    width: 100%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Scrollbar */
.admin-content::-webkit-scrollbar {
    width: 8px;
}

.admin-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.3);
    border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.5);
}

/* Bolygók Hatása card specifikus stílusok */
.function-card .fa-globe-europe {
    color: #4B0082;  /* Mély lila szín */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.function-card:hover .fa-globe-europe {
    transform: rotate(360deg);
    color: #9370DB;  /* Világosabb lila hover állapotban */
}