/* === Ãâ€˜ÃÂÃâ€”ÃÅ¾Ãâ€™ÃÂ«Ãâ€¢ ÃÂ¡ÃÂ¢ÃËœÃâ€ºÃËœ === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #161616;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    box-sizing: border-box;
}

/* === ÃÅ¡ÃÅ¾ÃÂÃÂ¢Ãâ€¢Ãâ„¢ÃÂÃâ€¢ÃÂ ÃÂ« === */
.site-wrapper, .container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* === ÃÂ¨ÃÂÃÅ¸ÃÅ¡ÃÂ === */
.site-header {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 1001;
    height: 60px;
    display: flex;
    margin: 5px 23px 0 23px;
    align-items: center;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #212020;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-row, .bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-row {
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    transition: color 0.2s;
}

.logo:hover {
    color: #8d8d8d;
}

.search input {
    background: #222;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    color: #fff;
    width: 200px;
}

.search input:focus {
    outline: 1px solid #444;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-btn, .download-btn {
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.login-btn {
    background: #007bff;
    padding: 6px 14px;
}

.login-btn:hover {
    background: #0062cc;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #007bff;
}

.download-btn:hover {
    background: #0062cc;
}

.menu-toggle {
    display: none;
    background: #333;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
}

/* === Ãâ€˜ÃÅ¾ÃÅ¡ÃÅ¾Ãâ€™ÃÂÃÂ¯ ÃÅ¸ÃÂÃÂÃâ€¢Ãâ€ºÃÂ¬ === */
.sidebar {
    width: 240px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #212020;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ddd;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar a:hover {
    background: #333;
    color: #fff;
}

/* === ÃÅ¾ÃÂ¡ÃÂÃÅ¾Ãâ€™ÃÂÃÅ¾Ãâ„¢ ÃÅ¡ÃÅ¾ÃÂÃÂ¢Ãâ€¢ÃÂÃÂ¢ === */
.main-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.content {
    flex: 1;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #212020;
}

.content-block {
    width: 100%;
}

.site-footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
}

/* === OVERLAY ÃËœ ÃÂ£Ãâ€™Ãâ€¢Ãâ€ÃÅ¾ÃÅ“Ãâ€ºÃâ€¢ÃÂÃËœÃÂ¯ === */
.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
}

.notify {
    position: fixed;
    right: 5px;
    top: 5px;
    z-index: 3000;
}

.notify div {
    margin: 1px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
}

.notify div a {
    padding-left: 10px;
    vertical-align: middle;
}

.notify div.success {
    background: #3c624a;
    border: 1px solid #547348;
    color: #cbffd8;
}

.notify div.error {
    background: #573c46;
    border: 1px solid #734857;
    color: #fad8f1;
}

.notify div.info {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #3a87ad;
}

.notify div.warn {
    background: #fcf8e3;
    border: 1px solid #fbeed5;
    color: #c09853;
}

/* === Ãâ€™ÃÂ«Ãâ€˜ÃÅ¾ÃÂ  ÃÂ¯Ãâ€”ÃÂ«ÃÅ¡ÃÂ === */
.lang-selector {
    position: relative;
    width: 180px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    user-select: none;
}

.lang-selected {
    padding: 10px 14px;
    border-radius: 12px;
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    list-style: none;
    padding: 0;
}

.lang-option {
    padding: 10px 14px;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #222;
}

/* === Ãâ€˜Ãâ€ºÃÅ¾ÃÅ¡ÃËœ ÃÅ¸ÃÂ ÃÅ¾Ãâ€œÃÂ ÃÂÃÅ“ÃÅ“ === */
.programs {
    margin-top: 10px;
}

.programs h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.programs h2 span {
    color: #aaa;
    font-weight: 400;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.program-card {
    background: #1e1e1e;
    border: 1px solid #212020;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

.program-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.program-card h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.program-card .version {
    font-size: 14px;
    color: #aaa;
    margin: 6px 0;
}

.program-card .category {
    font-size: 13px;
    color: #6f6f6f;
}

/* === ÃÅ¸ÃÂ ÃÅ¾Ãâ€œÃÂ ÃÂÃÅ“ÃÅ“ÃÂ Ãâ€Ãâ€¢ÃÂ¢ÃÂÃâ€ºÃËœ === */
.program-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.program-header img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #212020;
    background: #1e1e1e;
}

.program-header .info {
    flex: 1;
}

.program-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.program-header .version {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

.program-header .category {
    font-size: 13px;
    color: #6f6f6f;
    margin-bottom: 15px;
}

.program-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ccc;
}

/* === Ãâ€œÃÂÃâ€ºÃâ€¢ÃÂ Ãâ€¢ÃÂ¯ === */
.gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.gallery img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox .close, .lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
}

.lightbox .close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 30px;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

/* === ÃÂ¤ÃÅ¾ÃÂ ÃÅ“ÃÂ« ÃÂÃâ€™ÃÂ¢ÃÅ¾ÃÂ ÃËœÃâ€”ÃÂÃÂ¦ÃËœÃËœ === */
.auth-wrapper {
    display: flex;
    justify-content: center;
}

.auth-container {
    background: #1a1a1a;
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #212020;
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 14px;
}

.auth-form input:focus {
    outline: 1px solid #444;
}

.auth-form a {
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #007bff;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.auth-form a:hover {
    background: #0062cc;
}

/* === ÃÂÃâ€ÃÂÃÅ¸ÃÂ¢ÃËœÃâ€™ === */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .header-container {
        flex-direction: column;
        gap: 8px;
    }

    .top-row, .bottom-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 60px;
    }

    .search {
        flex: 1;
        min-width: 0;
    }

    .search input {
        width: 100%;
        max-width: 100%;
    }

    .header-right {
        gap: 10px;
        justify-content: flex-end;
        min-width: 0;
    }

    .lang-selector {
        flex-shrink: 0;
        width: auto;
    }

    .main-container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: -500px;
        width: 240px;
        height: calc(100vh - 60px);
        transition: left 0.3s ease-in-out;
        z-index: 1002;
        border-radius: 0 10px 10px 0;
    }

    .site-header {
        height: 120px;
        border: 0;
    }

    .sidebar.open {
        left: 0;
        border-top: 0;
        border-radius: 0;
    }

    .overlay.active {
        display: block;
    }

    .content {
        margin-left: 0;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }

    .auth-form input {
        font-size: 13px;
    }
}

@media(max-width: 768px) {
    .program-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery img {
        width: 150px;
        height: 90px;
    }
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #1e1e1e;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.pagination a, .pagination span {
    color: #f5f5f5;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.pagination a:hover {
    background-color: #2c2c2c;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.pagination .prev, .pagination .next {
    font-weight: 500;
    color: #aaa;
}

.pagination .prev:hover, .pagination .next:hover {
    color: #fff;
}

a.red {
    background: red;
}

a.red:hover {
    background: #9d0202;
}